Of course, you could also develop a component for every browser in the market. However, that doesn't mean you necessary need to use an ActiveX component and stay stuck with Internet Explorer. One thing for sure, you will never be able to communicate with the local machine hardware without installing some special binaries (and run it with appropriate privileges) on the local machine. Perhaps they didn't want the end user interfacing directly with the database? Perhaps "browser based" was a new buzzword back then? I, personally, have no problem with a desktop app (as I find them easier to implement), but maybe we should consider remaining browser based? (besides, I can handle the desktop app myself it's only browser based reading from the COM port that leads me to offer a bonus -)
I don't know as I wasn't around when the original project was planned (and the company which designed it is now defunct). EuroMicelli said "I'm going to assume that you have a very good reason to run your app from a web browser, instead of a native app". Otoh, since it is new from the ground up, there is a good chance that it does not).ĭid HTML 5 offer any new possibilities? What about products like Cordova?Ĭould I add a Raspberry Pi to do the reading over serial port & and have the browser app communicate with that over a RESTful service? As Edge is also a MS product, it might support Active X - I have not tried. As of Feb 2107, MS IE has 3-4% and Edge has 1-2%. And this solution seems only to work in MS IE, which now has a market share of about 26% (it had, in 2013, when I last updated this question.
Is there any "better" way that I could implement this?įor instance, technology has move on in the last ten years.
#Web serial port communication arduino Pc
I have to re-implement an existing system from scratch.Īt one point, when the user navigates to a certain web page the server must read data from the user's serial port.Ĭurrently, the web page has an ActiveX control when the page is loaded the ActiveX control calls into a COM DLL on the user's PC which reads data from the serial port.