simcom | Talk to GSM modem SIMCOM via Node | SMS library

 by   vittee JavaScript Version: 0.3.0 License: No License

kandi X-RAY | simcom Summary

kandi X-RAY | simcom Summary

simcom is a JavaScript library typically used in Messaging, SMS, Twilio applications. simcom has no bugs, it has no vulnerabilities and it has low support. You can install using 'npm i simcom' or download it from GitHub, npm.

Talk to GSM modem SIMCOM via Node
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              simcom has a low active ecosystem.
              It has 34 star(s) with 23 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 3 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of simcom is 0.3.0

            kandi-Quality Quality

              simcom has 0 bugs and 0 code smells.

            kandi-Security Security

              simcom has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              simcom code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              simcom does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              simcom releases are not available. You will need to build from source code and install.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of simcom
            Get all kandi verified functions for this library.

            simcom Key Features

            No Key Features are available at this moment for simcom.

            simcom Examples and Code Snippets

            Thinger.IO client setup for GPRS enabled ESP32 project
            JavaScriptdot img1Lines of Code : 52dot img1License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            #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

            QUESTION

            What does the integer return value mean, when I send a serial port message to my modem in Python?
            Asked 2020-Dec-01 at 19:43

            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:43

            It is returning the length of the data that is written. Here is the source for the write function:

            Source https://stackoverflow.com/questions/65097224

            QUESTION

            Can two IoT applications access a cellular modem at the same time so I don't have to kill ModemManager and lose my internet connection?
            Asked 2020-Nov-24 at 20:13

            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:38

            You 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.

            Source https://stackoverflow.com/questions/64761222

            QUESTION

            Sim7080G module can't send data over TCP while using GNSS
            Asked 2020-May-19 at 06:39

            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 informations

            AT+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

            Connect to any TCP server

            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.

            Only GNSS or TCP can be used, but not both

            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:39

            I 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

            Source https://stackoverflow.com/questions/61857667

            QUESTION

            GPS-Data from SIM7600E
            Asked 2020-Apr-15 at 11:17

            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:24

            I'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.

            Source https://stackoverflow.com/questions/59704507

            QUESTION

            SIM800C GSM AT COMMAND How to upload .amr audio file programmatically
            Asked 2019-Aug-03 at 11:50

            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:29

            I 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)

            1. read file ~/tts0.amr to memeory variable, like amr_data for exam;
            2. send "AT+FSWRITE=tts2.amr,0,5030,10" to modem, waiting for ">" instead of "OK";
            3. write amr_data to modem, just like the step above;
            4. if the size matching, modem shall return "OK" now.

            Source https://stackoverflow.com/questions/56914146

            QUESTION

            SIM800L Blank SMS issue
            Asked 2019-Mar-25 at 10:07

            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:

            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:35

            Ok, 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!

            Source https://stackoverflow.com/questions/47576988

            QUESTION

            Android things SIM700E LTE + GPS Driver
            Asked 2018-Aug-18 at 17:18

            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

            1. /dev/ttyUSB0-diag port for output developing messages
            2. /dev/ttyUSB1- NMEA port for GPS NMEA data output
            3. /dev/ttyUSB2-AT port for AT commands
            4. /dev/ttyUSB3-Modem port for ppp-dial
            5. /dev/ttyUSB4-audio port
            6. /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:18

            Seems, 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.

            Source https://stackoverflow.com/questions/51867544

            QUESTION

            Sim900 Won't Find Networks
            Asked 2018-Jan-19 at 21:29

            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:29

            It 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.

            Source https://stackoverflow.com/questions/48237875

            QUESTION

            Unable to send variable data to php server using AT commands on SIM900 RS232 module
            Asked 2017-Jul-18 at 15:01

            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:01

            Its not the right way to send variable values to database.

            Source https://stackoverflow.com/questions/45103180

            QUESTION

            SIM900 STK cannot browse through menu items with AT command set
            Asked 2017-Jun-27 at 10:37

            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:37

            AT*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

            Source https://stackoverflow.com/questions/44629362

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install simcom

            You can install using 'npm i simcom' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i simcom

          • CLONE
          • HTTPS

            https://github.com/vittee/simcom.git

          • CLI

            gh repo clone vittee/simcom

          • sshUrl

            git@github.com:vittee/simcom.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular SMS Libraries

            easy-sms

            by overtrue

            textbelt

            by typpo

            notifme-sdk

            by notifme

            ali-oss

            by ali-sdk

            stashboard

            by twilio

            Try Top Libraries by vittee

            kformula

            by vitteeKotlin

            thainum

            by vitteeSwift

            medley

            by vitteeTypeScript

            facialwash

            by vitteeTypeScript

            debugbar-doctrine

            by vitteePHP