Using B/S development, has now realize the serial communication, the next is mainly how to implement the run the script and interaction with a serial port for data, ask the great spirit guide
CodePudding user response:
Is a Browser that connects to a serial port, or the Server side serial connection?
Server connection serial ports, better implementation, relevant jar package tool,
Browser side connect a serial port, can't do without browser plug-in installation, since installing the serial driver plug-in, so naturally exposed to you in the form of JS interface allows you to access a serial port, all in all, more complicated than the service side even the serial port, and security also have a poor sense of direction.
CodePudding user response:
According to your title and a description of the first floor,
Mean you already use Java to realize serial communication?
The question now is how to use Java calls JS script?
CodePudding user response:
refer to the second floor sunyiz response: according to your title and a description of the first floor, Mean you already use Java to realize serial communication? The question now is how to use Java calls JS script? Right, has implemented a serial port communication, also can read serial data, is how to use JAVA calls JS or interact with the serial port VBS script CodePudding user response:
Using the websocket CodePudding user response:
The reference 3 floor 97 s response: right, has implemented a serial port communication, also can read serial data, is how to use JAVA calls JS or VBS script and serial interface interaction Java calls JS script is very simple, have the native implementation: a ScriptEngine Baidu once many examples CodePudding user response:
About your actual scene, perhaps your idea is wrong CodePudding user response:
refer to stumble into a man of all ages 6 floor response: about your actual scene, perhaps your idea is wrong Is service machine with computer connection, the need for bottoms production test the script for the final inspection and a series of operations, needs to be saved from the service of all electricity to the end of the final inspection on the log, at the time of running script, opportunities for service to the serial port to send markers, and then after a serial port receives the marker to respond, and then continue to go down, function is similar to ScureCRT super terminal of the function similar to run the script, don't know that will not clear, hope the great god give directions, thank you CodePudding user response:
reference 7 floor 97 s response: Quote: refer to the sixth floor stumble into a man of all ages reply: about your actual scene, perhaps your idea is wrong Is service machine with computer connection, the need for bottoms production test the script for the final inspection and a series of operations, needs to be saved from the service of all electricity to the end of the final inspection on the log, at the time of running script, opportunities for service to the serial port to send markers, and then after a serial port receives the marker to respond, and then continue to go down, function is similar to ScureCRT super terminal of the function similar to run the script, don't know that will not clear, hope great god give directions, thank you Really don't understand the return true not understand CodePudding user response:
reference 7 floor 97 s response: Quote: refer to the sixth floor stumble into a man of all ages reply: about your actual scene, perhaps your idea is wrong Is service machine with computer connection, the need for bottoms production test the script for the final inspection and a series of operations, needs to be saved from the service of all electricity to the end of the final inspection on the log, at the time of running script, opportunities for service to the serial port to send markers, and then after a serial port receives the marker to respond, and then continue to go down, function is similar to ScureCRT super terminal of the function similar to run the script, don't know that will not clear, hope great god give directions, thank you Really don't understand the return true not understand CodePudding user response:
refer to stumble into a man of all ages, 9/f, reply: Quote: refer to 7th floor 97 s response: Quote: refer to the sixth floor stumble into a man of all ages reply: about your actual scene, perhaps your idea is wrong Is service machine with computer connection, the need for bottoms production test the script for the final inspection and a series of operations, needs to be saved from the service of all electricity to the end of the final inspection on the log, at the time of running script, opportunities for service to the serial port to send markers, and then after a serial port receives the marker to respond, and then continue to go down, function is similar to ScureCRT super terminal of the function similar to run the script, don't know that will not clear, hope great god give directions, thank you Really don't understand the return true not understand Because involves production process problem, want to have contact with production line, estimate can know what I'm saying ha ha ha CodePudding user response:
references to the tenth floor 97 s response: Quote: refer to stumble into a man of all ages, 9/f, reply: Quote: refer to 7th floor 97 s response: Quote: refer to the sixth floor stumble into a man of all ages reply: about your actual scene, perhaps your idea is wrong Is service machine with computer connection, the need for bottoms production test the script for the final inspection and a series of operations, needs to be saved from the service of all electricity to the end of the final inspection on the log, at the time of running script, opportunities for service to the serial port to send markers, and then after a serial port receives the marker to respond, and then continue to go down, function is similar to ScureCRT super terminal of the function similar to run the script, don't know that will not clear, hope great god give directions, thank you Really don't understand the return true not understand Because involves production process problem, want to have contact with production line, estimate can know what I'm saying ha ha ha Look not to understand because you don't describe the connection mode, topology relationship Control flow and data flow is also not clear, people - browser - js - HTTP server - (PC? If there were any) - Java interface module - a serial port - industrial equipment, what data