Caller ID via USB softmodem

Pop your questions regarding Home automation Domotica hardware here.....
Post Reply
Jfn
Member
Member
Posts: 332
Joined: Tue Feb 26, 2008 2:01 pm
Location: Netherlands
Contact:

Caller ID via USB softmodem

Post by Jfn »

<b>Admin: Please English!</b>
Ik heb de proef op de som genomen en voor ongeveer 18 USD inclusief verzending een USB modem uit het verre oosten laten komen:

http://cgi.ebay.com/ws/eBayISAPI.dll?Vi ... 0394419241

Doel is om dit modem te gebruiken voor CallerID.

Het is een softwaremodem, maar wordt prima ondersteund door Windows (driverdisk wordt meegeleverd) EN door Linux!

Mijn Debian Linux systeem herkent het modem, ik moet alleen wel de generieke usb serial driver handmatig laden omdat de dgc driver (http://www.linuxant.com/drivers/dgc) in de kernel die ik gebruik het modem niet herkent en pogingen om de driver opnieuw te compileren hebben nog geen resultaat opgeleverd:

Code: Select all

modprobe usbserial vendor=0x0572 product=0x1329
Als er meer USB apparaten aan de server hangen wordt het modem wel gezien, maar wordt er geen seriele poort toegewezen (is een driverprobleem, krijg ook ook nog steeds een foutmelding).

Hieronder het laden van de driver:

Code: Select all

[   77.826779] usbcore: registered new interface driver usbserial
[   77.826802] usbserial: USB Serial support registered for generic
[   77.826820] usbserial_generic 1-2:1.0: Generic device with no bulk out, not a                             llowed.
[   77.826830] usbserial_generic: probe of 1-2:1.0 failed with error -5
[   77.826839] usbserial_generic 1-2:1.1: generic converter detected
[   77.826906] usb 1-2: generic converter now attached to ttyUSB0
[   77.826922] usbcore: registered new interface driver usbserial_generic
[   77.826925] usbserial: USB Serial Driver core
Ik kan nu via /dev/ttyUSB0 (9600 bps) commando's naar het modem sturen en na een AT+VCID=1 krijg ik keurig netjes caller-id informatie terug als er gebeld wordt. Inmiddels een klein perl scriptje gebakken (op basis van xpl-perl) dat de informatie uitleest en in een database stopt.

Het modem zou ook DTMF caller-id moeten ondersteunen, alleen kan ik dat niet testen (Heb telefonie via Ziggo en die gebruiken FSK).
User avatar
esschenk
Member
Member
Posts: 426
Joined: Sun Feb 17, 2008 10:34 pm
Location: Netherlands
Contact:

Caller ID via USB softmodem

Post by esschenk »

Hello,

Did you get also the date and time besides the telephone number.???
With Ziggo.


ed

<font size="1">Homeseer2.3.0.60 Snevl DooNetwork,ActiveBackup Plugin,NetCAM,PowerTrigger,RFXcom,BlRfid,BLebaymonitor,BLIcon,BLChart Jon00 Webpagebuilder,www.domotica.famschenk.eu</font id="size1">
Jfn
Member
Member
Posts: 332
Joined: Tue Feb 26, 2008 2:01 pm
Location: Netherlands
Contact:

Caller ID via USB softmodem

Post by Jfn »

Yep:

Code: Select all

--- start ---
RING


DATE = 0511
TIME = 1711
NMBR = 0123456789

--- end ---
The code above is the response I get from the modem (Provider Ziggo) when someone calls.

When the number is anonymous, instead of the number a P is displayed.
Lempens
Member
Member
Posts: 265
Joined: Wed Dec 12, 2007 1:24 am
Location: Netherlands

Caller ID via USB softmodem

Post by Lempens »

I have a Online (Orange, Wanadoo) ADSL connection with a LiveBox. And tried to connect my internal modem form my laptop (TOSHIBA Software Modem) I have tried several command's but none of them works.

AT#CID=1
AT#CLS=8#CID=1
AT#CID=2
AT%CCID=1
AT%CCID=2
AT+VCID=1
AT#CC1
AT*ID1

I have orderd a 14,- USB Modem from the Ebay site. Maybe this one works.
Jfn
Member
Member
Posts: 332
Joined: Tue Feb 26, 2008 2:01 pm
Location: Netherlands
Contact:

Caller ID via USB softmodem

Post by Jfn »

Just got the modem working with the default driver:

Code: Select all

[ 2896.796017] usb 3-1: new full speed USB device using ohci_hcd and address 4
[ 2899.444005] usb 3-1: configuration #1 chosen from 2 choices
[ 2899.448874] cdc_acm 3-1:1.0: ttyACM0: USB ACM device
[ 2899.456555] usb 3-1: New USB device found, idVendor=0572, idProduct=1329
[ 2899.456565] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2899.456569] usb 3-1: Product: USB Modem
[ 2899.456572] usb 3-1: Manufacturer: Conexant
[ 2899.456575] usb 3-1: SerialNumber: 24680246
By default, the driver would not recognize the modem because it identifies itself with an unsupported vendor/product id.

