I am building a project with asp.net that connects to Arduino Uno. I am connecting some magnetic sensors to the Arduino and I want the results of the sensors to be updated in real time within my database in the project at asp.net.
So far everything worked fine.
My college gave me a server where I was supposed to set up my site and put up the project.
When I work on my computer (regardless of the server) I see that the Arduino is connected to COM3. But when I connect to the server the Arduino does not appear connected (I guess because the Arduino is connected to my computer and not to the server computer).
I know there is a possibility to buy an Ethernet shield / wifi shield but I want to avoid it.
Is there another possibility to transfer the data received from the Arduino in my computer, to the database on the server?
I am building a project with asp.net that connects to Arduino Uno. I am connecting some magnetic sensors to the Arduino and I want the results of the sensors to be updated in real time within my database in the project at asp.net.
So far everything worked fine.
My college gave me a server where I was supposed to set up my site and put up the project.
When I work on my computer (regardless of the server) I see that the Arduino is connected to COM3. But when I connect to the server the Arduino does not appear connected (I guess because the Arduino is connected to my computer and not to the server computer).
I know there is a possibility to buy an Ethernet shield / wifi shield but I want to avoid it.
Is there another possibility to transfer the data received from the Arduino in my computer, to the database on the server?
I am building a project with asp.net that connects to Arduino Uno. I am connecting some magnetic sensors to the Arduino and I want the results of the sensors to be updated in real time within my database in the project at asp.net.
So far everything worked fine.
My college gave me a server where I was supposed to set up my site and put up the project.
When I work on my computer (regardless of the server) I see that the Arduino is connected to COM3. But when I connect to the server the Arduino does not appear connected (I guess because the Arduino is connected to my computer and not to the server computer).
I know there is a possibility to buy an Ethernet shield / wifi shield but I want to avoid it.
Is there another possibility to transfer the data received from the Arduino in my computer, to the database on the server?
Tamirh98:
When I work on my computer (regardless of the server) I see that the Arduino is connected to COM3. But when I connect to the server the Arduino does not appear connected (I guess because the Arduino is connected to my computer and not to the server computer).
Your requirement is not clear.
Do you want to connect the Arduino to a local PC with a USB cable and have a program on that PC gather data from the Arduino and send the data to the server? That is perfectly possible.
OR do you want the Arduino to send the data to the server independently of the local PC. To do that you need some means for the Arduino to connect to the internet and an Ethernet shield is one option. WiFi might be another option with a cheap ESP8266 module attached to the Arduino.
Do you want to connect the Arduino to a local PC with a USB cable and have a program on that PC gather data from the Arduino and send the data to the server? That is perfectly possible.
Thank you for the answer!
not exactly.
What I want is to do is to connect the Arduino to a local PC with a USB cable and have a program on The server , and then add the data to the server DB.
Tamirh98:
What I want is to do is to connect the Arduino to a local PC with a USB cable and have a program on The server , and then add the data to the server DB.
I presume the server is NOT running on the local PC?
You seem to be assuming that the Arduino can magically communicate with a server just by being connected to the USB port on a local PC. That can't happen. The local PC must have a program that communicates with the Arduino and also with the server.
if the server has a COM port you could use SoftwareSerial on the UNO to communicate with the server
the server COM port would probably be RS232 therefor you would require a Arduino RS232 shield to convert the TTL signals to RS232