[fpc-pascal] One experience with the unit serial

Gustavo Enrique Jimenez gejimenez at gmail.com
Thu Nov 19 15:10:05 CET 2009


>
> Thank you for your answer. I played with different baud rates. The sender
> delivers a stream of bytes. The faster a transmission rate is, the less
> amount of data can be received. This leds me to two conclusions: At first,
> there must be a queue for incoming data despite I ruled out a queue with an
> inbuffer with the length 1. Secondly, a timeout error appeared, the sender
> gave up. For now, I try to solve this problem with slower baud rates. Since
> iopl is still not available to fpc in its 64-bit-version, I should move to c
> for future port programming.

Despite queues an baud rates, you must expect data loss.  You will
loss data in the physical layer. You have to implement some handshake
to prevent it. (using google translator, excuse my english).


Gustavo

>
> For that matter it could be interesting to know two more things: How can I
> call external executable code like "setserial /dev/ttySx none" and secondly,
> how can I use c functions like pascal functions?
>
>>
>> Are you sure you have data waiting for you?
>
> Yes.
>
> Holger
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



More information about the fpc-pascal mailing list