-->
Page 1 of 1

PC Virtual COM to Wifi to esp board ..

PostPosted: Thu Mar 31, 2016 4:34 am
by darthvader
Hello :)
I just get a espduino board some days ago and have test lots of examples , it's very great ;)
But I'm facing a problem and no examples in nodemcu , arduino , esp-link was useful to resolve it ...
That's why i prefer ask here before my last brain cell pops :D
What i want do is :

Create a virtual COM port on my PC with "HW Virtual Serial Port"
Connect this port (on wifi) to the IP from the esp board on port 23 (all other are ok too)
Put serial data (40 x 16bits values) to the port and work with this data on the esp board directly (no other CPU , arduino , stm ....)
UP to here everything work perfect ...
The example that was approaching most of what i wanted to do is the "WiFiWebServer" on Arduino examples.
Problem here is that where i send a command , it need like 1 or 2 sec on the esp board to do something.
What is needed is like real time , this example is good for sensor that need to be read once every minute or so but not for real time control of motors,servos etc ....
The program to control the virtual com port is not a web page , then it's better if i don't use http stuff who take more RAM and is useless for this work.
So ... it was long ;) ...
Has someone do something like i need before that i can see the example and adapt the code to mine ?

Cheers.

Re: PC Virtual COM to Wifi to esp board ..

PostPosted: Thu Mar 31, 2016 8:35 am
by villTech
you can try to use TCP/UDP connection or websocket.
you should be able to find application examples in the internet

Re: PC Virtual COM to Wifi to esp board ..

PostPosted: Thu Mar 31, 2016 10:41 am
by darthvader
Thanks ;)
I will try to find out with this info !

Cheers.