Hi,
Is it possible to run an HTTP server with an Ibasis sim card? and how can I give my nRF9160 DK a static IP?
Thanks in advance for the effort
Hi,
Is it possible to run an HTTP server with an Ibasis sim card? and how can I give my nRF9160 DK a static IP?
Thanks in advance for the effort
Hi,
It would be very challenging and I did not see other developers have tried this before.
1) HTTP server which normally running on a PC which is too "heavy" for a IoT device like nRF9160 which have very limited resource and computing power.
2) Cellular device/SIM card do not have dedicated static IP address, this is decided by network operator. You may check with iBasis or other network operators could it be possible to get static IP for mobile device.
Do Android devices have a static IP address? - Stack Overflow
Best regards,
Charlie
thanks for the information but nordic has a page where they explain how to run an HTTP server on a Nordic device over LTE or WiFi: https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/http_server/README.html
There is also on the 2.6.1v SDK an HTTP server sample (nrf/samples/net/http_server). But I find it just vague how I should run this.
Hi,
Sorry for misleading, I did not realize cellular devices are also supported in this sample before. This sample demonstrates a light usage of http sever for LED control.
Following content are related to SIM card fixed/static IP requirements, you need to check with your MNO if they can provide SIM card with fixed/static and configure it with special PDP configuration.
When running the server on a cellular board, you are dependent on a SIM card with a fixed/static IP to be reachable from the global Internet. These SIM cards can be provided by Mobile Network Operators (MNO) and are often referred to as IoT SIM cards.
To use a static SIM card, you may need to instruct the modem to use a specific Access Point Name (APN). This can be carried out by setting the following options:
CONFIG_PDN_DEFAULTS_OVERRIDE
- Used to override the default PDP context configuration. Set the option to y
to override the default PDP context configuration.
CONFIG_PDN_DEFAULT_APN
- Used for manual configuration of the APN. An example is apn.example.com
.
Best regards,
Charlie
So with an iBASIS sim card that one obtained when purchasing an nRF9160 DK is not possible and one must request a sim card from another operator with a fixed/static Ip address and special PDP configuration?
Kind regards
Nathan
The default iBasis card with nRF9160DK cannot get fixed/static IP. You need to check with your preferred network operator if they provide this service.