HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] faxaddmodem - how to specify new USB modem?



Hi,

On 12/04/2010 05:56 AM, John Hudak wrote:


My question is: I don't know what modem identifier to give to faxaddmodem when it asks:Serial port that modem is connected to [ttyS0]?
If it uses the ACM driver, chances are that it's /dev/ttyACM0.
Simply look inside /var/log/dmesg after plugging the modem or after booting and you will find the device. My money is on ACM*

Should it be ttyACM0? ttyACM1? ttyUSB0? something else?


With the Zoom modem installed (and the Multitech NOT installed), running ps -lax shows getty running on ttyACM0.

Another question: Is the following a good idea to implement:
I am aware that device file names change when different USB devices are plugged in and removed. Once I
understand what usb device name I am dealing with, I plan on using udev to create a symbolic link to the modem.
If you have just one ACM device, it will probably remain ACM0.
If you have more, you can try udevadm info to all of them and search for the modem serial.
I recently did the same question you can read the answer here.
http://www.hylafax.org/archive/2010-11/msg00146.php
With cheap modem this is not always the case: mine are completely identical, three of them share the same SERIAL and one is different, but it means it's not a sure way to tell them apart.
I decided to tell them apart using the usb port location (it should be: KERNELS=="1-1:2.0". If you have identical modems you will see that one changing, and if you move the same modem around you can map usb ports to KERNELS value) and writing an udev rule that will run before other rules matching KERNELS.
The rules I'm testing are in the form:
SUBSYSTEMS=="usb", KERNELS=="2-1:1.0", NAME="ttyACM_re_dw_right" ,SYMLINK="ttyACM0"
I was using IDs but Ubuntu tells me they are deprecated.
It's currently working for me between reboot: now no matter how you do, the modem in say 1-1:2.0 will always have the same device, no matter who gets plugged first. Bonus is that non-competent user can change a broken modem without messing with the rules, as long as it's identical and it goes in the same USB port.
If the usb modem is playing nice to Hylafax and if the serial is unique I'd like to know the exact model.
Thanks,


GD


____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions