GQ Electronics Technical Support Forum Active Users: / Visits Today:
Highest Active Users:
GQ Electronics Technical Support Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 GQ Electronics Forums
 3. GQ EMF EF Meter RF Spectrum Power Analyzer
 USB serial doesn't work
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Duncan

3 Posts

Posted - 08/01/2023 :  08:20:11  Show Profile  Reply with Quote
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?
Reply #1

Duncan

3 Posts

Posted - 08/01/2023 :  10:36:04  Show Profile  Reply with Quote
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.
Go to Top of Page
Reply #2

Duncan

3 Posts

Posted - 08/01/2023 :  11:18:12  Show Profile  Reply with Quote
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!!
Go to Top of Page
Reply #3

russg

USA
18 Posts

Posted - 12/14/2023 :  20:40:53  Show Profile  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
GQ Electronics Technical Support Forum © Copyright since 2011 Go To Top Of Page
Generated in 0.09 sec. Snitz's Forums 2000