GSM модем с Gammu внезапно перестал работать
Я установил Gammu на Raspberry PI, подключенном к GSM-модему (SIMCOM SIM800A), два дня назад, он работал нормально (иногда "возможно, телефон не подключен", что можно решить, выполнив полную перезагрузку). Несколько часов назад модем перестал отвечать вообще. Я могу подключить его через cu -l ttyUSB0
но когда я пытаюсь напечатать AT
на терминале ничего не происходит. Ниже находится файл журнала. Очень признателен, если кто-нибудь может помочь, так как это критически важное приложение, которое круглосуточно используют клиенты моего клиента.
Обратите внимание, что я использую этот модем только для получения SMS, но я нашел get SMS status
ошибка после того, как я получил спам SMS. Это из-за того, что спам в СМС пытался открыть ссылку или что-то в этом роде? Модем перестал отвечать после получения спам-сообщения с ссылкой на приложение в Google Play Store.
Sat 2018/02/03 00:15:54 gammu-smsd[632]: Error getting SMS status: No response in specified timeout. Probably phone not connected. (TIMEOUT[14])
Sat 2018/02/03 00:22:34 gammu-smsd[632]: Error getting SMS status: No response in specified timeout. Probably phone not connected. (TIMEOUT[14])
Sat 2018/02/03 00:29:14 gammu-smsd[632]: Error getting SMS status: No response in specified timeout. Probably phone not connected. (TIMEOUT[14])
Sat 2018/02/03 00:29:14 gammu-smsd[632]: Already hit 3 errors
Sat 2018/02/03 00:29:14 gammu-smsd[632]: Terminating communication: Entry is empty. (EMPTY[22])
Sat 2018/02/03 00:29:14 gammu-smsd[632]: Starting phone communication...
Sat 2018/02/03 00:30:14 gammu-smsd[24677]: Starting run on receive: /home/pi/fail.php > /dev/pts/0 INIT
Sat 2018/02/03 00:30:20 gammu-smsd[632]: Process finished successfully
Sat 2018/02/03 00:30:20 gammu-smsd[632]: Error at init connection: No response in specified timeout. Probably phone not connected. (TIMEOUT[14])
Sat 2018/02/03 00:30:20 gammu-smsd[632]: Already hit 250 errors
Sat 2018/02/03 00:30:20 gammu-smsd[632]: Terminating communication: No response in specified timeout. Probably phone not connected. (TIMEOUT[14])
Sat 2018/02/03 00:30:20 gammu-smsd[632]: Starting phone communication...
Sat 2018/02/03 00:31:21 gammu-smsd[24841]: Starting run on receive: /home/pi/fail.php > /dev/pts/0 INIT
Sat 2018/02/03 00:31:27 gammu-smsd[632]: Process finished successfully
Sat 2018/02/03 00:31:27 gammu-smsd[632]: Error at init connection: No response in specified timeout. Probably phone not connected. (TIMEOUT[14])
Sat 2018/02/03 00:31:27 gammu-smsd[632]: Already hit 250 errors
Sat 2018/02/03 00:31:27 gammu-smsd[632]: Terminating communication: No response in specified timeout. Probably phone not connected. (TIMEOUT[14])
Sat 2018/02/03 05:18:43 gammu-smsd[3327]: Using SQL service
Sat 2018/02/03 05:18:43 gammu-smsd[3327]: Configuring Gammu SMSD...
Sat 2018/02/03 05:18:43 gammu-smsd[3327]: SHM token: 0x102aabe (16951998)
Sat 2018/02/03 05:18:43 gammu-smsd[3327]: Warning: No PIN code in /etc/gammu-smsdrc file
Sat 2018/02/03 05:18:43 gammu-smsd[3327]: CommTimeout=30, SendTimeout=30, ReceiveFrequency=15, ResetFrequency=86400, HardResetFrequency=0
Sat 2018/02/03 05:18:43 gammu-smsd[3327]: checks: CheckSecurity=0, CheckBattery=1, CheckSignal=1, CheckNetwork=1
Sat 2018/02/03 05:18:43 gammu-smsd[3327]: mode: Send=1, Receive=1
Sat 2018/02/03 05:18:43 gammu-smsd[3327]: deliveryreport = no
Sat 2018/02/03 05:18:43 gammu-smsd[3327]: phoneid =
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: Connected to Database: gammu on localhost
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: Execute SQL: SELECT * FROM gammu LIMIT 1
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: Execute SQL: SELECT * FROM inbox LIMIT 1
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: Execute SQL: SELECT * FROM sentitems LIMIT 1
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: Execute SQL: SELECT * FROM outbox LIMIT 1
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: Execute SQL: SELECT * FROM outbox_multipart LIMIT 1
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: Execute SQL: SELECT * FROM phones LIMIT 1
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: Execute SQL: SELECT `Version` FROM gammu
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: Database structures version: 16, SMSD current version: 16
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: Connected to Database native_mysql: gammu on localhost
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: Created POSIX RW shared memory at 0x76f3b000
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: Starting phone communication...
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: gammu: [Gammu - 1.38.1]
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: gammu: [Connection - "at"]
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: gammu: [Connection index - 0]
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: gammu: [Model type - ""]
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: gammu: [Device - "/dev/ttyUSB0"]
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: gammu: [Running on - Linux, kernel 4.9.59-v7+ (#1047 SMP Sun Oct 29 12:19:23 GMT 2017)]
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: gammu: Serial device: DTR is up, RTS is up, CAR is down, CTS is down
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: gammu: Setting speed to 115200
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: gammu: [Module - "auto"]
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: gammu: Escaping SMS mode
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: gammu: SENDING frame type 0x00/length 0x02/2
Sat 2018/02/03 05:18:43 gammu-smsd[3328]: gammu: 1B |0D ..
Sat 2018/02/03 05:18:44 gammu-smsd[3328]: gammu: Sending simple AT command to wake up some devices
Sat 2018/02/03 05:18:44 gammu-smsd[3328]: gammu: SENDING frame type 0x00/length 0x03/3
Sat 2018/02/03 05:18:44 gammu-smsd[3328]: gammu: 41A|54T|0D AT.
Sat 2018/02/03 05:19:04 gammu-smsd[3328]: gammu: [Retrying 1 type 0x00]
Sat 2018/02/03 05:19:04 gammu-smsd[3328]: gammu: SENDING frame type 0x00/length 0x03/3
Sat 2018/02/03 05:19:04 gammu-smsd[3328]: gammu: 41A|54T|0D AT.
Sat 2018/02/03 05:19:24 gammu-smsd[3328]: gammu: Enabling echo
Sat 2018/02/03 05:19:24 gammu-smsd[3328]: gammu: SENDING frame type 0x00/length 0x05/5
Sat 2018/02/03 05:19:24 gammu-smsd[3328]: gammu: 41A|54T|45E|311|0D ATE1.
Sat 2018/02/03 05:19:34 gammu-smsd[3328]: gammu: [Retrying 1 type 0x00]
Sat 2018/02/03 05:19:34 gammu-smsd[3328]: gammu: SENDING frame type 0x00/length 0x05/5
Sat 2018/02/03 05:19:34 gammu-smsd[3328]: gammu: 41A|54T|45E|311|0D ATE1.
Sat 2018/02/03 05:19:44 gammu-smsd[3328]: gammu: Phone does not support enabled echo, it can not work with Gammu!
Sat 2018/02/03 05:19:44 gammu-smsd[3328]: gammu: It might be caused by other program using the modem.
Sat 2018/02/03 05:19:44 gammu-smsd[3328]: gammu: See <https://wammu.eu/docs/manual/faq/general.html#echo> for help.
Sat 2018/02/03 05:19:44 gammu-smsd[3328]: gammu: Init:GSM_TryGetModel failed with error TIMEOUT[14]: No response in specified timeout. Probably phone not connected.
Sat 2018/02/03 05:19:44 gammu-smsd[3493]: Starting run on receive: /home/pi/fail.php > /dev/pts/0 INIT
Sat 2018/02/03 05:19:47 gammu-smsd[3328]: Process killed by signal 15
Sat 2018/02/03 05:19:47 gammu-smsd[3328]: Error at init connection: No response in specified timeout. Probably phone not connected. (TIMEOUT[14])
Sat 2018/02/03 05:19:47 gammu-smsd[3328]: Disconnecting from SQL database.
Sat 2018/02/03 05:19:47 gammu-smsd[3328]: gammu: Entering GSM_SetFastSMSSending
Sat 2018/02/03 05:19:47 gammu-smsd[3328]: gammu: Disabling fast SMS sending
Sat 2018/02/03 05:19:47 gammu-smsd[3328]: gammu: SENDING frame type 0x00/length 0x0A/10
Sat 2018/02/03 05:19:47 gammu-smsd[3328]: gammu: 41A|54T|2B+|43C|4DM|4DM|53S|3D=|300|0D AT+CMMS=0.
Выход из fuser
pi@raspberrypi:~ $ fuser -va /dev/ttyUSB0
USER PID ACCESS COMMAND
/dev/ttyUSB0: