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!
Solved! Go to Solution.
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
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
Dear Sun,
I have done!!
Thanks for you information.
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