The content of the invention
(One)Goal of the invention:To solve above-mentioned problems of the prior art, it is an object of the invention to provide a kind of base
In the gateway translation-protocol teaching method and device of Internet of Things.
(Two)Technical scheme:In order to solve the above-mentioned technical problem, the technical program provides a kind of gateway based on Internet of Things
Translation-protocol tutoring system, including:
The multiple client being connected with server network, each client has been respectively coupled instructional device and and instructional device
Each industrial serial port module being adapted;
Client has the first Ethernet interface, and instructional device has mainboard, the second Ethernet interface is provided with the mainboard, teaches
Device is mutually adapted by the second Ethernet interface, the first Ethernet interface and connects the client;
Main control module, memory module, data are provided with the mainboard and transfer module and multiple industrial serial interfaces, each industrial serial ports
Interface is connected with corresponding industrial serial port module respectively;
The translation-protocol of each industrial serial ports and Ethernet is stored in standard handovers source code form in the memory module of mainboard, data
Transferring module is used to transfer the standard handovers source code;
Server or client are stored with industrial serial ports compiling teaching task, select industry to be connected according to the teaching task and go here and there
Mouth mold block, the industrial serial port module and mainboard are connected by data wire, transfer the corresponding standard handovers source of the industrial serial port module
Code simultaneously is converted into testing translation-protocol, by the client-side editing experiment translation-protocol, by the way that whether can passing for data verified
Send the experiment translation-protocol after checking editor whether correct.
It is preferred that, the conversion method of experiment translation-protocol includes transferring the selected corresponding standard handovers of industrial serial port module
Source code, is divided into many one's share of expenses for a joint undertaking codes according to compiling order by the standard handovers source code, deletes and experiment is generated after the subcode of part
Translation-protocol.
It is preferred that, experiment translation-protocol deletes 1 one's share of expenses for a joint undertaking code.
It is preferred that, mainboard also includes compiling inspection module, and compiling is first passed through by the experiment translation-protocol of client-side editing
Whether inspection module examines compiler language correct.
It is preferred that, typing module and display screen are included in industrial serial port module.
It is preferred that, checking data whether transmittable method includes, sent and tested to client by industrial serial port module
Demonstrate,prove data.
It is preferred that, checking data whether transmittable method includes, sent and tested to industrial serial port module by client
Demonstrate,prove data.
It is preferred that, checking data include data signal or Chinese character signal or switching signal.
It is preferred that, industrial serial port module includes RS232 interface modules, RS485 interface modules, CAN interface module, bluetooth and connect
Mouth mold block, RS422 interface modules, 1553B interface modules, gpib interface module and V.35 module.
A kind of gateway translation-protocol teaching method based on Internet of Things, comprises the following steps:
S1:The standard handovers source code of the translation-protocol of typing multiple industrial serial ports and Ethernet on the mainboard of instructional device;
S2:Compile teaching task in client downloads, the compiling teaching task train a certain industrial serial port module and Ethernet it
Between translation-protocol compiling;
S3:The industrial serial port module selected according to the compiling teaching task is by data wire by the industrial serial port module and mainboard
Industrial serial interface connection;
S4:The standard handovers source code of the translation-protocol of the module calls industrial serial ports and Ethernet is transferred by data, by this
Standard handovers source code is divided into many one's share of expenses for a joint undertaking codes according to compiling order, deletes generation experiment translation-protocol after the subcode of part;
S5:The experiment translation-protocol of above-mentioned missing subcode is supplemented by client-side editing;
S6:Examine the code of editor's supplement whether correct by compiling inspection module;
S7:By verify data whether whether experiment translation-protocol after transmittable certifying compilation correct.
It is preferred that, the method for typing standard handovers source code is on the mainboard of instructional device:Standard handovers source code is recorded
Enter on mainboard.
It is preferred that, the method for typing standard handovers source code is on the mainboard of instructional device:By standard handovers source code
It is downloaded to from industrial serial port module on mainboard.
It is preferred that, the method for typing standard handovers source code is on the mainboard of instructional device:By standard handovers source code
From client downloads to mainboard.
It is preferred that, deleting the method for part subcode includes:Delete 1 one's share of expenses for a joint undertaking code.
It is preferred that, deleting the method for part subcode includes:Delete whole subcodes.
It is preferred that, by verifying that the method that whether can transmit of data includes:Client sends checking data to industrial serial ports
Module, the display screen of industrial serial port module shows the signal of checking data, shows that checking data can transmit, otherwise, shows to test
Card data not can transmit.
It is preferred that, by verifying that the method that whether can transmit of data includes:Industrial serial port module sends checking data to visitor
Family end, client shows the signal of checking data, shows that checking data can transmit, otherwise, shows that checking data not can transmit.
(Three)Beneficial effect:The gateway translation-protocol instructional device that the present invention is provided has advantages below:Student can substep
The translation-protocol of the different industrial serial ports of compiling and Ethernet, substep grasps turning for different industrial serial ports and Ethernet stage by stage
Change agreement;The code of student's compiling can first verify that the correctness of language by compiling inspection module, to student's compiled code
It is more accurate to check;The translation-protocol of a variety of industrial serial port modules is can verify that by an instructional device;Can by a server
Investigate Grasping level of multiple students to translation-protocol;Instructional device, which has, to be learnt abundant in content, study schedule assurance science, learns
The advantages of practising efficiency high.
Embodiment
The present invention is described in further details with reference to preferred embodiment, elaborated in the following description more
Details to facilitate a thorough understanding of the present invention, still, the present invention obviously can be come with a variety of other modes different from this description
Implement, those skilled in the art can in the case of without prejudice to intension of the present invention according to practical situations make it is similar promote,
Deduce, therefore should not be limited the scope of the invention with the content of this specific embodiment.
Fig. 1 is the schematic diagram of embodiments of the invention, it should be noted that this accompanying drawing only as an example, be not according to
What the condition of equal proportion was drawn, and should not be construed as limiting in this, as the actual requirement protection domain to the present invention.
Student is investigated in laboratory environments in the teaching process of the learning and mastering of different gateway translation-protocols, it is existing
In technology, student is connected by compiling a certain gateway translation-protocol by the industrial serial ports of the gateway translation-protocol with client
Afterwards, verify whether student's compiled code is correct.The defect of prior art includes:It can not realize that student's compiling in once testing is more
Plant the teaching method of gateway translation-protocol;Debugging speed to student's compiled code is relatively slow, it is necessary to overall to student's compiled code
Debugging can just check the mistake in student's compiled code;Student could realize checking after must grasping whole gateway translation-protocols
Transmission of the data between industrial serial port module and client, students difficulty is larger, it is impossible to realize incremental study
Process;The preliminary examination of student's compiled code can not be realized;Each gateway translation-protocol is investigated, it is necessary to prepare a set of special equipment
Connection, causes instruction cost higher;Each gateway translation-protocol is investigated, it is necessary to prepare a set of special equipment operation, religion is caused
Learn extremely inefficient.
The present invention provides a kind of gateway translation-protocol tutoring system based on Internet of Things, including:
The multiple client being connected with server network, each client has been respectively coupled instructional device and and instructional device
Each industrial serial port module being adapted;
Client has the first Ethernet interface, and instructional device has mainboard, the second Ethernet interface is provided with the mainboard, teaches
Device is mutually adapted by the second Ethernet interface, the first Ethernet interface and connects the client;
Main control module, memory module, data are provided with the mainboard and transfer module and multiple industrial serial interfaces, each industrial serial ports
Interface is connected with corresponding industrial serial port module respectively;
Client can be equipment or the intelligent terminals such as computer, IPad, mobile phone, and client is used for student login, compiling translation-protocol
Code, the transmission for verifying data and display, the judgement of student performance, the statistics of school grade etc..
Instructional device is mainboard and the processor being arranged on mainboard, industrial serial interface, memory etc., instructional device,
Instructional device is that processor and memory are set in the core of the technical program, instructional device, and memory internal memory contains teaching and used
The standard source code of the translation-protocol of industrial serial ports and Ethernet, the standard source code can be stored in memory in itself, or
Person is downloaded by industrial serial port module, or by client downloads, the mainboard of instructional device can connect different industrial serial ports
Module and client, are connected with industrial serial port module by different industrial serial interfaces, pass through the second Ethernet interface and visitor
Family end is connected, can be in once teaching and a reality because the mainboard of instructional device can be connected from different industrial serial port modules
The grasp situation that student is realized to a variety of industrial serial ports and Ethernet translation-protocol is tested in room.
Industrial serial port module is the standard industry serial ports that market is sold.
The translation-protocol of each industrial serial ports and Ethernet is stored in standard handovers source code form in the memory module of mainboard,
Data, which transfer module, to be used to transfer the standard handovers source code;Data are transferred after module calls standard handovers source code, can be in master
The standard handovers source code is converted into editable experiment translation-protocol in the processor of plate;Or, data transfer module
Transfer after standard handovers source code, standard handovers source code is sent to client, by client by the standard handovers source code
It is converted into editable experiment translation-protocol.
Server or client are stored with industrial serial ports compiling teaching task, and work to be connected is selected according to the teaching task
Industry serial port module, the industrial serial port module and mainboard are connected by data wire, are transferred the corresponding standard of the industrial serial port module and are turned
Change source code and be converted into testing translation-protocol, by the client-side editing experiment translation-protocol, by whether verifying data
Whether the experiment translation-protocol after transmittable checking editor is correct.
The conversion method of experiment translation-protocol includes transferring the corresponding standard handovers source code of selected industrial serial port module,
The standard handovers source code is divided into many one's share of expenses for a joint undertaking codes according to compiling order, generation experiment conversion association after the subcode of part is deleted
View.Division methods to subcode are not limited to divide by compiling order.
Test translation-protocol and delete 1 one's share of expenses for a joint undertaking code.
Mainboard also includes compiling inspection module, and compiling inspection module is first passed through by the experiment translation-protocol of client-side editing
Examine compiler language whether correct.
Include typing module and display screen in industrial serial port module.
Checking data whether transmittable method includes, checking data are sent to client by industrial serial port module.
Checking data whether transmittable method includes, checking data are sent to industrial serial port module by client.
Verify that data include data signal or Chinese character signal or switching signal.
Industrial serial port module include RS232 interface modules, RS485 interface modules, CAN interface module, Bluetooth interface module,
RS422 interface modules, 1553B interface modules, gpib interface module and V.35 module.
A kind of gateway translation-protocol teaching method based on Internet of Things, comprises the following steps:
S1:The standard handovers source code of the translation-protocol of typing multiple industrial serial ports and Ethernet on the mainboard of instructional device;
S2:Compile teaching task in client downloads, the compiling teaching task train a certain industrial serial port module and Ethernet it
Between translation-protocol compiling;
S3:The industrial serial port module selected according to the compiling teaching task is by data wire by the industrial serial port module and mainboard
Industrial serial interface connection;
S4:The standard handovers source code of the translation-protocol of the module calls industrial serial ports and Ethernet is transferred by data, by this
Standard handovers source code is divided into many one's share of expenses for a joint undertaking codes according to compiling order, deletes generation experiment translation-protocol after the subcode of part;
S5:The experiment translation-protocol of above-mentioned missing subcode is supplemented by client-side editing;
S6:Examine the code of editor's supplement whether correct by compiling inspection module;
S7:By verify data whether whether experiment translation-protocol after transmittable certifying compilation correct.
The method of typing standard handovers source code is on the mainboard of instructional device:Standard handovers source code is logged in mainboard
On.
The method of typing standard handovers source code is on the mainboard of instructional device:Standard handovers source code is gone here and there from industry
Mouth mold block is downloaded on mainboard.
The method of typing standard handovers source code is on the mainboard of instructional device:By standard handovers source code from client
It is downloaded on mainboard.
Deleting the method for part subcode includes:Delete 1 one's share of expenses for a joint undertaking code.
Deleting the method for part subcode includes:Delete whole subcodes.
By verifying that the method that whether can transmit of data includes:Client sends checking data to industrial serial port module, work
The display screen of industry serial port module shows the signal of checking data, shows that checking data can transmit, and otherwise, shows checking data not
It is transmittable.
By verifying that the method that whether can transmit of data includes:Industrial serial port module sends checking data to client, visitor
Family end shows the signal of checking data, shows that checking data can transmit, otherwise, shows that checking data not can transmit.
The server of the present invention can include student information statistic unit, and the student information statistic unit is used for difference
A variety of industrial serial ports of student are recorded with the correct experiment translation-protocol of Ethernet translation-protocol, and to correct same serial ports
Experiment translation-protocol counted, be pushed to client, student is understood the different volumes of the experiment translation-protocol of same serial ports
Method is translated, the ability of client student compiling is improved.
The client of the present invention is additionally provided with printer, and the experiment translation-protocol of student's compiling can be printed directly, facilitate student
Retain the compiled code of oneself;Printer can be also used for printing the school report of student.
Above content is the explanation to the preferred embodiment of the invention, those skilled in the art can be helped more to fill
Ground is divided to understand the technical scheme of the invention.But, these embodiments are merely illustrative, it is impossible to assert the invention
Embodiment be only limitted to the explanations of these embodiments.The invention person of an ordinary skill in the technical field is come
Say, without departing from the concept of the premise of the invention, some simple deductions and conversion can also be made, should be all considered as belonging to
The protection domain of the invention.