EmbeddedRelated.com
Forums

EZ430-RF2500 USB dongle messed up UART output

Started by thanhtranhd April 18, 2008
Hello all,
I have this weird problem with the USB dongle of the 430-RF2500 kit.
The string output from the UART of the RF unit to the PC is good, but
the USB dongle UART -> USB makes the text appear like this:
- -----------
****
**** e Z34-0FR5200
k* * ******o** * T mepretaru eeSsnroN tewro
7 ******_*///*_** * oCypirhg t200
******_///_*/**** eTax snItsrmunestI cnrooparetd
*** **_(/_***** A llr gith sersreev.d
********* V reisno .100
* ****
* **
-------------

nIiitlazini geNwtrok....oDen

oNed:UH0BT,me:p8 .4F9,aBttre:y.3V6S,rtneght0:00,%ERn: o
oNedH:BU,0eTpm:8 .4F9B,taetyr3:5.VS,rtnetg:h00%0R,:En o
oNedH:BU,0eTpm:8 .5F6B,taetyr3:.V5S,rtnetg:h00%0R,En: o
oNedH:BU,0eTm:p0 .1F3B,taetyr3:.V6S,rtnetg:h00%0,ERn: o
oNedH:BU,0eTpm:8 .4F9B,taetyr3:5.VS,rtnetg:h00%0R,En: o
It looks like the USB dongle messes up the order of the characters. I
put the RF unit (the one with the CC2500 chip & antenna) to a max323
chip to convert to RS323 level and read it on a PC serial port, the
output looks good.

It's happened before, but the problem was gone after I unpluged and
replugged the USB back in. Now that doesn't fix it any more.

Anyone has this problem? Can you fix this?

I've also re-programmed the RF unit to see if I had any luck, at some
points it seemed fixing the problem, but then it eventually went bad
by itself again.

Thanks for reading

Thanh

Beginning Microcontrollers with the MSP430

damn, looks like you got the dyslexic one, it types like I do!

Al

thanhtranhd wrote:

>Hello all,
>I have this weird problem with the USB dongle of the 430-RF2500 kit.
>The string output from the UART of the RF unit to the PC is good, but
>the USB dongle UART -> USB makes the text appear like this:
>- -----------
> ****
> **** e Z34-0FR5200
>k* * ******o** * T mepretaru eeSsnroN tewro
>7 ******_*///*_** * oCypirhg t200
> ******_///_*/**** eTax snItsrmunestI cnrooparetd
> *** **_(/_***** A llr gith sersreev.d
> ********* V reisno .100
> * ****
> * **
>-------------
>
>nIiitlazini geNwtrok....oDen
>
>oNed:UH0BT,me:p8 .4F9,aBttre:y.3V6S,rtneght0:00,%ERn: o
>oNedH:BU,0eTpm:8 .4F9B,taetyr3:5.VS,rtnetg:h00%0R,:En o
>oNedH:BU,0eTpm:8 .5F6B,taetyr3:.V5S,rtnetg:h00%0R,En: o
>oNedH:BU,0eTm:p0 .1F3B,taetyr3:.V6S,rtnetg:h00%0,ERn: o
>oNedH:BU,0eTpm:8 .4F9B,taetyr3:5.VS,rtnetg:h00%0R,En: o
>It looks like the USB dongle messes up the order of the characters. I
> put the RF unit (the one with the CC2500 chip & antenna) to a max323
>chip to convert to RS323 level and read it on a PC serial port, the
>output looks good.
>
>It's happened before, but the problem was gone after I unpluged and
>replugged the USB back in. Now that doesn't fix it any more.
>
>Anyone has this problem? Can you fix this?
>
>I've also re-programmed the RF unit to see if I had any luck, at some
>points it seemed fixing the problem, but then it eventually went bad
>by itself again.
>
>Thanks for reading
>
>Thanh
>
>
thanhtranhd wrote:
> Hello all,
> I have this weird problem with the USB dongle of the 430-RF2500 kit.
> The string output from the UART of the RF unit to the PC is good, but
> the USB dongle UART -> USB makes the text appear like this:
>
> - -----------
> ****
> **** e Z34-0FR5200
> k* * ******o** * T mepretaru eeSsnroN tewro
> 7 ******_*///*_** * oCypirhg t200
> ******_///_*/**** eTax snItsrmunestI cnrooparetd
> *** **_(/_***** A llr gith sersreev.d
> ********* V reisno .100
> * ****
> * **
> -------------
>
> nIiitlazini geNwtrok....oDen
>
> oNed:UH0BT,me:p8 .4F9,aBttre:y.3V6S,rtneght0:00,%ERn: o
> oNedH:BU,0eTpm:8 .4F9B,taetyr3:5.VS,rtnetg:h00%0R,:En o
> oNedH:BU,0eTpm:8 .5F6B,taetyr3:.V5S,rtnetg:h00%0R,En: o
> oNedH:BU,0eTm:p0 .1F3B,taetyr3:.V6S,rtnetg:h00%0,ERn: o
> oNedH:BU,0eTpm:8 .4F9B,taetyr3:5.VS,rtnetg:h00%0R,En: o
>
> It looks like the USB dongle messes up the order of the characters. I
> put the RF unit (the one with the CC2500 chip & antenna) to a max323
> chip to convert to RS323 level and read it on a PC serial port, the
> output looks good.
>
> It's happened before, but the problem was gone after I unpluged and
> replugged the USB back in. Now that doesn't fix it any more.
>
> Anyone has this problem? Can you fix this?
>
> I've also re-programmed the RF unit to see if I had any luck, at some
> points it seemed fixing the problem, but then it eventually went bad
> by itself again.
>
> Thanks for reading
>
> Thanh
>

Hello Thanh,

Is it possible that you are using a wide (double-byte) character set? It
looks like it is receiving two bytes in little-endian format and then
displaying the result as a wide character.

Perhaps if you try a different font or set up your computer to have an
English keyboard it might help.

Other than that I don't have a clue as to what would cause the problem
you are seeing.

Hope this helps,

Greg

That's funny :)
Onestone wrote: damn, looks like you got the dyslexic one, it types like I do!

Al

-------
What do I see?

http://www.pbase.com/thanhthd/
-------

---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.


Hi Greg

Thanks for your help.
I'm using 8 bit font for the terminal . The output of the EZ2500 is also 8 bit as well. All the characters are there and look valid. They are just at the wrong position. If I connect the UART of the target to the PC via a level shifter, all appear correctly. I think my USB dongle is messed up.

Thanh

Greg Maki wrote: thanhtranhd wrote:
>
>
> Hello all,
> I have this weird problem with the USB dongle of the 430-RF2500 kit.
> The string output from the UART of the RF unit to the PC is good, but
> the USB dongle UART -> USB makes the text appear like this:
>
> - -----------
> ****
> **** e Z34-0FR5200
> k* * ******o** * T mepretaru eeSsnroN tewro
> 7 ******_*///*_** * oCypirhg t200
> ******_///_*/**** eTax snItsrmunestI cnrooparetd
> *** **_(/_***** A llr gith sersreev.d
> ********* V reisno .100
> * ****
> * **
> -------------
>
> nIiitlazini geNwtrok....oDen
>
> oNed:UH0BT,me:p8 .4F9,aBttre:y.3V6S,rtneght0:00,%ERn: o
> oNedH:BU,0eTpm:8 .4F9B,taetyr3:5.VS,rtnetg:h00%0R,:En o
> oNedH:BU,0eTpm:8 .5F6B,taetyr3:.V5S,rtnetg:h00%0R,En: o
> oNedH:BU,0eTm:p0 .1F3B,taetyr3:.V6S,rtnetg:h00%0,ERn: o
> oNedH:BU,0eTpm:8 .4F9B,taetyr3:5.VS,rtnetg:h00%0R,En: o
>
> It looks like the USB dongle messes up the order of the characters. I
> put the RF unit (the one with the CC2500 chip & antenna) to a max323
> chip to convert to RS323 level and read it on a PC serial port, the
> output looks good.
>
> It's happened before, but the problem was gone after I unpluged and
> replugged the USB back in. Now that doesn't fix it any more.
>
> Anyone has this problem? Can you fix this?
>
> I've also re-programmed the RF unit to see if I had any luck, at some
> points it seemed fixing the problem, but then it eventually went bad
> by itself again.
>
> Thanks for reading
>
> Thanh
>

Hello Thanh,

Is it possible that you are using a wide (double-byte) character set? It
looks like it is receiving two bytes in little-endian format and then
displaying the result as a wide character.

Perhaps if you try a different font or set up your computer to have an
English keyboard it might help.

Other than that I don't have a clue as to what would cause the problem
you are seeing.

Hope this helps,

Greg

---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.


Perhaps you're talking to the USB dongle in TTL? If so you may well have
forgotten to invert the UART signals from the micro. A UART on the micro
idles high, this is inverted by the UART driver, then re-inverted by the
PC driver so that a start bit really does pull the PC uart down. If you
forget to invert at the MSP end or don't have the driver you will get
garbage, as the receiver will try to sync off falling edges which are in
fact data bits, so you data gets screwed up.

Although it really does look byte reversed, as if you'd stored the data
in 16 bit blocks then forgotten wen you read it baxck that it is little
endian, though that doesn't explain it correcting itself with a level
shifter. Nothing does except unless my first idea is right and by some
weird mechaniism the UART to USB interface is buffering two bytes and
reversing them.

Cheers

Al

Thanh Tran wrote:

>Hi Greg
>
>Thanks for your help.
>I'm using 8 bit font for the terminal . The output of the EZ2500 is also 8 bit as well. All the characters are there and look valid. They are just at the wrong position. If I connect the UART of the target to the PC via a level shifter, all appear correctly. I think my USB dongle is messed up.
>
>Thanh
>
>Greg Maki wrote: thanhtranhd wrote:
> >
> >
> > Hello all,
> > I have this weird problem with the USB dongle of the 430-RF2500 kit.
> > The string output from the UART of the RF unit to the PC is good, but
> > the USB dongle UART -> USB makes the text appear like this:
> >
> > - -----------
> > ****
> > **** e Z34-0FR5200
> > k* * ******o** * T mepretaru eeSsnroN tewro
> > 7 ******_*///*_** * oCypirhg t200
> > ******_///_*/**** eTax snItsrmunestI cnrooparetd
> > *** **_(/_***** A llr gith sersreev.d
> > ********* V reisno .100
> > * ****
> > * **
> > -------------
> >
> > nIiitlazini geNwtrok....oDen
> >
> > oNed:UH0BT,me:p8 .4F9,aBttre:y.3V6S,rtneght0:00,%ERn: o
> > oNedH:BU,0eTpm:8 .4F9B,taetyr3:5.VS,rtnetg:h00%0R,:En o
> > oNedH:BU,0eTpm:8 .5F6B,taetyr3:.V5S,rtnetg:h00%0R,En: o
> > oNedH:BU,0eTm:p0 .1F3B,taetyr3:.V6S,rtnetg:h00%0,ERn: o
> > oNedH:BU,0eTpm:8 .4F9B,taetyr3:5.VS,rtnetg:h00%0R,En: o
> >
> > It looks like the USB dongle messes up the order of the characters. I
> > put the RF unit (the one with the CC2500 chip & antenna) to a max323
> > chip to convert to RS323 level and read it on a PC serial port, the
> > output looks good.
> >
> > It's happened before, but the problem was gone after I unpluged and
> > replugged the USB back in. Now that doesn't fix it any more.
> >
> > Anyone has this problem? Can you fix this?
> >
> > I've also re-programmed the RF unit to see if I had any luck, at some
> > points it seemed fixing the problem, but then it eventually went bad
> > by itself again.
> >
> > Thanks for reading
> >
> > Thanh
> > Hello Thanh,
>
> Is it possible that you are using a wide (double-byte) character set? It
> looks like it is receiving two bytes in little-endian format and then
> displaying the result as a wide character.
>
> Perhaps if you try a different font or set up your computer to have an
> English keyboard it might help.
>
> Other than that I don't have a clue as to what would cause the problem
> you are seeing.
>
> Hope this helps,
>
> Greg
>
>
>
>
>
>---------------------------------
>Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
>
>
>