mx27 usb to serial

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mx27 usb to serial

Jump to solution
1,069 Views
zhangjay
Contributor II

Hi all,

I am using mx27 board to connect my simcom 3G module, I don't know how to config the usb to serial function.

Anyone can give me some support?

Thanks any way!

Tags (1)
0 Kudos
1 Solution
703 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Zhang,

      Normally, add a 3G module to usb, the following steps should be done. Let me assume you are using linux OS:

(1) add VID & PID to option.c

open "linux/driver/usb/serial/option.c", and add VID & PID by the following format

static const struct usb_device_id option_ids[] = {

/*add here*/

{ USB_DEVICE(YOURS_VENDOR_ID, YOURS_PRODUCT_COLT) },

.....

}

(2)Selecting USB GSM driver & CDC driver

# make menuconfig

Device Drivers

   ---->USB support

        ---->USB Modem(CDC ACM) support

        --->USB Serial Converter Support--->

                     --->USB driver for GSM and CDMA modems

(3)Recomplie linux kernel

When booting system with new kernel, some ttyACM devices or ttyUSB devices will be displayed on console. It means the AT port and data port of 3G have been created,

(4)pppd dialing program

This program should work on applicaiton level. you can download a kind of pppd source code , and cross-compile it.

The above is basical steps, try them please !

Regards,

Weidong

View solution in original post

0 Kudos
3 Replies
704 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Zhang,

      Normally, add a 3G module to usb, the following steps should be done. Let me assume you are using linux OS:

(1) add VID & PID to option.c

open "linux/driver/usb/serial/option.c", and add VID & PID by the following format

static const struct usb_device_id option_ids[] = {

/*add here*/

{ USB_DEVICE(YOURS_VENDOR_ID, YOURS_PRODUCT_COLT) },

.....

}

(2)Selecting USB GSM driver & CDC driver

# make menuconfig

Device Drivers

   ---->USB support

        ---->USB Modem(CDC ACM) support

        --->USB Serial Converter Support--->

                     --->USB driver for GSM and CDMA modems

(3)Recomplie linux kernel

When booting system with new kernel, some ttyACM devices or ttyUSB devices will be displayed on console. It means the AT port and data port of 3G have been created,

(4)pppd dialing program

This program should work on applicaiton level. you can download a kind of pppd source code , and cross-compile it.

The above is basical steps, try them please !

Regards,

Weidong

0 Kudos
703 Views
zhangjay
Contributor II

Dear Sun,

I have done!!

Thanks for you information.

0 Kudos
703 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Ok,zhang,

      If your porting usage is samilar with the above advice. please help to press correct answer button ! If not, would you like to share your experience here ?

Thanks ,

Weidong

0 Kudos