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
 GQ 390 source code for downloading
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sprezzatura

Canada
14 Posts

Posted - 02/04/2020 :  17:53:50  Show Profile  Reply with Quote
Is there a sample program to talk to the GQ-390 so I can transmit commands to it? C++ preferably.

The documentation talks about a Serial Port, but the GQ-390 only has a USB connection.
Reply #1

EmfDev

2250 Posts

Posted - 02/05/2020 :  09:58:51  Show Profile  Reply with Quote
Hi sprezzatura, we dont have published programs or C++ program but maybe someone has made programs already.
Go to Top of Page
Reply #2

sprezzatura

Canada
14 Posts

Posted - 02/05/2020 :  13:01:17  Show Profile  Reply with Quote
I have found an example of a generic program for a USB/Serial port:

https://doc.qt.io/qt-5/qtserialport-terminal-example.html

It uses the Qt development platform. Qt can create native programs for macOS or Windows.

It talks to the GQ's. You have to type the commands real slow (ex: <GETVER>>), like one keystroke every five seconds, or the GQ hangs and does not respond.
Go to Top of Page
Reply #3

EmfDev

2250 Posts

Posted - 02/05/2020 :  17:02:23  Show Profile  Reply with Quote
That's great!, the device only responds once it receives the end of command characters which is '>>'. The start of commands is '<'. You can reset the command by sending the '>>' character.
Go to Top of Page
Reply #4

sprezzatura

Canada
14 Posts

Posted - 02/06/2020 :  09:08:23  Show Profile  Reply with Quote
That's not what I'm seeing. I get a response as soon as I enter the first '>'.

Ex:
<GETVER>GQ-EMF390Re 2.57
<GETEMF>EMF = 5.3 mG

(Note single terminating '>')

Not a problem.
Go to Top of Page
Reply #5

EmfDev

2250 Posts

Posted - 02/06/2020 :  11:40:42  Show Profile  Reply with Quote
I see, looks like this is not intended, it is supposed to be '>>'.
Go to Top of Page
Reply #6

BorisG

Canada
2 Posts

Posted - 05/10/2020 :  18:41:46  Show Profile  Reply with Quote
This thread partially answered my question which was protocol for communication via serial port. Running on Windoze and serial port shows up as COM22. Haven't tried yet to see if can get port# <16 (so can use VB6 to access), but have enough terminal emulation programs which can use to talk to EMF-390.

Would it be possible to get set of commands to use for serial port?

A bit surprised that port runs at 9600 baud - haven't seen that speed used since my early dial up modem days. Certainly fast enough for acquiring data from EMF-390 when in continuous monitoring mode. Admit have been spoiled by playing with Propeller systems where have serial transfer speeds of 115 Kbaud (although does use a full cog to get this speed).

Right now have all I need to just do monitoring via serial port but would be nice to know commands to change modes, etc. EMF Pro program doesn't seem to get along with W10 (and neither do I), as had it setup to just monitor EMF data yesterday which it did fine for a few hours but then suddenly was using about 12% of CPU time before crashing. Whether this is a W10 specific problem is unclear. Next step is to try running it under Wine on my Linux system to see if it behaves same way.
Go to Top of Page
Reply #7

EmfDev

2250 Posts

Posted - 05/11/2020 :  12:51:11  Show Profile  Reply with Quote
Hi BorisG, you can try the command SETMODE[x] where [xx] = 0-5. Not sure if that is included in the protocol though. Or you can manually set the move by sending KEY[x] where [x] is 0-3. KEY0 is the S1 while K3 is the S4(power on/off) button. There is also command KEYHOLD[x] [x] = 0-3 for holding the keys. But if you cannot see the screen, you just have to predict.
Go to Top of Page
Reply #8

jeremy_mcm

USA
2 Posts

Posted - 10/25/2020 :  13:44:30  Show Profile  Reply with Quote
Have you found this? http://www.gqelectronicsllc.com/download/GQ-RFC1701.txt

quote:
Originally posted by BorisG

This thread partially answered my question which was protocol for communication via serial port. Running on Windoze and serial port shows up as COM22. Haven't tried yet to see if can get port# <16 (so can use VB6 to access), but have enough terminal emulation programs which can use to talk to EMF-390.

Would it be possible to get set of commands to use for serial port?

A bit surprised that port runs at 9600 baud - haven't seen that speed used since my early dial up modem days. Certainly fast enough for acquiring data from EMF-390 when in continuous monitoring mode. Admit have been spoiled by playing with Propeller systems where have serial transfer speeds of 115 Kbaud (although does use a full cog to get this speed).

Right now have all I need to just do monitoring via serial port but would be nice to know commands to change modes, etc. EMF Pro program doesn't seem to get along with W10 (and neither do I), as had it setup to just monitor EMF data yesterday which it did fine for a few hours but then suddenly was using about 12% of CPU time before crashing. Whether this is a W10 specific problem is unclear. Next step is to try running it under Wine on my Linux system to see if it behaves same way.



-- Jeremy
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.08 sec. Snitz's Forums 2000