The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Linux

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-15-2007, 09:31 PM   #1
Newbie
timekiller's CarPC Specs
 
Join Date: Mar 2005
Location: NJ
Vehicle: 2005/Mazda/3
Posts: 51
My Photos: (0)
USB Adapter for XM Direct

Anyone buy the mp3car usb adapter for xm ? I just bought both units and am having trouble getting my linux both to recognize it. I tried it in winblows and it seems to work (and seems to use the ftdi usb-serial driver). I have ftdi compiled into my kernel, but my system is not associating the device with the driver. I have manually loaded the module, but when I plug in the device in, this is all i get in dmesg:

-- modprobe ftdi_sio --
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver
-- plug in the unit --
usb 2-2: new full speed USB device using ohci_hcd and address 5
usb 2-2: configuration #1 chosen from 1 choice


Notice no /dev/ttyUSB creation ? lsusb -v gives me this:

Bus 002 Device 005: ID 6846:0002
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x6846
idProduct 0x0002
bcdDevice 6.00
iManufacturer 1 Mp3Car
iProduct 2 Mp3Car USB Adapter for XM Direct
iSerial 3 A1PRFSIQ
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 2 Mp3Car USB Adapter for XM Direct
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0


So I know the device is there, I think I just need to know how to make the kernel know the unit is an ftdi device.

So - anyone else try this ?
__________________
Mazda 3
Via Epia M10k w/ Lilliput 7"
Gentoo,MythTV,iGuidance v3
See the hardware and software
timekiller is offline   Reply With Quote
Sponsored Links
Old 10-15-2007, 11:21 PM   #2
Newbie
timekiller's CarPC Specs
 
Join Date: Mar 2005
Location: NJ
Vehicle: 2005/Mazda/3
Posts: 51
My Photos: (0)
I love answering my own questions. Here is how you make the mp3car usb module work in linux (requires recompiling the ftdi kernel module):

2 files to edit :
ftdi_sio.h
ftdi_sio.c

located in /usr/src/linux/drivers/usb/serial (your path may vary)

You have to 'tell' ftdi the vendor and product ID of the device (look at my lsusb output above). Here's a patch to add the lines you need:

diff -ru linux-2.6.20-gentoo-r8/drivers/usb/serial/ftdi_sio.c linux-2.6.20-gentoo-r8-xmpatch/drivers/usb/serial/ftdi_sio.c
--- linux-2.6.20-gentoo-r8/drivers/usb/serial/ftdi_sio.c 2007-10-15 23:15:20.000000000 -0400
+++ linux-2.6.20-gentoo-r8-xmpatch/drivers/usb/serial/ftdi_sio.c 2007-10-15 22:13:57.000000000 -0400
@@ -495,6 +495,7 @@
{ USB_DEVICE(FTDI_VID, FTDI_ATIK_ATK16HRC_PID) },
{ USB_DEVICE(KOBIL_VID, KOBIL_CONV_B1_PID) },
{ USB_DEVICE(KOBIL_VID, KOBIL_CONV_KAAN_PID) },
+ { USB_DEVICE(XMD1000_VID, XMD1000_PID) },
{ USB_DEVICE(POSIFLEX_VID, POSIFLEX_PP7000_PID) },
{ USB_DEVICE(FTDI_VID, FTDI_TTUSB_PID) },
{ USB_DEVICE(FTDI_VID, FTDI_ECLO_COM_1WIRE_PID) },
diff -ru linux-2.6.20-gentoo-r8/drivers/usb/serial/ftdi_sio.h linux-2.6.20-gentoo-r8-xmpatch/drivers/usb/serial/ftdi_sio.h
--- linux-2.6.20-gentoo-r8/drivers/usb/serial/ftdi_sio.h 2007-10-15 23:15:09.000000000 -0400
+++ linux-2.6.20-gentoo-r8-xmpatch/drivers/usb/serial/ftdi_sio.h 2007-10-15 22:04:02.000000000 -0400
@@ -166,6 +166,12 @@
#define KOBIL_CONV_KAAN_PID 0x2021 /* KOBIL_Konverter for KAAN */

/*
+ * Mp3Car Usb XM Direct
+ */
+#define XMD1000_VID 0x6846
+#define XMD1000_PID 0x0002
+
+/*
* Icom ID-1 digital transceiver
*/


once the patch is applied, recompile either the whole kernel, or just the module and install it. now reboot (to make sure the new kernel works) and plug in the usb line. dmesg should show that /dev/ttyUSB0 was created. Then you can use xmpcr2 http://www.files-library.com/files/XMPCR2.html to control the xm direct unit.

Put another check in the column of carpc hardware that works in linux


I'll be updating my carpc page with a more detailed write up if anyone needs it.
__________________
Mazda 3
Via Epia M10k w/ Lilliput 7"
Gentoo,MythTV,iGuidance v3
See the hardware and software
timekiller is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
EnGenius EUB-362 Wireless Wifi USB Adapter Review L-U-R-C-H The Review Palace 22 09-10-2007 09:21 AM
driver issues with usb to ide adapter jermkesler General Hardware Discussion 22 08-31-2006 09:09 PM
USB to VGA Adapter --> 800x480??? barmy LCD/Display 0 05-22-2006 04:02 AM
Problem with ITPS / hibernation and External USB HD veetid Power Supplies 5 01-02-2006 08:35 PM
need power supply info for buslink pcmcia usb 2.0 adapter minghi General Hardware Discussion 1 04-12-2005 08:54 AM


All times are GMT -5. The time now is 04:16 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics