how to send USSD using GSM modem in node js - node.js

I want to make a node js application in which I want to send and process USSD
using GSM Modem.
It would be very helpful If you provide me link to any opensource library or application which do the same.
It would be great help, If you can tell me/Give some reference of how to do incoming/outgoing call processing.

Related

Connect to USB RFID reader with browser

I am a newbie dev trying to build a web application that can read and write to an RFID Card through the browser.
I am currently using an ACR122U Card Reader and have gotten it reading directly to my server in NodeJS with the nfc-pcsc node package.
Of course, I don't want to have my users have to run their own server and install a ton of libraries to read a card.
Ideally, they can just plug a card reader into their USB port and communicate from USB>Browser>Node Server and back again.
Can anyone recommend a good way to communicate with a USB RFID reader through the browser (and send to backend server?). Thanks
As far as I know, at the moment (Mar.2021) there is only experimental support for USB in browsers (WebUSB API). Please refer to https://developer.mozilla.org/en-US/docs/Web/API/USB
As this API is experimental, you may not want to rely on it for production. In this case, a component running on end users machine will be needed (e.g. a more or less simple service that responds via https at 'localhost'. This approach opens several usability/security concerns (such as supplying a trusted certificate for localhost, properly managing CORS headers etc).
You may want to refer to this question for additional suggestion: Architectures to access Smart Card from a generic browser? Or: How to bridge the gap from browser to PC/SC stack?

Send a string from Arduino to Windows Store App via Bluetooth?

I am trying to get a Unity3d Windows Store App game to read a string of text that is sent from an Arduino Uno Rev3 over Bluetooth.
Unfortunately, the Windows Store App platform does not allow use of the System.IO.Ports namespace, so I am not sure how to get it to read the Bluetooth data.
Does anybody know how to read data from Bluetooth in a Windows Store App?
Any help is appreciated,
Thanks
If your HC-06 has COM-port capabilities, then you can use: [https://learn.microsoft.com/en-us/uwp/api/windows.devices.serialcommunication
there is a sample on Github:
[https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/SerialArduino
To find out if your device has COM-port capability on windows 10 go to settings/Bluetooth, pair device and go to more settings, tab com-ports and try to add port. If the list is empty unfortunately you can not use Windows.Devices.SerialCommunication APIs to communicate with an Arduino device.
Another way is to use the Bluetooth GATT protocol for communication.
It allows you to read and write data and subscribe to indicate and notify events.
For this there is also a sample on github:
[https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/BluetoothLEClient
It depends on your HC-06 what Gatt-services are available but there is most likely a service that can reed and write and get notifications.
Hope this can help you,
Groover
I ended up using a BLE solution based on this example:
https://www.simplicity.be/article/eddy-and-his-stones-diy-arduino-beacon-mobile-apps/

How to use minicom to communicate via sms with my usb modem?

I am using a huawei e355 usb modem on linux. I would like to send my usb modem texts from my cell phone and would want my usb modem to store it in some log file and may be communicate back. How do I go about doing this?
I went through a lot of articles but they were more about setting up the modem rather than using it in this particular way.
The best option for your needs would be Gammu. You can download it here http://wammu.eu/. You can also get it over your paket manager.
There is a python API available which makes interacting with texts easier.
For your needs I would recommend you run the gammu-sms daemon (gammu-smsd) and have a script which interacts with the contents of your sms. Check the RunOnReceive variable in the /etc/gammu-smsdrc file.
Try http://www.question-defense.com/2010/07/27/use-minicom-for-linux-modem-dialup-at-command-testing.
This allows you to send and receive texts from the modem; you can then set a callback for what to do once a text is received. I'm currently working on something along these lines, too, so I don't have a complete answer, but this should get you started.

How to send data to website from GPS device using gprs?

I had planned to do mini project. With GPS modem using GPRS(sim card with internet connection) and i need to send the data from GPS modem to a website. Is it possible? If so how it can be done? What are the languages needed? And also tell me about the best GPS device?
GPS devices communicate using a standard protocol called the NMEA protocol.
Assuming you are using .NET you can check out the Positioning code in the DotSpatial open source project: http://dotspatial.codeplex.com/
They've got classes to decode the NMEA strings and can probably do much of what you are describing out of the box.
As for the best GPS device, if you need standard resolutions, any GPS device will do. They can be had for 10's of dollars. We often use the USGlobalSat model BU-353, although this is USB so it may not work in your application.
For what you want u must do 2 things
1. Create a TCP Listener which will wait for info using TCP in same port and put into database
2. Create a web or windows application for you read from database.
i have done something like this in my recent project.
Regards.

Is there any telephony framework in linux?

I have a USB 3g modem, On windows it comes with software with which, I can use it for calling, sending and receiving SMS. Now, I want to write similar open source application in linux ( I also want to provide DTMF detection functionality ).
In windows, we can achieve this through TAPI, what are the similar technologies/frameworks in linux? Is there any similar opensource application ( I want to use as a reference )?
Yes it is is called ofono - project started by Intel/Nokia for Maemo/Moblin. From wikipedia:
oFono is a free, open source project for mobile telephony (GSM/UMTS)
applications. It uses high-level D-Bus API for use by telephony
applications. It uses 3GPP standard. It is free software released
under the terms of the GNU General Public License v2.
And Asterisk and Freeswitch are PBX software and probably are not what you are looking for.
Freeswitch
I'm not sure about a USB modem, but for VOIP telephony, Freeswitch is excellent. It uses a generic socket API to make it extensible via any number of languages. It can handle inbound and outbound calls, text-to-speech, voice recognition, etc.
My Vodafone Merlin card was recognized as a ttySx ant it was possible to interact by simple AT-commands like with old analog modems. There were also extra commands for reasing the sim card address book, sms and I believe also for sending sms.
We use sms tools: http://smstools3.kekekasvi.com/
The SMS Server Tools 3 is a SMS Gateway software which can send and receive short messages through GSM modems and mobile phones.
You can send short messages by simply storing text files into a special spool directory. The program monitors this directory and sends new files automatically. It also stores received short messages into another directory as text files. Binary messages (including Unicode text) are also supported, for example ring tone messages. It's also possible to send a WAP Push message to the WAP / MMS capable mobile phone.
The program can be run as a SMS daemon which can be started automatically when the operating system starts. High availability can be ensured by using multiple GSM devices (currently up to 64, this limit is easily changeable).
The program can run other external programs or scripts after events like reception of a new message, successful sending and also when the program detects a problem. These programs can inspect the related text files and perform automatic actions, for example storing information into a database (for example MySQL or Microsoft SQL Server), sending an automatic reply, forwarding messages via eMail (SMS to eMail gateway), ... and whatever you like."
Asterisk would be the usual suspect for what you want - http://www.asterisk.org/

Resources