View Full Version : How to real time communicate through serial port ?
z_ruixiang
03-26-03, 02:30 AM
I want to download the program to the IsoPod and run it and I need some communication with the PC. How can I do that? Can I use Isomax?
(I'm now using the IsoPod V2 to control a 12-motor Biped Robot, I want to use embedded PC to send the high level command to it and get back the sensors' data. Which port, what language should I use and how to do that? Thank you. )
RMDumse
03-26-03, 09:09 AM
Yes, with IsoMax(TM) you should be able to put your servo control in the background, and leave the foreground open for communications. You can let the PC send strings to the 'Pod and it will answer the PC just like it does you in interactive mode, while the program continues in the background.
Sometimes, dictionary links are terminated, so only a small number of words are available to the querying device, rather than the whole language. If this is of interest ask for details, but it might not be your intent so I won't dwell on it unnecessarily.
Creating a separate interpreter on the other serial channel is a bit trickier. It can also be done, but is rather an advanced programming technique. The basic interpreter is a QUERY INTERPRET loop. QUERY gets a line and INTERPRET translates it. You might want to experiment with these two words and see what you think.
On the embedded PC side, you will need to write a program to handle serial communications. Since this is not our area of expertise, I can't offer much guidance. But it will be approximately the same thing. Send a serial string, and capture a serial string back, then interpret what you got.
z_ruixiang
03-26-03, 10:05 AM
Which baud rate can I use for communication through serial port? Only 9600? When I change it to 14400 or other rates, it doesn't work. What shall I do if I want a faster communication speed? Thank you.
nmitech
03-26-03, 10:32 AM
IsoMax selectable Baudrates: 2400, 4800, 9600, 19200, 38400.
z_ruixiang
03-26-03, 10:42 PM
But I can't use other rates. When I change it to 19200 or 38400, when I type there will be strange codes appear. What shall I do then ? Thank you.
nmitech
03-26-03, 11:34 PM
for example, at the terminal prompt you enter,
DECIMAL 19200 BAUD
as soon as you hit the return key, IsoMax will set the the Serial I/O to 19200 and you must change the Terminal Program to your selected baudrate, 19200 to get the proper data communnication for new baud setting.
vBulletin v3.0.7, Copyright ©2000-2012, Jelsoft Enterprises Ltd.