# HL7800 Error

**URL:** <https://forum.sierrawireless.com/t/hl7800-error/27372>\
**Category:** HL78\
**Created:** [July 5, 2022, 5:38am UTC](https://forum.sierrawireless.com/t/hl7800-error/27372 "2022-07-05T05:38:20Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![jy.han](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jy.han](https://forum.sierrawireless.com/u/jy.han)\
**Post date:** [July 5, 2022, 5:38am UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/1 "2022-07-05T05:38:20Z")

</div>

Hello,

We’re trying to debug our board using HL7800.  
We were using other vender’s LTE modem and changed to HL7800, it’s the first debugging level with HL7800.  
Please see below our issue and advise to me.

Our system gathering GPS data and some sensor data, and send all data at once thru HL7800…  
but we found problems during test.

[Issue : Data can’t go to server, we guess that this is related to data length]

We used below basic data format.

- Basic Sending command : “AT+KHTTPCFG=1,"[mygps-tracking.com](http://mygps-tracking.com/)",0,\r”
- Basic Receiving command : “AT+KHTTPCFG=1,"[mygps-tracking.com](http://mygps-tracking.com/)",0,\r\r\n+KHTTPCFG: 1\r\n\r\nOK\r\n”

We tested as below and found error.

(1) Actual Sending data  
“AT+KHTTPGET=1,"/api/state?data=$GPGGA,091626.000,2236.2791,N,12017.2818,E,1,10,1.00,8.8,M,18.7,M,\*66$GPRMC,091626.000,A,2236.2791,N,12017.281812341234123412341234"\r”;  
(2) Actual Receiving data  
"AT+KHTTPGET=1,"/api/state?data=$GPGGA,091626.000,2236.2791,N,12017.2818,E,1,10,1.00,8.8,M,18.7,M,\*66$GPRMC,091626.000,A,2236.2791,N,12017.281812341234123412341234"\r\r\nERROR\r\n

We tried after reducing sending data length(remove some data) as below than issued sending data.  
When doing like this, worked normally…  
but Return data(0002000400006) was not received, we guess that this is because we reduce message randomly, so return data is not important now.

Sending data after removing some value from issued sending data(=\> just shorten the data length for test) :  
“AT+KHTTPGET=1,"/api/state?data=$GPGGA,091626.000,2236.2791,N,12017.2818,E,1,10,1.00,8.8,M,18.7,M,\*66$GPRMC,091626.000,A,2236.2791,N,12017.2818"\r”

Receiving data (connected to Network normally) :  
“AT+KHTTPGET=1,"/api/state?data=$GPGGA,091626.000,2236.2791,N,12017.2818,E,1,10,1.00,8.8,M,18.7,M,\*66$GPRMC,091626.000,A,2236.2791,N,12017.2818"\r\r\n+KCNX\_IND: 1,1,0\r\n\r\n+KHTTP\_IND: 1,1\r\n\r\nCONNECT\r\nx-cotent-type-options: nosniff\r\nx-xss-protection: 1; mode=block\r\ncache-control: no-cache, no-store, max-age=0, must-revalidate\r\npragma: no-cache\r\nexpires: 0\r\ncontent-type: application/json;charset=UTF-8\r\ntransfer-encoding: chunked\r\ndate: Mon, 04 Jul 2022 14:35:13 GMT\r\n\r\n{"status":200,"data":""}–EOF–Pattern–\r\nOK\r\n\r\n+KHTTP\_IND: 1,3,296,0,"Invalid status code"\r\n”

We also tried below options but same behavior.  
“AT+KIPOPT=0,"HTTP",2,1000,1000\r”;  
“AT+KIPOPT=0,"HTTPS",2,1000,1000\r”;  
“AT+KIPOPT=0,"TCP",2,1000,1000\r”;

Till now, we guess that HL7800 have some limitation related to length of data/message…etc.

Please advise to me if you have idea.

thanks

---

<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 5, 2022, 5:47am UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/2 "2022-07-05T05:47:26Z")

</div>

there is platform limitation that the URL in +KHTTPGET cannot be longer than 128 bytes

---

<div class="post-metadata">

**Author:** ![jy.han](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jy.han](https://forum.sierrawireless.com/u/jy.han)\
**Post date:** [July 5, 2022, 7:27am UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/3 "2022-07-05T07:27:11Z")

</div>

Hello,

very thanks.  
this could be solved if we make within 100KB.  
but any other method to avoid this problem?  
If we don’t use httpget?

thanks

---

<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 5, 2022, 7:29am UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/4 "2022-07-05T07:29:13Z")

</div>

you can use TCP connection but just implement the HTTP request and HTTP protocol in the TCP communication

---

<div class="post-metadata">

**Author:** ![jy.han](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jy.han](https://forum.sierrawireless.com/u/jy.han)\
**Post date:** [July 12, 2022, 10:12am UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/5 "2022-07-12T10:12:18Z")

</div>

Hello,  
We sloved message length issue based on your advice, we programmed our source based on TCP communication. but we faced to other issue.  
After re-programming based on TCP, we communicated with our server successfully. We tested one sample module. But we found that other sample module board couldn;t comminucate normally now.  
We’re testing 5pcs additional module with same MCU firmware, but we guess that LTE didn;t communicate with server correctly…  
Just one module is ok…same hardware/Antenna/SW…  
We’re inspecting SW now but I need your advice if you have any idea about my situation…  
thanks

---

<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 12, 2022, 11:34am UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/6 "2022-07-12T11:34:58Z")

</div>

Does the module register network

---

<div class="post-metadata">

