Connecting 3G Data Card to i.MX535

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

Connecting 3G Data Card to i.MX535

Jump to solution
3,480 Views
shanmugamsundar
Contributor IV

hi all,

i am working in i.mx535qsb board, how do i connect the 3g datacard on the board, Is there any driver i need to install, if it so can any one share me how?

Thanks

shan

Labels (3)
1 Solution
1,411 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Xavier,

     From the linux booting log and the flowing messages, we can know 3G module driver has been normally worked.
usb 1-1.3: new high speed USB device using fsl-ehci and address 6
option 1-1.3:1.0: GSM modem (1-port) converter detected
usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1.3:1.1: GSM modem (1-port) converter detected
usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
    USB on 3G Module has been vitualized two ttys : ttyUSB0 and tty USB1.
    Next step ,you will do some works in android system level.
<I want to know , On your dongle, Is there SIM connector and SIM card now ?>
(1)Modifying init.rc to start RIL service for your special 3G module(maybe like the following).
service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so -- -d /dev/ttyUSB1 -u /dev/ttyUSB0
    socket rild stream 660 root radio
    socket rild-debug stream 660 radio system
    socket rild-ppp stream 660 radio system
    user root
    group radio cache inet misc audio

on property:ril.reset.rild=1
stop ril-daemon
start ril-daemon
setprop ril.reset.rild 0

service pppd_gprs /system/etc/init.gprs-pppd
    user root
    group radio cache inet misc
    disabled
    oneshot
<Note,I can't confirm ttyUSB1 and ttyUSB0 ,which one is used to send AT command,which one is for pppoe,
see it's user's guide or corresponding document, if the above lines can't start severvice,exchange ttyUSB1 and ttyUSB0>
(2)Copy libreference-ril.so to /system/lib/
libreference-ril.so,this file should be from Huawei.
(3)copy init.gprs-pppd to /system/ect/init.gprs-pppd
init.gprs-pppd,this flle is a script ,also should be from Huawei.
Between WCDMA and CDMA, this script is different.

Regards,

Weidong

View solution in original post

0 Kudos
11 Replies
1,411 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Shan,

    Normally, Porting 3G to i.MX platform , we should take the following steps:

(1)Hardware

Connecting 3G Module to USB HOST port of i.MX53.

(2)Linux driver.

Most of 3G modules maybe use one of the two drivers:

*USB driver for GSM and CDMA modems

*USB Modem (CDC ACM) support

these 2 drivers are supported by linux kernel. you can check them in "device drivers--->USB support...."

(3)Changing some source code in android system.

you can refer to 3G document supplied by manufature to modify some code of android RIL. such as your 3G type (WCDMA or CDMA)

(4)Replacing orignal RIL lib with the RIL lib for you 3G or copy it to /system/lib/

(5)Add lines for starting RIL service in init.rc or init.freescale.rc

On how to start service, you also need to get them from manufacture.

(6)Script of WCDMA or CDMA

For WCDMA or CDMA, PPPOE scrript is different, So you should get correct one from manufacture.

Regard,

Weidong

0 Kudos
1,411 Views
shanmugamsundar
Contributor IV

hi weidong,

         thanks for your reply and sorry for the delay,

I have one more doubt, i want to use this data-card in i.MX535 board for the application of live streaming and recording the video from the board to Server PC, for that i want to cross compile the source?  or i can use this as it is.

NOTE:

I am using NON ANDROID SOURCE  not android

Thanks,

shan

Message was edited by: Shanmugam sundar

0 Kudos
1,411 Views
Xavier
Contributor III

Hello Weidong,

I tried to connect a 3G USB dongle on i.MX53 QSB. It seems recognized by Linux and ANDROID. The SIM card is locked, and when ANDROID asks to enter the PIN code when I validate the code, it says 'Incorrect PIN code' (the PIN code is correct, it is the same I used on a smartphone and accepted when I start the phone).

Any idea?

0 Kudos
1,411 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Xavier,

       Could you paste linux booting log here ?

Regards,

Weidong

0 Kudos
1,411 Views
Xavier
Contributor III

Hello Weidong,

Find attached my booting kernel log and a part of logcat.

I am using a HUAWEI USB dongle (E160E).

Regards,

Xavier

0 Kudos
1,412 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Xavier,

     From the linux booting log and the flowing messages, we can know 3G module driver has been normally worked.
usb 1-1.3: new high speed USB device using fsl-ehci and address 6
option 1-1.3:1.0: GSM modem (1-port) converter detected
usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1.3:1.1: GSM modem (1-port) converter detected
usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
    USB on 3G Module has been vitualized two ttys : ttyUSB0 and tty USB1.
    Next step ,you will do some works in android system level.
<I want to know , On your dongle, Is there SIM connector and SIM card now ?>
(1)Modifying init.rc to start RIL service for your special 3G module(maybe like the following).
service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so -- -d /dev/ttyUSB1 -u /dev/ttyUSB0
    socket rild stream 660 root radio
    socket rild-debug stream 660 radio system
    socket rild-ppp stream 660 radio system
    user root
    group radio cache inet misc audio

on property:ril.reset.rild=1
stop ril-daemon
start ril-daemon
setprop ril.reset.rild 0

service pppd_gprs /system/etc/init.gprs-pppd
    user root
    group radio cache inet misc
    disabled
    oneshot
<Note,I can't confirm ttyUSB1 and ttyUSB0 ,which one is used to send AT command,which one is for pppoe,
see it's user's guide or corresponding document, if the above lines can't start severvice,exchange ttyUSB1 and ttyUSB0>
(2)Copy libreference-ril.so to /system/lib/
libreference-ril.so,this file should be from Huawei.
(3)copy init.gprs-pppd to /system/ect/init.gprs-pppd
init.gprs-pppd,this flle is a script ,also should be from Huawei.
Between WCDMA and CDMA, this script is different.

Regards,

Weidong

0 Kudos
1,411 Views
Xavier
Contributor III

Hello Weidong,

I am trying what you suggested. About your question, there is a sim connector with sim card.

Regards,

Xavier

0 Kudos
1,411 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Xavier,

     If answer is useful or corrcet ,please press corresponding button, this will guide other friends to find answers they want.

Thanks !

Weidong

1,411 Views
Xavier
Contributor III

There are no buttons for validation. I don't know why.

Regards,

Xavier

0 Kudos
1,411 Views
Xavier
Contributor III

It works now. Thanks.

0 Kudos
1,411 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Good Job ! Xavier !

Regards,

Weidong

0 Kudos