CN101977192A - Family medical insurance gateway device and protocol conversion method - Google Patents

Family medical insurance gateway device and protocol conversion method Download PDF

Info

Publication number
CN101977192A
CN101977192A CN2010105220724A CN201010522072A CN101977192A CN 101977192 A CN101977192 A CN 101977192A CN 2010105220724 A CN2010105220724 A CN 2010105220724A CN 201010522072 A CN201010522072 A CN 201010522072A CN 101977192 A CN101977192 A CN 101977192A
Authority
CN
China
Prior art keywords
zigbee
layer
protocol
network
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010105220724A
Other languages
Chinese (zh)
Inventor
陈志奎
黄涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian University of Technology
Original Assignee
Dalian University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dalian University of Technology filed Critical Dalian University of Technology
Priority to CN2010105220724A priority Critical patent/CN101977192A/en
Publication of CN101977192A publication Critical patent/CN101977192A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a family medical insurance gateway device and a protocol conversion method, belonging to the gateway technology in the wireless communication field and relating to data format conversion and information exchange technology of heterogeneous networks. The family medical insurance gateway device comprises hardware and software, wherein the hardware comprises a Zigbee chip, an Ethernet chip, a GSM/GPRS module, a USB (Host) interface, a 3G module, a serial port, a microcontroller and a common peripheral circuit; and the software comprises a bottom protocol layer, a middleware layer and an application service layer in a protocol model. The adopted protocol conversion method comprises conversion from the Zigbee protocol to the TCP/IP protocol, conversion from the TCP/IP protocol to the Zigbee protocol, etc. The invention expands the transmission and use ranges of the medical insurance data in the family, ensures safety of network access and transmission of such private data as medical insurance data and plays an important role in development of elder custody, telemedicine and mobile health care.

Description