**Author:** ![jy.han](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jy.han](https://forum.sierrawireless.com/u/jy.han)\
**Post date:** [July 12, 2022, 1:03pm UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/7 "2022-07-12T13:03:37Z")

</div>

sure, module was activated on airvantage website.

---

<div class="post-metadata">

**Author:** ![jy.han](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jy.han](https://forum.sierrawireless.com/u/jy.han)\
**Post date:** [July 12, 2022, 1:47pm UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/9 "2022-07-12T13:47:08Z")

</div>

For information.  
I tried diagnostic on airvantage.  
Normal module and issue module were ok.

- sim state is compliant with traffic
- Data status seems to be ok, I could see “on 4G : time…”.  
This means HL7800 was connected to Network not communicated to server? or other?  
we know that no response from modem on issue module…

---

<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 12, 2022, 1:53pm UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/10 "2022-07-12T13:53:54Z")

</div>

Have you captured wireshark log in server

---

<div class="post-metadata">

**Author:** ![jy.han](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jy.han](https://forum.sierrawireless.com/u/jy.han)\
**Post date:** [July 12, 2022, 2:46pm UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/11 "2022-07-12T14:46:13Z")

</div>

any guide for wireshark with LTE modem?

---

<div class="post-metadata">

**Author:** ![jy.han](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jy.han](https://forum.sierrawireless.com/u/jy.han)\
**Post date:** [July 12, 2022, 11:04pm UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/12 "2022-07-12T23:04:34Z")

</div>

According to our inspection, we found the difference between normal and abnormal status.

Below is our command.  
AT&K3\r  
AT+KCNXCFG=1,“GPRS”,“”\r  
AT+KTCPCFG=1,0,“[mygps-tracking.com](http://mygps-tracking.com/)”,80,0,0,\r  
AT+KTCPCNX=1\r  
AT+KTCPSND=1,224\r  
GET /api/state?data=$GPGGA,091626.000,2236.2791,N,12017.2818,E,1,10,1.00,8.8,M,18.7,M,_66$GPRMC,091626.000,A,2236.2791,N,12017.2818,E,0.32,172.25,160418,A_62$GPVTG,172.25,T,M,0.32,N,0.59,K,A\*33$ID,0010,$V,3.33 HTTP/1.0\r\n\r\n–EOF–Pattern–  
AT+KTCPRCV=1,315\r  
AT+KTCPDEL=1\r

When communicating with network,  
If we send " AT+KTCPCNX=1\r “, we received the response " +KCNX\_IND: 1,1,0 +KTCP\_IND:1,1” …  
but When communicatiion was failed,  
If we send " AT+KTCPCNX=1\r ", we receive the response " +KCNX\_IND: 1,4,1\r\n\r\n+KCNX\_IND: 1,2,1,2,30\r\n "…

Please check it.

---

<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 12, 2022, 11:48pm UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/13 "2022-07-12T23:48:19Z")

</div>

I mean wireshark on your server

---

<div class="post-metadata">

**Author:** ![jy.han](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jy.han](https://forum.sierrawireless.com/u/jy.han)\
**Post date:** [July 13, 2022, 12:18am UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/14 "2022-07-13T00:18:44Z")

</div>

ok, but we should check this if possible or not because of our situation.  
I need your advice about my other replay about return message when communication fails.  
thanks

---

<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 13, 2022, 12:29am UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/15 "2022-07-13T00:29:19Z")

</div>

it seems it just means cannot connect to server.

---

<div class="post-metadata">

**Author:** ![jy.han](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jy.han](https://forum.sierrawireless.com/u/jy.han)\
**Post date:** [July 14, 2022, 5:59am UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/16 "2022-07-14T05:59:24Z")

</div>

More information about my issue…

During our inspection, we found below behaviors…  
We tried several time to enable SIM detection process…After that, issue solved…

Please see below our process and result, and I need your idea.  
Let us know if we should add or change any option for solution…

1. For 10pcs sample module, we read module information(CCID/IMEI/SN) as below process…

(1) pre-setting to read uSIM/Modem information

**n Set Sierra**

AT+KCARRIERCFG=15\r\r\nOK\r\n

- AT+KSIMSEL=9

**n Set eSIM**

AT+KSIMSEL=9\r\r\nOK\r\n\nOK\r\n

- AT+CFUN=1,1

n Module Reset

AT+CFUN=1,1\r\r\nOK\r\n

- AT+KSIMSEL?

n Check the current SIM setting/configuration

AT+KSIMSEL?\r\r\n+KSIMSEL: 9,3\r\n\r\nOK\r\n

(2) Checking Information

- AT+CCID

- AT+CCID\r\r\n+CCID: 00000000000000000000000000000000000000000000\r\nOK\r\n

n check ESIM CCID

- AT+CGSN=1

- AT+CGSN=1\r\r\n+CGSN:"000000000000000"\r\n\r\nOK\r\n

n check module IMEI

- AT+KGSN=3

- AT+KGSN=3\r\r\n+KGSN: 00000000000000\r\n\r\nOK\r\n

n check SERIAL NUMBER

1. Based on above process, we expected that it should be saved as “AT+KSIMSEL=9”.  
but it not “9” when error happened…

Please see below comparison table between “Error Case” and “Normal Case”…  
Failure Module was activated after trying this process so many times…but we think it’s not normal status…  
we think there’re any option or something to add or change…  
I change number as 0000000000 not to open our module information…

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/2/20fb87937efb2961df710c21749a208643584fae.png)

---

<div class="post-metadata">

**Author:** ![jy.han](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jy.han](https://forum.sierrawireless.com/u/jy.han)\
**Post date:** [July 15, 2022, 1:33pm UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/17 "2022-07-15T13:33:48Z")

</div>

any comment for my question?

---

<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 15, 2022, 1:40pm UTC](https://forum.sierrawireless.com/t/hl7800-error/27372/18 "2022-07-15T13:40:50Z")

</div>

i don’t quite understand, you can just select esim every power on ,right?
