Skip to main content
Topic: UART Bridge in 6.1 r1676 (Read 1516 times) previous topic - next topic

UART Bridge in 6.1 r1676

Hi all!

I've done a bunch of searching the forums and can't find an answer to my question.

What I want to know is when the BP is in UART bridge mode does the "device connection" (from the cable that I have attached to my device under test) retain it's previously set baud rate?

I have been able to use the terminal and manually send control codes to the LCD that I am working with, but when I enter UART bridge mode (using code that I wrote) sending the same commands fail to work properly.

TIA for any and all help!

Re: UART Bridge in 6.1 r1676

Reply #1
I was able to answer my own question!

It does maintain a different baud rate for the device under test.

It turns out that my program was having some issues. In .NET sending a string to the serial port like so:

Code: [Select]
            sp.Write("xffxd7");

 is different than sending as follows:
Code: [Select]
            byte[] cmd = { 0xff, 0xd7 };
            sp.Write(cmd, 0, 2);

Where sp is the serial port.

Re: UART Bridge in 6.1 r1676

Reply #2
For those of us who aren't so familiar with .NET, what's the difference in output?

 

Re: UART Bridge in 6.1 r1676

Reply #3
Unfortunately I couldn't really see any difference when printing on the screen. I think that it may be sending additional characters.

I will have to try it with a loop back when I have some time.

EDIT: I just thought about it. It is likely an issue with the .NET string being represented as Unicode. Testing will confirm.