03-13-2008 04:35 AM
03-31-2008 05:21 PM
04-01-2008 01:28 AM
07-16-2008 08:46 AM
07-16-2008 09:43 AM
I ended up using the single-channel example and modified it to handle up to 10 channels if I stripped off the baud rate setting feature I added to it at first (the 1M FPGA could not handle more, if I added an eleventh channel the code would be to large).
The ports are not available in parallell, however by requesting bytes at port and not read until all bytes have been received I avoid that parallell processes are held up much. It is not ideal, but in this case the performance was good enough.
I did make a rough parallell version as well and got it working in one direction, however it was never finished as I focused on getting the rest of the project done on time.
One thing I had some problems with (apart from the code size issue) was that the modules returned a buffer overflow error, not just if there was a message of more than 255 characters, but also if the reply comes to quick (no matter how short)). It seems that the modules are very slow to switch between tx and rx and that they hang if it happens. Flushing the buffer is necessary to be able to read any data after such an error, however you often have to do a series of flushes to get things back up and running (again even though the message received really is a short one).
07-17-2008 05:35 AM
Hi Mads,
Can you send in the code that you had done to read multiple channels from the 9870 module? Would like to take a look at how you do it, thanks!
07-17-2008 06:16 AM
06-30-2009 11:41 PM
Hi,
I am trying to use 9870 to collect GPS data, which is ina string format. I have 3 9221 AI modules. Is there a way i donot use the FIFO route and simple read the GPS string parse it and then send it to the host program.
Or if some one can suggest/send some tutorials to work it around.
Thanks,
Ajay
07-01-2009 01:03 AM