A kind of family medical insurance gateway apparatus and method for converting protocol
Technical field
The invention belongs to the gateway technique in the wireless communication field, relate to the Data Format Transform and the message-switching technique of heterogeneous network, be specially Zigbee network and Internet network, the data of Zigbee network and mobile communications network interconnect.
Background technology
Along with computer technology and rapid development of network technology, to improve digitlization abstract the recreational consumption level and become the important way that improves people's lives, digital home is wherein important one side.Digital home be in various network interconnection mode with household electrical appliance and devices interconnect, make home-confined people also can obtain efficiently and shared information.Gateway is the bridge of household internal and PERCOM peripheral communication as network element device important in the digital home, makes household internal can obtain information on the external network efficiently, makes the state that can recognize household internal in the people of outside in real time easily simultaneously.Therefore home gateway is being played the part of extremely important bridge role in the construction of digital home.Digital home's medical insurance is the part of digital home's construction, it can provide for household's health status science, detect timely and report.Along with the concern of people, some medical insurance blank systems of digital home have been engendered to personal health.These systems are by using the physiological data collection of various transducers with the people, and be uploaded to the expert or the artificial intelligence expert system is carried out diagnostic analysis, make people can recognize oneself condition timely, this prevention from suffering from the diseases, old age according to reason, aspects such as healthy warning, dietetic life suggestion have great importance.how that these are different the aggregation of data of sensor acquisition get up and transfer out? short range wireless transmission technology Zigbee can address this problem.Zigbee is a kind of short distance, low-power consumption, low rate, low complex degree, Radio Transmission Technology cheaply, has obtained increasing application in Industry Control, remote monitoring and wired home field.This technology of the also many employings of family's medicare system, the node in the system has constituted a domain of individuals net on human body, gather the various physiological parameters of human body in real time.The node number of Zigbee network theory support can reach more than 65000, is enough to satisfy the demand that a plurality of members of household internal lay multiple medical treatment transducer.
Development of Communication Technique makes people can enjoy more High Data Rate, the communication service of smoothness more, and 3G is one of important milestone of its development.3G is the abbreviation of 3rd-generation, the communication technology of it and first generation simulation standard, is that the maximum difference of the representative second generation communication technology is that it has significantly improved the transmission rate of data with GSM, GPRS, EDGE, reaches as high as 2Mbps.3G standard mainly comprises TD-SCDMA, WCDMA, CDMA2000, and wherein TD-SCDMA is the 3G international standard that China has autonomous knowledge-product.Along with the construction of China's 3G (Third Generation) Moblie infrastructure, become the trend of certainty based on the application service of 3G.But in a period of time, second generation mobile communication technology still has the value of its application before 3G technology maturation and large-scale application.
Summary of the invention
The technical barrier that the present invention will solve is to overcome the deficiencies in the prior art, invent a kind of home gateway device and method for converting protocol, the mode and the certain protocol conversion method that adopt hardware and software two parts to combine, make the medicare system in the digital home adopt Zigbee agreement and exterior I nternet net, mobile communications network interconnection, realize that the mobile subscriber is to the real-time security visit of household internal private data with control purpose.
The technical solution used in the present invention is a kind of family medical insurance gateway apparatus and method for converting protocol, and family's medical insurance gateway apparatus is made up of hardware and software two parts; Hardware comprises: Zigbee chip 1, Ethernet chip 2, GSM/GPRS module 3, USB (Host) interface 4,3G module 5, serial ports 6, microcontroller 7, total peripheral circuit 8; Adopt Zigbee chip 1 and 7 liang of chip blocks of microcontroller in the hardware of the controlled function of realization gateway; Chip chamber links to each other by serial ports 6; Wherein Zigbee chip 1 is by 2.4G antenna and outside Zigbee node 9 radio communications; Microcontroller 7 connects Ethernet chip 2, and the realization gateway is communicated by letter with Internet net 10; Microcontroller 7 connects GSM/GPRS module 3, realizes with second generation mobile communication technology and PERCOM peripheral communication; Microcontroller 7 connects USB (Host) interface 4, and 3G module 5 links to each other with USB (Host) interface 4, realizes with 3G and PERCOM peripheral communication;
Software comprises: the underlying protocol layer 13 in the protocol model 12, middleware layer 14 and application service layer 15; Wherein, underlying protocol layer 13 comprises Zigbee protocol stack, ICP/IP protocol stack, GSM/GPRS protocol interface 16 and 3G protocol interface 17; Underlying protocol layer 13 comprises physical layer, MAC layer and the network layer of Zigbee protocol stack, realizes the data communication with the Zigbee node; Gateway uses as Zigbee network coordination node separately; The network interface layer, internet layer and the transport layer that comprise the ICP/IP protocol stack realize by the Internet its communication ability; Comprise GSM/GPRS protocol interface 16 and 3G protocol interface 17, realize carrying out its communication ability by mobile communications network; Middleware layer 14 with Reusable Components of one group of data processing and management function comprises data acquisition assembly 18, data storage management assembly 19, Data Transmission Controlling assembly 20, Zigbee and Internet protocol conversion assembly 21, Zigbee and mobile radio communication protocol conversion assembly 22, information security management assembly 23.
The method for converting protocol that family's medical insurance gateway apparatus adopts is as follows:
The Zigbee agreement is to the conversion of ICP/IP protocol, its process: Zigbee packet → remove Zigbee physical layer packet head → remove Zigbee MAC layer packets headers → remove Zigbee network layer packet head → add TCP/IP transport layer packet head → add TCP/IP internet layer packets headers → add TCP/IP network interface layer packets headers;
ICP/IP protocol is to the conversion of Zigbee agreement, its process: TCP/IP packet data package → remove TCP/IP network interface layer packets headers → remove TCP/IP internet layer packets headers → remove TCP/IP transport layer packet head → add Zigbee network layer packet head → add Zigbee MAC layer packets headers → add Zigbee physical layer packet head;
Zigbee protocol data form is to GSM/GPRS network packet data format conversion, its process: the SNDC layer packets headers of the network layer packet head of Zigbee network packet → remove Zigbee physical layer packet head → remove Zigbee MAC layer packets headers → remove Zigbee network layer packet head → add Um Interface → add Um Interface → add Um Interface LLC layer packets headers → add Um Interface MAC layer packets headers → the add physical layer packet head of Um Interface;
GSM/GPRS network packet data form is to Zigbee protocol data format conversion, its process: GSM/GPRS network packet data bag → remove Um Interface physical layer packet head → remove Um Interface MAC layer packets headers → remove Um Interface LLC layer packets headers → remove Um Interface SNDC layer packets headers → remove Um Interface network layer packet head → add Zigbee network layer packet head → add Zigbee MAC layer packets headers → add Zigbee physical layer packet head;
Zigbee network packet data form is to 3G network packet data format conversion, its process: the corresponding 3G agreement physical layer L1 packets headers of the corresponding 3G protocol data link layer L2 packets headers of the corresponding 3G protocol network layer L3 packets headers of Zigbee network packet → remove Zigbee physical layer packet head → remove Zigbee MAC layer packets headers → remove Zigbee network layer packet head → add → add → add;
The 3G network packet data format is to Zigbee protocol data format conversion, its process: the corresponding 3G protocol network layer L3 packets headers of the corresponding 3G protocol data link layer L2 packets headers of the corresponding 3G agreement physical layer L1 packets headers of 3G network packet data package → remove → remove → remove → add Zigbee network layer packet head → add Zigbee MAC layer packets headers → add Zigbee physical layer packet head; Corresponding 3G agreement refers to: the employed 3G agreement of gateway, a kind of among TD-SCDMA, WCDMA, the CDMA2000.
The present invention has following positive effect: can realize the Zigbee network with based on the exchanges data between the internet of ICP/IP protocol, Zigbee network and the mobile radio communication with communicate by letter.Gateway itself can be used as Zigbee network coordination node, realizes control and maintenance to medicare system Zigbee network in the family.The mobile subscriber can visit the actual time safety of household internal private data by portable terminal or internet.
Description of drawings
Fig. 1 is the hardware designs block diagram of a kind of family medical insurance gateway apparatus, wherein: 1-Zigbee chip, 2-Ethernet chip, 3-GSM/GPRS module, 4-USB (Host) interface, 5-3G module, 6-serial ports, 7-microcontroller, the total peripheral circuit underlying protocol layer of 8-, the outside Zigbee node of 9-, 10-Internet net, 11-mobile radio communication.
Fig. 2 is the protocol model figure of a kind of family medical insurance gateway apparatus; Wherein: the 12-protocol model., 13-underlying protocol layer, 14-middleware layer, 15-application service layer, 16-GSM/GPRS protocol interface, 17-3G protocol interface.
Fig. 3 is the middleware component pie graph of a kind of family medical insurance gateway apparatus; 18-data acquisition assembly, 19-data storage management assembly, 20-Data Transmission Controlling assembly, 21-Zigbee and Internet protocol conversion assembly, 22-Zigbee and mobile radio communication protocol conversion assembly, 23-information security management assembly.
Fig. 4 is the primary control program flow chart of a kind of family medical insurance gateway apparatus.
Embodiment
Describe the specific embodiment of the present invention in detail with technical scheme in conjunction with the accompanying drawings, this family's medical insurance gateway apparatus belongs to embedded product, comprises hardware designs and software design two parts.
1, hardware configuration
At first be the hardware configuration of gateway, as shown in Figure 1.Intra-gateway comprises two control chips.The coordinator node function is served as in the parsing and the encapsulation of responsible Zigbee network node control and Zigbee agreement; Another piece is responsible for the parsing and the encapsulation of external the Internet and mobile radio communication data, and controls whole gateway work.Main hardware comprises: microcontroller 7, Zigbee chip 1, Ethernet chip 2, GSM/GPRS module 3, USB (Host) interface 4,3G module 5, serial ports 6 and total peripheral circuit 8.For realizing simple and volume, power consumption are considered, the CC2430-F128 chip of Zigbee chip 1 employing T1 company.The peripheral circuit of Zigbee chip 1 comprises electric power management circuit, clock generation circuit, program download interface, reset circuit and antenna.Zigbee chip 1 carries out the reception and the transmission of signal by 2.4G antenna and outside Zigbee node 9.Zigbee chip 1 links to each other with microcontroller 7 by serial ports 6, and the data of the long-range transmission of needs of Zigbee network generation are sent to microcontroller 7, and the order or the data of microcontroller 7 are sent to the Zigbee network, and serial ports 6 can adopt the RS232 interface in the enforcement.This module makes this family's medical insurance gateway apparatus become coordinator node in the Zigbee network simultaneously, can the node in Zigbee network, the network be managed.
Microcontroller 7 is data processing and control centres of gateway, and the ICP/IP protocol program of gateway, the data communication interface program of mobile communications network 11, gateway data format handle and control program runs on wherein.Microcontroller 7 can be selected the S3C6410 chip for use in the enforcement, the power management module of external DDR memory, Nand Flash, microcontroller, clock generation circuit, program download interface, reset circuit.Link to each other with Zigbee chip 1 by RS232 serial ports 6, accept data, or send long-distance user's order and request of data to Zigbee chip 1 from Zigbee chip 1.External Ethernet chip 2 and interlock circuit link to each other with Ethernet 10 by RJ45, realize gateway by Internet mode and long-distance user's data communication function, and Ethernet chip 2 adopts DM9000 in the enforcement.External GSM/GPRS module 3 realizes gateway by second generation mobile communication technology and long-distance user's data communication function, considers in the enforcement gateway volume and power problems to adopt the SIM300 module, connects the antenna that is used to communicate by letter simultaneously.Circumscribed USB (Host) interface 4,3G module 5 is linked to each other with microcontroller 7 by USB (Host) interface 4, realize that gateway is by 3G (Third Generation) Moblie technology and long-distance user's data communication function, the 3G module is a kind of in TD-SCDMA module, WCDMA module, the CDMA2000 module in the enforcement, simultaneously the corresponding driver of operation in microcontroller 7.
Total peripheral circuit 8 refers to the basic peripheral circuit module that microcontroller 7 and Zigbee chip 1 all have.Relate generally to power management module, clock generation circuit, program download interface, reset circuit, antenna.Power management module: gateway provides the input of 5V power supply; Zigbee chip 1 side need provide in the enforcement of 2.0V-3.6V power supply circuits and adopt 3.3V, and microcontroller 7 sides need provide 1.2V, 1.8V, 3.3V power supply circuits.Clock generation circuit: Zigbee chip 1 side and microcontroller 7 sides are used independently crystal oscillating circuit separately.Program download interface: be responsible for Zigbee coordinator process and microcontroller 7 side programs are downloaded in the corresponding module, be designed to independently interface in the enforcement; Zigbee chip 1 side adopts jtag interface, and microcontroller 7 sides adopt USB+JTAG+ serial ports or USB+SD card+serial mode to download.Reset circuit: provide microcontroller 7 sides and Zigbee chip 1 side to reset simultaneously, and Zigbee chip 1 independent reset function.
The hardware capability of family's medical insurance gateway apparatus has: 1 powers on and power down function: realize powering on and power down function of gateway by switch.Back microcontroller 7 sides and Zigbee chip 1 side of powering on starts simultaneously, carries out initialization operation separately.Stop power supply simultaneously in both sides, outage back.2 gateway reset functions: restart microcontroller 7 and Zigbee chip 1, and peripheral module, and can restart Zigbee chip 1 separately.3 indicator light functions: the state that power supply, Zigbee chip 1, Ethernet connect, GSM/GPRS communicates to connect, 3G communicates to connect is indicated.Normal is green, connects unusually or not and shows redness, the green and flicker of the indicator light of communicating by letter.
2, software configuration
The software configuration of gateway, the 3-tier architecture design that has provided agreement as shown in Figure 2 comprises underlying protocol layer, middleware layer and application service layer.The underlying protocol layer provides the calling interface of each protocol analysis and encapsulation, and reuses existing protocol software to greatest extent, shortens the construction cycle simultaneously to improve the stability of a system; Middleware layer has been realized independently functional unit by calling the underlying protocol interface; Application service layer calls middleware interface, has realized each concrete function of gateway.
(1) protocol model
The protocol model 12 of family's medical insurance gateway apparatus mainly is in order to realize the data communication between the heterogeneous networks, to comprise interconnecting of Zigbee network and Internet network, Zigbee network and mobile communications network.As shown in Figure 2, gateway protocol model 12 is divided into three layers on the whole: underlying protocol layer 13, middleware layer 14, application service layer 15.The underlying protocol layer 13 of gateway protocol model 12 comprises physical layer, MAC layer, the network layer of Zigbee protocol stack, and physical layer, MAC layer, the network layer with the Zigbee network node interconnects respectively; Underlying protocol layer 13 comprises TCP/IP network interface layer, TCP/IP internet layer, TCP/IP transport layer, and network interface layer, internet layer, the transport layer with Internet network ICP/IP protocol interconnects respectively; Underlying protocol layer 13 comprises GSM/GPRS protocol interface 16, is one group of function call interface during enforcement, provides gateway by GSM/GPRS and external user data communication; Underlying protocol layer 13 comprises 3G protocol interface 17, is one group of function call interface during enforcement, provides gateway to pass through 3GTD-SCDMA, WCDMA, a kind of mode among the CDMA2000 and external user data communication.
The middleware layer 14 of gateway protocol model 12 provides a networking to close the Reusable Components of data processing and management function, as shown in Figure 3, comprising: data acquisition assembly 18, data storage management assembly 19, Data Transmission Controlling assembly 20, Zigbee and Internet protocol conversion assembly 21, Zigbee and mobile radio communication protocol conversion assembly 22, information security management assembly 23.The application service layer 15 of gateway protocol model 12 mainly provides concrete application service, and the direction that comprises has: the transmission service of home intelligent medical insurance data, user access control service, data storage management service, the service of Zigbee Network Management.The function that gateway can provide is mainly reflected in this layer, and has expandability.
Data acquisition assembly 18 provides the interface to the Zigbee network node operation, and the main code of this assembly runs in the Zigbee chip 1 of gateway, needs the function that realizes: the 1.Zigbee network is set up and is nullified function.2. the connection of new node and break function.3. definition control command and data command, identification is from the control command of serial ports and carry out corresponding operating.4. collect the data in the Zigbee network, data encapsulation back is sent to microcontroller 7 by serial ports according to order.
Data storage management assembly 19 provides this locality storage and remote data base memory function of data, this component code runs on microcontroller 7 one sides, the function that need to realize comprises: 1. set up database at gateway local, realize that additions and deletions to the medical insurance data change to look into operation.Database adopts embedded database, is not limited to particular type.2. call the ICP/IP protocol interface, storage in the network data base of assigned ip address, is provided additions and deletions to change and looks into function.3. call the GSM/GPRS protocol interface, storage in the network data base of assigned ip address, is provided additions and deletions to change and looks into function.4. call 3G agreement TD-SCDMA, WCDMA, the CDMA2000 interface in the network data base of assigned ip address, provides storage additions and deletions change and looks into function.
Data Transmission Controlling assembly 20 provides the control operation of data transfer mode, the function that needs to realize comprises: 1. periodically detect the connection state of Zigbee chip 1, Ethernet network interface card, GSM/GPRS module 3,3G module 5, and record link quality parameter data.If unusual or no connection, it is red to answer indicator light to show.2. packet is sent on certain port of fixed ip address main frame on the network by the Ethernet network interface card.3. by calling the GSM/GPRS module interface packet is sent on certain port of fixed ip address main frame on the network.By call 3GTD-SCDMA, WCDMA, the CDMA2000 module interface sends to packet on certain port of fixed ip address main frame on the network.5. accept the Zigbee network side data of primary control program, select a kind of data external send mode to send to destination host or subscriber equipment.The default sequence of outside send mode is: Internet network, GSM/GPRS network, 3G network.If specifying send mode, the user sends by specific mode; If qos requirement is arranged or has mass data to need transmission, then select the higher mode of link quality parameter to send automatically; If reply at the data of external user request command, the mode when then preferentially selecting external user to insert sends.6. the external network data of accepting primary control program inserts, and sends to Zigbee chip 1 by serial ports 6.The encapsulation of the parsing of external data and Zigbee formatted data is finished by primary control program invocation protocol transition components 21,22.
Zigbee and Internet protocol conversion assembly 21 are mainly finished the data format of Zigbee agreement and Internet network ICP/IP protocol and are changed mutually, the function that needs to realize comprises: the 1.Zigbee agreement is to the conversion of ICP/IP protocol, its process: Zigbee packet → remove Zigbee physical layer packet head → remove Zigbee MAC layer packets headers → remove Zigbee network layer packet head → add TCP/IP transport layer packet head → add TCP/IP internet layer packets headers → add TCP/IP network interface layer packets headers, and the packet after caller returns conversion.2.TCP/IP agreement is to the conversion of Zigbee agreement, its process: TCP/IP packet data package → remove TCP/IP network interface layer packets headers → remove TCP/IP internet layer packets headers → remove TCP/IP transport layer packet head → add Zigbee network layer packet head → add Zigbee MAC layer packets headers → add Zigbee physical layer packet head, and the packet after caller returns conversion.
Zigbee and mobile communication network protocol transition components 22 are mainly finished Zigbee agreement and GSM/GPRS network, 3G network TD-SCDMA, WCDMA, the mutual conversion of CDMA2000 protocol data form, the function that needs to realize comprises: 1.Zigbee protocol data form is to GSM/GPRS network packet data format conversion, its process: the Zigbee network packet->remove SNDC (Subnetwork Dependant Convergence) the layer packets headers of the network layer packet head of Zigbee physical layer packet head → remove Zigbee MAC layer packets headers → remove Zigbee network layer packet head → add Um Interface → add Um Interface → add Um Interface LLCLogical Link Control layer packets headers → add Um Interface MAC layer packets headers → add the physical layer packet head of Um Interface and the packet after caller returns conversion.2.GSM/GPRS the network packet data form is to Zigbee protocol data format conversion, its process: GSM/GPRS network packet data bag → remove Um Interface physical layer packet head → remove Um Interface MAC layer packets headers → remove Um Interface LLC layer packets headers → remove Um Interface SNDC layer packets headers → remove Um Interface network layer packet head → add Zigbee network layer packet head → add Zigbee MAC layer packets headers → add Zigbee physical layer packet head, and the packet after caller returns conversion.3.Zigbee the network packet data form is changed to the 3G network packet data format, its process: the corresponding 3G protocol data link layer L2 packets headers of the corresponding 3G protocol network layer L3 packets headers of Zigbee network packet → remove Zigbee physical layer packet head → remove Zigbee MAC layer packets headers → remove Zigbee network layer packet head → add → add → add corresponding 3G agreement physical layer L1 packets headers, and the packet after caller returns conversion.The packets headers form of different 3G protocol air interface is different.4.3G the network packet data form is to Zigbee protocol data format conversion, its process: the corresponding 3G protocol data link layer L2 packets headers of the corresponding 3G agreement physical layer L1 packets headers of 3G network packet data package → remove → remove->remove corresponding 3G protocol network layer L3 packets headers → add Zigbee network layer packet head → add Zigbee MAC layer packets headers → add Zigbee physical layer packet head and the packet after caller returns conversion.
External user mainly finished by information security management assembly 23 or terminal is controlled and safety management the access rights of family's medical insurance data, the function that need to realize comprises: the subscriber information management of 1 pair of mandate comprises visitor's essential information, access level, the management of login password.Privacy class, the type management of 2 families medical insurance data.3 visitors are to the access control and the mapping management of medical insurance data.Automatic storage, backup and the encryption handling of 4 families medical insurance data.
(2) gateway major function
The function that gateway itself can be finished is mainly finished by the service interface that calls middleware layer 14 and provide by the application service layer 15 of gateway protocol model 12.The primary control program flow chart of gateway as shown in Figure 4.At first gateway carries out initialization to microcontroller 7 and peripheral hardware thereof, then Zigbee chip 1 and peripheral circuit thereof is carried out initialization, and wherein the parameter of 1 pair of serial ports of microcontroller 7 and Zigbee chip is provided with identically, guarantees the correct transmission of control command and data.Gateway enters periodic link-quality status monitoring then, comprises the communication link quality of Ethernet break-make, GSM/GPRS, the communication link quality of 3G.Gateway is accepted with the form of interrupting data and order, then order is resolved, and carries out relevant operation.If the user selects to reset or shutdown operation, main program finishes, and system stops.
1. the foundation of family's medicare system Zigbee network
Gateway calls the Zigbee network of data acquisition assembly 18 and sets up function foundation and initialization Zigbee network as the coordinator node of Zigbee network.Behind the network startup, gateway is accepted to interrupt from serial ports 6 serial ports in the mode of interrupting, and microcontroller 7 one sides and radio frequency interrupt, the data of Zigbee network node 9 one sides, and make application according to data type and handle.
2. the management of node in family's medicare system Zigbee network
When new node joins the Zigbee network, this nodal information of registration in gateway, the connection management function of the new node by calling data acquisition assembly 18 is finished; When the node deviated from network, gateway carries out disconnection process to node, disconnects management function by the node that calls data acquisition assembly 18 and finishes;
3. exterior terminal or user are to the real time access of family's medicare system data
External user by portable terminal or Internet network access gateway->access way Data Transmission Controlling assembly 20 → gateway of gateway identification user carries out protocol conversion protocol conversion assembly 21 or Zigbee and mobile radio communication protocol conversion assembly 22 → gateway according to access way to data user identity carried out authentication and authorization information security management component 23, authentication not by termination request → gateway to request command identify → request command is encapsulated as Zigbee protocol format protocol conversion assembly 21 to gateway or Zigbee sends to corresponding Zigbee node data acquisition component 18 with mobile radio communication protocol conversion assembly 22 → gateway with request command.
4. exterior terminal or user are to the visit of family's medicare system historical data
External user by portable terminal or Internet network access gateway->access way Data Transmission Controlling assembly 20 → gateway of gateway identification user carries out protocol conversion protocol conversion assembly 21 or Zigbee and mobile radio communication protocol conversion assembly 22 → gateway according to access way to data user identity carried out authentication and authorization information security management component 23; Authentication not by termination request → gateway to request command identify → gateway carries out operating data storage administration assembly 19 → gateway according to request command to the gateway local database and encapsulates data into corresponding format data transmission Control Component 20, protocol conversion assembly 21 or Zigbee and mobile radio communication protocol conversion assembly 22 → gateway send Data Transmission Controlling assembly 20 with data.
5. the collection of family's medical insurance data and storage
After the foundation of medicare system Zigbee network, the user can periodically gather the physiological data of oneself and upload in the database on gateway database or the network.Its flow process: gateway is set up node data acquisition component 18 → gateway that Zigbee network data acquisition assembly 18 → gateway accept to add the Zigbee network and is accepted periodically that Zigbee chip 1 sends to microcontroller 7 data acquisition assembly 18 → microcontrollers 7 with storage data storage management assembly 19 in local data base with data by serial ports 6 in the data data acquisition assembly 18 → gateway of different Zigbee nodes.At first carry out Data Fusion during storage, type information, data value change information and the temporal information of storage data get final product, and reduce data volume.When local data can't be stored, by the unloading of indicator light designation data.According to the network data base address of user's setting, in the database of data conversion storage on network.If do not set, then automatic successively cover time data early.
6. external reference user's information and rights management
The function that application service layer 15 provides has: the 1. foundation of family's medicare system Zigbee network; 2. the management of node in family's medicare system Zigbee network; 3. exterior terminal or user are to the real time access of family's medicare system data; 4. exterior terminal or user are to the visit of family's medicare system historical data; 5. the collection of family's medical insurance data and storage; 6. external reference user's information and rights management;
In local data base, set up the visitor information record sheet, add calling party and access right data thereof.The medical insurance data of gathering are carried out the privacy class management, and determine whether granted access by the access map rule of visitor and medical insurance data.The mapping ruler of visit can be determined voluntarily flexibly according to concrete gateway developer.

