Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: emoseman on August 13, 2009, 02:02:22 PM
-
I've downloaded and installed the drivers for the serial to usb adaptor on my mac and when I plugin the axon board to my computer two devices get created. I've read through some tutorials and feel that I'm getting close to getting this to work. I'm using Axon.c with a very simple control.c that just uses rprintf to print out a string over and over again. I've tried setting the baud rate at 38400 and 115200 and so far the best I can get is jibberish using either ZTerm or screen. I tried adjusting the baud rate in ZTerm and the jibberish changes, but it is still junk. I have also tried with and without hardware control, and pretty much cycled through the different options for the serial communications. I haven't been able to find what the Axon uart is using, so I stick with N81 for the comm settings.
Do I need to get additional hardware to do any more translation to the data?
I've also tried the Axon source verison 1.01, 1.05, and 1.08 and the results are the same.
Am I missing something?
--
Evan
-
I haven't been able to find what the Axon uart is using, so I stick with N81 for the comm settings.
What do you mean? And what do you have the Axon baud set to?
Sounds like hardware is fine . . .
-
I have my uart set to 115200:
uart1Init();
uartSetBaudRate(1, 115200);
rprintfInit(uart1SendByte);
rprintf("Hello UART1\r\n");
If I set my terminal program to 115200 I don't get any data at all.
I think you answered my biggest concern though, is if the uart connection is what I need to get data back to a terminal.
I'll try a few things and report back , hopefully with some data!
--
Evan
-
I've tried every combination of baud rate and control and terminal settings. The only time I get any data on a terminal is when I set the baud rate to be completely different from the baud rate set on the axon. If I set it to say 38400 on the axon and set the baud rate to 9600 on the terminal program I at least get gibberish. If both rates match I get nothing at all.
I'm out of options, ideas, and energy at this point... :(
--
Evan
-
Is there any conceivable way to test the uart1 port from the mcu?
At this point I have no way of knowing if it is working correctly.
How can I guarantee that it is working?
-
What mac setup are you using and what OS are you using. 10.4.11 is what i use and it is non compatiable with most the serial to usb devices due to a bug in the OS. to my knowledge anything over that or under it should work though... ???
Truckstop
-
Is there any conceivable way to test the uart1 port from the mcu?
At this point I have no way of knowing if it is working correctly.
How can I guarantee that it is working?
You can easily test it on any windows machine.
Also, just in case, verify that your fuses still look like this:
http://www.societyofrobots.com/axon/axon_FAQ.shtml#fuses
Sorry, but I don't know enough about macs to help much more . . .
-
What mac setup are you using and what OS are you using. 10.4.11 is what i use and it is non compatiable with most the serial to usb devices due to a bug in the OS. to my knowledge anything over that or under it should work though... ???
Truckstop
Truckstop:
I'm running Mac OSX 10.5.8 along with the latest Silabs cp2102 usb->uart drivers.
--
Evan
-
Is there any conceivable way to test the uart1 port from the mcu?
At this point I have no way of knowing if it is working correctly.
How can I guarantee that it is working?
You can easily test it on any windows machine.
Also, just in case, verify that your fuses still look like this:
http://www.societyofrobots.com/axon/axon_FAQ.shtml#fuses
Sorry, but I don't know enough about macs to help much more . . .
Thank you! It was the fuses, I got my fuse settings from:
http://www.engbedded.com/fusecalc/
and they differ greatly from what you have documented.
Using your fuse settings made all the difference, I have so much to learn! :-[
Thanks again!
--
Evan
-
WTG admin
-
Yea, my theory was that fuses can alter the baud rate, that since he was using a mac he wasn't using the bootloader, and that perhaps the fuses got corrupted/changed. It was a lucky long shot :P