Page 1 of 1

readind a serial port

Posted: Tue Jun 04, 2013 1:46 pm
by GPJMA
Hi All.
I want to take a VB windows program and convert it to Live Code.
The software monitors equipment via RS485 wich I convert to RS232. This is the data I need to see.
This is a program that is in use but needs updating and will give me a great project for me to get my Live Code teeth into.
I see a few Arduino Q&A's out there but I am not using that gear and just want to open the port and read the data into a buffer. After that its all down hill (I think)
It will run on Windows 8 mostly and later I want to get the data accros to iOS and Android.
Any help would be most welcome.
Thanks.....

Re: readind a serial port

Posted: Thu Jun 06, 2013 8:36 pm
by mwieder
Don't know a thing about Windows 8, but

check out the dictionary for serialControlString, COMn, open file, write to file, read from file commands.
After setting up the serial port (or just using its default configuration) you read from and write to it like a file.

Re: readind a serial port

Posted: Mon Jun 10, 2013 5:25 am
by GPJMA
Hi
Thanks for the help.
Greatly appreciated.
GPJMA