mx27 usb to serial

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,656件の閲覧回数
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 解決策
2,290件の閲覧回数
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 返答(返信)
2,291件の閲覧回数
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 件の賞賛
返信
2,290件の閲覧回数
zhangjay
Contributor II

Dear Sun,

I have done!!

Thanks for you information.

0 件の賞賛
返信
2,290件の閲覧回数
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 件の賞賛
返信