ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, all. Thanks for taking the time to read my question.
I need to get data from a USB device and make it show up as a serial device. I was wondering if there is any generic software that might do this (I suspect not), or if maybe I could get some direction on where to go to learn how to do it myself.
Here's the overall goal: I have a Magellan eXplorist handheld GPSr, which connects via USB. In Windows XP, most software needs it to show up as a serial device, on a virtual COM port. Magellan provides a driver to do this, but it doesn't work on XP x64 (stupid, it couldn't be that different).
I see lots of information out there about how to do this with a USB to serial converter (hardware). This is obviously not necessary. If Windoze can take the USB input and fake a COM10 port for me to get the data (it works), then it should be possible to do the same thing in Linux.
Why are people spending $20 and up on these converter devices when a piece of free software should be able to do the job just fine?
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Your sig list Slackware 8. Is this what you are using?
What kernel are you using? Use this command and post output. ' uname -r '
EDIT: This Section was wrong:
Now bootup with it plugged in.
EDIT: Should of been.
Now boot up with the it not plugged in.
EDIT:
Now once up plug in the GPSR.
Wait 10 secs.
Run the command ' dmesg ' and post the last 20 lines.
Post the output from these commands after it is plugged in.
/sbin/lsmod
/sbin/lsusb
/sbin/lspci -v
This should be enough info to figure out about waht is seen and loaded.
As far as spending the $20.00 I am guessing the needed module is not present in the kernel or not available at the users current kernel version. 2.6 kernels supply many modules. Some just don't feel comfortable compiling a kernel.
Using a kernel I compiled myself. 2.6.16.29 is version on Slamd64-11.0.
Sorry, I guess I need to update my profile info. I was using Slack 8.0 a few years ago.
You said to boot the system with the device plugged in. Then you say once up, plug in the GPSr. I only have a GPSr. So are you asking me to boot with GPSr plugged in already, or to wait?
I'm not sure if you think I have a USB to serial coverter device... I don't. I only have the GPSr, which connects via USB. And it was plugged in when I booted.
root@ludwig:~# /sbin/lsusb
Bus 2 Device 2: ID 046d:c012 Logitech, Inc. Optical Mouse
Bus 2 Device 1: ID 0000:0000
Bus 2 Device 3: ID 058f:9254 Alcor Micro Corp. Hub
Bus 2 Device 4: ID 0a5c:2101 Broadcom Corp.
Bus 2 Device 5: ID 0b20:0406 TransDimension, Inc.
Bus 1 Device 1: ID 0000:0000
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
Flags: fast devsel
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
Flags: fast devsel
01:06.0 SCSI storage controller: Adaptec AHA-2940U/UW/D / AIC-7881U
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at ac00 [size=256]
Memory at fdeff000 (32-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at fdf20000 [disabled] [size=64K]
01:07.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 04)
Subsystem: Creative Labs CT4850 SBLive! Value
Flags: bus master, medium devsel, latency 32, IRQ 74
I/O ports at a800 [size=32]
Capabilities: [dc] Power Management version 1
01:07.1 Input device controller: Creative Labs SB Live! Game Port (rev 01)
Subsystem: Creative Labs Gameport Joystick
Flags: bus master, medium devsel, latency 32
I/O ports at a400 [size=8]
Capabilities: [dc] Power Management version 1
01:09.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80) (prog-if 10 [OHCI])
Subsystem: DFI Inc Unknown device 1006
Flags: bus master, stepping, medium devsel, latency 32, IRQ 50
Memory at fdefe000 (32-bit, non-prefetchable) [size=2K]
I/O ports at a000 [size=128]
Capabilities: [50] Power Management version 2
01:0a.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 13)
Subsystem: DFI Inc Unknown device 100a
Flags: 66MHz, medium devsel, IRQ 66
Memory at fdef8000 (32-bit, non-prefetchable) [size=16K]
I/O ports at 9c00 [size=256]
[virtual] Expansion ROM at fdf00000 [disabled] [size=128K]
Capabilities: [48] Power Management version 2
Capabilities: [50] Vital Product Data
05:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce 7800 GT] (rev a1) (prog-if 00 [VGA])
Subsystem: eVga.com. Corp. Unknown device c517
Flags: bus master, fast devsel, latency 0, IRQ 66
Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at fb000000 (64-bit, non-prefetchable) [size=16M]
I/O ports at 5c00 [size=128]
[virtual] Expansion ROM at fc000000 [disabled] [size=128K]
Capabilities: [60] Power Management version 2
Capabilities: [68] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [78] Express Endpoint IRQ 0
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting
These are what I thought to be possibly relevant dmesg lines:
Quote:
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[50] MMIO=[fdefe000-fdefe7ff] Max Packet=[2048] IR/IT contexts=[4/8]
ieee1394: raw1394: /dev/raw1394 device initialized
ACPI: PCI Interrupt Link [APCL] enabled at IRQ 20
GSI 20 sharing vector 0x3A and IRQ 20
ACPI: PCI Interrupt 0000:00:02.1[B] -> Link [APCL] -> GSI 20 (level, low) -> IRQ 58
PCI: Setting latency timer of device 0000:00:02.1 to 64
ehci_hcd 0000:00:02.1: EHCI Host Controller
ehci_hcd 0000:00:02.1: debug port 1
PCI: cache line size of 64 is not supported by device 0000:00:02.1
ehci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:02.1: irq 58, io mem 0xfeb00000
ehci_hcd 0000:00:02.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 10 ports detected
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ACPI: PCI Interrupt Link [APCF] enabled at IRQ 23
ACPI: PCI Interrupt 0000:00:02.0[A] -> Link [APCF] -> GSI 23 (level, low) -> IRQ 217
PCI: Setting latency timer of device 0000:00:02.0 to 64
ohci_hcd 0000:00:02.0: OHCI Host Controller
ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:02.0: irq 217, io mem 0xfe02f000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 10 ports detected
USB Universal Host Controller Interface driver v2.3
usb 2-5: new low speed USB device using ohci_hcd and address 2
usb 2-5: configuration #1 chosen from 1 choice
usb 2-6: new full speed USB device using ohci_hcd and address 3
ieee1394: Host added: ID:BUS[0-00:1023] GUID[000129200003ebfe]
usb 2-6: configuration #1 chosen from 1 choice
hub 2-6:1.0: USB hub found
hub 2-6:1.0: 4 ports detected
usb 2-6.1: new full speed USB device using ohci_hcd and address 4
usb 2-6.1: configuration #1 chosen from 1 choice
usb 2-6.2: new full speed USB device using ohci_hcd and address 5
usb 2-6.2: configuration #1 chosen from 1 choice
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
input: Logitech USB-PS/2 Optical Mouse as /class/input/input0
input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:02.0-5
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
I will review this later. I meant to say boot the machine without the GPSR plugged in. Once up then plugin the GPRS and run dmesg command. So either edit your post for that section or add a new one here. I will edit my post to correct what I said.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.