Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: morind79 on November 12, 2014, 04:49:12 PM

Title: UART6 issue
Post by: morind79 on November 12, 2014, 04:49:12 PM
Hi All,

I have made a search on the forrum concerning Uart issue, and saw that everything is working as soon as you have a recent Debian version.
Mine is 3.4.67+

I used Minicom on A20 board, and Terminte on Windows side.

Sending characters from A20 to Windows, no problem at all
But sending from Windows to A20, then I see strange characters in Minicom.

What can be the issue ?
I work at 9600 8N1

Best regards,
Denis
Title: Re: UART6 issue
Post by: MBR on November 12, 2014, 06:26:32 PM
How is set the hardware flow control? Is it turned off on both sides?
Title: Re: UART6 issue
Post by: morind79 on November 12, 2014, 06:29:45 PM
Yes, hardware flow control is disable on both side.
One thing I did not said is this uart is connected to a TXB0104, and after some search seems this can introduce some problems.
I ordered TXS04104 instead. Wait to have them to make a test.

Title: Re: UART6 issue
Post by: dave-at-axon on November 13, 2014, 03:43:39 AM
How are you connecting the UART on the board to the PC?

Are you using a USB to TTL converter on the PC or a USB to RS232?

I don't see why you need the logic level converter unless your USB to TTL is 5V.

They certainly won't work with RS232 levels.
Title: Re: UART6 issue
Post by: morind79 on November 13, 2014, 09:22:32 AM
Hi Dave,

I solved my issue, this was due to the TXB0104. I unsoldered it from the board and now everything work just fine.
To give you some more info whay I had was :

Uart6 -> MAX3232 -> RS232
      -> TXB0104 -> Uart of another device working at 4.3V

So as you can see Uart 6 was connected to 2 devices (MAX3232 was there for debug purpose)
I am waiting for the TXS0104 now.

Best regards
Denis
Title: Re: UART6 issue
Post by: dave-at-axon on November 13, 2014, 10:42:20 AM
Hi Denis,

Ah, that would make sense. There was a contention as RS232 does not support 2 drivers on the same lines.

I am not sure about your 4.3V level translation here as the SIM900 modules, although they are powered from 4.3V, the data lines are actually at 2.8V logic levels. Feeding 4.3 to then is likely to cause damage.

Which module are you using?

Dave...

PS.. I got your files and looking at the schematics just now. Which software do you use for the PCB design?
Title: Re: UART6 issue
Post by: morind79 on November 13, 2014, 10:56:21 AM
Hi Dave,

I use this GSM module : http://www.open-electronics.org/small-breakout-for-sim900-gsm-module/ (http://www.open-electronics.org/small-breakout-for-sim900-gsm-module/)

Denis

PS : For PCB Design I used Altium
Title: Re: UART6 issue
Post by: dave-at-axon on November 13, 2014, 10:59:37 AM
OK. It looks like this module

http://www.open-electronics.org/small-breakout-for-sim900-gsm-module/

The DATASHEET for the SIM900 shows that RXD must be pulled high to VDD_EXT which is 2.8V and the MAX input on any digital interface pin is 3.1V so if you are using 4.3 you will need to fix this.

What I normally do is use a level translator that is powered from the 2.8V VDD_EXT output.
Title: Re: UART6 issue
Post by: morind79 on November 13, 2014, 11:32:11 AM
When I have a look at this http://www.open-electronics.org/gsm-gps-shield-for-arduino/# (http://www.open-electronics.org/gsm-gps-shield-for-arduino/#) there is a schematic.
I see that one one line TXD it is 3.3V, on RXD it is 2.5V.

So I am a little bit lost.
I thing that I should just change the +4.3 bu +2.8V on U19 (TXS0104)

What do you think ?

Title: Re: UART6 issue
Post by: dave-at-axon on November 13, 2014, 04:45:10 PM
Yes, the TXD will be 3.3V from your board and this exceeds the max input to the board. The 2.5 is the output from the modem.

To ensure that the modem works reliably I would make sure that the voltage inputs are not exceeded.

Also all of the SIM900 modules are 2.8V on interface pins but a lot of designs using them just use 3.3V and this is not good practice if you want it to be reliable.
Title: Re: UART6 issue
Post by: morind79 on November 13, 2014, 05:04:54 PM
Well I see from the schematic of the small breakout board that :

Power On/Off
Rst
LED

can be used with 4.3V logic level because they are using a transistor to pull down the logic level.

But for RI, high level is 2.8V and low level 0V ?
If yes, then I have to modify this pin...