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
 2.GQ Geiger Muller Counter
 GMC 500+ no USB link after power failure
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

donghelan

Japan
65 Posts

Posted - 01/13/2019 :  05:18:13  Show Profile  Reply with Quote

Today after the 40 Amp main breaker was triggered by power surge the mac mini crashed.
The GMC 500+ was as usual USB linked with the mac. Confirmed that baudrate is 115200.

After this event the GMC does not accept commands like <GETCFG>> or <GETDATETIME>> anymore but the link seems fine.
Checked with other MAC resulting in same problem.
Now I regret not having the mac on an UPS.

This seems correct situation when GMC500 is connected:

$ ls -l /dev/|grep usb
crw-rw-rw-  1 root    wheel      21,   5 Jan 13 21:47 cu.wchusbserial620
crw-rw-rw-  1 root    wheel      21,   4 Jan 13 21:45 tty.wchusbserial620


The call-up utility also reveals no problem but no communication possible after connected:

$ sudo cu -s 115200 -l /dev/cu.wchusbserial620 
Connected.
cu: Got hangup signal

Pulling the USB plug results in the error message "cu: Got hangup signal".

Geigerlog finds the usb device but clearly reports that connection failed:

21:57:23.501 DEBUG  :       autoPORT: Failure - no communication at any baudrate on port: '/dev/cu.wchusbserial620'
21:57:44.128 DEBUG  :          serialOPEN: SerialException: ERROR: Connection failed using port='/dev/tty.wchusbserial640', baudrate=115200, timeout=1.0
21:57:44.128 DEBUG  :          ERROR: '[Errno 2] could not open port /dev/tty.wchusbserial640: [Errno 2] No such file or directory: '/dev/tty.wchusbserial640'' in file: 'gcommands.py' in line 1458


Someone in this forum has similar experience and can confirm that USB interface could be damaged by the MAC crash event?
I might end-up needing to use the audio output for digitising CPMs from now on :(


To bug or not debug, that is the Q
Reply #1

donghelan

Japan
65 Posts

Posted - 01/13/2019 :  05:27:22  Show Profile  Reply with Quote
I can still try the wifi interface.

To bug or not debug, that is the Q
Go to Top of Page
Reply #2

EmfDev

2131 Posts

Posted - 01/14/2019 :  15:25:16  Show Profile  Reply with Quote
It's hard to say. Try to factory reset first.
Go to Top of Page
Reply #3

donghelan

Japan
65 Posts

Posted - 01/20/2019 :  06:00:26  Show Profile  Reply with Quote
Mac Mini and Geigercounter were unpowered for a week. Put everything on again today and to my happy surprise the usb link appears normal again!
Must have been some bad bits somewhere ;)

To bug or not debug, that is the Q
Go to Top of Page
Reply #4

EmfDev

2131 Posts

Posted - 01/22/2019 :  09:55:17  Show Profile  Reply with Quote
That's great!
Go to Top of Page
Reply #5

donghelan

Japan
65 Posts

Posted - 01/28/2019 :  06:56:48  Show Profile  Reply with Quote
The actual solution appears to be:
Switch the Counter off.
Detect the USB device port it is hanging on and fire commands to it at the desired 115200 bps speed (such as <POWERON>>).

To bug or not debug, that is the Q
Go to Top of Page
Reply #6

EmfDev

2131 Posts

Posted - 01/28/2019 :  10:00:09  Show Profile  Reply with Quote
Hmm, that's weird, is there anything interfering with the connection when it's ON?
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.07 sec. Snitz's Forums 2000