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

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an Image File
Check here to include your profile signature.
    

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.

GQ Electronics Technical Support Forum © Copyright since 2011 Go To Top Of Page
Generated in 0.08 sec. Snitz's Forums 2000