Hi there,
I've got a sensor hooked up to mbed analog inputs and want to stream the sensor output to my PC via a serial connection.
I've managed to send up to 16 bytes per package (I guess that works because the UART buffer is 16 bytes), but when I want to send more information at once things become very chaotic and I don't really understand what's going on.
On the PC I've got Java with the RxTx API running and use an event based read algorithm, which, as noted, works fine for anyting up to 16 bytes.
I've tried to just put the java read function into a loop that reads until it has received 48 bytes, but that doesn't work as I'm only getting rubbish out and it actually takes a while until 48 bytes have been transmitted which doesn't feel right.
Has anyone got experience with that? Any help would be much appreciated.
Hi there,
I've got a sensor hooked up to mbed analog inputs and want to stream the sensor output to my PC via a serial connection.
I've managed to send up to 16 bytes per package (I guess that works because the UART buffer is 16 bytes), but when I want to send more information at once things become very chaotic and I don't really understand what's going on.
On the PC I've got Java with the RxTx API running and use an event based read algorithm, which, as noted, works fine for anyting up to 16 bytes.
I've tried to just put the java read function into a loop that reads until it has received 48 bytes, but that doesn't work as I'm only getting rubbish out and it actually takes a while until 48 bytes have been transmitted which doesn't feel right.
Has anyone got experience with that? Any help would be much appreciated.