Author Topic: AXON -> Mac Serial Comm.  (Read 4165 times)

0 Members and 1 Guest are viewing this topic.

Offline emosemanTopic starter

  • Jr. Member
  • **
  • Posts: 22
  • Helpful? 0
AXON -> Mac Serial Comm.
« 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

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,704
  • Helpful? 173
    • Society of Robots
Re: AXON -> Mac Serial Comm.
« Reply #1 on: August 13, 2009, 02:46:12 PM »
Quote
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 . . .

Offline emosemanTopic starter

  • Jr. Member
  • **
  • Posts: 22
  • Helpful? 0
Re: AXON -> Mac Serial Comm.
« Reply #2 on: August 13, 2009, 06:08:52 PM »
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

Offline emosemanTopic starter

  • Jr. Member
  • **
  • Posts: 22
  • Helpful? 0
Re: AXON -> Mac Serial Comm.
« Reply #3 on: August 13, 2009, 09:33:05 PM »
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


Offline emosemanTopic starter

  • Jr. Member
  • **
  • Posts: 22
  • Helpful? 0
Re: AXON -> Mac Serial Comm.
« Reply #4 on: August 13, 2009, 10:33:22 PM »
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?


Offline Truckstop

  • Full Member
  • ***
  • Posts: 93
  • Helpful? 2
  • I Void Warrenty's
Re: AXON -> Mac Serial Comm.
« Reply #5 on: August 14, 2009, 02:40:04 AM »
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
The Mongoose: Natures Assassin
The Hyena: Nature's A$$hole
And.....
The Lemming: Natures Retard

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,704
  • Helpful? 173
    • Society of Robots
Re: AXON -> Mac Serial Comm.
« Reply #6 on: August 14, 2009, 04:40:20 AM »
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 . . .

Offline emosemanTopic starter

  • Jr. Member
  • **
  • Posts: 22
  • Helpful? 0
Re: AXON -> Mac Serial Comm.
« Reply #7 on: August 14, 2009, 08:01:53 AM »
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

Offline emosemanTopic starter

  • Jr. Member
  • **
  • Posts: 22
  • Helpful? 0
Re: AXON -> Mac Serial Comm.
« Reply #8 on: August 14, 2009, 08:14:43 AM »
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

Offline Truckstop

  • Full Member
  • ***
  • Posts: 93
  • Helpful? 2
  • I Void Warrenty's
Re: AXON -> Mac Serial Comm.
« Reply #9 on: August 14, 2009, 07:16:08 PM »
WTG admin
The Mongoose: Natures Assassin
The Hyena: Nature's A$$hole
And.....
The Lemming: Natures Retard

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,704
  • Helpful? 173
    • Society of Robots
Re: AXON -> Mac Serial Comm.
« Reply #10 on: August 14, 2009, 08:43:49 PM »
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

 

SMF spam blocked by CleanTalk