I was not successful in recompiling the driver, so I decided to try a different approach: Using a hex editor I searched the driver (cdc-acm.ko) for the (hexadecimal) bytes of a supported modem and changed them into the vendor/product id of my modem:

Code: Select all

Old:
00002E40   03 00 <b><i>70 08 01 00</i></b> 00 00 00 00 00 00 00 00 00 00   ..p.............

New:
00002E40   03 00 <b><i>72 05 29 13</i></b> 00 00 00 00 00 00 00 00 00 00   ..r.)...........
Vendor-id is 0572, product-id is 1329. Using a hex-editor (I used 'tweak') I changed the bytes in bold/italic. 0572 => 72 05 and 1329 -> 29 13.

Warning: This hack will only work if you use the same kernel-version as I am using:

Code: Select all

debian:/lib/modules/2.6.26-2-686/kernel/drivers/usb/class# uname -r
2.6.26-2-686
EDIT: udev rule to automatically assign a symbolic link of /dev/modem to the USB softmodem:

Code: Select all

SUBSYSTEM=="tty", ATTRS{idVendor}=="0572", ATTRS{idProduct}=="1329", KERNEL=="ttyACM*", SYMLINK+="modem", OWNER="xplperl"
Lempens
Member
Member
Posts: 265
Joined: Wed Dec 12, 2007 1:24 am
Location: Netherlands

Caller ID via USB softmodem

Post by Lempens »

I have a the same USB modem now, but it still doesn't work. Maybe some tips ?
Jfn
Member
Member
Posts: 332
Joined: Tue Feb 26, 2008 2:01 pm
Location: Netherlands
Contact:

Caller ID via USB softmodem

Post by Jfn »

Can you run the following command and post the output (see the example output below):

Code: Select all

debian:~# lsusb
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 003 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x Composite Device
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
<b>Bus 001 Device 003: ID 0572:1329 Conexant Systems (Rockwell), Inc.</b>
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
The line printed in <b>BOLD</b> is showing the system is recognizing the device on the USB bus. If there is not a similar line in your output, the system is not recognizing the USB device at all.

What does the following command tell you:

Code: Select all

debian:/# uname -r
2.6.26-2-686
debian:/#
Check for the existance of the cdc-acm.ko kernel module. It can be found in the following location:

Code: Select all

/lib/modules/`uname-r`/kernel/drivers/usb/class
(The quotes around uname -r are back-quotes!)
Lempens
Member
Member
Posts: 265
Joined: Wed Dec 12, 2007 1:24 am
Location: Netherlands

Caller ID via USB softmodem

Post by Lempens »

I'm sorry, I use Windows, I can communicate with the modem. Some of the commando's give OK as result. But when I call the line, only RING appears, and no number, or date and time.

I have also tried a Universele FSK-DTMF / DTMF-FSK converter EX700 /2.1. But no result so far.
Jfn
Member
Member
Posts: 332
Joined: Tue Feb 26, 2008 2:01 pm
Location: Netherlands
Contact:

Caller ID via USB softmodem

Post by Jfn »

Have you enabled the display of Caller ID data?

I do not have the exact command at hand, I believe it is AT+VCID=1.
Lempens
Member
Member
Posts: 265
Joined: Wed Dec 12, 2007 1:24 am
Location: Netherlands

Caller ID via USB softmodem

Post by Lempens »

Yes, I have tried several commando's like in mine first post here.
Caller ID works fine on my home phone. But in Windows Vista, my internal laptop modem, and the USB modem don't give any Caller id.
Lempens
Member
Member
Posts: 265
Joined: Wed Dec 12, 2007 1:24 am
Location: Netherlands

Re: Caller ID via USB softmodem

Post by Lempens »

Does anyone have te driver cd for the USB softmodem?

I have lost mine, and the ebay link doesn't work anymore.
Post Reply

Return to “Questions & Discussions Forum”