PHS8-E / PLS8-E subnet mask issue | Thales IoT Developer Community
October 30, 2015 - 2:35pm, 3869 views
our company is using mobile modules in our devices. We have switched from Sierra to Cinterion and we are having some issues when connecting to mobile network.
When obtaining IP address from ISP, our subnet mask is 255.255.255.252 and sometimes 255.255.255.240. With same SIM cards in Sierra modules we get 255.255.255.0.
Since we get 255.255.255.252 we sometimes have overlap of subnets and therefore our devices cannot comunicate (ping etc).
We are writting our own embeded software, so we are sure its not the code that it manipulating subnet mask.
Our code does the following AT commands:
send_at_command('ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0')
send_at_command('AT+CGDCONT=17,"IP","' .. apn .. '"')
send_at_command('AT^SGAUTH=17,' .. papchap .. ',' .. user.. ',' .. pass )
Then we check IP address in a loop with:
And afer that we use dhclient Linux software to place IP address on our ppp_0 interface.
To repeat and conclude, same hardware, same software, different modules (Sierra and Cinterion) we get different subnet masks (but same IP address).
Does anyone have some ideas?
Thank you in advance,