![]() ![]() This beast opens up a serial port and then listens for network connections on the configured tcp port. No idea about xNix.I am determined to try out re-implementing something again in Rust. I'm stuck with Windoze so have used COMx: port access to both PC native serial port (I have old kit) and USB virtual serial ports. I've use Chris Liechti's pySerial very successfully several times on Python 2.7 and earlier and just a test with 3.6.Įasy enough to access it from Python threads. > And no, I do not have a pet distro or version of Python. What's the term.? Un-Pythonic, and I would accept > that as an explanation. ![]() > Is this even possible? I keep running into 'not done yet' > stuff on this front, but I'm not very up on Python. > And then I'd like to extend that to TCP and UDP ports. For lack of a better > term, I'd like this to at least have 'select()/epoll() semantics'. > If I have to hook an event loop or even spawn a thread - fine!īut it > needs to allow for making things event-driven. On 23:20, Les Cargill wrote: > What I'd like to do is set up *some* sort of method in Python to > asynchronously use callbacks to receive characters from a serial port > or 20 serial ports. That's sooooo 15-20 years ago - try to catch up, guys:) - Les Cargill Les Cargill 18.12.17. The Brent Welch book for Tcl has a totally complete example of this laid out in great detail. What's the term.? Un-Pythonic, and I would accept that as an explanation.Īnd no, I do not have a pet distro or version of Python. I keep running into 'not done yet' stuff on this front, but I'm not very up on Python. Is this even possible? Python Event Driven Serial Ports ![]() And then I'd like to extend that to TCP and UDP ports. For lack of a better term, I'd like this to at least have 'select()/epoll() semantics'. If I have to hook an event loop or even spawn a thread - fine! But it needs to allow for making things event-driven. What I'd like to do is set up *some* sort of method in Python to asynchronously use callbacks to receive characters from a serial port or 20 serial ports. It is not opened when port is None and a successive call to open() is required. The port is immediately opened on object creation, when a port is given. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |