MC7304 on Linux 2.4.27

MC73, MC74, EM74, MC809x, MC9090

MC7304 on Linux 2.4.27

Postby yyiu002 » Tue Feb 06, 2018 6:17 am

I was asked to replace current MC8775 with MC7304, old Linux driver supports MC8775, but not support MC7304.

I saw MC7304 has more than 18 interfaces, what I needed was check modem's signal strength, set up modem a APN, then try get IP from modem, send and receive data from Linux with a ppp session.

Please anyone help me on guiding what need to do to get started??

Thanks
yyiu002
 
Posts: 27
Joined: Mon May 20, 2013 6:05 pm
Has thanked: 6 times
Have thanks: 0 time

Re: MC7304 on Linux 2.4.27

Postby mlw » Tue Feb 06, 2018 7:47 am

Hi,

Not sure where you get the 18 interfaces from but in the default config the unit will enumerate with two QMI ports (which will show up differently depending on the drivers in your system) and three /dev/ttyUSB ports, the last of these to enumerate is the AT port. Unlike the previous generations the MC73 does not have a separate port to run a PPP session and one to run the AT commands, they are one and the same which is a limitation if you want to do both at the same time.

Doing a PPP session with the open source drivers might work but I would recommend building the Sierra GobiSerial and GobiNet ones ones into your system.

Other than that it is going to be the same AT commands to do what you have stated below.

Regards

Matt

For this post the author mlw
has been thanked by :
yyiu002 (Sat Feb 10, 2018 11:36 am)
mlw
 
Posts: 801
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 84 times

Re: MC7304 on Linux 2.4.27

Postby yyiu002 » Sat Feb 10, 2018 11:50 am

Hi Matt,
Thank you for your reply. I am using Linux kernel 2.4.27. I have updated usbserial.c to create a driver for MC7304, it probe for 6 interfaces. I created 6 serial ports for them.
While port 2 can accept at command, like following:
ati9

Manufacturer: Sierra Wireless, Incorporated
Model: MC7304
Revision: SWI9X15C_05.05.58.00 r27038 carmd-fwbuild1 2015/03/04 21:30:23
IMEI: xxxxxxxxxxxxxxxxxxxxx
IMEI SV: xx
FSN: xxxxxxxxxxxxxxx
+GCAP: +CGSM,+DS,+ES

but other than that, looks like following at commands are not working, except AT+CGDCONT:
at+csq
ERROR
at+cgreg?
ERROR
at+cgatt=1
ERROR
at+cgdcont=1,"ip","telstra.internet"
OK
at+cgact=1,1
ERROR
at+cgpaddr=1
ERROR
AT+CGREG?
ERROR
AT+CGATT=1
ERROR
AT+CGACT=1,1
ERROR
AT+CGPADDR=1
ERROR
yyiu002
 
Posts: 27
Joined: Mon May 20, 2013 6:05 pm
Has thanked: 6 times
Have thanks: 0 time

Re: MC7304 on Linux 2.4.27

Postby mlw » Mon Feb 12, 2018 7:15 am

Hi,

Can you send the following to the unit.

Code: Select all
ati
at+cmee=1
at+cpin?
at+cops=?     
mlw
 
Posts: 801
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 84 times

Re: MC7304 on Linux 2.4.27

Postby mlw » Mon Feb 12, 2018 7:17 am

Hi,

Can you send the following to the unit.

[code]
ati
at+cmee=1
at+cpin?
at!gstatus?
at+cops?
at+cops=? This one will take a couple of minutes to complete
/code]

Regards

Matt

For this post the author mlw
has been thanked by :
yyiu002 (Tue Feb 13, 2018 3:52 am)
mlw
 
Posts: 801
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 84 times

Re: MC7304 on Linux 2.4.27

Postby yyiu002 » Tue Feb 13, 2018 3:52 am

Hi Matt,
Thank you for your reply, I managed to get AT command port working, now I am using it set up PPP session, I can get IP address on ppp0.
The issue is during ppp in session, I can 't send AT+CSQ to get signal strength?
yyiu002
 
