I am working on GSM modem and using ublox SARA g 350 modem for GPRS data communication.
And I am able to set pre defined apn using AT command
But my question is, Is there a way to get apn from service provider?
I should handle setting apn depending on SIM inserted by the user.
Can anyone help me to get details for this ?
Related
Lately I bought a device with a GPRS module. This module is configured with an APN "internet". My sim cards have their own APNs which are obviously different from "internet" and specific to the operators. I can't change the configurations on the device and I don't know why the APN redirection is not working. Any idea on how to proceed in order to connect the device ?
Thank you.
I resolved the problem by using a sim card with an APN "internet".
I've been tinkering with the HM-10 board for a few weeks now, trying to push data from phone to module and vice-versa. The ultimate goal was to enable the BLE mode and tweak with the characteristics and GATT profiles. I'm pretty new to this domain so can anyone help me out ?
And is there any way we can interface the HM-10 with the hardware rx-tx channel instead of soft-serial ?
Your question is still not very clear, but i think you mean sending AT-commands over BLE-radio.
To make this possible you have to change the MODE using serial connection.
In standard mode the device can only be configured over the serial connection (pins RXD and TXD) using AT commands.
AT+MODE0: It only accepts AT-commands over the serial connection (RXD/TXD)
until a central device connects to the module.
AT+MODE1: Same as MODE0, once a connection is established,
AT-commands can be sent over BLE and manipulate some PIO pins on
the device.
AT+MODE2: Same as MODE0, once a connection is established,
AT-commands can be sent over BLE.
To test it just send a string to hm-10 as "AT\r\n" and it will respond with OK.
Update:
You cannot change the services and characteristics with AT-commands.
There are a lot of other things you can change,like advertising, setup a beacon and change a lot of settings.
For a full list of AT commands and more see the official data sheet:
http://www.jnhuamao.cn/bluetooth41_en.zip
Using a 2g/gprs modem (BGS2T), it seems like we are able to connect to an APN and communicate data though it with only a GSM connection. Is it possible we are doing this without a pdp context being active between the the modem (mobile station) and the SGSN (Serving gprs support node)/ actually using GPRS?
If you mean a TCP/IP connection over the circuit switched GSM voice network then the only way you can do normally is by using a data modem over the speech path.
It is possible to do that but it would be an unusual way to do data, especially with the different network options available today.
The modem you mention is a GPRS modem however, so it is much more likely you are actually using a GPRS connection.
I have been reading and rereading the GSM Board site, and trying the sample codes on the Arduino IDE. I couldn't find how to get the default APN and SIM identrifier on the card.
Q: How does one obtain the default APN (Access Point Name) and the SIM identifier information from the SIM card?
APN: You have to provide APN to your board externally depending on your service provider.
How to get Service provider name from SIM card?
Use AT+CSPN command to get Service provider name.
GNOME maintains a XML database of service providers and their APN settings:
https://gitlab.gnome.org/GNOME/mobile-broadband-provider-info
There's also the Android APNs database, which is similar:
https://android.googlesource.com/device/sample/+/master/etc/apns-full-conf.xml
You can put the SIM card in your phone, go to settings and find the default APN.
On iOS: View and edit your APN settings
On Android: https://www.androidcentral.com/what-apn-and-how-do-i-change-it
I am using QUECTEL M95 modem to connect the server using gprs . And the modem has facility to send and receive test messages .In my project both the situation occurs . By default in programming ip address been set, but there are chances for updating the ip address by sms . Wheather it is possible to send sms during gprs mode? If possible how ? Please suggest me how to do.
Yes, you can do it. If you are using Transparent mode (AT+QIMODE=1) you need to switch to Normal mode (AT+QIMODE=0) and you can send SMS using AT+CMGS regardless of active gprs connection.
You have to use the normal command mode (not to switch to transparent mode).
AT+QINDI=1 - to receive data with poll command
AT+QIRD - poll received data
AT+QISEND - send data
AT+CMGS - send SMS
AT+CMGL="REC UNREAD" - poll new messages