jpnevulator | You can use it to send data | Wrapper library
kandi X-RAY | jpnevulator Summary
kandi X-RAY | jpnevulator Summary
This is jpnevulator. What once started as a Jackpot Navigator emulator (hence the strange name) is now a nice serial sniffer and you can use it to send data on a serial line too. It’s sort of like a very simple terminal emulator, like picocom. But jpnevulator uses hexadecimal byte values to display and send along the line. Very handy indeed if you are working a lot with serial protocols. Please see the INSTALL file on how to build the program. It’s so easy, anyone should be able to do it. Just make sure you have a compiler on your computer. You are running a Free Operating System aren’t you? Of course you are! :-).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jpnevulator
jpnevulator Key Features
jpnevulator Examples and Code Snippets
Community Discussions
Trending Discussions on jpnevulator
QUESTION
I'm trying to record multiple serial ports simultaneously, I am able to log once at a time, but when I launch a new socat, the old process is terminated.
This are the commands I want to execute, just a simple socat sniff to file.
...ANSWER
Answered 2019-Jan-08 at 07:58Apparently is because trying to use /dev/stdout
multiple times with the -lf
option. Instead, you must use PTY as intermediaries.
QUESTION
I'm trying to read a JSON string written to serial port, using the following code based on PySerial
library:
ANSWER
Answered 2018-Jul-04 at 21:05I'll attempt to tackle this. :) Your loop wait for any input to become available serial_port.in_waiting > 0
. Hence the behavior you are seeing. The read will start once anything can be acquired. It does not appear that PySerial
would have any additional abstraction available to let your know something like last readied byte would be an ASCII curly brace character (I've really just scanned through the docs). You can always apply a generic solution of read as stuff comes and make sense out of it inside your Python script.
One question first though. Your input example suggest you'd be dealing with equally sized string / JSON? Should we be really that lucky? If so, you could wait until that or more bytes are available and read just the desired size into your buffer
.
Otherwise a variation on your code:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jpnevulator
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page