LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   virtual com ports in ubuntu 10.04 (https://www.linuxquestions.org/questions/linux-newbie-8/virtual-com-ports-in-ubuntu-10-04-a-808734/)

ieatbunnies 05-18-2010 10:26 PM

virtual com ports in ubuntu 10.04
 
been trying to use a rs232 device that uses the usb port. it calls for a virtual com port to be created. i am running on ubuntu 10 and get hella confused with the search results i have come across.

some call for the usbdevfs which apparently doesn't exist under lucid. another had me do use some "magic" in getting it to work. they provided a script mountusbfs.sh

Code:

#
 # Magic to make /proc/bus/usb work
 #

 mkdir -p /dev/bus/usb/.usbfs
 domount usbfs "" /dev/bus/usb/.usbfs usbfs -obusmode=0700,devmode=0600,listmode=0644
 ln -s .usbfs/devices /dev/bus/usb/devices
 domount --rbind /dev/bus/usb /proc/bus/usb

of course when i tried it the domount command doesn't exist so i modified the above script replacing the domount with mount and it seemed to do something things.

usbview is specified as the determining factor whether or not you have the usbfs mounted properly. it wants to use proc bus and ubuntu doesn't use that anymore apparenlty.

help!!!!!!!!!
need a serial to usb port
a com1,2,3 or 4 to be created.

i have read that i need to enable a usbmon (flag?option?) in the kernel to be set. which it isn't when i followed the steps to check.

ieatbunnies 05-18-2010 10:44 PM

i have come across the usbmon portion and how to supposedly enable it. this is the type of problems i have that make me want to bang my head against a wall. i love it though.


ieb@ieb-nb:~$ sudo mount -t debugfs none_debugs /sys/kernel/debug
[sudo] password for ieb:
mount: none_debugs already mounted or /sys/kernel/debug busy
mount: according to mtab, none is already mounted on /sys/kernel/debug
ieb@ieb-nb:~$ modprobe usbmon
FATAL: Module usbmon not found.

kurwongbah 05-18-2010 11:10 PM

Can you please post the output of: lsusb
Run as root (Ubuntu...so use sudo lsusb), with the device attached?

ieatbunnies 06-13-2010 01:10 PM

Bus 005 Device 003: ID 046d:c52b Logitech, Inc.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0801:0001 Mag-Tek
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 003: ID 04f2:b128 Chicony Electronics Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


All times are GMT -5. The time now is 05:06 PM.