T O P I C R E V I E W |
Duncan |
Posted - 08/01/2023 : 08:20:11 Hi, I'm trying out the serial port on an EMF-390.
I've set up the USB serial params OK, but nothing comes back.
Here's what I'm doing:
miniterm.py -e --eol CRLF /dev/ttyUSB0 115200 --- Miniterm on /dev/ttyUSB0 115200,8,N,1 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- <GETVER>> <GETVER>> <GETVER>> <GETVER>>
As you can see, all the settings and commands are correct. Any ideas? |
3 L A T E S T R E P L I E S (Newest First) |
russg |
Posted - 12/14/2023 : 20:40:53 Hi Duncan - thanks for this post. I ran into the same thing.
Can you share how you tell the device is done writing to the buffer? there is no handshaking, no end-of-response delimiter and each response is a different length AND each response can vary in length.
i can’t figure out anything that works except for polling until the device starts writing to the buffer and then give it a chunk of time to finish. this is begging for issues.
any thoughts appreciated! -russg |
Duncan |
Posted - 08/01/2023 : 11:18:12 OK! I found some code on GitHub:
./gqe-cli /dev/ttyUSB0 --unit GQEMF390 --spi-get --format csv
And GQ-RFC1701.txt seems to have added the "SPIR" command which I presume this uses.
Hopefully this self-answering thread will be of use to future users!! |
Duncan |
Posted - 08/01/2023 : 10:36:04 So after messing about a bit I believe I've found out two rules that others trying this should know about:
1. don't send newlines, it's an invalid input! 2. if there's an invalid input, everything seizes up!!
Which obviously is a trap many will fall into, but at least I'm up and running now. Do let me know if I've got that wrong.
----
Now my question is: how do I get a dump of the in-memory log of RF Browser activity? I've set the Save Data option in the UI. I can't see a serial command to do that. |