Oke I get the LCP: timeout sending Config-Requests error if I try to connect without the simcard. Are you sure the simcard is in there correctly? Maybe the simcard is not supported or something, please try a different one.
I found the actual command, it makes no difference but gets rid of all the funny characters.
@fokko that should not be required, also the logs show that pppd was actually started by the script. The LCP error indicate the PPP session failed to negotiate correctly, I strongly suspect an APN (or username/password) problem.
I tested with the wiki instructions and found they worked, but after inserting a SIM I got an ERROR 13, which indicates a SIM error. I then rebooted the unit and executed the /etc/init.d/gprs start script again and this time it started without problem.
Dec 10 12:17:51 (none) daemon.notice pppd[12192]: pppd 2.4.5 started by root, uid 0
Dec 10 12:17:52 (none) local2.info chat[12199]: send (\dAT+CGDCONT=1,âIPâ,âinternet.mvno.mobiâ^M)
Dec 10 12:17:53 (none) local2.info chat[12199]: expect (OK)
Dec 10 12:17:53 (none) local2.info chat[12199]: ^M
Dec 10 12:17:53 (none) local2.info chat[12199]: OK
Dec 10 12:17:53 (none) local2.info chat[12199]: â got it
Dec 10 12:17:53 (none) local2.info chat[12199]: send (ATDT99**1#^M)
Dec 10 12:17:53 (none) local2.info chat[12199]: expect (CONNECT)
Dec 10 12:17:53 (none) local2.info chat[12199]: ^M
Dec 10 12:17:53 (none) local2.info chat[12199]: ^M
Dec 10 12:17:53 (none) local2.info chat[12199]: +CME ERROR: 13^M
Dec 10 12:17:56 (none) local2.info chat[12199]: alarm
Dec 10 12:17:56 (none) local2.info chat[12199]: Failed
@Arjan It is a modem connection error. Wrong APN settings and such give more detailed errors. Running pppd without simcard actually produces the exact error @Chris.K describes.
# pppd
Dec 10 11:48:36 (none) daemon.notice pppd[23206]: pppd 2.4.5 started by root, uid 0
Dec 10 11:48:36 (none) daemon.info pppd[23206]: Using interface ppp0
Dec 10 11:48:36 (none) daemon.notice pppd[23206]: Connect: ppp0 <--> /dev/pts/2
Dec 10 11:49:06 (none) daemon.warn pppd[23206]: LCP: timeout sending Config-Requests
Dec 10 11:49:06 (none) daemon.notice pppd[23206]: Connection terminated.
Dec 10 11:49:06 (none) daemon.notice pppd[23206]: Modem hangup
Dec 10 11:49:06 (none) daemon.info pppd[23206]: Exit.
The command that Kerlink actualy use in their software:
# pppd /dev/gsm_ppp 115200
Dec 10 11:49:15 (none) daemon.notice pppd[23213]: pppd 2.4.5 started by root, uid 0
Dec 10 11:49:15 (none) daemon.info pppd[23213]: Using interface ppp0
Dec 10 11:49:15 (none) daemon.notice pppd[23213]: Connect: ppp0 <--> /dev/gsm_ppp
Dec 10 11:49:45 (none) daemon.warn pppd[23213]: LCP: timeout sending Config-Requests
Dec 10 11:49:45 (none) daemon.notice pppd[23213]: Connection terminated.
Dec 10 11:49:46 (none) daemon.notice pppd[23213]: Modem hangup
Dec 10 11:49:46 (none) daemon.info pppd[23213]: Exit.
The Kerlink Getting Started was my contribution to making a manual about setting up the Kerlink Gateway. If it contains faults, please correct them or supply the correct configuration or software source to use.
As for the status update, it is correct that it does not send any status updates, it was one of my questions on how to check the correct working of the gateway when no node is available to test the connection.
Alright, the good news is that Iâve made some progress, (turns out the SIM card wasnât properly inserted at first, my bad ) I now get a ppp0 interface and it is being given an IP address by my network operator.
The bad news is that I still do not get an internet connection through the gateway.
I checked /usr/sbin/iptables -nL and found that it was empty (aside from Chain INPUT/FORWARD/OUTPUT etc), not a good sign.
Checking the logs I found: daemon.warn pppd[2051]: Could not determine remote IP address: defaulting to 10.64.64.64
So it appears that the routing is not functioning properly, or not activated at all.
No, I get an IP address from my network operator, but the P-t-P address goes to the default.
The 3G modem itself has an internet connection, but the gateway cannot route packets through it.
The modem is being assigned an IP address by the network operator, and there is some data being sent.
But when testing with a loramote, all information is sent via the ethernet conection instead.
Bearer priorities are set to âppp0, eth0, eth1â.
Checking the log, I find this:
daemon.warn pppd[1214]: Could not determine remote IP address: defaulting to 10.64.64.64
Here is the network configuration.
# defines hostname prefix
HOSTNAME=Wirgrid_
# activates lo0 at startup
LOOP=yes
# activates eth0 at startup
ETHERNET=yes
# claims dhcp request on eth0
ETHDHCP=yes
# if fix addr is selected on eth0
ETHIPADDR=192.168.4.155
ETHNETMASK=255.255.255.0
ETHBROADCAST=192.168.4.255
ETHGATEWAY=192.168.4.1
# Disable Ethernet Power if no link detected
ETHAUTODETECT=no
# activates eth0:1 at startup
ETHERVIRT=no
# activates sl0 at startup
SLIP=yes
# Selector operator APN
GPRSAPN=data.tre.se
# Enter pin code if activated
GPRSPIN=
# Update /etc/resolv.conf to get dns facilities
GPRSDNS=yes
# PAP authentication
GPRSUSER=
GPRSPASSWORD=
# activates router at startup
ROUTER=yes
DEVOUT=eth0
DEVIN=ppp0
DHCPD=yes
DHCPDSTARTADDRPOST=90
DHCPDSTOPADDRPOST=120
# manual DNS server
DNSSERVER1=8.8.8.8
DNSSERVER2=8.8.4.4
#Bearer priority order
BEARERS_PRIORITY="ppp0,eth0,eth1"
That I have, I have to start gprs manually and set ppp0 as the default interface manually. After doing that, the 3G backhaul works perfectly. Why gprs isnât starting and being set as the default root automatically, I do not know.
<!-- ############## connection parameters ############## -->
<!-- nb of second to retry to connect to server if connection failed-->
<CONNECT retry_timeout="10" />
<!-- port nunmber for local application kms connection -->
<CONNECT kms_port="35035" />
<!-- enable the autoconnect feature (YES/NO) -->
<CONNECT auto_connection="YES" />
Well all up & running, my gateway is receiving packets, and sending them to TTN⌠here the example of my node that sent hundreds of them already successfully through my both gateways⌠also the AA555A0008060760 gw (the kerlink)⌠http://thethingsnetwork.org/api/v0/nodes/02030800/
@niels
Is the kerlink sending status packages? Probably not as that would make the gateway appear on the API page and on ttnstatus.org. (tcpdump will show packets with readable (in the ascii part text containing â{âstatââ if it is)
For status messages you should have (fake) GPS enabled in the configuration. (For fake youâll need to set the coordinates as well, but I think kerlink has real GPS??)