I'm trying to write an antenna rotor controller for my Dad who is a Ham Radio operator. We're using a program called Nova for Windows that tracks the satellites and outputs rotor coordinates over a serial port. Right now, I'm just trying to read the serial for the values. I have a mobile lcd hooked up to view the output and I'm pointing Nova4Windows at the Mbed serial port.
I'm running into an issue of all my output basically being garbage. I'm not sure what's going wrong. A quick reference on the EasyCom I interface I'm using:
EASYCOMM I Standard
-------------------
The EasyComm 1 standard is a simple ASCII character based standard for
controling antennas and rotators.
The host PC issues a single line command as follows -:
AZaaa.a ELeee.e UPuuuuuuuuu UUU DNddddddddd DDD
The Az and El values (aaa.a and eee.e) are not fixed width. They are in
degrees and include 1 decimal place.
The Up and Dn frequencies are in Hz.
UUU and DDD are the uplink and downlink mode.
So basically, I'm trying to read that line of characters to then later control the rotor.
I originally tried a simple
lcd.putc(pc.getc());
but that's where I'm getting just garbage on my lcd. I'm somewhat of a newbie when it comes to C programming so any ideas someone might have, I would greatly appreciate it!
-Taylor
I'm trying to write an antenna rotor controller for my Dad who is a Ham Radio operator. We're using a program called Nova for Windows that tracks the satellites and outputs rotor coordinates over a serial port. Right now, I'm just trying to read the serial for the values. I have a mobile lcd hooked up to view the output and I'm pointing Nova4Windows at the Mbed serial port.
I'm running into an issue of all my output basically being garbage. I'm not sure what's going wrong. A quick reference on the EasyCom I interface I'm using:
So basically, I'm trying to read that line of characters to then later control the rotor.
I originally tried a simple
lcd.putc(pc.getc());
but that's where I'm getting just garbage on my lcd. I'm somewhat of a newbie when it comes to C programming so any ideas someone might have, I would greatly appreciate it!
-Taylor