0

我正在尝试在 Debain Squeeze 6.0.3 64 位上使用 gnokii-smsd-pgsql 通过标准 GSM USB 调制解调器发送和接收批量短信。

我正在遵循以下站点的说明:http: //thelogbox.com/send-receive-sms-messages-usb-modem-linux/

我已经在我的机器上安装了 Postgres,所以我使用了 gnokii-smsd-pgsql。

shalin@developer-hp:/dev$ sudo apt-get install gnokii-smsd-pgsql 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gnokii-smsd-pgsql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 378 not upgraded.
shalin@developer-hp:/dev$ sudo apt-get install gnokii-smsd-pgsql 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gnokii-smsd-pgsql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 378 not upgraded.

当我尝试查找调制解调器连接的端口时,这就是我得到的:

shalin@developer-hp:~$ sudo lsusb 
[sudo] password for shalin: 
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 0461:0010 Primax Electronics, Ltd 
Bus 003 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 19d2:0154 ONDA Communication S.p.A. 
Bus 001 Device 006: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 001 Device 002: ID 04e8:3426 Samsung Electronics Co., Ltd SCX-4500 Laser Printer
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
shalin@developer-hp:~$ 

该设备是:ONDA Communication SpA

shalin@developer-hp:~$ sudo dmesg | grep USB
[    0.471217] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.471311] ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
[    0.475052] uhci_hcd: USB Universal Host Controller Interface driver
[    0.487912] ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
[    0.487956] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.487960] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.488073] hub 1-0:1.0: USB hub found
[    0.488148] uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
[    0.488195] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    0.488197] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.488257] hub 2-0:1.0: USB hub found
[    0.489428] uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
[    0.489495] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    0.489497] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.489559] hub 3-0:1.0: USB hub found
[    0.490862] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
[    0.490916] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    0.490918] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.490981] hub 4-0:1.0: USB hub found
[    0.491031] uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
[    0.491082] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
[    0.491084] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.491141] hub 5-0:1.0: USB hub found
[    0.803706] usb 1-1: new high speed USB device using ehci_hcd and address 2
[    0.937425] usb 1-1: New USB device found, idVendor=04e8, idProduct=3426
[    0.937431] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.268016] usb 1-7: new high speed USB device using ehci_hcd and address 6
[    1.401680] usb 1-7: New USB device found, idVendor=058f, idProduct=6366
[    1.401683] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.406441] Initializing USB Mass Storage driver...
[    1.406635] scsi4 : SCSI emulation for USB Mass Storage devices
[    1.406703] USB Mass Storage support registered.
[    1.640040] usb 4-2: new full speed USB device using uhci_hcd and address 2
[    1.803952] usb 4-2: New USB device found, idVendor=1a86, idProduct=7523
[    1.803957] usb 4-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[    1.803961] usb 4-2: Product: USB2.0-Ser!
[    2.044018] usb 3-1: new low speed USB device using uhci_hcd and address 2
[    2.218546] usb 3-1: New USB device found, idVendor=093a, idProduct=2510
[    2.218552] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.218557] usb 3-1: Product: USB OPTICAL MOUSE
[    2.524518] usb 3-2: new low speed USB device using uhci_hcd and address 3
[    2.701552] usb 3-2: New USB device found, idVendor=0461, idProduct=0010
[    2.701558] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.701562] usb 3-2: Product: USB Keyboard
[    3.125256] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04E8 pid 0x3426
[    3.140601] USB Serial support registered for generic
[    3.140639] usbserial: USB Serial Driver core
[    3.163516] USB Serial support registered for ch341-uart
[    3.176282] usb 4-2: ch341-uart converter now attached to ttyUSB0
[    3.476799] input: PIXART USB OPTICAL MOUSE as /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/input/input4
[    3.476877] generic-usb 0003:093A:2510.0001: input,hidraw0: USB HID v1.11 Mouse [PIXART USB OPTICAL MOUSE] on usb-0000:00:1d.1-1/input0
[    3.491755] input: NOVATEK USB Keyboard as /devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0/input/input5
[    3.491808] generic-usb 0003:0461:0010.0002: input,hidraw1: USB HID v1.10 Keyboard [NOVATEK USB Keyboard] on usb-0000:00:1d.1-2/input0
[    3.525651] input: NOVATEK USB Keyboard as /devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.1/input/input6
[    3.525714] generic-usb 0003:0461:0010.0003: input,hidraw2: USB HID v1.10 Device [NOVATEK USB Keyboard] on usb-0000:00:1d.1-2/input1
[    3.525736] usbhid: v2.6:USB HID core driver
[ 1636.760031] usb 1-5: new high speed USB device using ehci_hcd and address 7
[ 1636.893751] usb 1-5: New USB device found, idVendor=19d2, idProduct=0154
[ 1636.893756] usb 1-5: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[ 1636.896329] scsi5 : SCSI emulation for USB Mass Storage devices
[ 1641.897006] scsi 5:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
shalin@developer-hp:~$ 

我应该声明我已经有一段时间没有使用 linux 系统了,并且开始怀疑我不知道调制解调器映射到哪个 /dev/ 文件夹的主要原因是因为我使用的是旧版本的 Debian。

我按照说明创建并编辑了配置文件。文件位于此处:

/home/shalin/.config/

编辑为:

port = /dev/tty0

和:

model = AT

最后,当我尝试使用以下方法进行测试时:

sudo gnokii --identify

gnokii 甚至没有在提示符的可能命令中列出。Tab 只用于 gnome,所以我什至不认为 gnokii 已安装。

如您所见,我不知道出了什么问题,也不知道我应该做什么。任何帮助将不胜感激。

问候,沙林。

4

1 回答 1

2
  1. 我相信你还没有安装 gnokii。smsd 不是 gnokii。只需 apt-get install gnokii 然后尝试从命令行运行 gnokii --identify

  2. 此外,您必须确保该端口是您的调制解调器连接到的确切端口。当我插入调制解调器并执行 dmesg 时,它没有列出它,但幸运的是我只有 6 个 USB 端口,所以我只是尝试了所有这些,直到找到合适的。我的配置文件中的行是:

端口 = /dev/ttyUSB3

最后的数字会因端口而异。

3. http://rolfblijleven.blogspot.nl/2013/01/raspberry-pi-as-sms-gateway.html

于 2013-09-24T22:56:53.580 回答