MikeWhorley wrote:
I am working with an Atom 24 the old version, level shifter and max3232. I am not using the level shifter or the max3232 at the same time but individualy.
Version var byte(40) 'Set up array to store data
Main:
serout p1, i9600, [">QVR<"] 'Send command to gps to quiry version
serin p0, i9600, [str Version40] 'Read in and store responce in Version
serout S_OUT, i9600, [str Version40,13] 'Send version out hardware serial port
pause 1000
goto Main
end
The serout works to get the GPS to send the version and the data shows up on the Atom pin but when sent to the terminal I get this:
>¤>¤‰*Ö®®Y· Ã’EÚdªâ€ÂªªR§N@ÃÂÃ…Â rI$â€Â02^Å’z
Y’‰*Ö®®Y· Ã’EÚdªâ€ÂªªR§N@ÃÂÃ…Â rI$â€Â02^Å’z
>¤Y’Y’‰*Ö®®Y· Ã’EÚdªâ€ÂªªR§N@ÃÂÃ…Â rI$â€Â02^Å’z
‰*Ö®‰*Ö®®Y· Ã’EÚdªâ€ÂªªR§N@ÃÂÃ…Â rI$â€Â02^Å’z
‰*Ö®®Y· Ã’EÚdªâ€ÂªªR§N@ÃÂÃ…Â rI$â€Â02^Å’z
I have also tried serin p0, N9600. I do not know what exactly O (open drain) is. I double checked the baud rate and thats not the problem. I run into this same issue with both devices. Any suggestions.
Hello Mike, Alan.
Alan, he is using the "i", in "i9600".
OK, the MAX232 *IS* a level shifter, so I don't see what you mean when you say you use "one or the other" since they are one and the same?! Secondly, S_OUT is not the hardware serial port, it is a fixed GPIO pin that uses bit bang for serial work and is assigned programming duty specifically, communications after the fact (quibble, quibble...).
As for the terminal junk, if you aren't using the MAX232 properly, it's all greek to the PC. Check your MAX232 circuit, and be sure the terminal is set for 9600 Baud rate and 8N1 (8 data bits, No polarity check, 1 Stop bit).
If that doesn't fix things, send us a diagram of your circuit. Unless you're using a commercial development board, in which case tell us what it is so we can get the schematics and follow what you're doing. And which GPS unit are you using?
Later!