Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2442
Posted: 02:45pm 15 Jan 2024
Copy link to clipboard
Print this post
hi Peter and Geoff, i'd like to make a feature request for the picomite, to make it possible from an mmbasic program to set and clear the console's CTS line, and to read the state of the console's RTS line.
a possible syntax would be: option CTS 0 option CTS 1 i=mm.info(RTS)
i'm wanting to use this for out-of-band signalling between a picomite and a USB-attached terminal emulator, so that an mmbasic program can, for example, send a private message to a terminal emulator asking the emulator to retrieve the system time, and for the emulator to respond back to the mmbasic program with a private message containing the requested data.
the mmbasic program would assert CTS when it wanted to send a private message. the terminal emulator would respond by asserting RTS. when the mmbasic program saw RTS asserted it would send the private message and wait for the response. upon seeing the response it would clear CTS and wait RTS to be cleared, then carry on as normal.
cheers, rob :-) Edited 2024-01-16 00:48 by robert.rozee
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10315