FX30 going down

Hello,
I have just got FX30, connected it to 24 volts supply.
I did “update-rc.d -f enable_autosleep.sh remove”, but
still if I ssh to FX30 in about to 12 hours or so it would close all connection and don’t reply to ping. The only way to get in is do power cycle.
Please help, I need it on, so I can ssh there at any moment.
Thank you Aleksey.

Can it still communicating by AT command?
Did you enable still by +cpsms ?

Thank you for reply!
I’m not sure what you mean.
To issue AT commands I have to ssh to fx30 and then run " microcom /dev/ttyAT" .
My powermode is “!POWERMODE: No request, status=9-PSM disabled”
and when I see “client_loop: send disconnect: Broken pipe”, and I can’t even ping FX30 anymore, then I’m not even sure in what mode it is now. So unit is generally not usable if it goes down and need power cycle to turn back on.

if its USB conects to windows, it should enumerate the modem/NMEA/DM port in device manager, did you see this?

USB connected to Linux

then did you see /dev/ttyUSB port?
Can you paste the dmesg here when you connect the USB to your linux PC?

[11685.797248] msm_otg 78d9000.usb: Avail curr from USB = 2
[11685.797306] msm_hsusb msm_hsusb: CI13XXX_CONTROLLER_SUSPEND_EVENT received
[11685.797476] android_work: android_work: sent uevent USB_STATE=SUSPENDED
[11686.642706] diag: USB channel diag disconnected
[11686.647304] msm_hsusb msm_hsusb: CI13XXX_CONTROLLER_DISCONNECT_EVENT received
[11686.653143] ch_notify on a closed smd_pkt_dev id:2
[11686.654825] android_work: android_work: sent uevent USB_STATE=DISCONNECTED
[11686.664746] msm_otg 78d9000.usb: Avail curr from USB = 0
[11686.812845] QTI:LINK_DOWN Processed
[11686.815674] QTI:LINK_DOWN message posted
[11688.005389] msm_otg 78d9000.usb: USB in low power mode
[11690.342446] msm_otg 78d9000.usb: phy_reset: success
[11690.451767] msm_otg 78d9000.usb: USB exited from low power mode
[11690.454466] msm_hsusb msm_hsusb: CI13XXX_CONTROLLER_RESET_EVENT received
[11690.454492] msm_hsusb msm_hsusb: CI13XXX_CONTROLLER_CONNECT_EVENT received
[11690.458452] msm_otg 78d9000.usb: Avail curr from USB = 2
[11690.458511] msm_hsusb msm_hsusb: CI13XXX_CONTROLLER_SUSPEND_EVENT received
[11690.600316] msm_hsusb msm_hsusb: CI13XXX_CONTROLLER_RESUME_EVENT received
[11690.600450] msm_otg 78d9000.usb: Avail curr from USB = 100
[11690.600657] android_work: android_work: did not send uevent (0 0 00000000)
[11690.727384] android_work: android_work: sent uevent USB_STATE=CONNECTED
[11690.731863] android_work: android_work: sent uevent USB_STATE=DISCONNECTED
[11690.878933] android_work: android_work: sent uevent USB_STATE=CONNECTED
[11690.896403] android_usb gadget: high-speed config #1: 86000c8.android_usb
[11690.896455] diag: USB channel diag connected
[11690.896590] msm_otg 78d9000.usb: Avail curr from USB = 500
[11690.950552] android_work: android_work: sent uevent USB_STATE=CONFIGURED
[11691.914232] QTI:USB tethered modem SMD port opened
[11691.963002] QTI:ECM mode
[11691.964776] QTI:LINK_UP Processed
[11691.969762] QTI:LINK_UP message posted
[11691.971066] msm_hsusb msm_hsusb: [ep_queue] request already in queue
[11692.476419] msm_hsusb msm_hsusb: [ep_queue] request already in queue
[11701.840234] diag: In diag_process_hdlc_pkt, bad CRC. Dropping packet
root@fx30:~#

[quote=“jyijyi, post:6, topic:29450”]
/dev/ttyUS
This is Linux dmesg
[775970.261641] usb 1-8: New USB device found, idVendor=1199, idProduct=68c0, bcdDevice= 3.18
[775970.261650] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[775970.261654] usb 1-8: Product: Sierra Wireless FX30(WP7611-1)
[775970.261657] usb 1-8: Manufacturer: Sierra Wireless, Incorporated
[775970.261660] usb 1-8: SerialNumber: ZW22453016091019
[775970.268635] qcserial 1-8:1.0: Qualcomm USB modem converter detected
[775970.268833] usb 1-8: Qualcomm USB modem converter now attached to ttyUSB0
[775970.270644] qcserial 1-8:1.2: Qualcomm USB modem converter detected
[775970.270795] usb 1-8: Qualcomm USB modem converter now attached to ttyUSB1
[775970.271382] qcserial 1-8:1.3: Qualcomm USB modem converter detected
[775970.271534] usb 1-8: Qualcomm USB modem converter now attached to ttyUSB2
[775970.275518] qmi_wwan 1-8:1.8: cdc-wdm0: USB WDM device
[775970.277227] qmi_wwan 1-8:1.8 wwan0: register ‘qmi_wwan’ at usb-0000:00:14.0-8, WWAN/QMI device, 86:e2:02:69:df:15
[775970.281065] cdc_ether 1-8:1.19 usb0: register ‘cdc_ether’ at usb-0000:00:14.0-8, CDC Ethernet Device, 02:e7:c1:55:88:31
[775970.333240] cdc_ether 1-8:1.19 enx02e7c1558831: renamed from usb0

/dev/ttyUSB2 is the AT command port

Hello,
Sorry I’m confused. When I connect USB to Linux it creates 3 /dev/ttyUSB
crw-rw---- 1 root dialout 188, 0 Apr 10 12:27 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Apr 10 12:27 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 Apr 10 12:27 /dev/ttyUSB2

and I put dmesg output from this event . Something is missing?
Thank you Aleksey.

what do you mean by “something is missing”?
Can you do AT command communication in /dev/ttyUSB2?

Sorry, I did not understand the question. Yes I can do AT command communication in /dev/ttyUSB2

I will check can I do it or not when it does not reply to ping

OK, ping is not working AT commands do work
“!POWERMODE: No request, status=9-PSM disabled”
What I need to do to check why network is down and how to keep it up?

Did you check “cm data”?
You can write a script to check network status, if it is down, then make it up again

For that I need ssh to FX30, and I can’t do this with network down, and that exactly the problem I trying to solve. In real system I would not also have usb . So only AT commands fro linux USB port are working .

then what do you expect here if you cannot further debug with ssh?

Probably before you deploy in the field, you need to run a script to continuously make the module online:

connect_data() {
	while true;
	do
	ret="$(cm data | grep "Connected" | awk -F '[ ,]+' '{print $2}')" 
	if [ "$ret" = "no" ]
	then 
		echo "Data channel is not established!"
		cm data connect &
		sleep 5
	else	
		echo "Data channel is now established!"
		break
	fi
	done
}







while true;
do
cm radio | grep "Signal" 
ping -q -c3 google.com > /dev/null
if [ $? -eq 0 ]
then 
    echo "OK to ping google server."
else 
	connect_data	
fi
done

Sorry, you are talking about modem connection. For now I don’t care about modem at all, I need Ethernet connection to FX30 all the time and not depending on connected state of modem.

can you use USB ECM port for SSH for further debug?

No it’s also dead, AT commands are working, may be there is a way figure a state it is on ?