Claims (2)

1. family's medical insurance gateway apparatus is characterized in that, family's medical insurance gateway apparatus is made up of hardware and software two parts; Hardware comprises: Zigbee chip (1), Ethernet chip (2), GSM/GPRS module (3), USB (Host) interface (4), 3G module (5), serial ports (6), microcontroller (7), total peripheral circuit (8); Adopt Zigbee chip (1) and microcontroller (7) two chip blocks in the hardware of the controlled function of realization gateway; Chip chamber links to each other by serial ports (6); Wherein Zigbee chip (1) is by 2.4G antenna and outside Zigbee node (9) radio communication; Microcontroller (7) connects Ethernet chip (2), and the realization gateway is communicated by letter with Internet (10); Microcontroller (7) connects GSM/GPRS module (3), realizes with second generation mobile communication technology and PERCOM peripheral communication; Microcontroller (7) connects USB (Host) interface (4), and 3G module (5) links to each other with USB (Host) interface (4), realizes with 3G and PERCOM peripheral communication;
Software comprises: the underlying protocol layer (13) in the protocol model 12, middleware layer (14) and application service layer (15); Wherein, underlying protocol layer (13) comprises Zigbee protocol stack, ICP/IP protocol stack, GSM/GPRS protocol interface (16) and 3G protocol interface (17); Underlying protocol layer (13) comprises physical layer, MAC layer and the network layer of Zi gbee protocol stack, realizes the data communication with the Zigbee node; Gateway uses as Zigbee network coordination node separately; The network interface layer, internet layer and the transport layer that comprise the ICP/IP protocol stack realize by the Internet its communication ability; Comprise GSM/GPRS protocol interface (16) and 3G protocol interface (17), realize carrying out its communication ability by mobile communications network; Middleware layer (14) with Reusable Components of one group of data processing and management function comprises data acquisition assembly (18), data storage management assembly (19), Data Transmission Controlling assembly (20), Zigbee and Internet protocol conversion assembly (21), Zigbee and mobile radio communication protocol conversion assembly (22), information security management assembly (23).
2. a kind of family as claimed in claim 1 medical insurance gateway apparatus, the method for converting protocol that it adopts is characterized in that, the method for converting protocol that family's medical insurance gateway apparatus adopts is as follows:
The Zigbee agreement is to the conversion of ICP/IP protocol, its process: Zigbee packet → remove Zigbee physical layer packet head → remove Zigbee MAC layer packets headers → remove Zigbee network layer packet head → add TCP/IP transport layer packet head → add TCP/IP internet layer packets headers → add TCP/IP network interface layer packets headers;
ICP/IP protocol is to the conversion of Zigbee agreement, its process: TCP/IP packet data package → remove TCP/IP network interface layer packets headers → remove TCP/IP internet layer packets headers → remove TCP/IP transport layer packet head → add Zigbee network layer packet head → add Zigbee MAC layer packets headers → add Zigbee physical layer packet head;
Zigbee protocol data form is to GSM/GPRS network packet data format conversion, its process: the SNDC layer packets headers of the network layer packet head of Zigbee network packet → remove Zigbee physical layer packet head → remove Zigbee MAC layer packets headers → remove Zigbee network layer packet head → add Um Interface → add Um Interface → add Um Interface LLC layer packets headers → add Um Interface MAC layer packets headers → the add physical layer packet head of Um Interface;
GSM/GPRS network packet data form is to Zigbee protocol data format conversion, its process: GSM/GPRS network packet data bag → remove Um Interface physical layer packet head → remove Um Interface MAC layer packets headers → remove Um Interface LLC layer packets headers → remove Um Interface SNDC layer packets headers → remove Um Interface network layer packet head → add Zigbee network layer packet head → add Zigbee MAC layer packets headers → add Zigbee physical layer packet head;
Zigbee network packet data form is to 3G network packet data format conversion, its process: the corresponding 3G agreement physical layer L1 packets headers of the corresponding 3G protocol data link layer L2 packets headers of the corresponding 3G protocol network layer L3 packets headers of Zigbee network packet → remove Zigbee physical layer packet head → remove Zigbee MAC layer packets headers → remove Zigbee network layer packet head → add → add → add;
The 3G network packet data format is to Zigbee protocol data format conversion, its process: the corresponding 3G protocol network layer L3 packets headers of the corresponding 3G protocol data link layer L2 packets headers of the corresponding 3G agreement physical layer L1 packets headers of 3G network packet data package → remove → remove → remove → add Zigbee network layer packet head → add Zigbee MAC layer packets headers → add Zigbee physical layer packet head; Corresponding 3G agreement refers to: the employed 3G agreement of gateway, a kind of among TD-SCDMA, WCDMA, the CDMA2000.
CN2010105220724A 2010-10-21 2010-10-21 Family medical insurance gateway device and protocol conversion method Pending CN101977192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105220724A CN101977192A (en) 2010-10-21 2010-10-21 Family medical insurance gateway device and protocol conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105220724A CN101977192A (en) 2010-10-21 2010-10-21 Family medical insurance gateway device and protocol conversion method

