CN104869608B - The cut-in method and system and internet-of-things terminal and mobile phone card of ZigBee application system - Google Patents

The cut-in method and system and internet-of-things terminal and mobile phone card of ZigBee application system Download PDF

Info

Publication number
CN104869608B
CN104869608B CN201410065392.XA CN201410065392A CN104869608B CN 104869608 B CN104869608 B CN 104869608B CN 201410065392 A CN201410065392 A CN 201410065392A CN 104869608 B CN104869608 B CN 104869608B
Authority
CN
China
Prior art keywords
zigbee
internet
layer protocol
application layer
mobile phone
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.)
Active
Application number
CN201410065392.XA
Other languages
Chinese (zh)
Other versions
CN104869608A (en
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201410065392.XA priority Critical patent/CN104869608B/en
Publication of CN104869608A publication Critical patent/CN104869608A/en
Application granted granted Critical
Publication of CN104869608B publication Critical patent/CN104869608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of cut-in method of ZigBee application system and system and internet-of-things terminals and mobile phone card, are related to internet of things field.Internet-of-things terminal is stored with various ZigBee application layer protocols, by comparing the consistency of the current ZigBee application layer protocol of ZigBee chip and the application type of the internet-of-things terminal ZigBee application system to be accessed, when inconsistent, consistent ZigBee application layer protocol is searched from the application layer protocol that itself is stored, and ZigBee chip is written, then ZigBee application system can be accessed by ZigBee chip, the method of this dynamically load application layer protocol makes the access demand that can meet a variety of ZigBee application systems using a kind of terminal, without customizing different terminals, solve the versatility and compatibility issue of terminal.Also, ZigBee chip can be integrated in mobile phone card, the dynamically load process of application layer protocol be achieved that using interface existing between mobile phone card and internet-of-things terminal, by the stalling characteristic of mobile phone card and internet-of-things terminal, it is not necessary that internet-of-things terminal is transformed.

Description

The cut-in method and system and internet-of-things terminal and mobile phone card of ZigBee application system
Technical field
The present invention relates to internet of things field, in particular to a kind of ZigBee(Purple honeybee)The cut-in method and system of application system And internet-of-things terminal and mobile phone card.
Background technique
ZigBee is current the most widely used Internet of Things close range communication techniques, and physical layer and network layer have system One agreement, on network layer, ZigBee is by defining different application layer protocols(profile), realize answering for each node With layer data interaction and control, the only ZigBee node with same application layer protocol can be interconnected.It has standardized at present Tens kinds of general ZigBee application layer protocols, such as:Home Automation(Home automation), Smart Energy(Object Matter intelligence), Building Automation(Building automatic)Etc..
Physical layer and network layer protocol stack and a kind of application layer protocol stack are preset in existing ZigBee chip, because This every kind ZigBee chip only supports a kind of application layer protocol, and the ZigBee equipment of each embedded ZigBee chip only has access A kind of ZigBee application system.For different ZigBee application systems, current way is the different internet-of-things terminal of customization, A kind of ZigBee chip built in every kind of internet-of-things terminal, the application layer protocol access supported based on the ZigBee chip are corresponding ZigBee application system.Three kinds of internet-of-things terminals as shown in Figure 1, every kind of internet-of-things terminal is built-in with respectively supports Health Care(Health care)The ZigBee chip of application layer protocol supports the ZigBee core of Home Automation application layer protocol Piece supports Remote Control(Long-range control)The ZigBee chip of application layer protocol.It can be seen that a variety of in order to access ZigBee application system needs to customize internet-of-things terminal for every kind of ZigBee application system, each new opplication needs again Terminal device is developed, this causes very big influence to the versatility of internet-of-things terminal and compatibility.
Summary of the invention
One technical problem to be solved by the embodiment of the invention is that:In the access scene of a variety of ZigBee application systems Under, the versatility and compatibility issue of internet-of-things terminal.
According to an aspect of an embodiment of the present invention, a kind of cut-in method of ZigBee application system is proposed, including:Internet of Things Network termination obtains the identification information of the current ZigBee application layer protocol of purple honeybee ZigBee chip;Internet-of-things terminal judges ZigBee The application type of the current ZigBee application layer protocol of chip and the internet-of-things terminal ZigBee application system to be accessed whether one It causes;In response to inconsistent judging result, internet-of-things terminal its storage various ZigBee application layer protocols in search with The consistent ZigBee application layer protocol of the application type of ZigBee application system, and by the application type with ZigBee application system ZigBee chip is written in consistent ZigBee application layer protocol, then accesses ZigBee application system by ZigBee chip.
In one embodiment of cut-in method, in response to consistent judging result, internet-of-things terminal passes through ZigBee core Piece accesses ZigBee application system.
In one embodiment of cut-in method, ZigBee integrated chip is in mobile phone card;Internet-of-things terminal obtains purple honeybee The identification information of the current ZigBee application layer protocol of ZigBee chip includes:Internet-of-things terminal obtains ZigBee by mobile phone card The identification information of the current ZigBee application layer protocol of chip;Internet-of-things terminal is by the application type one with ZigBee application system ZigBee chip is written in the ZigBee application layer protocol of cause:Internet-of-things terminal will be with ZigBee application system by mobile phone card The consistent ZigBee application layer protocol of application type ZigBee chip is written.
In one embodiment of cut-in method, it is current that internet-of-things terminal by mobile phone card obtains ZigBee chip The identification information of ZigBee application layer protocol includes:Internet-of-things terminal refers to the inquiry that mobile phone card issues ZigBee application layer protocol It enables;It is current to obtain ZigBee chip for the inquiry instruction for the ZigBee application layer protocol that mobile phone card is issued in response to internet-of-things terminal ZigBee application layer protocol identification information, and the identification information of the current ZigBee application layer protocol of ZigBee chip is taken Band returns to internet-of-things terminal in inquiry response;Internet-of-things terminal receives the inquiry response that mobile phone card returns, and rings from inquiry The identification information for the ZigBee application layer protocol for answering middle acquisition ZigBee chip current;Wherein, ZigBee application layer protocol is looked into It askes instruction and inquiry response is expanded application protocol Data Unit APDU instruction.
In one embodiment of cut-in method, internet-of-things terminal passes through mobile phone card for the application with ZigBee application system ZigBee chip is written in the consistent ZigBee application layer protocol of type:Internet-of-things terminal issues ZigBee application to mobile phone card The write instruction of layer protocol, and will be in one's hands with the consistent ZigBee application layer protocol transmission of the application type of ZigBee application system Machine card;The write instruction for the ZigBee application layer protocol that mobile phone card is issued in response to internet-of-things terminal, the ZigBee that will be received ZigBee chip is written in application layer protocol;Wherein, the write instruction of ZigBee application layer protocol is extension APDU instruction.
In one embodiment of cut-in method, ZigBee application system is accessed by ZigBee chip in internet-of-things terminal Later, further include:Internet-of-things terminal is issued to mobile phone card and is instructed using the transmission of data, and will be using data transmission to mobile phone Card;Mobile phone card is instructed in response to the transmission using data that internet-of-things terminal issues, and the application data transmission received is arrived ZigBee chip, and ZigBee application system will be sent to using data by ZigBee chip;Wherein, refer to using the transmission of data It enables as extension APDU instruction.
In one embodiment of cut-in method, the application number of ZigBee application system transmission is received in ZigBee chip According to later, ZigBee chip judges whether are its current ZigBee application layer protocol and the application type using data that receives Unanimously, if unanimously, internet-of-things terminal will be sent to by mobile phone card using data, if it is inconsistent, data will be applied It abandons.
Another aspect according to an embodiment of the present invention proposes a kind of cut-in method of ZigBee application system, including:Hand The inquiry instruction for the ZigBee application layer protocol that internet-of-things terminal issues is received in machine clamping;Mobile phone card is issued in response to internet-of-things terminal ZigBee application layer protocol inquiry instruction, obtain the identification information of the current ZigBee application layer protocol of ZigBee chip, And the identification information of the current ZigBee application layer protocol of ZigBee chip is carried and returns to Internet of Things end in inquiry response End, so that internet-of-things terminal is according to the application class of ZigBee chip current ZigBee application layer protocol and ZigBee application system The consistency of type issues the write instruction of ZigBee application layer protocol;Mobile phone card receives the ZigBee application that internet-of-things terminal issues The write instruction of layer protocol and the consistent ZigBee application layer protocol of application type with ZigBee application system;Mobile phone card response In the write instruction for the ZigBee application layer protocol that internet-of-things terminal issues, the ZigBee application layer protocol received is written ZigBee chip;Wherein, ZigBee chip is integrated on mobile phone card.
In one embodiment of cut-in method, the inquiry instruction and inquiry response of ZigBee application layer protocol and write-in Instruction is expanded application protocol Data Unit APDU instruction.
In one embodiment of cut-in method, mobile phone card receives the transmission using data that internet-of-things terminal issues and instructs With apply data;Mobile phone card is instructed in response to the transmission using data that internet-of-things terminal issues, the application data that will be received It is transmitted to ZigBee chip, and ZigBee application system will be sent to using data by ZigBee chip;Wherein, using data Instruction is sent as extension APDU instruction.
In one embodiment of cut-in method, mobile phone card receives the application data of ZigBee chip transmission, and will receive The application data transmission arrived is to internet-of-things terminal.
Another aspect according to an embodiment of the present invention proposes a kind of internet-of-things terminal, including:Application layer message obtains mould Block, for obtaining the identification information of the current ZigBee application layer protocol of purple honeybee ZigBee chip;Application layer message consistency is sentenced Disconnected module, for judging that the ZigBee that the current ZigBee application layer protocol of ZigBee chip and internet-of-things terminal to be accessed is applied Whether systematic difference type is consistent;Application layer protocol writing module, in response to inconsistent judging result, in Internet of Things It searches in the various ZigBee application layer protocols of terminal storage and is answered with the consistent ZigBee of application type of ZigBee application system With layer protocol, and ZigBee chip will be written with the consistent ZigBee application layer protocol of the application type of ZigBee application system; And AM access module, for being accessed by ZigBee chip after ZigBee chip is written in ZigBee application layer protocol ZigBee application system.
In one embodiment of internet-of-things terminal, AM access module is also used to pass through in response to consistent judging result ZigBee chip accesses ZigBee application system.
In one embodiment of internet-of-things terminal, ZigBee integrated chip is in mobile phone card;Application layer message obtains mould Block, specifically for obtaining the identification information of the current ZigBee application layer protocol of ZigBee chip by mobile phone card;Application layer association Writing module is discussed, specifically for will assist with the consistent ZigBee application layer of the application type of ZigBee application system by mobile phone card View write-in ZigBee chip.
In one embodiment of internet-of-things terminal, it includes query unit and receiving unit that application layer message, which obtains module,; Query unit, for issuing the inquiry instruction of ZigBee application layer protocol to mobile phone card;Receiving unit is returned for receiving mobile phone card The inquiry response returned, and obtain from inquiry response the identification information of the current ZigBee application layer protocol of ZigBee chip;Its In, the inquiry instruction and inquiry response of ZigBee application layer protocol are expanded application protocol Data Unit APDU instruction.
In one embodiment of internet-of-things terminal, application layer protocol writing module is specifically used for issuing to mobile phone card The write instruction of ZigBee application layer protocol, and will be assisted with the consistent ZigBee application layer of the application type of ZigBee application system View is transmitted to mobile phone card, so that ZigBee chip is written in the ZigBee application layer protocol received by mobile phone card;Wherein, ZigBee The write instruction of application layer protocol is extension APDU instruction.
In one embodiment of internet-of-things terminal, further include:Using data transmitting module, for passing through ZigBee core Piece accesses after ZigBee application system, issues to mobile phone card and instructs using the transmission of data, and will be in one's hands using data transmission Machine card, so that mobile phone card will will be sent to using data transmission to ZigBee chip, and by ZigBee chip using data ZigBee application system;It wherein, is extension APDU instruction using the transmission instruction of data.
Other side according to an embodiment of the present invention proposes a kind of mobile phone card, ZigBee chip is integrated on mobile phone card, Mobile phone card further includes:Inquiry instruction receiving module, the inquiry of the ZigBee application layer protocol for receiving internet-of-things terminal sending Instruction;Inquiry instruction respond module, the inquiry instruction of the ZigBee application layer protocol for issuing in response to internet-of-things terminal, is obtained The identification information for the ZigBee application layer protocol for taking ZigBee chip current, and the ZigBee application layer that ZigBee chip is current The identification information carrying of agreement returns to internet-of-things terminal in inquiry response, so that internet-of-things terminal is worked as according to ZigBee chip The consistency of the application type of preceding ZigBee application layer protocol and ZigBee application system issues ZigBee application layer protocol Write instruction;Write instruction receiving module, the write instruction of the ZigBee application layer protocol for receiving internet-of-things terminal sending With with the consistent ZigBee application layer protocol of the application type of ZigBee application system;Writing module, in response to Internet of Things ZigBee core is written in the ZigBee application layer protocol received by the write instruction for the ZigBee application layer protocol that terminal issues Piece.
In one embodiment of mobile phone card, the inquiry instruction and inquiry response of ZigBee application layer protocol and write-in refer to Order is expanded application protocol Data Unit APDU instruction.
In one embodiment of mobile phone card, further include:Using data transmitting module, issued for receiving internet-of-things terminal Using data transmission instruct and apply data, in response to internet-of-things terminal issue using data transmission instruct, will connect The application data transmission received will be sent to ZigBee application system using data to ZigBee chip, and by ZigBee chip, It wherein, is extension APDU instruction using the transmission instruction of data;Alternatively, the application data for receiving the transmission of ZigBee chip, And by the application data transmission received to internet-of-things terminal.
Another aspect according to an embodiment of the present invention proposes a kind of access system of ZigBee application system, including:Before The internet-of-things terminal and mobile phone card above-mentioned stated.
The embodiment of the present invention has at least the following advantages:
On the one hand, internet-of-things terminal is stored with various ZigBee application layer protocols, and works as by comparing ZigBee chip The consistency of the application type of preceding ZigBee application layer protocol and the internet-of-things terminal ZigBee application system to be accessed, two When person is inconsistent, consistent ZigBee application layer protocol is searched from the application layer protocol that itself is stored, and ZigBee core is written Then piece can access ZigBee application system by ZigBee chip, the method for this dynamically load application layer protocol makes The access demand that can meet a variety of ZigBee application systems using a kind of terminal is obtained, without customizing different terminals, is solved The versatility and compatibility issue of internet-of-things terminal under a variety of ZigBee application systems access scenes.
On the other hand, by ZigBee integrated chip in mobile phone card, using existing between mobile phone card and internet-of-things terminal Interface can realize that the dynamically load process of application layer protocol is not necessarily to by the stalling characteristic of mobile phone card and internet-of-things terminal Internet-of-things terminal is transformed, can realize one kind after storing various ZigBee application layer protocols using existing internet-of-things terminal Terminal meets the access demand of a variety of ZigBee application systems, has good realizability, is conducive to pushing away for ZigBee application Extensively.
By referring to the drawings to the detailed description of exemplary embodiment of the present invention, other feature of the invention and its Advantage will become apparent.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is the schematic diagram for the internet-of-things terminal that the prior art supports different ZigBee application systems.
Fig. 2 is the cut-in method of ZigBee application system of the present invention(Referred to as " cut-in method ")The process of one embodiment is shown It is intended to.
Fig. 3 is the flow diagram of the cut-in method further embodiment of ZigBee application system of the present invention.
Fig. 4 is the flow diagram of another embodiment of the cut-in method of ZigBee application system of the present invention.
Information exchange schematic diagram of the Fig. 5 between internet-of-things terminal and mobile phone card.
Fig. 6 is the structural schematic diagram of internet-of-things terminal one embodiment of the present invention.
Fig. 7 is the structural schematic diagram of internet-of-things terminal further embodiment of the present invention.
Fig. 8 is the structural schematic diagram of mobile phone card one embodiment of the present invention.
Fig. 9 is the structural schematic diagram of mobile phone card further embodiment of the present invention.
Figure 10 is the access system of ZigBee application system of the present invention(Referred to as " access system ")The structure of one embodiment Schematic diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Below Description only actually at least one exemplary embodiment be it is illustrative, never as to the present invention and its application or make Any restrictions.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Unless specifically stated otherwise, positioned opposite, the digital table of the component and step that otherwise illustrate in these embodiments It is not limited the scope of the invention up to formula and numerical value.
Simultaneously, it should be appreciated that for ease of description, the size of various pieces shown in attached drawing is not according to reality Proportionate relationship draw.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable In the case of, the technology, method and apparatus should be considered as authorizing part of specification.
In the present invention, mobile phone card for example can be UIM(User Identity Module, subscriber identification module)Card and SIM(Subscriber Identity Module, client identification module)Card etc., but not limited to this.Internet-of-things terminal for example may be used To be the mobile terminals such as mobile phone, but not limited to this.The ZigBee application layer protocol stored in internet-of-things terminal is for example including Home Automation, Smart Energy, Building Automation etc., but not limited to this.The physical layer of ZigBee chip and Network layer can be used and preset unified agreement, the agreement of application layer can change, for ease of use, can be with preset A kind of initial ZigBee application layer protocol, it is more commonly used which can choose any one Agreement.
Under access scene in order to solve a variety of ZigBee application systems, the versatility and compatibility of internet-of-things terminal are asked Topic, the present invention propose a kind of access scheme of ZigBee application system, are specifically described below.
Fig. 2 is the cut-in method of ZigBee application system of the present invention(Referred to as " cut-in method ")The process of one embodiment is shown It is intended to.Various ZigBee application layer protocols are stored in the present embodiment, internet-of-things terminal, ZigBee chip can integrate in object In networked terminals, the interface of setting information interaction between internet-of-things terminal and ZigBee chip.
As shown in Fig. 2, the cut-in method of the present embodiment includes the following steps:
Step S201, internet-of-things terminal obtain the identification information of the current ZigBee application layer protocol of ZigBee chip.
Step S202, internet-of-things terminal judge that the current ZigBee application layer protocol of ZigBee chip and internet-of-things terminal are intended to Whether the application type of the ZigBee application system of access is consistent.
In response to inconsistent judging result, step S203 is first carried out, step S204 is then executed again, in response to consistent Judging result, directly execution step S204.
Step S203, internet-of-things terminal is searched in the various ZigBee application layer protocols of its storage is with ZigBee application The consistent ZigBee application layer protocol of the application type of system, and will be consistent with the application type of ZigBee application system ZigBee chip is written in ZigBee application layer protocol.
Step S204, internet-of-things terminal access ZigBee application system by ZigBee chip.
After internet-of-things terminal accesses ZigBee application system, internet-of-things terminal can be received and dispatched by ZigBee chip and be answered Use data.Using in data transmission procedure, internet-of-things terminal is issued to ZigBee chip and is instructed using the transmission of data, and will be answered With data transmission to ZigBee chip, ZigBee application system will be sent to using data by ZigBee chip.It is connect using data During receipts, ZigBee chip receive ZigBee application system send application data, ZigBee chip judge its currently Whether ZigBee application layer protocol and the application type using data received are consistent, if unanimously, will pass using data Internet-of-things terminal is given, if it is inconsistent, will abandon using data.
Above-mentioned cut-in method realizes application layer association by the information exchange between internet-of-things terminal and ZigBee chip The dynamically load of view, so that the access demand of a variety of ZigBee application systems can be met using a kind of terminal, without customization Different terminals, the versatility and compatibility for solving the internet-of-things terminal under a variety of ZigBee application system access scenes are asked Topic.
Fig. 3 is the cut-in method of ZigBee application system of the present invention(Referred to as " cut-in method ")The process of further embodiment Schematic diagram.In the present embodiment, various ZigBee application layer protocols are stored in internet-of-things terminal, ZigBee integrated chip is in hand In machine card, interface existing between mobile phone card and internet-of-things terminal is utilized(ISO7816 interface)It can realize application layer protocol Dynamically load process, by the stalling characteristic of mobile phone card and internet-of-things terminal, it is not necessary that internet-of-things terminal is transformed, utilization is existing Internet-of-things terminal can realize that a kind of terminal meets a variety of ZigBee applications system after storing various ZigBee application layer protocols The access demand of system has good realizability.
It can be communicated based on ISO7816 interface between mobile phone card and internet-of-things terminal, communication process still can be with base It instructs and realizes in APDU.In order to realize the inquiry and switching of the relevant application layer protocol of the present invention, APDU can be instructed and be carried out Extension, the instruction code that can be specifically instructed in APDU(That is INS field)New instruction code is defined to indicate different security applications Control instruction, for example, the inquiry instruction of application layer protocol, write instruction, using data transmit-receive instruction and corresponding response etc.. This instruction method can be very good to be compatible with existing standard APDU instruction specification.
As shown in figure 3, the cut-in method of the present embodiment includes the following steps:
Step S301, internet-of-things terminal obtain the mark of the current ZigBee application layer protocol of ZigBee chip by mobile phone card Know information.
The implementation method of property as an example, step S301 may include:Internet-of-things terminal is issued to mobile phone card The inquiry instruction of ZigBee application layer protocol;The inquiry for the ZigBee application layer protocol that mobile phone card is issued in response to internet-of-things terminal Instruction obtains the identification information of the current ZigBee application layer protocol of ZigBee chip, and ZigBee chip is current The identification information carrying of ZigBee application layer protocol returns to internet-of-things terminal in inquiry response;Internet-of-things terminal receives mobile phone Block the inquiry response returned, and obtains the mark letter of the current ZigBee application layer protocol of ZigBee chip from inquiry response Breath;Wherein, the inquiry instruction of ZigBee application layer protocol and inquiry response are APDU(Application Protocol Data Unit, Application Protocol Data Unit)Instruction.
Step S302, internet-of-things terminal judge that the current ZigBee application layer protocol of ZigBee chip and internet-of-things terminal are intended to Whether the application type of the ZigBee application system of access is consistent.
In response to inconsistent judging result, step S303 is first carried out, step S304 is then executed again, in response to consistent Judging result, directly execution step S304.
Step S303, internet-of-things terminal is searched in the various ZigBee application layer protocols of its storage is with ZigBee application The consistent ZigBee application layer protocol of the application type of system, and pass through mobile phone card for the application type with ZigBee application system ZigBee chip is written in consistent ZigBee application layer protocol.
The implementation method of property as an example, internet-of-things terminal is by mobile phone card by ZigBee application layer in step S303 ZigBee chip is written in agreement:Internet-of-things terminal issues the write instruction of ZigBee application layer protocol to mobile phone card, And mobile phone card will be transmitted to the consistent ZigBee application layer protocol of the application type of ZigBee application system;Mobile phone card in response to The ZigBee application layer protocol received is written the write instruction for the ZigBee application layer protocol that internet-of-things terminal issues ZigBee chip;Mobile phone card can also return to the write-in response of ZigBee application layer protocol to internet-of-things terminal, such as be written to Function response, write-in failure response etc..Wherein, the write instruction of ZigBee application layer protocol and write-in response can be extension APDU Instruction.
Step S304, internet-of-things terminal access ZigBee application system by ZigBee chip.
After internet-of-things terminal accesses ZigBee application system, internet-of-things terminal can be received and dispatched by mobile phone card and apply number According to.Using in data transmission procedure, internet-of-things terminal is issued to mobile phone card and is instructed using the transmission of data, and will be passed using data It is sent to mobile phone card;Mobile phone card is instructed in response to the transmission using data that internet-of-things terminal issues, the application data that will be received It is transmitted to ZigBee chip, and ZigBee application system will be sent to using data by ZigBee chip;Mobile phone card can also be to Internet-of-things terminal is returned to be responded using the transmission of data, for example, send success response, send failure response etc..Wherein, using number According to transmission instruction and send response can for extension APDU instruction.Using in DRP data reception process, ZigBee chip is received After the application data that ZigBee application system is sent, ZigBee chip judges its current ZigBee application layer protocol and receives Whether the application type using data arrived is consistent, if unanimously, will send Internet of Things end to by mobile phone card using data End, if it is inconsistent, will be abandoned using data.
Fig. 4 is the cut-in method of ZigBee application system of the present invention(Referred to as " cut-in method ")The process of another embodiment Schematic diagram.In the present embodiment, various ZigBee application layer protocols are stored in internet-of-things terminal, ZigBee integrated chip is in hand In machine card, the dynamically load mistake of application layer protocol can be realized using interface existing between mobile phone card and internet-of-things terminal Journey, it is not necessary that internet-of-things terminal is transformed, is deposited by the stalling characteristic of mobile phone card and internet-of-things terminal using existing internet-of-things terminal Storing up various ZigBee application layer protocols can realize that a kind of terminal meets the access demand of a variety of ZigBee application systems later, With good realizability.
As shown in figure 4, the cut-in method of the present embodiment includes the following steps:
Step S401, mobile phone card receive the inquiry instruction for the ZigBee application layer protocol that internet-of-things terminal issues.
Step S402, the inquiry instruction for the ZigBee application layer protocol that mobile phone card is issued in response to internet-of-things terminal obtain The identification information of the current ZigBee application layer protocol of ZigBee chip, and the current ZigBee application layer of ZigBee chip is assisted The identification information carrying of view returns to internet-of-things terminal in inquiry response, so that internet-of-things terminal is current according to ZigBee chip ZigBee application layer protocol and the consistency of the application type of ZigBee application system issue ZigBee application layer protocol and write Enter instruction.
Wherein, the inquiry instruction of ZigBee application layer protocol and inquiry response and write instruction are that extension APDU refers to It enables.
Step S403, mobile phone card receive internet-of-things terminal issue ZigBee application layer protocol write instruction and with The consistent ZigBee application layer protocol of the application type of ZigBee application system.
Step S404, the write instruction for the ZigBee application layer protocol that mobile phone card is issued in response to internet-of-things terminal, will connect The ZigBee application layer protocol write-in ZigBee chip received.
After internet-of-things terminal accesses ZigBee application system, internet-of-things terminal can be received and dispatched by mobile phone card and apply number According to.Using in data transmission procedure, mobile phone card receives the transmission using data that internet-of-things terminal issues and instructs and apply data; Mobile phone card is instructed in response to the transmission using data that internet-of-things terminal issues, by the application data transmission received to ZigBee Chip, and ZigBee application system will be sent to using data by ZigBee chip;Mobile phone card can also be returned to internet-of-things terminal It responds and is responded with the transmission of data, for example, send success response, send failure response etc..Wherein, it is instructed using the transmission of data It can be extension APDU instruction with response is sent.Using in DRP data reception process, mobile phone card receives answering for ZigBee chip transmission With data, and by the application data transmission received to internet-of-things terminal.
Based on foregoing description, in the access procedure and application data transfer procedure of ZigBee application system, Internet of Things is whole Information exchange between end and mobile phone card is with reference to shown in Fig. 5.
Fig. 6 is the structural schematic diagram of internet-of-things terminal one embodiment of the present invention.As shown in fig. 6, the Internet of Things of the present embodiment Network termination, including:
Application layer message obtains module 601, for obtaining the current ZigBee application layer protocol of purple honeybee ZigBee chip Identification information;
Application layer message consistency judgment module 602, for judging the current ZigBee application layer protocol of ZigBee chip It is whether consistent with the application type of the internet-of-things terminal ZigBee application system to be accessed;
Application layer protocol writing module 603, for being stored in internet-of-things terminal each in response to inconsistent judging result The consistent ZigBee application layer protocol of application type with ZigBee application system is searched in kind ZigBee application layer protocol, and will ZigBee chip is written with the consistent ZigBee application layer protocol of application type of ZigBee application system;And
AM access module 604, for passing through ZigBee chip after ZigBee chip is written in ZigBee application layer protocol Access ZigBee application system.
In one embodiment, AM access module 604 are also used to pass through ZigBee chip in response to consistent judging result Access ZigBee application system.
Wherein, ZigBee chip can integrate in mobile phone card or internet-of-things terminal.
In ZigBee integrated chip in mobile phone card, application layer message obtains module 601, specifically for being obtained by mobile phone card The identification information for the ZigBee application layer protocol for taking ZigBee chip current.As an example, application layer message obtains module 601 include query unit and receiving unit;Query unit, the inquiry for issuing ZigBee application layer protocol to mobile phone card refer to It enables;Receiving unit, for receiving the inquiry response of mobile phone card return, and it is current to obtain from inquiry response ZigBee chip The identification information of ZigBee application layer protocol;Wherein, the inquiry instruction of ZigBee application layer protocol and inquiry response are extension APDU instruction.
In ZigBee integrated chip in mobile phone card, application layer protocol writing module 603, being specifically used for will by mobile phone card ZigBee chip is written with the consistent ZigBee application layer protocol of application type of ZigBee application system.As an example, Application layer protocol writing module 603 is specifically used for issuing the write instruction of ZigBee application layer protocol to mobile phone card, and will be with The consistent ZigBee application layer protocol of the application type of ZigBee application system is transmitted to mobile phone card, so that mobile phone card will receive ZigBee application layer protocol be written ZigBee chip;Wherein, the write instruction of ZigBee application layer protocol is that extension APDU refers to It enables.
In one embodiment, as shown in fig. 7, internet-of-things terminal further includes:Using data transmitting module 705, it is used for After accessing ZigBee application system by ZigBee chip, issues to mobile phone card and instructed using the transmission of data, and will apply Data transmission is to mobile phone card, so that mobile phone card will will apply number to ZigBee chip, and by ZigBee chip using data transmission According to being sent to ZigBee application system;It wherein, is extension APDU instruction using the transmission instruction of data.
Fig. 8 is the structural schematic diagram of mobile phone card one embodiment of the present invention.In the present embodiment, it is integrated on mobile phone card ZigBee chip, as shown in figure 8, mobile phone card further includes:
Inquiry instruction receiving module 801 refers to for receiving the inquiry of ZigBee application layer protocol of internet-of-things terminal sending It enables;
Inquiry instruction respond module 802, the inquiry of the ZigBee application layer protocol for being issued in response to internet-of-things terminal Instruction obtains the identification information of the current ZigBee application layer protocol of ZigBee chip, and ZigBee chip is current ZigBee application layer protocol identification information carrying internet-of-things terminal is returned in inquiry response, so as to internet-of-things terminal according to The consistency of the current ZigBee application layer protocol of ZigBee chip and the application type of ZigBee application system issues ZigBee The write instruction of application layer protocol;
Write instruction receiving module 803 refers to for receiving the write-in of ZigBee application layer protocol of internet-of-things terminal sending Order and the consistent ZigBee application layer protocol of application type with ZigBee application system;And
Writing module 804, the write instruction of the ZigBee application layer protocol for issuing in response to internet-of-things terminal, will connect The ZigBee application layer protocol write-in ZigBee chip received.
In one embodiment, the inquiry instruction of ZigBee application layer protocol and inquiry response and write instruction are to expand Open up APDU instruction.
In one embodiment, as shown in figure 9, mobile phone card further includes:Using data transmitting module 905, for receiving object The transmission using data that networked terminals issue instructs and applies data, the hair using data issued in response to internet-of-things terminal Instruction is sent, by the application data transmission received to ZigBee chip, and will be sent to using data by ZigBee chip ZigBee application system, wherein instructed using the transmission instruction of data for extension APDU;Alternatively, using data transmitting module 905 For receiving the application data of ZigBee chip transmission, and by the application data transmission received to internet-of-things terminal.
Figure 10 is the access system of ZigBee application system of the present invention(Referred to as " access system ")The structure of one embodiment Schematic diagram.As shown in Figure 10, the access system of the present embodiment includes:It integrates the mobile phone card 1001 of ZigBee chip 1001A and deposits Contain the internet-of-things terminal 1002 of various ZigBee application layer protocols.Wherein, before the reference of the function of mobile phone card and internet-of-things terminal State function description of the ZigBee integrated chip under mobile phone card scene.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (19)

1. a kind of cut-in method of ZigBee application system, including:
Internet-of-things terminal obtains the identification information of the current ZigBee application layer protocol of purple honeybee ZigBee chip by mobile phone card; ZigBee integrated chip is in mobile phone card;
Internet-of-things terminal judges the current ZigBee application layer protocol of ZigBee chip and the internet-of-things terminal ZigBee to be accessed Whether the application type of application system is consistent;
In response to inconsistent judging result, internet-of-things terminal its storage various ZigBee application layer protocols in search with The consistent ZigBee application layer protocol of the application type of ZigBee application system, and will be with ZigBee application system by mobile phone card The consistent ZigBee application layer protocol of application type ZigBee chip is written, then answered by ZigBee chip access ZigBee Use system.
2. the method according to claim 1, wherein further including:
In response to consistent judging result, internet-of-things terminal accesses ZigBee application system by ZigBee chip.
3. working as the method according to claim 1, wherein internet-of-things terminal obtains ZigBee chip by mobile phone card The identification information of preceding ZigBee application layer protocol includes:
Internet-of-things terminal issues the inquiry instruction of ZigBee application layer protocol to mobile phone card;
It is current to obtain ZigBee chip for the inquiry instruction for the ZigBee application layer protocol that mobile phone card is issued in response to internet-of-things terminal ZigBee application layer protocol identification information, and the identification information of the current ZigBee application layer protocol of ZigBee chip is taken Band returns to internet-of-things terminal in inquiry response;
Internet-of-things terminal receives the inquiry response that mobile phone card returns, and it is current to obtain from inquiry response ZigBee chip The identification information of ZigBee application layer protocol;
Wherein, the inquiry instruction of ZigBee application layer protocol and inquiry response are that expanded application protocol Data Unit APDU refers to It enables.
4. according to the method described in claim 1, internet-of-things terminal passes through mobile phone card for the application class with ZigBee application system ZigBee chip is written in the consistent ZigBee application layer protocol of type:
Internet-of-things terminal issues the write instruction of ZigBee application layer protocol to mobile phone card, and will answer with ZigBee application system Mobile phone card is transmitted to the consistent ZigBee application layer protocol of type;
The write instruction for the ZigBee application layer protocol that mobile phone card is issued in response to internet-of-things terminal, the ZigBee received is answered ZigBee chip is written with layer protocol;
Wherein, the write instruction of ZigBee application layer protocol is extension APDU instruction.
5. method according to claim 1-4, which is characterized in that connect in internet-of-things terminal by ZigBee chip After entering ZigBee application system, further include:
Internet-of-things terminal is issued to mobile phone card and is instructed using the transmission of data, and will be using data transmission to mobile phone card;
Mobile phone card is instructed in response to the transmission using data that internet-of-things terminal issues, and the application data transmission received is arrived ZigBee chip, and ZigBee application system will be sent to using data by ZigBee chip;
It wherein, is extension APDU instruction using the transmission instruction of data.
6. according to the method described in claim 5, it is characterized in that, further including:
ZigBee chip receive ZigBee application system transmission application data after, ZigBee chip judge its currently Whether ZigBee application layer protocol and the application type using data received are consistent, if unanimously, will lead to using data It crosses mobile phone card and sends internet-of-things terminal to, if it is inconsistent, will be abandoned using data.
7. a kind of cut-in method of ZigBee application system, including:
Mobile phone card receives the inquiry instruction for the ZigBee application layer protocol that internet-of-things terminal issues;
It is current to obtain ZigBee chip for the inquiry instruction for the ZigBee application layer protocol that mobile phone card is issued in response to internet-of-things terminal ZigBee application layer protocol identification information, and the identification information of the current ZigBee application layer protocol of ZigBee chip is taken Band returns to internet-of-things terminal in inquiry response, so as to the internet-of-things terminal ZigBee application layer current according to ZigBee chip The consistency of the application type of agreement and ZigBee application system issues the write instruction of ZigBee application layer protocol;
Mobile phone card receive internet-of-things terminal issue ZigBee application layer protocol write instruction and with ZigBee application system The consistent ZigBee application layer protocol of application type;
The write instruction for the ZigBee application layer protocol that mobile phone card is issued in response to internet-of-things terminal, the ZigBee received is answered ZigBee chip is written with layer protocol;
Wherein, ZigBee chip is integrated on mobile phone card.
8. the method according to the description of claim 7 is characterized in that the inquiry instruction and inquiry response of ZigBee application layer protocol And write instruction is expanded application protocol Data Unit APDU instruction.
9. the method according to the description of claim 7 is characterized in that further including:
Mobile phone card receives the transmission using data that internet-of-things terminal issues and instructs and apply data;
Mobile phone card is instructed in response to the transmission using data that internet-of-things terminal issues, and the application data transmission received is arrived ZigBee chip, and ZigBee application system will be sent to using data by ZigBee chip;
It wherein, is extension APDU instruction using the transmission instruction of data.
10. the method according to the description of claim 7 is characterized in that further including:
Mobile phone card receives the application data of ZigBee chip transmission, and by the application data transmission received to internet-of-things terminal.
11. a kind of internet-of-things terminal, including:
Application layer message obtains module, for obtaining the current ZigBee application layer protocol of purple honeybee ZigBee chip by mobile phone card Identification information;ZigBee integrated chip is in mobile phone card;
Application layer message consistency judgment module, for judging ZigBee chip current ZigBee application layer protocol and Internet of Things Whether the application type of the terminal ZigBee application system to be accessed is consistent;
Application layer protocol writing module, for being stored in internet-of-things terminal various in response to inconsistent judging result The consistent ZigBee application layer protocol of application type with ZigBee application system is searched in ZigBee application layer protocol, and is passed through ZigBee chip will be written with the consistent ZigBee application layer protocol of the application type of ZigBee application system in mobile phone card;And
AM access module, for being accessed by ZigBee chip after ZigBee chip is written in ZigBee application layer protocol ZigBee application system.
12. internet-of-things terminal according to claim 11, which is characterized in that
AM access module, is also used in response to consistent judging result, accesses ZigBee application system by ZigBee chip.
13. internet-of-things terminal according to claim 11, which is characterized in that it includes cargo tracer that application layer message, which obtains module, Member and receiving unit;
Query unit, for issuing the inquiry instruction of ZigBee application layer protocol to mobile phone card;
Receiving unit, for receiving the inquiry response of mobile phone card return, and it is current to obtain from inquiry response ZigBee chip The identification information of ZigBee application layer protocol;
Wherein, the inquiry instruction of ZigBee application layer protocol and inquiry response are that expanded application protocol Data Unit APDU refers to It enables.
14. internet-of-things terminal according to claim 11, application layer protocol writing module is specifically used for issuing to mobile phone card The write instruction of ZigBee application layer protocol, and will be assisted with the consistent ZigBee application layer of the application type of ZigBee application system View is transmitted to mobile phone card, so that ZigBee chip is written in the ZigBee application layer protocol received by mobile phone card;
Wherein, the write instruction of ZigBee application layer protocol is extension APDU instruction.
15. the described in any item internet-of-things terminals of 1-14 according to claim 1, which is characterized in that further include:Using data transmission Module, for issuing to mobile phone card and referring to using the transmission of data after accessing ZigBee application system by ZigBee chip It enables, and will be using data transmission to mobile phone card, so that mobile phone card will apply data transmission to ZigBee chip, and by ZigBee core Piece will be sent to ZigBee application system using data;
It wherein, is extension APDU instruction using the transmission instruction of data.
16. a kind of mobile phone card, it is integrated with ZigBee chip on mobile phone card, mobile phone card further includes:
Inquiry instruction receiving module, the inquiry instruction of the ZigBee application layer protocol for receiving internet-of-things terminal sending;
Inquiry instruction respond module, the inquiry instruction of the ZigBee application layer protocol for issuing in response to internet-of-things terminal, is obtained The identification information for the ZigBee application layer protocol for taking ZigBee chip current, and the ZigBee application layer that ZigBee chip is current The identification information carrying of agreement returns to internet-of-things terminal in inquiry response, so that internet-of-things terminal is worked as according to ZigBee chip The consistency of the application type of preceding ZigBee application layer protocol and ZigBee application system issues ZigBee application layer protocol Write instruction;
Write instruction receiving module, for receive internet-of-things terminal sending ZigBee application layer protocol write instruction and with The consistent ZigBee application layer protocol of the application type of ZigBee application system;
Writing module, the write instruction of the ZigBee application layer protocol for being issued in response to internet-of-things terminal, by what is received ZigBee chip is written in ZigBee application layer protocol.
17. mobile phone card according to claim 16, which is characterized in that the inquiry instruction of ZigBee application layer protocol and inquiry Response and write instruction are expanded application protocol Data Unit APDU instruction.
18. mobile phone card according to claim 16, which is characterized in that further include:
Using data transmitting module, the transmission using data for receiving internet-of-things terminal sending is instructed and using data, is rung The transmission using data that should be issued in internet-of-things terminal instructs, by the application data transmission received to ZigBee chip, and ZigBee application system will be sent to using data by ZigBee chip, wherein the transmission instruction using data is extension APDU Instruction;Alternatively, the application data for receiving the transmission of ZigBee chip, and by the application data transmission received to Internet of Things end End.
19. a kind of access system of ZigBee application system, including:The described in any item internet-of-things terminals of claim 11-15 And the described in any item mobile phone cards of claim 16-18.
CN201410065392.XA 2014-02-26 2014-02-26 The cut-in method and system and internet-of-things terminal and mobile phone card of ZigBee application system Active CN104869608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410065392.XA CN104869608B (en) 2014-02-26 2014-02-26 The cut-in method and system and internet-of-things terminal and mobile phone card of ZigBee application system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410065392.XA CN104869608B (en) 2014-02-26 2014-02-26 The cut-in method and system and internet-of-things terminal and mobile phone card of ZigBee application system

Publications (2)

Publication Number Publication Date
CN104869608A CN104869608A (en) 2015-08-26
CN104869608B true CN104869608B (en) 2018-11-30

Family

ID=53915027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410065392.XA Active CN104869608B (en) 2014-02-26 2014-02-26 The cut-in method and system and internet-of-things terminal and mobile phone card of ZigBee application system

Country Status (1)

Country Link
CN (1) CN104869608B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105185085B (en) * 2015-09-22 2018-12-18 小米科技有限责任公司 Data communication system, method and device
CN106209177A (en) * 2016-07-19 2016-12-07 柳州六品科技有限公司 A kind of ZIGBEE application module

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764216A (en) * 2005-10-31 2006-04-26 西门子(中国)有限公司 System, device and method for providing network service for user
CN101931642A (en) * 2009-07-17 2010-12-29 大连理工计算机控制工程有限公司 Multi-network control system communication management method
CN103262493A (en) * 2011-10-07 2013-08-21 Lg电子株式会社 Method for accessing multiple networks, and communication equipment for same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200814666A (en) * 2006-09-06 2008-03-16 Compal Communications Inc ZigBee network module system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764216A (en) * 2005-10-31 2006-04-26 西门子(中国)有限公司 System, device and method for providing network service for user
CN101931642A (en) * 2009-07-17 2010-12-29 大连理工计算机控制工程有限公司 Multi-network control system communication management method
CN103262493A (en) * 2011-10-07 2013-08-21 Lg电子株式会社 Method for accessing multiple networks, and communication equipment for same

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Standardized Protocol Stack for the Internet of (Important) Things;Maria Rita Palattella等;《IEEE》;20131231;全文 *
ZigBee 协议栈浅析;丁雪莲;《电脑与信息技术》;20131030;全文 *

Also Published As

Publication number Publication date
CN104869608A (en) 2015-08-26

Similar Documents

Publication Publication Date Title
CN104471600B (en) The management method and terminal of a kind of safe unit
US9854383B2 (en) Method and system for managing multiple applications in near field communication
EP3016296B1 (en) Bluetooth communication method and bluetooth communication device
CN101895572B (en) Data interaction method and system between SD card and main control equipment
CN103384291B (en) Based on scene mode setting method and the system of NFC
CN109151803B (en) Information interacting method and device, intelligent card chip and terminal
CN102223735A (en) Method and equipment for multi-baseband chips to share and access smart card
CN102891796A (en) Mining intelligent transmission gateway
CN104936167A (en) Card writing method, system and equipment
CN104869608B (en) The cut-in method and system and internet-of-things terminal and mobile phone card of ZigBee application system
CN101860440A (en) Wireless internet module and data synchronism method and data card using same
CN101957921A (en) Display method, device and system of radio frequency identification application information
CN101583204B (en) Method and system for realizing managing universal combined circuit card multiple application files
CN106488531B (en) Method for fast connecting wireless local area network
CN106941553A (en) A kind of Hospitality management system
CN106131303A (en) Method for processing business and device
CN105976476A (en) System and method for remotely controlling intelligent lock
CN104951417A (en) Method for achieving USB combined device suitable for high-capacity USIM
CN105246125B (en) A kind of access control method and terminal
CN101938848A (en) Host computer equipment wireless network access method and system
CN101868049A (en) Communication methods for host and wireless Internet access module and host communication module
CN106804024A (en) A kind of method and apparatus of MANET
CN206369948U (en) A kind of decoration integration control system of wisdom
CN106845974B (en) Method and device for realizing point-to-point communication of near field communication
CN103200236A (en) Ubiquitous network and numbering method and control method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant