simcom | Talk to GSM modem SIMCOM via Node | SMS library
kandi X-RAY | simcom Summary
kandi X-RAY | simcom Summary
Talk to GSM modem SIMCOM via Node
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of simcom
simcom Key Features
simcom Examples and Code Snippets
#define THINGER_SERIAL_DEBUG //This will provide debug messages of what thinger
code is trying to do
#define _DISABLE_TLS_ //TLS needs to be disabled if using ESP32 (not sure why, this is a known bug)
// Select your modem:
//#define TINY
Community Discussions
Trending Discussions on simcom
QUESTION
How do I interpret the returned 4
in the following code, which is trying to send a basic AT
message to my SIMCom 7600A modem via the serial AT port /dev/ttyUSB3
?
ANSWER
Answered 2020-Dec-01 at 19:43It is returning the length of the data that is written. Here is the source for the write function:
QUESTION
I'm having trouble getting GPS data from my modem consistently. Normally I can get the GPS in Python with the following code:
...ANSWER
Answered 2020-Nov-22 at 13:38You should be able to utilize ModemManager to get the GPS location instead of getting it directly. This way you can avoid using the same serial port from two services.
There is documentation on how to do this from the command line using the mmcli
tool in the ModemManager manpage:
https://www.freedesktop.org/software/ModemManager/man/1.0.0/mmcli.8.html#lbBC
There is also a libmm-glib
library which you should be able to use from Python via GObject Introspection without running the command line tool.
QUESTION
I bought a Simcom (Sim7080G) module to use it for geolocation and send data over TCP. These modules are quite new on the market (it was first launched in mid 2019) and there is some weird functionning with it. I would like to know if people that use it struggle with the same problem.
My goal is to take GNSS (latitude/longitude) informations, and to send them over TCP.
Activate and take GNSS informationsAT+CGNSPWR=1
returns OK
AT+CGNSINF
returns +CGNSINF: 1,1,20200517191239.000,4x.xxxxxx,6.xxxxxx,473.769,0.00,,0,,1.9,2.1,1.0,,7,,7.9,6.0
AT+CNACT=0,1
returns OK\r\n\r\n+APP PDP: 0,ACTIVE
AT+CAOPEN=0,0,"TCP",151.101.1.69,80
(151.101.1.69 is stackoverflow.com ip address)
--> Some time waiting (like +40s) and then:
+CAOPEN: 0,23\r\n\r\nOK
The code 23
means: 23 Remote refuse
, but in my case the connection never reached the server.
What is weird about all of this, is the fact that I can connect on a TCP server, but this stops to work when I activate GNSS.
...ANSWER
Answered 2020-May-19 at 06:39I sent an email to Simcom technical support. After insisting that my problem be addressed by a Simcom engineer, I received an answer. I encouraged them to be more clear on their documentation because this information was nowhere (this module is pretty new so I think they missed it on documentation).
Hope to help somebody in the same way or not to do the same pricey error:
Hi Dardan,
"it is not possible to use GNSS and TCP at the same time"
This is known limitation for this module, as there are limitation for LTE and GNSS part, they can not run simultaneously because they are sharing part of RF components(SIM7070G low cost version of SIM7000G) so it is time MUX for LTE and GNSS which means the GNSS performance could not be good(if customer needs to send GNSS data to server in very short interval such as <10 seconds), for SIM7000G LTE and GNSS can work simultaneously without problem. so SIM7070G could be a good solution for "parcel tracking" etc, which do not need the continue navigation. please go for SIM7000G, thanks.
xxxx Sun
QUESTION
I need help with my GSM-module. I am using the SIM7600E-4G-HAT module from Waveshare and I am unable to recieve GPS-Data by using the AT-Commands from the manual. The GPS-Antenna is connected to GNSS at the board. I am interfacing the module with the Arduino IDE (Serial-Monitor) and tried the following:
...ANSWER
Answered 2020-Jan-17 at 18:24I've finally solved the problem. The coaxial cable was defect, so I replaced it and now it works. I don't know the exact reason for this, it could've been due to the HF or no contact.
QUESTION
I am desperatly trying to upload some audio file to the internal memory of a SIM800C, so far this is what I've been able to do, but the uploaded file seems void, and doesnt play any sound. But with AT+FSLS=C:\\
I can see the file is there.
Here are the AT commands I am using:
...ANSWER
Answered 2019-Jul-07 at 08:29I think the post you mentioned is right. In App note, page 13, there is also an example.
So in your program, suppose you have a local file ~/tts0.amr with size 5030 bytes, (tts2.amr is the file name inside modem)
- read file ~/tts0.amr to memeory variable, like amr_data for exam;
- send "AT+FSWRITE=tts2.amr,0,5030,10" to modem, waiting for ">" instead of "OK";
- write amr_data to modem, just like the step above;
- if the size matching, modem shall return "OK" now.
QUESTION
I am using a SIM800L module with a Texas Instrument Launchpad, with a MSP430G2553 microcontroller, not using an external library for SIM800L.
Problem Statement: A Simple text message (SMS with Text Mode) is sent, received as a blank message on cellphone.
SIM details:
1. SIM 1 : Location: India. Operator: AirTel, 4G compatible SIM Card.
2. SIM 2 : Location: India. Operator: Tata Docomo, 3G compatible SIM card.
What I know already:
- UART Drivers in firmware are tested and working, non-polling, interrupt driven.
- No blocking time delays added as a substitute to read responses of AT commands. I read the response and proceed only if positive acknowledgement is received,
OK
for most of the commands. - I have confirmed the data bits transmitted and received on Tx-Rx pins by means of an oscilloscope. Everything seems as expected, including voltage levels.
What I have read:
Some speculation through unofficial sources (Of course forums) that SIM800L is only 2G compatible.
(Shallow reading from wikipedia) I have read through GSM 3.38 and GSM 3.40, and the Data Coding Scheme section for understanding how the encoding of text is handled in suited/relevant AT command (AT+CSMP).
Various forums including the ones for arduino with which SIM800L modules are very popularly used.
Related posts on Stackoverflow:
- Recieving Blank SMS SIM800 using AT Commands and Python on Raspberry Pi 2
- How to send SMS with GSM module SIM800 and Arduino Uno?
- Sending GSM Character Set in SMS with SIM800L Module
The answer in the first one seemed to have worked for him, it didn't work for me.
What have I tried:
I have used the same module with an instance of Docklight serial terminal. SMS sent from Docklight are received on my cellphone and appear as expected, not blank.
On day 0, before integrating module with Launchpad hardware, I have tested the overall firmware state machine with exact copy of expected responses from SIM800L.
The results for both the SIM cards are same, except for some of the initial configurations, but I load a typical set of configuration in both of them before I initiate any SMS related task.
Typical values that I use are:
- Echo Off
- CSMP: 17, 167, 0, 0 (I have tried 17, 167, 0, 0, but no luck). Default from SIM 1 is 17,11,0,246, and that from SIM 2 is 17, 255, 0, 0.
- CSCS: "IRA"
Failed combinations on serial port: (SIM 1 and SIM 2)
- CSMP: 17, 11, 0, 246 | CSCS: "IRA" - Sends a blank SMS
- CSMP: 17, 11, 0, 246 | CSCS: "GSM" - Sends a blank SMS
- CSMP: 17, 11, 0, 246 | CSCS: "HEX" - Sends a blank SMS
Successful combinations on serial port: (SIM 1 and SIM 2)
- CSMP: 17, 167, 0, 0 | CSCS: "IRA"
- CSMP: 17, 167, 0, 8 | CSCS: "IRA"
- CSMP: 17, 11, 0, 0 | CSCS: "GSM"
- CSMP: 17, 167, 0, 0 | CSCS: "GSM"
- CSMP: 17, 167, 0, 8 | CSCS: "GSM"
To be honest, I played hunch with these combinations before I studied what field reflects what change these combinations (which are poorly documented in the SIM800L User guide).
Any idea what I might be missing here? I am open to thinking that it is more of a RTFM (Read The Fat Manual) issue.
...ANSWER
Answered 2019-Jan-25 at 11:35Ok, managed to resolve the issue.
It was not about the SIM800L at all.
The whole payload was followed by a '\0'
which is unexpected (I know, very poor on my side). The serial term has no issues with it whatsoever.
Debugging was fun!
QUESTION
I am trying to make a Prototype using RPI3 and SIM700E module even after lot googling it Was difficult to figure out how the drivers will work .As per linux & Android setup guide by simcom the USB interface has 6 virtual hosts
- /dev/ttyUSB0-diag port for output developing messages
- /dev/ttyUSB1- NMEA port for GPS NMEA data output
- /dev/ttyUSB2-AT port for AT commands
- /dev/ttyUSB3-Modem port for ppp-dial
- /dev/ttyUSB4-audio port
- /dev/ttyUSB5-Virtual Net card
but for this to work the Linux kernel must have the qualcomm gobi drivers, so i am not sure weather android things OS need these drivers or it Can work without it also according to the mobile android guide we have to modify some system files which do not exist in android things OS
...ANSWER
Answered 2018-Aug-18 at 17:18Seems, there is no SIM700E drivers in Android Things kernel and there is no way to add it now (from here):
Note: You cannot customize the behavior of device drivers in the Linux kernel or Hardware Abstraction Layer (HAL) to add new functionality to a device.
So, the easiest way to connect SIM700E LTE to RPI3 with Android Things is to connect SIM700E to Raspberry Pi via UART (BCM14, BCM15 pins on RPi and Tx Rx pins on SIM module) and write custom User-space driver for SIM700E based on its AT-commads. For driver prototype you can use contrib-driver/gps from official repo (it also uses UART and requires response parcing).
Update And also, you can use USB<->UART converters on RPi side to connect to SIM700 module if you lack of UARTs (USB<->UART converters are supported by Android Things) like in that example.
QUESTION
I have a Sim900 from Sainsmart. I have a working serial connection from my Raspberry Pi to Sim900. I can write commands, receive responses, and even query data such as my phone number from the Sim Card. My Sim Card is an AT&T card. I cannot make Sim900 find a network and attempt to connect. Supposedly, it is supposed to do it on its own, but I have not seen that either. The only two things I can think of are that either the firmware is wrong, or the chip is not getting enough power. The firmware (from AT+CGMR) is Revision:1137B06SIM900M64_ST_ENHANCE. This appears to be the latest firmware that you can get from Simcom's Site. As for power, I am pretty sure the power is sufficient as I bought a charger usb cable and adapter in which the adapter that came with the cable promised to support 2 amps. I stripped the cable and gave it a 3 amp supply of power. The chip also doesn't randomly reset when I try connecting it. I can set settings that get lost on power loss, but they only disappear when I unplug the chip to reset the settings.
The below output is from my latest test to try to understand why I cannot send SMS.
...ANSWER
Answered 2018-Jan-19 at 21:29It turns out there is nothing wrong with either my code or hardware. This is an issue with my network provider, AT&T. Now, I knew they got rid of 2G, but I didn't realize that meant calls and texts too. Because I forget calls and texts aren't on their own separate protocol. Since, I am typing this on my phone, I will just use screenshots to show what I mean.
This is a list of network submodes. My phone is usually on the top option with LTE data. My GSM chip uses the second option, obviously GSM. I may be able to hack together a slower LTE connection as I still support the bands that AT&T's LTE network provides. I would just have to see how feasible it is to hack the firmware.
This is what my network list for LTE looks like when scanning (essentially AT+COPS=?):
This is the same output of what my GSM chip sees. This is with the GSM option. I cannot call anyone when selecting the off network option.
Given this, I either need to find a carrier that supports GSM, hack together the firmware to support slow LTE, or chop off my arm and sell it on the black market for an expensive LTE chip.
QUESTION
I am using SIMCOM SIM900 module and Arduino uno. I am able to send Static data to the server using the AT+PARA command but am unable to do so when sending just the variable data. The variable is continuously storing data received from a sensor. Is it because the variable has continuous change in value?
Static format:
...ANSWER
Answered 2017-Jul-18 at 15:01Its not the right way to send variable values to database.
QUESTION
I'm using a SIM900 module to browse the Sim Tool Kit menu and perform some actions. I'm able to get the top level menu but can't go further. Below is my AT commands and responses:
...ANSWER
Answered 2017-Jun-27 at 10:37AT*PSSTK="MENU SELECTION",1
has item identifier
as argument, not index. Your example only has 1 item with identifier 128.
So I would try this: AT*PSSTK="MENU SELECTION",128
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install simcom
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page