Publications (1)

Publication Number Publication Date
CN101977192A true CN101977192A (en) 2011-02-16

Family

ID=43577037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105220724A Pending CN101977192A (en) 2010-10-21 2010-10-21 Family medical insurance gateway device and protocol conversion method

Country Status (1)

Country Link
CN (1) CN101977192A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546619A (en) * 2011-12-29 2012-07-04 浙江工业大学 Modbus protocol conversion system based on 3G (The 3rd Generation Telecommunication) Internet access
CN102883339A (en) * 2012-08-31 2013-01-16 中国科学院深圳先进技术研究院 Network simulating platform
CN104660596A (en) * 2015-02-10 2015-05-27 常州万联网络数据信息安全股份有限公司 Heterogeneous network protocol standard knowledgeware, cloud monitoring and management system and method
DE202016000632U1 (en) 2015-06-24 2016-02-08 Fermax Design & Development, S.L.U. Multi-channel video intercom system with access to advanced digital services
CN106059817A (en) * 2016-06-18 2016-10-26 青岛中云数据信息科技有限公司 General wireless data management system
CN107517225A (en) * 2017-09-30 2017-12-26 北京东土军悦科技有限公司 A kind of method for converting protocol, gateway device and storage medium
CN108964840A (en) * 2018-06-27 2018-12-07 努比亚技术有限公司 Data transmission method, equipment and computer readable storage medium
CN110113771A (en) * 2019-03-22 2019-08-09 深圳市飞比电子科技有限公司 Data processing method, device, gateway and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007107041A1 (en) * 2006-03-22 2007-09-27 Zte Corporation A method for implementing call agent based on the media gateway control protocol and a system thereof
CN101631394A (en) * 2009-08-21 2010-01-20 华东理工大学 Multi-interface coordinator of wireless sensor network
CN101664341A (en) * 2009-06-16 2010-03-10 大连理工大学 Remote intelligent family medical insurance method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007107041A1 (en) * 2006-03-22 2007-09-27 Zte Corporation A method for implementing call agent based on the media gateway control protocol and a system thereof
CN101664341A (en) * 2009-06-16 2010-03-10 大连理工大学 Remote intelligent family medical insurance method
CN101631394A (en) * 2009-08-21 2010-01-20 华东理工大学 Multi-interface coordinator of wireless sensor network

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546619B (en) * 2011-12-29 2014-09-03 浙江工业大学 Modbus protocol conversion system based on 3G (The 3rd Generation Telecommunication) Internet access
CN102546619A (en) * 2011-12-29 2012-07-04 浙江工业大学 Modbus protocol conversion system based on 3G (The 3rd Generation Telecommunication) Internet access
CN102883339A (en) * 2012-08-31 2013-01-16 中国科学院深圳先进技术研究院 Network simulating platform
CN102883339B (en) * 2012-08-31 2015-07-29 中国科学院深圳先进技术研究院 network simulation platform
CN104660596B (en) * 2015-02-10 2017-09-29 常州万联网络数据信息安全股份有限公司 Heterogeneous network protocol standard intelligence part, cloud monitoring management system and method
CN104660596A (en) * 2015-02-10 2015-05-27 常州万联网络数据信息安全股份有限公司 Heterogeneous network protocol standard knowledgeware, cloud monitoring and management system and method
DE202016000632U1 (en) 2015-06-24 2016-02-08 Fermax Design & Development, S.L.U. Multi-channel video intercom system with access to advanced digital services
US9762852B2 (en) 2015-06-24 2017-09-12 Fermax Design & Development, S.L.U. Multi-channel video intercom systems with access to advanced digital services
CN106059817A (en) * 2016-06-18 2016-10-26 青岛中云数据信息科技有限公司 General wireless data management system
CN107517225A (en) * 2017-09-30 2017-12-26 北京东土军悦科技有限公司 A kind of method for converting protocol, gateway device and storage medium
CN107517225B (en) * 2017-09-30 2020-06-05 北京东土军悦科技有限公司 Protocol conversion method, gateway equipment and storage medium
CN108964840A (en) * 2018-06-27 2018-12-07 努比亚技术有限公司 Data transmission method, equipment and computer readable storage medium
CN108964840B (en) * 2018-06-27 2022-07-19 河北千和电子商务有限公司 Data transmission method, device and computer readable storage medium
CN110113771A (en) * 2019-03-22 2019-08-09 深圳市飞比电子科技有限公司 Data processing method, device, gateway and storage medium

