Re: Events on Serial port



Derek wrote, On 04.07.2008 11:07:
What do you mean by full speed, at the set baud rate?
I presume the latency in the actual write from the background is OS
dependant!, this may not be the issue but would have an impact on what
I'm doing.

By "full speed" I mean that in worst case bytes are transmitted as fast as the baud rate allows, one character after the other using the UART-FIFO (if no handshake).
And you don't have any control, because specially Windows is far from being a real-time OS with predictable timing.
Your OS may even decide not to send/receive characters even for seconds, if it thinks, that there is something more important to do.

If there are real timing restrictions on the receiver side, then you need handshake. Adding artificial delays after sending each character may help (I'm doing this), but there is no guaranty, neither for Linux nor for Windows.

I have quite strict timing, i need to detect and process RDS data
within 22mS worse case.
This is fine under Linux, Tcl is quite fast at doing the processing,
getting the data into the script is the slow part!

Generally that should be possible, but this depends on your baud rate and your serial driver settings.
E.g. in the device manager/com port/Port settings/advanced there is a slider for interrupt levels for your FIFO which radically changes your serial I/O latency. I prefer the Low(1) settings meaning that an interrupt is generated after reception of the first incoming character without any delay. The Higher(14) settings are useful for very fast serial transmissions (Modem Internet) to avoid overloading the OS with serial interrupts.

I'm not totally clear, where is your problem.
Do you suspect that sent characters are not received ?
Or do you have more trouble to detect and process incoming bytes ?
What is your baud rate and your complete [fconfigure] settings ?

Regards,
Rolf.
.



Relevant Pages

  • Re: OT: Is English the only language that doesnt roll Rs?
    ... >Dunno, but if I put the cursor after a character then hit backspace, I'd ... On the Tools -> Options Edit tab, uncheck 'when selecting, automatically ... For example, under Edit -> Smart cut and paste -> Settings, I ... The bad news is that everything is prohibited. ...
    (sci.electronics.design)
  • Re: Which way round do you work?
    ... Most of my novels have been in settings ... My NaNoWriMo stories tend to start with character and situation, ... So I'm thinking that I have to do more worldbuilding ...
    (rec.arts.sf.composition)
  • Re: WoW, BSODs and drivers..
    ... My quad core mac pro doesn't seem to break much of a ... Since I was already at max settings anyway, ... a new WoW session (carries over from character to character though). ... machine here) and it's a little harder to find your kills for looting ...
    (alt.games.warcraft)
  • Re: Trimming a cell, remove "space character"
    ... What settings did you use? ... If it is some other character try copying the character, opening find, and ... pasting the character into the find what control. ... you can't paste using the menu bar as that will paste into the currently ...
    (microsoft.public.access.queries)
  • Re: Totally Wierd Problem With Cakewalk.
    ... things are screwey but not because of sample rates. ... settings, which shouldn't even be an issue with where that was set. ... latency about 70 ms buffer size and any setting above or below gives ... I know that that's a bogus deal because my old 500mhz comp can be set ...
    (rec.audio.pro)