QtSoundModem with usb serial for interface with persistent port.

I’ve been using QtSoundModem for several months now. one thing that bothering in mind was i’ve always have my serial port changed. ie: sometimes it’s ttyUSB0 sometimes it changes to ttyUSB1.i could just change from QtSoundModem gui to the right port. but it’s not practical. i found solution abd been using it for month to make my usb serial port persistent. kere’s the step:

lsusb 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 013: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 012: ID 1b3f:2008 Generalplus Technology Inc. 
Bus 001 Device 011: ID 14cd:8601 Super Top 4-Port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

sudo vi /etc/udev/rules.d/99-usb-serial.rules 
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", SYMLINK+="PTT"

it will make serial tty with vendor id 1a86 and product id 7523(it’s QinHeng Electronics HL-340 USB-Serial adapter) symlinked to port named PTT.
now, even it changed to whatever ttyUSB0 or whatever number it always had the same symlink, PTT.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *