From: Jon C. <jon...@gm...> - 2020-10-23 22:54:28
|
Not jython-specific, but have you tried pyserial by any chance? It looks pretty simple: https://pyserial.readthedocs.io/en/latest/shortintro.html >>> ser = serial.Serial('COM3', 38400, timeout=0,... parity=serial.PARITY_EVEN, rtscts=1)>>> s = ser.read(100) # read up to one hundred bytes... # or as much is in the buffer On Fri, Oct 23, 2020 at 2:34 PM James Kelly <jwk...@gm...> wrote: > Hi, > I'm aware of the fact that I'm about to ask a lot of the group but I do > need the help. I dabble with programming but have to acknowledge that what > I need is beyond my abilities to develop; so I hope the group will take > mercy on an old retired model railroader. > I have an Arduino that I need to pass ASCII to/from a computer through a > USB COM1 port. I want to use Jython as I am running Win-10 with a JRE. > I find a lot of code samples, most using the RXTX library, but nothing > demonstrating a way the user can input data to send and and at least a > print statement to show the ASCII input. Most code seems to be in Java and > I know from reading that it can be used from within Jython. > I'm old school (before OOP) and to be honest I find the code snippets to > be confusing. Is there a working example on-line or in a reference book > that demonstrates what I need -- start to finish? > Jim K. > Houston TX. > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |