I need to build service send/receive sms by asp.net. I find out some website or company provider that service. But it's not properly for my job. My problems are: how do i build my own service to do that? what i need to do? SMS gateway is a solution?
You may need the following.
Web service to allow other application to send their messages along
with the destination number. Which would put the message in database.
Windows application could be a windows service to get the messages
from database and send them using attached gsm modem. This
codeproject article gives you idea to start communication
with gsm modems using serial port.
Related
I've created an application using SignalR to send notifications to machines.
Now, if the machine is online, notification is being sent. But if machine is offline, it just gets dropped and won't be sent again.
I am wondering if Azure Service Bus can be used for this purpose wherein such notifications which are dropped from offline machines can be stored in Azure Service Bus and then later on when machine comes online then it will receive this notifications.
Is something like this possible? Or any other approach which can be used for this purpose?
Yes, service bus is one of the possible solutions as Service Bus is used to decouple applications and acts as messaging broker where if receiver application is done then still the sender application can send the message to the service bus. Once your receiver application is up now, they can start receiving the message. To learn more about service bus and its features you start with this document.
I have my own application. This application use the zigbee2mqtt service running on the server.
I want to add homeassistant on the same server.
The server is a Raspberry with a zigbee USB stick connected.
However, it seems that using both in the same time doesn't work.
Either it works for my application, either it works for home assistant.
Someone has an idea how to deal with it ?
Does I need to buy an other zigbee USB stick (one for my own application, and one for Home assistant ?)
Thanks
The solution found is the following :
Use the homeassistant (supervisor) to have the feature to add the zigbee2mqtt add-on (here).
Once it's successfully configured, the zigbee2mqtt service run in home assistant.
And you can send mqtt messages to the service from homeassistant (via the existing integration). Also, you can send mqtt messages from my own application.
It works !
short question : How can I host an MQTT server on my remote Ubuntu 16 server while at the same time hosting an HTTP server that will be using the MQTT data ?
true question : I want to build an IoT system that will be MONITORED and CONTROLLED by ESP32, which will SEND FEEDBACK and ACCEPT COMMANDS respectively from a remote server (maybe LAMP ?). I also want the user to log-in in a website hosted on this remote server, where s/he can monitor any sensor values or send commands (e.g. turning a led on or off).
So what's the way to go here?
I was adviced to go with MQTT but then the above problem arised.
what I've found : I 've found that using Mosquitto MQTT, I may be able to serve a website using websockets. But I prefer a more scalable HTTPS approach. That is, I intend to have a database linked with my site and running my PHP scripts.
I'm not that experienced, so please don't take anything for granted :)
MQTT uses TCP connection and follows publish/subscribe API model where as the web(http) follows Restful API model(Create,read,update,delete). If you want to stick with MQTT then you should use SAAS service like enterprise MQTT from HIVE which provide this integrability but will charge some fees and in return, they will provide you with an account and a dashboard for all your devices. Otherwise, you can try to make your own middleware which can integrate MQTT with web services .
Another thing I would recommend is CoAP which is also an M2M protocol but follows Restful API model and UDP connection. It has direct forward proxy to convert coap packets to https packets and vice versa.
In MQTT you have a central server(Broker) to which the nodes send their data and fetch their required data through topic filters.
In CoAP each device having some data to share becomes a server and the other device interested in it's data becomes a client and sends a GET request to the respective server to get its data. Similarly a PUT request along with a payload from a client would update the value at the server.
You really should not be looking to combine the MQTT broker with a HTTP server, especially if you intent the HTTP Server to actually be an application server (Running back end logic e.g. PHP). These are 2 totally separate systems. There is nothing to stop your application logic connecting to the broker as a client.
If you intend to use MQTT over WebSockets you can use something link nginx to proxy the WebSockets connection to the broker so it can sit behind the same logical HTTP/HTTPS address.
I want to send sms through asp.net web page. Could any body give me code (vb.net) and some info. how to handle this.
Thanks
Click Here for Example on Codeproject
Itdepends how to send SMS.. Two ways.. SMPP gateway or HTTP Gateway.. Depends how you want to send & you is smpp provider
If you are and end application you can connect smpp server (which costs less for bulk sms provider or GSM service provider)
So you become SMPP (or esme) client which connects to SMPP (or esme) Server.
SMPP/ESME/HTTP client you can code or can download for free.. but the SMPP/ESME/HTTP server may cost you for some bucks for bulk sms
I am working on a way to send commands to an Arduino board from a web site. The Arduino board is connected to the computer via a USB port (a COM port).
I have managed to connect and control the board using a VB.NET program. I also wrote a VB.NET class that can instantiate a COM connection and send and receive messages.
My next step is to basically create a program that will act as a proxy between my web server (IIS 7 running on Windows Vista) and the Arduino board. When a user gets to my ASP.NET page, the page will then send a command to the proxy to open the COM connection. When the connection is open and ready then I can send commands to the proxy. In turn, the proxy will send these commands to the board and listen for the responses it receives from the board. The proxy will then pass these messages back to the ASP.NET page.
I have several questions I hope the group can help me answer...
Am I in the right direction with this approach? Are there easier or more efficient ways of doing this?
The main issue I see occurring is that if a second user opens the web page and tries to open the COM port, there will be an error. Will this cause the first connection to fail? I guess I can first check if the port is already in use and give the second user a message.
Are there any other potential challenges I am missing or not seeing?
Rather than storing the connecting object in the HttpSessionState, store it in the HttpApplicationState so that it is accessible to all users.
You'll need to be careful to synchronize access to the COM port to avoid the serial communication initiated by individual HTTP requests from getting mixed up and confusing the Arduino.