Hiya, any help on Java applets and robustness much appreciated please...
I'm using an mbed with the following libraries: "EthernetNetIf.h", "HTTPServer.h", "RPCVariable.h", "SerialRPCInterface.h"
and I have a little Java applet running on the mbed, so I've got everything set up and I'm just using Net::poll(); in a 20ms loop. My RPC variables are working fine and my Java applet works when I type the IP address in a browser window, however, I have a few robustness issues...
1. Some browsers cause the mbed to crash completely, it just hangs as if it doesnt want to talk to the broswer. It doesnt seem to be specific to one browser, eg it works with Explorer on one PC, but doesnt on a different PC.
2. If two browsers try to access the mbed applet at the same time (which I don't actually need, but I do need to be robust against) the mbed hangs also.
I'm relatively new to Java, so maybe there is some way to improve the robustness or reject an attempted access if the applet is already in use, or maybe there is some simple mbed technique which will mean it only operates on healthy comms, so avoiding the hang? Its pretty important to fix this as I'm working on a remotely controlled system, and if the thing hangs then that means an engineer has to physically go to reset the device. Maybe Java isn't the most robust method and I should be using something else?
Any help much appreciated, cheers, Rob.
Hiya, any help on Java applets and robustness much appreciated please...
I'm using an mbed with the following libraries: "EthernetNetIf.h", "HTTPServer.h", "RPCVariable.h", "SerialRPCInterface.h" and I have a little Java applet running on the mbed, so I've got everything set up and I'm just using Net::poll(); in a 20ms loop. My RPC variables are working fine and my Java applet works when I type the IP address in a browser window, however, I have a few robustness issues...
1. Some browsers cause the mbed to crash completely, it just hangs as if it doesnt want to talk to the broswer. It doesnt seem to be specific to one browser, eg it works with Explorer on one PC, but doesnt on a different PC.
2. If two browsers try to access the mbed applet at the same time (which I don't actually need, but I do need to be robust against) the mbed hangs also.
I'm relatively new to Java, so maybe there is some way to improve the robustness or reject an attempted access if the applet is already in use, or maybe there is some simple mbed technique which will mean it only operates on healthy comms, so avoiding the hang? Its pretty important to fix this as I'm working on a remotely controlled system, and if the thing hangs then that means an engineer has to physically go to reset the device. Maybe Java isn't the most robust method and I should be using something else?
Any help much appreciated, cheers, Rob.