Summary of the invention
In view of this, the object of the present invention is to provide a kind of physique test communication gate and communication means, so that can identifying, the physique test analytical system communicates with the physique test data that physique test instrument that agreement is different is uploaded, thereby solve because the physique test data analysis system can not be identified the physique test data that physique test instrument that agreement is different is uploaded, the problem of the inadequate science of exercise prescription of formulating for the tester caused of communicating with.
For achieving the above object, the invention provides following technical scheme:
A kind of physique test communication gate comprises:
Receiver module is used for, and receives the physique test packet that all types of physique test instrument send;
Processing module is used for, according to the Packet Filtering rule chain of predefined described physique test instrument, each physique test packet is carried out to verification, and while in the packet header of described physique test packet, meeting filtering rule, unpacked processing, obtain the data message in each described physique test packet, and data interaction protocol format according to the rules, each described data message is carried out to the protocol conversion encapsulation, obtain the pre-transmission packet of regulation protocol format, and described pre-transmission packet is joined to data transmission both-end round-robin queue;
Wherein, there is at least one filtering rule in described Packet Filtering rule chain; Described regulation protocol format is the discernible form of physique test data analysis system;
Sending module is used for, and described data are sent to pre-transmission Packet Generation in both-end round-robin queue to described physique test data analysis system.
Preferably, described receiver module comprises:
Radio receiving unit is used for, and for described all types of physique test instrument provide the wireless network access of 2.4GHZ or 5GHZ, receives the physique test packet that described all types of physique test instrument sends by described wireless network.
Preferably, described radio receiving unit comprises:
Whether the monitoring subelement is used for, monitor described all types of physique test instrument and send and set up the data communication connection request;
The address assignment subelement is used for, and is the physique test distributing IP address in the wireless network of described 2.4GHZ or 5GHZ.
Preferably, described sending module comprises:
The 3G transmitting element is used for, and utilizes 3G network to send described pre-transmission packet to described physique test data analysis system;
The GPRS transmitting element is used for, and utilizes the 2G network to send described pre-transmission packet to described physique test data analysis system.
Preferably, described processing module comprises:
Verification unit is used for, and according to the legitimacy of described each physique test packet of described Packet Filtering rule chain verification, and whether described each physique test packet of verification is complete;
Unwrapper unit is used for, and when described each physique test packet is legal and when complete, described each physique test packet is unpacked respectively to processing, obtains the data message in each described physique test packet;
Packet element is used for, and according to the data interaction protocol format of described regulation, described each data message is carried out to the protocol conversion encapsulation, obtains the pre-transmission packet of regulation protocol format;
Memory cell is used for, and Packet Filtering rule chain and the data of storing described physique test instrument send both-end round-robin queue.
Preferably, described gateway also comprises:
Available electricity module is used for, and utilizing the lithium battery power supply system is described receiver module, processing module and sending module power supply;
Or main supply module is used for, utilizing civil power is described receiver module, processing module and sending module power supply;
Or, available electricity module, main supply module, detection module and handover module;
Described detection module is used for, and detects whether fault of described main supply module;
Described handover module is used for, and when described main supply module fault, being switched to available electricity module is described receiver module, processing module and sending module power supply.
Preferably, described gateway also comprises:
Serial port module is used for, and is connected communication with computer, so that the user manages and the parameter setting described sending module, processing module and receiver module by described computer.
Preferably, described gateway also comprises:
Web server is used for, and dynamically to the user, provides the page of monitoring and managing described sending module, processing module and receiver module;
Wherein, the information that dynamically shows described sending module, processing module and receiver module on the described page.
Preferably, described gateway also comprises:
User's operational module is used for, and the operation interface of monitoring and managing the parameters in described sending module, processing module and receiver module is provided to the user.
A kind of communication means comprises:
Receive the physique test packet that all types of physique test instrument send;
According to the Packet Filtering rule chain of predefined described physique test instrument, each physique test packet is carried out to legitimacy and completeness check;
Wherein, there is at least one filtering rule in described Packet Filtering rule chain;
When by described legitimacy and completeness check, described packet is unpacked, obtain the data message in each described physique test packet, and data interaction protocol format according to the rules, each described data message is carried out to the protocol conversion encapsulation, obtain the pre-transmission packet of regulation protocol format, and described pre-transmission packet is joined to data transmission both-end round-robin queue;
Described regulation protocol format is the discernible form of physique test data analysis system;
Described data are sent to pre-transmission Packet Generation in both-end round-robin queue to described physique test data analysis system.
By above-mentioned technical scheme, can be found out, in embodiments of the present invention, at first receiver module can receive the physique test packet that all types of physique test instrument send; Then processing module can be carried out respectively verification to each physique test packet according to the Packet Filtering rule chain of predefined all types of physique test instrument, and while in the packet header of physique test packet, meeting filtering rule, unpacked processing, obtain the data message in each physique test packet, and protocol format according to the rules, each data message is carried out to the protocol conversion encapsulation, obtain the pre-transmission packet of regulation protocol format; Wherein, the regulation protocol format is the discernible form of physique test data analysis system; Final sending module can be by the pre-transmission Packet Generation of regulation protocol format to the physique test data analysis system.Therefore, physique test communication gate of the present invention can the communication protocol from the physique test data analysis system is different the physique test packet that sends of physique test instrument, be converted to the discernible form of physique test data analysis system, send in advance packet; Therefore the physique test data analysis system certainly will be able to be identified the pre-data message sent in packet; Thereby solve the poor problem of system compatibility that each physique test instrument communication protocol disunity causes, make system extension be more prone to, reduce system integration cost, and then make the drawn Comprehensive analysis results of physique test data analysis system more accurate, the evaluation that tester's health status is made is more objective, finally makes the exercise prescription formulated for tester science more.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
The invention discloses a kind of physique test communication gate, as shown in Figure 1, this gateway at least comprises:
Receiver module 11 for, receive the physique test packet that all types of physique test instrument send;
Wherein, all types of physique test instrument can adopt transmission control protocol/internet protocol TCP/IP(Transmission Control Protocol/Internet Protocol) communication mode, transmit the physique test packet to receiver module 11;
Concrete, as shown in Figure 2, receiver module 11 can comprise:
Radio receiving unit 21 for, for described all types of physique test instrument provide the wireless network access of 2.4GHZ or 5GHZ, receive the physique test packet that described all types of physique test instrument sends by described wireless network.
More specifically, radio receiving unit 21 can be all types of physique test instrument wireless access point AP (Access Point) service is provided, and provides the two-way of 2.4GHZ and 5GHZ to cover and access, to facilitate all types of physique test instrument accesses.
Processing module 12 for, according to the Packet Filtering rule chain of predefined all types of physique test instrument, each physique test packet is carried out respectively to verification, and while in the packet header of physique test packet, meeting filtering rule, unpacked processing, obtain the data message in each physique test packet, and protocol format, carry out the protocol conversion encapsulation to each data message according to the rules, obtain the pre-transmission packet of regulation protocol format; Wherein, there is at least one filtering rule in the Packet Filtering rule chain, and the regulation protocol format is the discernible form of physique test data analysis system;
Concrete, the function of processing module 12 can be realized by central processor CPU (Central Processing Unit) and memory;
More specifically, still referring to Fig. 2, processing module 12 can comprise:
Verification unit 22 for, according to the legitimacy of each physique test packet of Packet Filtering chain verification, and check each physique test packet whether complete;
Unwrapper unit 23 for, when each physique test packet is legal and when complete, each physique test packet is unpacked respectively to processing, obtain the data message in each physique test packet;
Packet element 24 for, data interaction protocol format according to the rules, carry out the protocol conversion encapsulation to each data message, obtains the pre-transmission packet of regulation protocol format;
Memory cell 25 for, store the Packet Filtering rule chain of described physique test instrument and data and send both-end round-robin queue.
Wherein, the function of memory cell 25 can be realized by read only memory ROM (Read-Only Memory), random access memory ram (Random Access Memory) and flash memory flash memory, not repeat them here.
Sending module 13 for, data are sent to pre-transmission Packet Generation in both-end round-robin queue to the physique test data analysis system.
Wherein, sending module 13 can adopt the communication mode of TCP/IP, by above-mentioned pre-transmission Packet Generation to the physique test data analysis system.
Concrete, still referring to Fig. 2, sending module 13 can comprise:
3G transmitting element 26 for, utilize 3G network to send the pre-packet that sends to the physique test data analysis system;
GPRS transmitting element 27 for, utilize the 2G network to send the pre-packet that sends to the physique test data analysis system.
Therefore in embodiments of the present invention, at first receiver module 11 can receive the physique test packet that all types of physique test instrument send; Then processing module 12 can be carried out respectively verification to each physique test packet according to the Packet Filtering rule chain of predefined all types of physique test instrument, and while in the packet header of physique test packet, meeting filtering rule, unpacked processing, obtain the data message in each physique test packet, and protocol format according to the rules, each data message is carried out to the protocol conversion encapsulation, obtain the pre-transmission packet of regulation protocol format; Wherein, the regulation protocol format is the discernible form of physique test data analysis system; Final sending module 13 can be by the pre-transmission Packet Generation of regulation protocol format to the physique test data analysis system.Therefore, physique test communication gate of the present invention can the communication protocol from the physique test data analysis system is different the physique test packet that sends of physique test instrument, be converted to the discernible form of physique test data analysis system, send in advance packet; Therefore the physique test data analysis system certainly will be able to be identified the pre-data message sent in packet; Thereby solve the poor problem of system compatibility that each physique test instrument communication protocol disunity causes, make system extension be more prone to, reduce system integration cost, and then make the drawn Comprehensive analysis results of physique test data analysis system more accurate, the evaluation that tester's health status is made is more objective, finally makes the exercise prescription formulated for tester science more.
In other embodiment of the present invention, still can be referring to Fig. 3, the gateway in above-mentioned all embodiment also can comprise:
Available electricity module 31 for, utilize the lithium battery power supply system for receiver module 11, processing module 12 and sending module 13 power supplies;
Perhaps, main supply module 32 for, utilize civil power for receiver module 11, processing module 12 and sending module 13 power supplies;
Perhaps, available electricity module 31, main supply module 32, detection module 33 and handover module 34;
Wherein, detection module 33 for, detect whether fault of main supply module;
Handover module 34 for, when main supply module 32 fault, be switched to available electricity module 31 for receiver module 11, processing module 12 and sending module 13 power supplies.
In other embodiment of the present invention, still can be referring to Fig. 3, the gateway in above-mentioned all embodiment also can comprise:
Serial port module 35 for, with computer, be connected, so that the user manages and the parameter setting sending module 11, processing module 12 and receiver module 13 by computer;
Concrete, the function of serial port module 35 can be realized by the RS232 serial ports;
Web server 36 for, the page of monitoring and management sending module 11, processing module 12 and receiver module 13 dynamically is provided to the user;
Wherein, the information that dynamically shows sending module 11, processing module 12 and receiver module 13 on the described page;
User's operational module 37 for, the operation interface of monitoring and the parameters of management in sending module 11, processing module 12 and receiver module 13 is provided to the user;
Concrete, the function of user's operational module can be by touch-screen, or button, or the combination of touch-screen and button realizes.
In other embodiment of the present invention, as shown in Figure 4, the radio receiving unit 21 in above-mentioned all embodiment can comprise:
Monitor subelement 42 for, monitor all types of physique tests and whether send and set up data communication and connect;
Wherein, the function of monitoring subelement 42 can be realized by the monitoring network interface unit on radio receiving unit;
Concrete, but whether the network port of monitoring network interface unit monitoring wireless receiving element 21 receives " socket " socket connection request (asking to connect packet);
Address assignment subelement 41 for, be the physique test distributing IP address in the wireless network of 2.4GHZ or 5GHZ.
Concrete, can protocol DHCP (Dynamic Host Configuration Protocol) be set for the physique test instrument distributing IP address in wireless network by DynamicHost.
Corresponding with above-mentioned communication gate, the invention also discloses a kind of communication means, as shown in Figure 5, the method at least comprises the following steps:
S51: receive the physique test packet that all types of physique test instrument send;
S52: each physique test packet is carried out to legitimacy and completeness check according to the Packet Filtering rule chain of predefined physique test instrument;
Wherein, there is at least one filtering rule in the Packet Filtering rule chain;
S53: judge that whether packet is by legitimacy and completeness check, for not meeting rule or the direct discard processing of incomplete packet, process if packet by legitimacy and completeness check, proceeds to S54;
S54: packet is unpacked to processing, obtain the data message in each physique test packet, and data interaction protocol format according to the rules, each data message is carried out to the protocol conversion encapsulation, obtain the pre-transmission packet of regulation protocol format, and will send in advance packet and join data and send both-end round-robin queue;
Wherein, the regulation protocol format is the discernible form of physique test data analysis system;
S55: data are sent to pre-transmission Packet Generation in both-end round-robin queue to described physique test data analysis system.
By above-mentioned technical scheme, can be found out, in embodiments of the present invention, at first receiver module can receive the physique test packet that all types of physique test instrument send; Then processing module can be carried out respectively verification to each physique test packet according to the Packet Filtering rule chain of predefined all types of physique test instrument, and while in the packet header of physique test packet, meeting filtering rule, unpacked processing, obtain the data message in each physique test packet, and protocol format according to the rules, each data message is carried out to the protocol conversion encapsulation, obtain the pre-transmission packet of regulation protocol format; Wherein, the regulation protocol format is the discernible form of physique test data analysis system; Final sending module can be by the pre-transmission Packet Generation of regulation protocol format to the physique test data analysis system.Therefore, physique test communication gate of the present invention can the communication protocol from the physique test data analysis system is different the physique test packet that sends of physique test instrument, be converted to the discernible form of physique test data analysis system, send in advance packet; Therefore the physique test data analysis system certainly will be able to be identified the pre-data message sent in packet; Thereby solve the poor problem of system compatibility that each physique test instrument communication protocol disunity causes, make system extension be more prone to, reduce system integration cost, and then make the drawn Comprehensive analysis results of physique test data analysis system more accurate, the evaluation that tester's health status is made is more objective, finally makes the exercise prescription formulated for tester science more.
To the above-mentioned explanation of the disclosed embodiments, make professional and technical personnel in the field can realize or use the present invention.Multiple modification to these embodiment will be apparent for those skilled in the art, and General Principle as defined herein can be in the situation that do not break away from the spirit or scope of the present invention, realization in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.