CANDY Pi Liteサービス ソフトウェアアップデートについて

raspberry pi4で使用しています。
以前CANDY Pi Liteサービス version:7.0.3 の場合
sudo vi /boot/apn
{
“apn”: “mopera.net”,
“user”: “aaa”,
“password”: “bbb”
}
と設定していましたが、これだと再起動するごとにファイルが消えるのが異常だとおもい
;;;
{
“apn”: “mopera.net”,
“user”: “aaa”,
“password”: “bbb”
}
先頭行になんらかの文字を入力していました。後でファイルが消えて正常だと知りました。
どちらのapnファイルでも起動して3分後ぐらいで繋がっていました。

curl -sL https://git.io/v7bXx | sudo bash
で最新にアップデートしたところ
アップデート中
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @mindconnect/mindconnect-nodejs@^3.9.0.
npm ERR! notarget In most cases you or one your dependencies are requesting
npm ERR! notarget a package version that doesn’t exist,
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm_logs/2020-10-01T08_58_29_296Z-debug.log
と表示されましたが問題ないのでしょうか?

5分以上経過しても繋がりませんが、10分以上経過して繋がることもあります。
また早いときは2分程度で繋がるときもあり安定しません。
違いはなんでしょうか?

すぐに繋がるときのログ
pi@raspberrypi:~ $ sudo journalctl -f -u candy-pi-lite -o cat
[INFO] Modem baudrate changed: 115200 => 460800
[INFO] Initialization Done. Modem Serial Port => /dev/ttySC1 Modem baudrate => 460800
[INFO] SIM card state => SIM_STATE_READY
[INFO] USB Serial Ports are found => /dev/QWS.EC25.MODEM, /dev/QWS.EC25.AT
[INFO] New USB serial ports are detected
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: /dev/QWS.EC25.MODEM
[INFO] Modem Serial port: /dev/QWS.EC25.MODEM and AT Serial port: /dev/QWS.EC25.AT are selected
[INFO] Initialization Done. Modem Serial Port => /dev/QWS.EC25.MODEM
[INFO] Saved APN => mopera.net
[INFO] Operator => N/A
[INFO] Waiting for network registration => Status:Searching
[INFO] Operator => NTT DOCOMO NTT DOCOMO
[INFO] OK. Registered in the home ps network
[INFO] Network Timezone: 9.0
2020年 10月 2日 金曜日 09:35:06 JST
[INFO] Adjusted the current time => 20/10/02,00:35:05 UTC
[INFO] Trying to establish a connection…
RTNETLINK answers: No such process
[INFO] Trying to connect…(Trial:1/3, Timeout:5sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Serial connection established.
Using interface ppp0
Connect: ppp0 <–> /dev/QWS.EC25.MODEM
CHAP authentication succeeded
CHAP authentication succeeded
[ERROR] PPP cannot be online
Terminating on signal 15
Connection terminated.
Serial link disconnected.
Exit.
[INFO] start_pppd.sh terminated: Exit Code => 5
[INFO] Trying to connect…(Trial:2/3, Timeout:35sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Connect script failed
Exit.
[ERROR] PPP cannot be online
[INFO] Trying to connect…(Trial:3/3, Timeout:65sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Serial connection established.
Using interface ppp0
Connect: ppp0 <–> /dev/QWS.EC25.MODEM
CHAP authentication succeeded
CHAP authentication succeeded
Modem hangup
Connection terminated.
Exit.
[INFO] start_pppd.sh terminated: Exit Code => 16
[ERROR] PPP cannot be online
[WARN] Failed to establishing a connection. Retry after 30 seconds…
[ERROR] The path [/dev/QWS.EC25.MODEM] is missing
[ERROR] The path [/dev/QWS.EC25.MODEM] is missing
[ERROR] No serialport is available, will restart after 10 seconds
candy-pi-lite.service: Main process exited, code=exited, status=5/NOTINSTALLED
candy-pi-lite.service: Failed with result ‘exit-code’.
candy-pi-lite.service: Service RestartSec=100ms expired, scheduling restart.
candy-pi-lite.service: Scheduled restart job, restart counter is at 1.
Stopped CANDY Pi Lite Service, version:10.2.0.
Started CANDY Pi Lite Service, version:10.2.0.
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: /dev/ttySC1
[INFO] Modem Serial port: /dev/ttySC1 and AT Serial port: /dev/ttySC1 are selected
[INFO] Initializing modem with baudrate:460800
[INFO] Modem baudrate changed: 115200 => 460800
[INFO] Initialization Done. Modem Serial Port => /dev/ttySC1 Modem baudrate => 460800
[INFO] SIM card state => SIM_STATE_READY
[INFO] USB Serial Ports are found => /dev/QWS.EC25.MODEM, /dev/QWS.EC25.AT
[INFO] New USB serial ports are detected
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Modem Serial port: /dev/QWS.EC25.MODEM and AT Serial port: /dev/QWS.EC25.AT are selected
[INFO] Initialization Done. Modem Serial Port => /dev/QWS.EC25.MODEM
[INFO] EC25 Phone Functionality => Full
[INFO] Saved APN => mopera.net
[INFO] Operator => N/A
[INFO] Waiting for network registration => Status:Searching
[INFO] Operator => JP DOCOMO NTT DOCOMO
[INFO] Waiting for network registration => Status:Searching
[INFO] Operator => NTT DOCOMO NTT DOCOMO
[INFO] OK. Registered in the home ps network
[INFO] Module Model: EC25
[INFO] Network Timezone: 9.0
[INFO] Skipped to adjust time
[INFO] Trying to establish a connection…
RTNETLINK answers: No such process
[INFO] Trying to connect…(Trial:1/3, Timeout:5sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Serial connection established.
Using interface ppp0
Connect: ppp0 <–> /dev/QWS.EC25.MODEM
CHAP authentication succeeded
CHAP authentication succeeded
Modem hangup
Connection terminated.
Exit.
[ERROR] PPP cannot be online
[INFO] Trying to connect…(Trial:2/3, Timeout:35sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Serial connection established.
Using interface ppp0
Connect: ppp0 <–> /dev/QWS.EC25.MODEM
CHAP authentication succeeded
CHAP authentication succeeded
Could not determine remote IP address: defaulting to 10.64.64.64
local IP address 27.229.13.143
remote IP address 10.64.64.64
primary DNS address 220.159.212.200
secondary DNS address 220.159.212.201
[INFO] PPP goes online
[INFO] CANDY Pi Lite Board is initialized successfully!
server_main.: [NOTICE] serial_port:/dev/QWS.EC25.AT (460800 bps), nic:ppp0
server_main.init: [NOTICE] RESTART_SCHEDULE_CRON=>[] is ignored
server_main.run: [NOTICE] Button Extension is terminated.

続き
繋がらないときのログ

pi@raspberrypi:~ $ sudo journalctl -f -u candy-pi-lite -o cat
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: /dev/ttySC1
[INFO] Modem Serial port: /dev/ttySC1 and AT Serial port: /dev/ttySC1 are selected
[INFO] Initializing modem with baudrate:460800
[INFO] Modem baudrate changed: 115200 => 460800
[INFO] Initialization Done. Modem Serial Port => /dev/ttySC1 Modem baudrate => 460800
[INFO] SIM card state => SIM_STATE_READY
[INFO] USB Serial Ports are found => /dev/QWS.EC25.MODEM, /dev/QWS.EC25.AT
[INFO] New USB serial ports are detected
[INFO] Result: /dev/QWS.EC25.MODEM
[INFO] Modem Serial port: /dev/QWS.EC25.MODEM and AT Serial port: /dev/QWS.EC25.AT are selected
[INFO] Initialization Done. Modem Serial Port => /dev/QWS.EC25.MODEM
[INFO] EC25 Phone Functionality => Full
[INFO] Saved APN => mopera.net
[INFO] Waiting for network registration => Status:Searching
[INFO] Operator => N/A
[INFO] Waiting for network registration => Status:Searching
[INFO] Operator => JP DOCOMO NTT DOCOMO
[INFO] OK. Registered in the home ps network
[INFO] Network Timezone: 9.0
[INFO] Skipped to adjust time
[INFO] Trying to establish a connection…
[INFO] Trying to connect…(Trial:1/3, Timeout:5sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Serial connection established.
Using interface ppp0
Connect: ppp0 <–> /dev/QWS.EC25.MODEM
CHAP authentication succeeded
CHAP authentication succeeded
[ERROR] PPP cannot be online
Terminating on signal 15
Connection terminated.
Serial link disconnected.
Exit.
[INFO] start_pppd.sh terminated: Exit Code => 5
[INFO] Trying to connect…(Trial:2/3, Timeout:35sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Connect script failed
Exit.
[INFO] start_pppd.sh terminated: Exit Code => 8
[ERROR] PPP cannot be online
[INFO] Trying to connect…(Trial:3/3, Timeout:65sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Serial connection established.
Using interface ppp0
Connect: ppp0 <–> /dev/QWS.EC25.MODEM
CHAP authentication succeeded
CHAP authentication succeeded
Modem hangup
Connection terminated.
Exit.
[INFO] start_pppd.sh terminated: Exit Code => 16
[ERROR] PPP cannot be online
[WARN] Failed to establishing a connection. Retry after 30 seconds…
[ERROR] The path [/dev/QWS.EC25.MODEM] is missing
[ERROR] The path [/dev/QWS.EC25.MODEM] is missing
[ERROR] No serialport is available, will restart after 10 seconds
candy-pi-lite.service: Main process exited, code=exited, status=5/NOTINSTALLED
candy-pi-lite.service: Failed with result ‘exit-code’.
candy-pi-lite.service: Service RestartSec=100ms expired, scheduling restart.
candy-pi-lite.service: Scheduled restart job, restart counter is at 1.
Stopped CANDY Pi Lite Service, version:10.2.0.
Started CANDY Pi Lite Service, version:10.2.0.
[INFO] Initializing CANDY Pi Lite Board…
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: /dev/ttySC1
[INFO] Modem Serial port: /dev/ttySC1 and AT Serial port: /dev/ttySC1 are selected
[INFO] Initializing modem with baudrate:460800
[INFO] Modem baudrate changed: 115200 => 460800
[INFO] Initialization Done. Modem Serial Port => /dev/ttySC1 Modem baudrate => 460800
[INFO] SIM card state => SIM_STATE_READY
[INFO] USB Serial Ports are found => /dev/QWS.EC25.MODEM, /dev/QWS.EC25.AT
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: /dev/QWS.EC25.MODEM
[INFO] Modem Serial port: /dev/QWS.EC25.MODEM and AT Serial port: /dev/QWS.EC25.AT are selected
[INFO] Initialization Done. Modem Serial Port => /dev/QWS.EC25.MODEM
[INFO] EC25 Phone Functionality => Full
[INFO] Saved APN => mopera.net
[INFO] Operator => N/A
[INFO] Waiting for network registration => Status:Searching
[INFO] Waiting for network registration => Status:Searching
[INFO] Operator => JP DOCOMO NTT DOCOMO
[INFO] OK. Registered in the home ps network
[INFO] Module Model: EC25
[INFO] Network Timezone: 9.0
[INFO] Skipped to adjust time
[INFO] Trying to establish a connection…
[INFO] Trying to connect…(Trial:1/3, Timeout:5sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Serial connection established.
Using interface ppp0
Connect: ppp0 <–> /dev/QWS.EC25.MODEM
CHAP authentication succeeded
CHAP authentication succeeded
[ERROR] PPP cannot be online
Terminating on signal 15
Connection terminated.
Serial link disconnected.
Exit.
[INFO] start_pppd.sh terminated: Exit Code => 5
[INFO] Trying to connect…(Trial:2/3, Timeout:35sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Connect script failed
Exit.
[ERROR] PPP cannot be online
[INFO] Trying to connect…(Trial:3/3, Timeout:65sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Serial connection established.
Using interface ppp0
Connect: ppp0 <–> /dev/QWS.EC25.MODEM
CHAP authentication succeeded
CHAP authentication succeeded
Modem hangup
Connection terminated.
Exit.
[INFO] start_pppd.sh terminated: Exit Code => 16
[ERROR] PPP cannot be online
[WARN] Failed to establishing a connection. Retry after 30 seconds…
[ERROR] The path [/dev/QWS.EC25.MODEM] is missing
[ERROR] No serialport is available, will restart after 10 seconds
candy-pi-lite.service: Main process exited, code=exited, status=5/NOTINSTALLED
candy-pi-lite.service: Failed with result ‘exit-code’.
candy-pi-lite.service: Service RestartSec=100ms expired, scheduling restart.
candy-pi-lite.service: Scheduled restart job, restart counter is at 2.
Stopped CANDY Pi Lite Service, version:10.2.0.
Started CANDY Pi Lite Service, version:10.2.0.
[INFO] Initializing CANDY Pi Lite Board…
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: /dev/ttySC1
[INFO] Modem Serial port: /dev/ttySC1 and AT Serial port: /dev/ttySC1 are selected
[INFO] Initializing modem with baudrate:460800
[INFO] Modem baudrate changed: 115200 => 460800
[INFO] Initialization Done. Modem Serial Port => /dev/ttySC1 Modem baudrate => 460800
[INFO] SIM card state => SIM_STATE_READY
[INFO] New USB serial ports are detected
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: /dev/QWS.EC25.MODEM
[INFO] Modem Serial port: /dev/QWS.EC25.MODEM and AT Serial port: /dev/QWS.EC25.AT are selected
[INFO] Initialization Done. Modem Serial Port => /dev/QWS.EC25.MODEM
[INFO] EC25 Phone Functionality => Full
[INFO] Saved APN => mopera.net
[INFO] Operator => N/A
[INFO] Waiting for network registration => Status:Searching
[INFO] Operator => JP DOCOMO NTT DOCOMO
[INFO] Waiting for network registration => Status:Searching
[INFO] Operator => NTT DOCOMO NTT DOCOMO
[INFO] OK. Registered in the home ps network
[INFO] Module Model: EC25
[INFO] Network Timezone: 9.0
[INFO] Skipped to adjust time
[INFO] Trying to establish a connection…
[INFO] Trying to connect…(Trial:1/3, Timeout:5sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Serial connection established.
Using interface ppp0
Connect: ppp0 <–> /dev/QWS.EC25.MODEM
CHAP authentication succeeded
CHAP authentication succeeded
[ERROR] PPP cannot be online
Terminating on signal 15
Connection terminated.
Serial link disconnected.
Exit.
[INFO] start_pppd.sh terminated: Exit Code => 5
[INFO] Trying to connect…(Trial:2/3, Timeout:35sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Connect script failed
Exit.
[ERROR] PPP cannot be online
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
Serial connection established.
Using interface ppp0
Connect: ppp0 <–> /dev/QWS.EC25.MODEM
CHAP authentication succeeded
CHAP authentication succeeded
Modem hangup
Connection terminated.
Exit.
[INFO] start_pppd.sh terminated: Exit Code => 16
[ERROR] PPP cannot be online
[WARN] Failed to establishing a connection. Retry after 30 seconds…
[ERROR] The path [/dev/QWS.EC25.MODEM] is missing
[ERROR] No serialport is available, will restart after 10 seconds
candy-pi-lite.service: Main process exited, code=exited, status=5/NOTINSTALLED
candy-pi-lite.service: Failed with result ‘exit-code’.
candy-pi-lite.service: Service RestartSec=100ms expired, scheduling restart.
candy-pi-lite.service: Scheduled restart job, restart counter is at 3.
Stopped CANDY Pi Lite Service, version:10.2.0.
Started CANDY Pi Lite Service, version:10.2.0.
[INFO] Initializing CANDY Pi Lite Board…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 460800…
[INFO] Result: None
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: /dev/ttySC1
[INFO] Modem Serial port: /dev/ttySC1 and AT Serial port: /dev/ttySC1 are selected
[INFO] Initializing modem with baudrate:460800
[INFO] Modem baudrate changed: 115200 => 460800
[INFO] Initialization Done. Modem Serial Port => /dev/ttySC1 Modem baudrate => 460800
[INFO] SIM card state => SIM_STATE_READY
[INFO] USB Serial Ports are found => /dev/QWS.EC25.MODEM, /dev/QWS.EC25.AT
[INFO] New USB serial ports are detected
[INFO] Looking for a Modem Serial port at Barudrate: 115200…
[INFO] Result: /dev/QWS.EC25.MODEM
[INFO] Modem Serial port: /dev/QWS.EC25.MODEM and AT Serial port: /dev/QWS.EC25.AT are selected
[INFO] Initialization Done. Modem Serial Port => /dev/QWS.EC25.MODEM
[INFO] Saved APN => mopera.net
[INFO] Operator => N/A
[INFO] Waiting for network registration => Status:Searching
[INFO] Operator => JP DOCOMO NTT DOCOMO
[INFO] OK. Registered in the home ps network
[INFO] Module Model: EC25
[INFO] Network Timezone: 9.0
[INFO] Skipped to adjust time
[INFO] Trying to establish a connection…
RTNETLINK answers: No such process
[INFO] Trying to connect…(Trial:1/3, Timeout:5sec)
[INFO] Starting PPP: /dev/QWS.EC25.MODEM
pppd 2.4.7 started by root, uid 0
S

ご質問ありがとうございます。

CANDY Pi Liteサービスのログを拝見する限りサービス自体に問題はないように思われます。
このため、他のサービスとの競合などの可能性が考えられます。

競合については、ModemManagerの挙動と関連がある場合があります。以前別にご投稿いただいたログにもModemManagerと出ていたようですので、お手数ですが以下の内容をご確認の上、ModemManagerをご利用の場合は停止と無効化をお願いいたします。

また、上記をお試しの上さらに同じ状況が続く場合は、他のサービスの関与を見るために、/var/log/syslogの問題発生時点の部分をご投稿いただけますでしょうか。

インストール時のエラーについては接続には特に支障はありません。また、APNファイルについては接続成功でファイル削除という動作をしております。

よろしくお願いいたします。