Posts: 27
Joined: Mon May 20, 2013 6:05 pm
Has thanked: 6 times
Have thanks: 0 time

Re: MC7304 on Linux 2.4.27

Postby mlw » Tue Feb 13, 2018 7:36 am

Hi,

If doing PPP then, yes, this is an issue.

To get around it you need to use the directIP like interface then as per the attached then.

Regards

Matt
Attachments
SWI Technical Note - Migration from DirectIP to RMNet on MC73xx Rev002.docx
(347.09 KiB) Downloaded 11 times

For this post the author mlw
has been thanked by :
yyiu002 (Wed Feb 14, 2018 3:56 am)
mlw
 
Posts: 801
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 84 times

Re: MC7304 on Linux 2.4.27

Postby yyiu002 » Wed Feb 14, 2018 3:56 am

Hi Matt,
Thanks for your reply.

So after following AT commands on AT command port:
AT+CGDCONT=1,"IP","telstra.corp"
AT$QCPDPP=1,1,"pass","user"
AT!SCACT=1,1

I should be able to get IP data from one of the USB interfaces on MC7304, I used interface 3 to send above AT commands:
0: DIAG
2: NMEA
3: MODEM
8: RMNET1
10: RMNET2
11: RMNET3

So data will come out from 8, 10, or 11, which one?
I will try port sierra_net.c to 2.4.27 kernel.
Before porting, does MC7304 support direct IP?
yyiu002
 
Posts: 27
Joined: Mon May 20, 2013 6:05 pm
Has thanked: 6 times
Have thanks: 0 time

Re: MC7304 on Linux 2.4.27

Postby mlw » Wed Feb 14, 2018 7:32 am

Hi,

MC7304 does not support DirectIP, it uses a different protocol RMNet, you do not need to worry about this if you build the GobiSerial and GobiNet drivers into your system as per the note, it to all intents and pruposes looks like DirectIP.

https://source.sierrawireless.com/~/media/support_downloads/airprime/software/sierralinuxqmidrivers.s2.30n2.48.tar.ashx

Assuming the unit is in the default config when it enumerates to the system you will three /dev/ttyUSB, two /dev/qcqmi and two corresponding eth interfaces (run ifconfig). When you start the data session up the data will be routed through one of these, depending on how your systemis setup (whether you have network manager running or not) depends on whether you will need to send 'dhclient xxx' to populate the interface fields. At this point you just use the LTE connection as an Ethernet interface just like with DirectIP.

Regards

Matt

For this post the author mlw
has been thanked by :
yyiu002 (Thu Feb 15, 2018 10:52 pm)
mlw
 
Posts: 801
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 84 times

Re: MC7304 on Linux 2.4.27

Postby yyiu002 » Thu Feb 15, 2018 10:53 pm

Hi Matt,
Really appreciate your help.

Has anyone back port GobiNet and GobiSerial driver to Kernel 2.4.27?

Regards
yyiu002
 
Posts: 27
Joined: Mon May 20, 2013 6:05 pm
Has thanked: 6 times
Have thanks: 0 time

Re: MC7304 on Linux 2.4.27

Postby yyiu002 » Fri Feb 23, 2018 1:57 am

Hi Matt,
If I have ported GobiNet to Linux 2.4.27, how to use it?
What's the command to set up internet connection by using this driver?

Thanks and Regards
yyiu002
 
Posts: 27
Joined: Mon May 20, 2013 6:05 pm
Has thanked: 6 times
Have thanks: 0 time

Re: MC7304 on Linux 2.4.27

Postby mlw » Fri Feb 23, 2018 8:01 am

Assuming the unit is in its default state with the RMNet interfaces enabled and you have ported the drivers correctly so that you see some /dev/qcqmi interfaces and some additional Ethernet interfaces the easiest way is to connect as per the attached.

Regards

Mat
Attachments
SWI Technical Note - Migration from DirectIP to RMNet on MC73xx Rev002.docx
(347.09 KiB) Downloaded 3 times
mlw
 
Posts: 801
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 84 times


Return to MC Series + EM74

Who is online

Users browsing this forum: No registered users and 1 guest