How to Read/Write serial COM port asynchronous?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Monox18
Posts: 118
Joined: Tue Nov 25, 2014 9:48 pm
Location: Deggendorf, Germany

How to Read/Write serial COM port asynchronous?

Post by Monox18 » Sat Jun 27, 2020 7:39 pm

Hello All,

I would like to Read/Write COM ports on Windows 10 x64 in a non-blocking way. Indy license.

If I use "open file" or "open driver" they will do it in a blocking way. The Read from file/driver doesn't seem to support callbacks.

"Load" commands seems to work with URL only

tsNet works well with normal URL but no Idea how to use it with COM. How can I use tsNet to read COM ports? Any ideas how to manage serial ports asynchronous?

Thank you!
Monox
Developing a Cyber Physical System.
https://www.monoxware.com/

mimu
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 76
Joined: Tue Mar 05, 2013 7:00 pm
Location: Berlin
Contact:

Re: How to Read/Write serial COM port asynchronous?

Post by mimu » Sun Sep 27, 2020 12:31 pm


Monox18
Posts: 118
Joined: Tue Nov 25, 2014 9:48 pm
Location: Deggendorf, Germany

Re: How to Read/Write serial COM port asynchronous?

Post by Monox18 » Sun Sep 27, 2020 2:57 pm

Thank you mimu. Indeed I ended up using "with message" option. That made it possible to write async and use callbacks.
Monox
Developing a Cyber Physical System.
https://www.monoxware.com/

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”