I have found that the STAMP has trouble with decimal formatting at 9600 baud (bps).
The HELP for SERIN/SEROUT states that this is likely.
Anyway, I say this because I have downloaded the following program and verified my statement.
It would not work at 9600, but it works great at 4800 bps.
It is practically the same program that I first sent.· However, it is using SERIN 16 like you want.·
I have an LED on P0 and another on P1 that turn on to verify the outputs·in accordance with·valid/desired SERIN,·they confirm LEFTVAL and RIGHTVAL correctness.
I send data·to the STAMP using the first format, that is,·with the parentheses and the comma in·the middle: (###,###).
My Conclusion -- I think that you need to slow down your Linux or whatever is sending data to the STAMP to 4800 bps.· Hopefully this will not be·impossible.
PJ, I have had SERINs not work when I looked for an early termination char (the \L {\E} )- but *did* work when I omitted the specified end character. (At certain speeds, namely 9600.) Just confirming your statements.
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
I have only 1 serial port in my PC sharing both modem Internet Connection and Communication with BoeBot. So, each time I want to test a program I have to disconnect.
It's really irritating! If I use a usb-to-serial adapter do U think I will solve this problem? I mean, the Basic Stamp will be successfully recognised by the program editor?
Comments
The HELP for SERIN/SEROUT states that this is likely.
Anyway, I say this because I have downloaded the following program and verified my statement.
It would not work at 9600, but it works great at 4800 bps.
It is practically the same program that I first sent.· However, it is using SERIN 16 like you want.·
I have an LED on P0 and another on P1 that turn on to verify the outputs·in accordance with·valid/desired SERIN,·they confirm LEFTVAL and RIGHTVAL correctness.
I send data·to the STAMP using the first format, that is,·with the parentheses and the comma in·the middle: (###,###).
My Conclusion --
I think that you need to slow down your Linux or whatever is sending data to the STAMP to 4800 bps.·
Hopefully this will not be·impossible.
Try it, you'll like it.
... and That's The Way It Is.
Post Edited (PJ Allen) : 1/10/2006 11:12:05 PM GMT
Could you please remind me what the proper number for 4800 8n1 connection to write in my code? I mean like 16468 is for 9600 8n1. What s for 4800 8n1?
John.
PJ, I have had SERINs not work when I looked for an early termination char (the \L {\E} )- but *did* work when I omitted the specified end character. (At certain speeds, namely 9600.) Just confirming your statements.
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
I have only 1 serial port in my PC sharing both modem Internet Connection and Communication with BoeBot. So, each time I want to test a program I have to disconnect.
It's really irritating! If I use a usb-to-serial adapter do U think I will solve this problem? I mean, the Basic Stamp will be successfully recognised by the program editor?
John.
[noparse][[/noparse]I'll try your code now...]
Post Edited (PJ Allen) : 1/10/2006 11:40:25 PM GMT