Click here to Skip to main content
15,887,964 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello!
I just created a web page using html and javascript. The page centered on an image of a control panel with various buttons. Next to each button there are 2 rectangles the squares when crushing the button pass from red to green (on off). My question is this: can you control a serial machine through my web page? (If I press on the button on the site it is turned off and also on the serial machine it goes from on to off?

What I have tried:

nothing till now cause i dont now where and how to start so please help me
Posted
Updated 25-May-17 22:49pm

1 solution

Yes, if the serial machine is connected to the server. For instance, via the exec[^] call, PHP code can execute a program in order to start/stop the serial machine.
 
Share this answer
 
Comments
Member 13223963 26-May-17 4:52am    
I mean i have the machine, the rs232 is connected one part to the machine via serial and one part to my pc via ethernet. How can i connect the machine to the server?
i have no idea
thanks
CPallini 26-May-17 4:59am    
'and one part to my pc via ethernet'
Could you, please, elaborate?
Member 13223963 26-May-17 5:04am    
I have the rs232. it has got 2 wires one is a serial wire that is connected to the machine and the other wire is the ethernet wire that is connect to my pc's ethernet port
CPallini 26-May-17 5:09am    
So, do you have a serial/ethernet converter?
Member 13223963 26-May-17 5:12am    
exactly

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900