5

I have a project that uses Rocketport Infinity 16 ports to receive data from 6 different anemometers (wind speed measurement devices) (RS422, 50Hz, 38.4k baud, 47 bytes per record). When I use 32Hz and 9600 baud, everything is alright, however, when I change to 50Hz, some of the data isn't received. I tried to use USB instead of the Rocketport Infinity with no luck.

So, apart from the anemometer failing, I suspect the following explanations for the data loss:

  1. For the Rocketport Infinity, I opened all 16 ports, but only connected 6 of them, I suspect the maximum data throughput is to high when I switch to 50Hz.

  2. The IRQ switch speed is too high for the com port to operate properly.

Is there any other possible reason? Please correct me if I'm mistaken.

Development environment of Receiver : Delphi 6 in Windows XP Professional 32-bit version, with CPort 3.1

2
  • 3
    This question hasn't gotten much attention in part because it wasn't good English, and thus hard to understand. I tried to make it clearer, but didn't entirely understand it myself, so please check that your meaning wasn't lost. Good luck.
    – blahdiblah
    Oct 29, 2011 at 1:09
  • Operating system, Linux? Windows? Nov 3, 2011 at 19:13

2 Answers 2

2
+25

The IRQ rate isn't that high and modern machines should have no trouble keeping up with it. I suspect the real problem is your app not processing the received bytes fast enough. Especially when your code also updates a UI in the same thread that receives the data.

Hard to give specific troubleshooting hints because you neither specify a language nor an operating system. But be sure to get your error handling correct. Distinguish between a buffer overflow (app not reading fast enough) and a character buffer overrun (driver not reading fast enough). On Windows that's CE_RXOVER and CE_OVERRUN.

3
  • Actually, there have a reciever which is a plugins developed by delphi with CPort 3.1 (sourceforge.net/projects/comport/files/comport/3.1), I will take a look on the source, thanks for your suggestion.
    – ykc
    Nov 3, 2011 at 16:33
  • Agreed, a buffer somewhere is likely overflowing.
    – Brad
    Nov 3, 2011 at 18:57
  • Windows I guess then since you said Delphi. Nov 3, 2011 at 19:13
1

Are there constraints on a serial port with more than 6 devices connected?

Yes, there are constrains. I assume that you have differential outputs and an I/O receiver with differential inputs. Please, see Balanced differential signals. It is possible that the maximum voltage ratings of the receiver circuits are exceeded.

Each port speed must match corresponding device speed. Please, see other criterias which must be matched.

The IRQ switch speed is too high for the com port to operate properly.

Why do you assume that it would be a problem with your IRQ switch speed? - I would say that you have only scarce IRQ resources.

1
  • Thanks Masi, all of the device is connect directly but didn't share the wire, until it reach the Rocketport. I will ask my colleagues to check the line with a oscilloscope.
    – ykc
    Nov 3, 2011 at 16:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.