I am building a web application using LAMP.
For initial trial, i want to communicate only to Modbus devices.
My basic requirement is to have live data update on internet and the data come from modbus devices, are stored in linux machine in MySQL DB, and are published to web through PHP and apache.
Two questions:
- Should I write Modbus driver and compile a new kernel, and then a user application I should create to have the modbus data into MySQL DB ??
or
- Should I have some PHP libray for Modbus, so that I can readily put/get data to/from Modbus devices from/to MySQL DB ???
So I don’t have an answer to your question per say, but I have worked with Modbus devices and interfaces, most often in my field associated with Computer Room Air Conditioners (CRAC’s). Most often I am using a protocol converter going from LON to Modbus or BACnet to Modbus and on one Job Modbus to Web, but all was done from small converters.
Field Server is one manufacturer that comes to mind, though they did not make the web interface I used. Which brings up the next question, how are you going from a PC program in Linux to a Modbus device or interface in the first place? Are you wanting to sell this or give it away? If you are selling it, I would think Binary Driver compiled with the kernel is the way to go. If you are making it open Source, a PHP Library sounds right to me, but really I am only an expert at using protocol converters made by others.
Thank You,