Similar Documents

Publication Publication Date Title
CN101977192A (en) Family medical insurance gateway device and protocol conversion method
Bing et al. Design of an Internet of Things-based smart home system
CN100573383C (en) Intelligent home control system based on phone and ZigBee technology
CN104936312B (en) The method of work of Internet of Things intelligent node with data prediction and equipment Management Function
CN107786967A (en) L oRa mobile device for directly accessing L oRa information packet and data transmission method thereof
CN1996919B (en) System and method for realizing the intelligent control over the visual home appliance via the handset
CN101951695A (en) Internet of things based public food sanitation safety protection service system and working method thereof
CN101304386B (en) Data transmission collaboration processing method for multimedia sensor network
CN103365269A (en) Wireless sensor network-based intelligent household electrical appliance multimode remote monitoring system and method
CN102761941A (en) Wireless intelligent network protocol with ultra-low power consumption
CN105024848A (en) Smart power grid information management system based on wireless sensor network
CN101477720A (en) Gate inhibition system
CN103823400B (en) Socket monitoring system
CN101833849A (en) Device for monitoring daily life of patients in wireless mode
CN102789219A (en) Energy management system
CN101986612A (en) Home automation network system and management system
WO2012058845A1 (en) Method for processing reported data from wsn terminals, wsn gateway and combination network thereof
CN102421208B (en) Access gateway of internet of things system and method for operating access gateway
CN101605386A (en) The interconnected method of wireless multimedia sensor network and wireless local area network Internet
CN106341468A (en) Remote wakeup method, device and system of intelligent equipment
CN101087304B (en) Connection device and method between wireless sensor network and Internet
CN104331040A (en) Intelligent ad hoc network technology based on wireless technology
CN101635996A (en) Wireless medical management system
CN102064436A (en) Electrical equipment energy-consumption monitoring power wire integrating wireless network communication function
CN103490509A (en) Electric energy monitoring method and system for household appliances

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110216