Well in for a penny in for a pound.bk40, like I said i have to pursue this course for now. The web page is a simple http on port 80. nothing special. the developer of the pc app wants to get the data from the OPC server he has implemented. I have told him 20ms isn't going to happen that i am going to send the data to OPC by exception with dither. So he gets best effort data really.
Would be interested to see a diagram of data flow. Very hard to understand from textual descriptions.Moving ahead one step at a time.
So far i have proved
Proved it is feasible to do on a Teensy...
- TCP
- framing
- queueing
- bridge/adapter/client flow
Still need message construction and the full implementation of the open62541.
shawn, will it make a difference? seems to work but i will change that if it is causing a problem?I didn't look too closely at the code, but I did notice that you're specifying a MAC address. You don't need to do that with the QNEthernet library; it reads the internal one for you.
Thanks I changed that! Let me know if you see anything else. I have integrated the OPC into a larger Data acquisition program and am getting good results so it looks like this can be done on a teensy!When I build a project, I make an effort to "make it robust and correct" instead of "just get it to work". (I don't mean for this to sound like a criticism; it isn't.)
The disadvantage of using a self-selected MAC address (other than a "locally administered address") is that there's a small possibility of there being a collision if another device happens to use the MAC address. Manufacturers do the work of obtaining these addresses and keeping them unique so you don't have to.
Sure, your setup is likely to work, but if you put more than one of these devices on, now you're responsible for making everything unique yourself.
Even if you want to specify your own MAC address, may I suggest reading it from the Teensy's MAC address registers and using that instead? But if you're going to do that, why not use the code that's built into the library?
Hope those thoughts help.