Raspberry-Pi
Raspberry Gammu 在指定的超時時間內沒有響應。應該是手機沒連接
我在 Raspberry PI 3B+ 中將 gammu 與 TP-LINK 加密狗一起使用了一段時間。一切正常(經過硬配置)。昨天我試圖更換 SIM 卡並且 gammu 停止工作。所以我切換並再次放置舊的 SIM 卡,嘗試了很多配置,但 gammu 不會再重新調整我的 SIM 卡了……啟動 gammu-smsd 時出現此錯誤:
gammu-smsd[1110]: Starting phone communication... gammu-smsd[1110]: gammu: [Gammu - 1.40.0] gammu-smsd[1110]: gammu: [Connection - "at"] gammu-smsd[1110]: gammu: [Connection index - 0] gammu-smsd[1110]: gammu: [Model type - ""] gammu-smsd[1110]: gammu: [Device - "/dev/ttyUSB0"] gammu-smsd[1110]: gammu: [Running on - Linux, kernel 4.14.98-v7+ (#1200 SMP Tue Feb 12 20:27:48 GMT 2019)] gammu-smsd[1110]: gammu: Serial device: DTR is up, RTS is up, CAR is down, CTS is down gammu-smsd[1110]: gammu: Setting speed to 115200 gammu-smsd[1110]: gammu: [Module - "auto"] gammu-smsd[1110]: gammu: Escaping SMS mode gammu-smsd[1110]: gammu: SENDING frame type 0x00/length 0x02/2 gammu-smsd[1110]: gammu: 1B |0D .. gammu-smsd[1110]: gammu: Sending simple AT command to wake up some devices gammu-smsd[1110]: gammu: SENDING frame type 0x00/length 0x03/3 gammu-smsd[1110]: gammu: 41A|54T|0D AT. gammu-smsd[1110]: gammu: [Retrying 1 type 0x00] gammu-smsd[1110]: gammu: SENDING frame type 0x00/length 0x03/3 gammu-smsd[1110]: gammu: 41A|54T|0D AT. gammu-smsd[1110]: gammu: Enabling echo gammu-smsd[1110]: gammu: SENDING frame type 0x00/length 0x05/5 gammu-smsd[1110]: gammu: 41A|54T|45E|311|0D ATE1. gammu-smsd[1110]: gammu: [Retrying 1 type 0x00] gammu-smsd[1110]: gammu: SENDING frame type 0x00/length 0x05/5 gammu-smsd[1110]: gammu: 41A|54T|45E|311|0D ATE1. gammu-smsd[1110]: gammu: Phone does not support enabled echo, it can not work with Gammu! gammu-smsd[1110]: gammu: It might be caused by other program using the modem. gammu-smsd[1110]: gammu: See <https://wammu.eu/docs/manual/faq/general.html#echo> for help. gammu-smsd[1110]: gammu: Init:GSM_TryGetModel failed with error TIMEOUT[14]: No response in specified timeout. Probably the phone is not connected.
我的伽瑪檢測:
root@raspberrypi:/home/pi# gammu-detect ; Configuration file generated by gammu-detect. ; Please check The Gammu Manual for more information. [gammu] device = /dev/ttyUSB0 name = Phone on USB serial port TP-LINK__Incorporated TP-LINK_HSPA+_Modem connection = at [gammu1] device = /dev/ttyUSB1 name = Phone on USB serial port TP-LINK__Incorporated TP-LINK_HSPA+_Modem connection = at [gammu2] device = /dev/ttyUSB2 name = Phone on USB serial port TP-LINK__Incorporated TP-LINK_HSPA+_Modem connection = at
這是我的 gammu-smsdrc :
root@raspberrypi:/home/pi# cat /etc/gammu-smsdrc ; Configuration file generated by gammu-detect. ; Please check The Gammu Manual for more information. [gammu] GammuCoding = utf8 GammuLoc = fr_FR.UTF8 device = /dev/ttyUSB0 name = Phone on USB serial port TP-LINK__Incorporated TP-LINK_HSPA+_Modem connection = at [gammu1] GammuCoding = utf8 GammuLoc = fr_FR.UTF8 device = /dev/ttyUSB1 name = Phone on USB serial port TP-LINK__Incorporated TP-LINK_HSPA+_Modem connection = at [gammu2] GammuCoding = utf8 GammuLoc = fr_FR.UTF8 device = /dev/ttyUSB2 name = Phone on USB serial port TP-LINK__Incorporated TP-LINK_HSPA+_Modem connection = at # SMSD configuration, see gammu-smsdrc(5) [smsd] service = files CheckSecurity = 0 logfile = /var/log/gammu-smsd.log # Increase for debugging information debuglevel = 4 RunOnReceive = /var/www/html/RaspiSMS/parseSMS.sh RunOnFailure = /var/spool/gammu/on-error.sh # Paths where messages are stored inboxpath = /var/spool/gammu/inbox/ outboxpath = /var/spool/gammu/outbox/ sentsmspath = /var/spool/gammu/sent/ errorsmspath = /var/spool/gammu/error/ SMSC=+33695000695 ResetFrequency = 0 ReceiveFrequency = 60 StatusFrequency = 0 CheckBattery = 0 CheckSignal = 0 CheckNetwork = 0 CommTimeout = 60 SendTimeout = 60 LoopSleep = 10 CheckSecurity = 0
但是當我嘗試使用 Gammu 辨識時:
root@raspberrypi:/home/pi# gammu identify No response in specified timeout. Probably the phone is not connected.
這是我啟動 rpi 時的 syslog:
raspberrypi kernel: [ 5.396897] usb 1-1.4: New USB device found, idVendor=2357, idProduct=f000 raspberrypi kernel: [ 5.396917] usb 1-1.4: New USB device strings: Mfr=3, Product=2, SerialNumber=4 raspberrypi kernel: [ 5.396926] usb 1-1.4: Product: TP-LINK HSPA+ Modem raspberrypi kernel: [ 5.396935] usb 1-1.4: Manufacturer: TP-LINK, Incorporated raspberrypi kernel: [ 5.396943] usb 1-1.4: SerialNumber: 863745011345804 [...] usb_modeswitch: switch device 2357:f000 on 001/004 [...] raspberrypi kernel: [ 7.061466] usb 1-1.4: new high-speed USB device number 5 using dwc_otg raspberrypi kernel: [ 7.194309] usb 1-1.4: New USB device found, idVendor=2357, idProduct=9000 raspberrypi kernel: [ 7.194326] usb 1-1.4: New USB device strings: Mfr=3, Product=2, SerialNumber=4 raspberrypi kernel: [ 7.194335] usb 1-1.4: Product: TP-LINK HSPA+ Modem raspberrypi kernel: [ 7.194345] usb 1-1.4: Manufacturer: TP-LINK, Incorporated raspberrypi kernel: [ 7.194353] usb 1-1.4: SerialNumber: 863745011345804 [...] raspberrypi kernel: [ 7.337716] usbserial: USB Serial support registered for GSM modem (1-port) raspberrypi kernel: [ 7.339617] option 1-1.4:1.0: GSM modem (1-port) converter detected raspberrypi kernel: [ 7.340044] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0 raspberrypi kernel: [ 7.340420] option 1-1.4:1.1: GSM modem (1-port) converter detected raspberrypi kernel: [ 7.340806] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1 raspberrypi kernel: [ 7.341234] option 1-1.4:1.3: GSM modem (1-port) converter detected raspberrypi kernel: [ 7.342861] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2 [...] raspberrypi systemd[1]: Started USB_ModeSwitch_1-1.4. raspberrypi dhcpcd[422]: wwan0: soliciting a DHCP lease raspberrypi kernel: [ 8.312614] scsi 0:0:0:0: CD-ROM TP-LINK MMC Storage 2.31 PQ: 0 ANSI: 2 raspberrypi kernel: [ 8.315256] scsi 0:0:0:1: Direct-Access TP-LINK MMC Storage 2.31 PQ: 0 ANSI: 2
我不知道讓我的加密狗再次與 gammu 一起工作……
任何的想法 ?謝謝
好像我的加密狗壞了。我又買了一個,它又能用了