# HL7650 IP connection on Linux

**URL:** <https://forum.sierrawireless.com/t/hl7650-ip-connection-on-linux/13205>\
**Category:** Legacy HL Series\
**Created:** [July 18, 2018, 4:57am UTC](https://forum.sierrawireless.com/t/hl7650-ip-connection-on-linux/13205 "2018-07-18T04:57:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremynz](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@jeremynz](https://forum.sierrawireless.com/u/jeremynz)\
**Post date:** [July 18, 2018, 4:57am UTC](https://forum.sierrawireless.com/t/hl7650-ip-connection-on-linux/13205/1 "2018-07-18T04:57:17Z")

</div>

I have a HL7650 module on a Sierra dev board, connected via USB to a processor running Linux.

What I want is for the modem to appear as a network interface (eg. wwan0) so my Linux application can access the internet, with a serial port to control the module via AT commands.

When I first plugged in the modem, it appeared as 3 x CDC (ttyACM0, ttyACM1, ttyACM2) and 4 x network interface (wwan0, wwan1, wwan2, wwan3).

I tried AT+KUSBCOMP=2, and after power cycling, the modem showed as 3 x CDC and 1 x network interface (wwan0)

I then connected to ttyACM0 and set the APN and tried to connect:  
AT+CGDCONT=1, “IP”, “m2m”  
OK  
AT+CGACT=1  
OK

I got OK, and verified the IP address was valid:  
AT+CGPADDR=1  
+CGPADDR: 1,“100.115.157.144”

However, Linux doesn’t see any IP address on my wwan interface, and I can’t access anything using ping. I tried to run a DHCP client manually on the interface, but it just times out.

Can anyone please help me to resolve this issue?

---

<div class="post-metadata">

**Author:** ![jeremynz](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@jeremynz](https://forum.sierrawireless.com/u/jeremynz)\
**Post date:** [July 18, 2018, 5:31am UTC](https://forum.sierrawireless.com/t/hl7650-ip-connection-on-linux/13205/2 "2018-07-18T05:31:29Z")

</div>

I just plugged the dev board into a Windows machine, and it worked. I was able to run a traceroute to a remote server over the cellular connection.

So it looks like the issue is one of configuration.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 18, 2018, 7:40am UTC](https://forum.sierrawireless.com/t/hl7650-ip-connection-on-linux/13205/3 "2018-07-18T07:40:40Z")

</div>

When using KUSBCOMP =2, it is using MBIM interface.  
Is that what you want?

---

<div class="post-metadata">

**Author:** ![jeremynz](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@jeremynz](https://forum.sierrawireless.com/u/jeremynz)\
**Post date:** [July 18, 2018, 8:27am UTC](https://forum.sierrawireless.com/t/hl7650-ip-connection-on-linux/13205/4 "2018-07-18T08:27:00Z")

</div>

To be honest, I don’t know if MBIM is what I want.

What I want is for an interface to show up in Linux (eg. eth1, wwan0) that I can use to get access to the internet.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 18, 2018, 9:06am UTC](https://forum.sierrawireless.com/t/hl7650-ip-connection-on-linux/13205/5 "2018-07-18T09:06:39Z")

</div>

I am using HL7690 (AT+KUSBCOMP=0) and I follow the document here:  
[https://source.sierrawireless.com/resources/airprime/application\_notes\_and\_code\_samples/airprime\_hl75xx\_network\_interface\_configuration\_technical\_note/](https://source.sierrawireless.com/resources/airprime/application_notes_and_code_samples/airprime_hl75xx_network_interface_configuration_technical_note/)

In Section 4, it teaches you how to connect in Linux.  
It is working fine on my side.

---

<div class="post-metadata">

**Author:** ![jeremynz](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@jeremynz](https://forum.sierrawireless.com/u/jeremynz)\
**Post date:** [July 19, 2018, 1:46am UTC](https://forum.sierrawireless.com/t/hl7650-ip-connection-on-linux/13205/6 "2018-07-19T01:46:34Z")

</div>

Thank you,

I was able to connect successfully to the HL7650 using the instructions in that link.

I have some further questions:

1. Is there anyway to configure Linux to read the IP address and add the default route when the modem is connected?
2. Is there a way to save the module configuration, so the connection is set up automatically on module boot?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 19, 2018, 1:59am UTC](https://forum.sierrawireless.com/t/hl7650-ip-connection-on-linux/13205/7 "2018-07-19T01:59:49Z")

</div>

I think the easiest way is to write a bash script and check on /dev/ttyACM0.
