Creating an SMS server on the PC - java-me

I am trying to create an application that would act as an SMS server between multiple virtual instances of Java ME.
I have searched online and have not found anything that dealt with this issue.
This is not to be confused with the link attached that was discussed on stack overflow before.
J2ME SMS Server on mobile phone
I am hoping to create the SMS Server to act as a tester for an actual SMS gateway in a production environment.
Any help will be appreciated

It is definitely possible with j2me
for testing you have to create two application.
In which one application will send sms to a phone no on predefine port and
the receiver application will listen on that port for incoming sms
go through this sample code it will help you.

Related

Web Sockets communication using nodejs for connection between a web app and a charging device

I want to create an application in which my web app will work as remote , a node based web socket server will work as CMS(central management system) and an electric vehicle charger which will be my device. I want help in how to send instruction to my device according to the commands i receive from it.
You can use socket.io on your server, it is easy to use and has a socket client implementation in almost languages that exist.

Node.js Bot Framework linux hosting machine traffic setup

I have created the very basic bot using the Node.js option as is in the steps here. It is running and the Bot Channels appID and Pass from Azure is properly in the code.
I have also (of course) filled the messaging endpoint properly.
Yet when I try to send a message from the webchat the bot doesn't receive.
So obviously, I have to set the machine networking somehow, I have already allowed the port 8080 but that didn't help. What else should I do?
I didn't find any documentation about how to set the machine hosting Microsoft Bot Framework bot, else I wouldn't be asking here. Any ideas? I know most of the people use their own hosting so someone must know how to get it connected.
I have had the Restify setup wrong. There are no examples as to how to setup restify for the bot in the Microsoft documentation.

How to receive sms messages on raspberry pi

I recently set up a Twilio account and got a registered Twilio phone number. Is there a way that I can get those messages on my raspberry pi? My intent is to display those messages on a LED screen.
You'd have to either expose the RasPi to the public internet (so Twilio's SMS callback could reach it), or use some proxy service in between.
The proxy would capture the inbound callback, then the RasPi could either poll, or use some better method, to check for new messages (meaning, the RasPi does not have to be on the public internet).
Temboo also has a set of tools that make it easier to build IoT applications that interact with APIs. I believe they can act like the proxy I describe.

SMS Receiving Port in J2ME Mobile Application

Can you please explain following doubts?
When my j2me application is listening for sms on specific port, will it run as a server or client? Because if the two application run on same port, who will receive the sms?
And please suggest me, which port I should use to receive the sms, so that I would not loose any sms which is supposed to receive. Actually I have seen the answer for this same question. But I have not got the clear idea. Please suggest me on this.
I am little bit confused. I think when your first application is listening a particular port ( suppose 5001 ) then the other application can not listen it. It might throw error.
for the second question please check this url. This Url will tell you which port you should not listen for your development purpose.

J2ME SMS Server on mobile phone

Is it possible to have a j2me app on a mobile to act as a "SMS gateway" that will handle incommming messages, do a query on a database via GPRS and reply the user back?
This is entirely possible on any J2ME handset that supports JSR 120 (i.e.: most of them). However as Wonil said, you can't just process ANY incoming SMS message. It has to be an SMS sent to a port number on which your app is listening (using a server connection as Wonil explained).
It wouldn't be automatic unless the app was signed (as confirmation is generally required for sending SMS and network access).
Another approach is to tether your phone to a PC using a USB cable/bluetooth/IR, open a serial connection using the phone as a modem, and write a program to listen for new SMSs using AT+CGML as described here. This would allow ANY incoming SMS to be processed (no port number required), and without any annoying confirmation prompts.
HTH
I think you should check about JSR-120 documentation to confirm.
But, in my thought it might be impossible. If you want to receive message by using JSR-120, you should assign specific end point(port number) to listen as like below:
serverConn = (MessageConnection)Connector.open("sms://:5000");
So, you can't catch all SMS messages. It can't be a gateway then.
It probably depends if your phone supports it. Have a look at the J2ME Wireless Messaging API:
The Wireless Messaging API (WMA) is an optional package for the Java 2
Platform, Mobile Edition (J2ME) that
provides platform-independent access
to wireless communication resources
like Short Message Service (SMS).
http://java.sun.com/products/wma/overview.html
This article has some examples which can probably serve as a starting point for what you want to achieve: http://www.ibm.com/developerworks/wireless/library/wi-extendj2me/
Edit: as others have pointed out, you might not be able to receive all messages.

Resources