Com Port Data Errors
sarah.reichelt at gmail.com
Tue Dec 13 19:54:26 EST 2005
> Baud 9600 , 8 Bits , 1 Stop
> Trying to send command and retrieve data at < 1 second intervals via Com Port.
> Something like ,
> repeat xx
> write "AT00" & numToChar(13) to driver COM1:
> wait ----- sometime
> read from driver COM1:
> put it into received
> end repeat
> This works great with wait time >= 1 second but errors if any faster.
Try using my Serial test stack
It uses a different method with no waiting. It writes to the com port
but has a read handler that it loops through every 5 ticks to pick up
any incoming data that might be queued.
Testing by sending "AT00" to my modem, it returns "ERROR", but it
comes back instantly.
More information about the Use-livecode