Shop OBEX P1 Docs P2 Docs Learn Events
Problem with BS2sx Baudrate — Parallax Forums

Problem with BS2sx Baudrate

WGXWGX Posts: 3
edited 2008-12-12 13:53 in BASIC Stamp
Hi,

I've got·a localizer from Hagisonic (Stargazer)·and am currently working with a BS2sx on a Boe-bot..
Encountered some problems·upon·interfacing the·localizer·and microcontroller..
The localizer supports UART communication where..
attachment.php?attachmentid=73777
The Basic Stamp Ref. and Syntax Manual states that BS2sx can support serial input from RS232·up to a baudrate of 115.2k.
However, I·always received some·random unrecognizable characters on the debug panel·using the command below,

SERIN 1, 1, [noparse]/noparse]STR [/size][/font][i][font=Helvetica-Condensed-BlackObl size=2][size=2]InputData\10[/i][/size][/font][font=Helvetica-Condensed-Black size=2][size=2


There·should not be a·problem on the localizer·as I am able to read the the desired data using the hyper-terminal at a configured Baudrate of 115200. However, if·the baudrate on the hyper-terminal is changed to 9600, the random unrecognizable characters·appears on the panel too.·Therefore, I suspect that the problem may lie on the·baudrate but I am not too sure either.

If anyone may help me with this issue, I will be very grateful.
Thank You.

Regards,
WGX
297 x 209 - 3K

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-12-12 06:16
    The BS2sx doesn't do well at high Bauds like 115.2K. It has trouble keeping up and there may be problems because the Baud of the localizer may be slightly different from that of the Stamp and there's not much room for error at the high Baud.

    Your localizer has a 3.3V output. While the Stamp can handle this, it would be more sensitive to noise than if it had a 5V output

    You really need to slow this down, perhaps to 19.2K if possible. The Propeller can handle the 115.2K and the SX could handle it.
  • WGXWGX Posts: 3
    edited 2008-12-12 06:30
    Thanks Mike..

    By the way, how do I slow the baud of my localizer down to 19.2k?

    Thanks.

    WGX

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Regards,

    WGX
  • Mike GreenMike Green Posts: 23,101
    edited 2008-12-12 13:53
    Read the documentation for it. Sometimes:

    1) There's a jumper or switch internally that changes this.

    2) If the device accepts commands, there may be a command to change the Baud. You'd need to use some kind of program (like HyperTerminal) to enter the command, but the device would remember the change.

    3) There's no way to change the Baud. You might need to use a different microcontroller like the Propeller which is faster and can easily handle this and higher Bauds.
Sign In or Register to comment.