Propeller Serial Communications
SCGrant327
Posts: 10
I have been looking and cannot seem to wrap my mind around the idea of doing serial (ascii AND/OR binary) comm with the propeller.
How many serial ports can we have on the serial? I see that there is one for programming, but do not see where any more are referenced. Also, looking through the forums, I see where others have more than one port....
I want to use the Propeller as a intermediate data processor for remote GPS units. In short I need two serial ports, on to talk binary to the GPS and the other to talk ASCII to an RF device.
Forgive my 'Newbie-ness'...
How many serial ports can we have on the serial? I see that there is one for programming, but do not see where any more are referenced. Also, looking through the forums, I see where others have more than one port....
I want to use the Propeller as a intermediate data processor for remote GPS units. In short I need two serial ports, on to talk binary to the GPS and the other to talk ASCII to an RF device.
Forgive my 'Newbie-ness'...
Comments
Good luck.
Now, I am a SW Engineer and have worked with various systems from Windows to Unix to DEC to VAX with some Motorola embedded programming.
What all do I need to get/buy to be able to get a demo unit set up for my Remote GPS project?
I already have the RF Radio and OEM GPS units... After looking through the Propeller BUY options, I am not sure what all I need to get. Any guidance will be greatly appreciated.
Guess I should sit down with my hardware guy and see what he suggests we do.
Thanks again for the serial info.
The Propeller really has no "serial ports" nor does it have a keyboard or mouse port nor a video driver. Everything is done in software. The I/O pins are all equivalent and just provide either a logic high/low output or an input depending on how they're configured by the software. There happens to be a growing library of software that implements various devices including a full-duplex serial port (good up to at least 115Kbps), a standard PS/2 keyboard interface, a standard PS/2 mouse interface, an NTSC/PAL video display for text and/or graphics, several different VGA displays (various resolutions, one with mixed text/graphics), a driver for up to 32 standard servos, floating point library, etc. These can be combined as needed (including multiple copies). For example, when I'm debugging a program that uses a keyboard, VGA display, and servo controller, I may add a TV display for debug output. As long as I have a spare cog and the necessary I/O pins, it's trivial to do.
The demoboard·is quicker to get apps up and running. They use your·usb port to program with, but limit you to 8 I/O lines to customize your app with.
The·Propstic(once soldered) can fit into a breadboard enviroment or soldered, and uses it's serial port for programing. Plus all I/O are available.
Same goes for the PropUSB. It's basically a Propstic with USB replaced serial.
And the PE kit is very versatile, and attractive when you consider the labs that are coming out for them. Design your circuit there and just buy the Chip by itself when your ready to build a PCB.
The accessory kit gets you the sockets and small parts for a VGA display and PS/2 keyboard input which will help during debugging (and even could be used for a status display in the working prototype).
I want to just jump in and get things going, but like I said, I am more into the SW side of the house than the HW... I thought that the Propeller would be the perfect platform for my project as it appears to be readily expandable.
I downloaded the Propeller Tool and have started looking through the source included. I see where the FullDuplexSerial will be beneficial.
Here is a quick synopsis of what I plan on doing. The GPS units can provide me with 'raw' GPS data when asked (via serial). The 'main' program will gather the raw data from the GPS, do some processing on it, and store it. There will be a Host Server that will request the processed data from the remote GPS via an RF Radio.
Simple, but gets complex very quickly if I think too much about it.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
StampPlot - GUI and Plotting, and XBee Wireless Adapters
Southern Illinois University Carbondale, Electronic Systems Technologies
http://forums.parallax.com/showthread.php?p=624624
-MH
·
Looks good to me. I am sure I could use your Extended_FD code to my advantage...
I assume that with the Starter Kit, I can use any of the 'exported' pins (P0-P7) for my serial IO????
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
StampPlot - GUI and Plotting, and XBee Wireless Adapters
Southern Illinois University Carbondale, Electronic Systems Technologies
For my RF communications we are using a MaxStream 9xStream RF modem, and the 2 I/O pins from the Rropeller are wired to 2 pins of a serial DB-9F connecter which is thusly connected to the RF modem, however not all serial communication is done with serial ports like the serial programming interface. My propeller communicates with several other serial devices just through wired connections to the Tx and Rx pins without using DB-9s.
In either case, for your GPS the number of pins you will need depends on which model you plan on using. I am using a U-Blox SAM-LS GPS unit wich has 20 pins, but fortunately only 4 pins are for serial communication and there are 2 sets of Tx and Rx, so once again only 2 additional I/O pins are required on the propeller.
As for communicating with your GPS in binary, that could be something that you want to do for your particular model, however dependent on the type of GPS you use there are often other communication protocols. The SAM-LS for example can communicate to the Propeller in standard ASCII NMEA (www.kh-gps.de/nmea-faq.htm) protocol.
Also, Martin your extended FD code looks like it will be very helpful to me, thanks!
Right now, I am using the CL4490-1000 from Aerocomm...and am quite happy with it. I have not integrated it into the final product yet...just some initial setup to make sure things are working ok.
I am not interested in using the NMEA data, as I want to do my own math on the raw GPS data.
I suppose I will look into getting one or two of the Starter Kits and go from there.
Trevor, I would love to see how you have things set up...software and hardware.
The more I look at things, the more I like the looks of the PE Kit....wow, talk about possibilities!
Post Edited (SCGrant327) : 2/26/2007 5:53:59 PM GMT