我有中文短信网关盒,想与星号+ chan_dongle一起使用。现在,在插入USB后,它在lsusb中显示为4个设备:
[root@host21 ~]# lsusb | grep FT
Bus 003 Device 006: ID 0403:6011 Future Technology Devices International, Ltd FT4232H Quad HS USB-UART/FIFO IC
Bus 003 Device 007: ID 0403:6011 Future Technology Devices International, Ltd FT4232H Quad HS USB-UART/FIFO IC
Bus 003 Device 008: ID 0403:6011 Future Technology Devices International, Ltd FT4232H Quad HS USB-UART/FIFO IC
Bus 003 Device 009: ID 0403:6011 Future Technology Devices International, Ltd FT4232H Quad HS USB-UART/FIFO IC
dmesg给了我所有16个端口作为ttyUSB设备:
usb 3-2.1: FTDI USB Serial Device converter now attached to ttyUSB19
usb 3-2.1: FTDI USB Serial Device converter now attached to ttyUSB20
usb 3-2.1: FTDI USB Serial Device converter now attached to ttyUSB21
usb 3-2.1: FTDI USB Serial Device converter now attached to ttyUSB22
usb 3-2.2: FTDI USB Serial Device converter now attached to ttyUSB23
usb 3-2.2: FTDI USB Serial Device converter now attached to ttyUSB24
usb 3-2.2: FTDI USB Serial Device converter now attached to ttyUSB25
usb 3-2.2: FTDI USB Serial Device converter now attached to ttyUSB26
usb 3-2.3: FTDI USB Serial Device converter now attached to ttyUSB27
usb 3-2.3: FTDI USB Serial Device converter now attached to ttyUSB28
usb 3-2.3: FTDI USB Serial Device converter now attached to ttyUSB29
usb 3-2.3: FTDI USB Serial Device converter now attached to ttyUSB30
usb 3-2.4: FTDI USB Serial Device converter now attached to ttyUSB31
usb 3-2.4: FTDI USB Serial Device converter now attached to ttyUSB32
usb 3-2.4: FTDI USB Serial Device converter now attached to ttyUSB33
usb 3-2.4: FTDI USB Serial Device converter now attached to ttyUSB34
现在,到目前为止只有一个插槽有sim卡,让我们说它是ttyUSB19。如果我想通过minicom与它交谈,它可以正常工作:
OK
AT
OK
AT+CPIN?
+CPIN: READY
但如果我将ttyUSB19添加到chan_dongle.conf,它会给我超时错误:
host21*CLI> module reload chan_dongle.so
-- Reloading module 'chan_dongle.so' (Huawei 3G Dongle Channel Driver)
== Parsing '/etc/asterisk/dongle.conf': Found
[Apr 5 07:04:15] ERROR[3113]: chan_dongle.c:436 do_monitor_phone: [dongle0] tim edout while waiting 'OK' in response to 'AT+CPIN?'
-- [dongle0] Trying to connect on /dev/ttyUSB19...
-- [dongle0] Dongle has connected, initializing...
[Apr 5 07:04:30] ERROR[11880]: chan_dongle.c:436 do_monitor_phone: [dongle0] timedout while waiting 'OK' in response to 'AT+CPIN?'
-- [dongle0] Error initializing Dongle
-- [dongle0] Dongle has disconnected
有关如何使其在此工作的任何想法?我注意到如果我只连接一些中兴/华为加密狗(一个sim卡),它工作正常,但我想连接到网关,它只使用1个端口,可以加载16个SIM卡..