mx27 usb to serial

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

mx27 usb to serial

跳至解决方案
1,138 次查看
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!

标记 (1)
0 项奖励
1 解答
772 次查看
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 项奖励
3 回复数
773 次查看
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 项奖励
772 次查看
zhangjay
Contributor II

Dear Sun,

I have done!!

Thanks for you information.

0 项奖励
772 次查看
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 项奖励