CN105991779B - A kind of method, apparatus and middleware of Internet of Things short haul connection - Google Patents

A kind of method, apparatus and middleware of Internet of Things short haul connection Download PDF

Info

Publication number
CN105991779B
CN105991779B CN201510053143.3A CN201510053143A CN105991779B CN 105991779 B CN105991779 B CN 105991779B CN 201510053143 A CN201510053143 A CN 201510053143A CN 105991779 B CN105991779 B CN 105991779B
Authority
CN
China
Prior art keywords
address
application programming
terminal device
programming interface
physical address
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
CN201510053143.3A
Other languages
Chinese (zh)
Other versions
CN105991779A (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 Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co 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 Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201510053143.3A priority Critical patent/CN105991779B/en
Publication of CN105991779A publication Critical patent/CN105991779A/en
Application granted granted Critical
Publication of CN105991779B publication Critical patent/CN105991779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides the method, apparatus and middleware of a kind of Internet of Things short haul connection, wherein method is applied to middleware, comprising: obtains the virtual address for the application programming interface that application program is sent and the virtual address for the terminal device to be accessed;Matching obtains the physical address of the corresponding terminal device of virtual address of the physical address and the terminal device of the application programming interface corresponding with the virtual address of the application programming interface;Corresponding application programming interface is called according to the physical address of the application programming interface, and the terminal device is accessed by the physical address of the application programming interface and the terminal device.This programme virtual address unified by smart machine, to control smart machine, the IP address of network and node where making user be no longer necessary solution intelligent node before use, user is easy to use, can be good at meeting user experience demand.

Description

A kind of method, apparatus and middleware of Internet of Things short haul connection
Technical field
The present invention relates to Internet of Things short-range communication technique fields, particularly relate to a kind of side of Internet of Things short haul connection Method, device and middleware.
Background technique
By taking smart home system as an example, existing smart home node such as lamp dimmer, infrared inductor, intelligence are opened Pass, environmental monitor etc., there are many possibility with the networking mode of intelligent domestic gateway, as Zigbee (low-power consumption local area network association View), Wifi (high frequency wireless protocols), BT (bit-torrent agreement) mainstream short haul connection be likely to as smart home Networking mode.
Home gateway is broadcasted by Wifi, Zigbee, BT come networking, distributively for the intelligent node in one's name network Location.The application program of home gateway needs to know that intelligent node is place when controlling intelligent node or obtaining status information In which network of Zigbee, Wifi, BT, by the network address of distribution, the interface API of corresponding network is called to realize pair The control of intelligent node.
The application program of existing home gateway needs network belonging to clearly different intelligent nodes and in this network In address, by calling the api interface (application programming interface) of this network come control node or obtaining node The shortcomings that information, this home gateway, is:
1. it should be understood that the IP address of network and node where intelligent node before;
2. the form of address is different in heterogeneous networks, do not form unified management, for example, the address wifi be point minute ten into It makes (192.168.0.100), the address of Zigbee is the decimal system of 0-255 (253);
3. the api interface that heterogeneous networks call is different;
Disadvantage mentioned above leads to user's victory inconvenient for use, is not well positioned to meet user experience demand.
Summary of the invention
The technical problem to be solved in the present invention is to provide the method, apparatus and middleware of a kind of Internet of Things short haul connection, It solves in the prior art since network address form and api interface are different, using preceding it should be understood that network where intelligent node With the IP address of node, the problem of leading to user's victory inconvenient for use, not being well positioned to meet user experience demand.
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of method of Internet of Things short haul connection, application In middleware, which comprises
The virtual address for the application programming interface that acquisition application program is sent is virtual with the terminal device to be accessed The virtual address of address, the virtual address of the application programming interface and the terminal device to be accessed is by the first communication protocol Distribution;
Matching obtains the application programming interface corresponding with the virtual address of the application programming interface The physical address of the corresponding terminal device of the virtual address of physical address and the terminal device, the application program are compiled The physical address of the physical address of journey interface and the terminal device is distributed by the second communication protocol;
Corresponding application programming interface is called according to the physical address of the application programming interface, and passes through institute The physical address for stating application programming interface and the terminal device accesses the terminal device.
Wherein, first communication protocol is Internet of Things short-range communication protocols.
Wherein, second communication protocol be high frequency wireless protocols, it is low-power consumption LAN protocol, bit-torrent agreement, non- Any one or more in contact Radio Frequency Identity Protocols.
Wherein, matching obtains the application programming corresponding with the virtual address of the application programming interface and connects Mouthful physical address and the terminal device the corresponding terminal device of virtual address physical address the step of include:
It is obtained in application programming interface relation table according to the virtual address of the application programming interface described The physical address of application programming interface;
The terminal device is obtained physically in the relation table of device address according to the virtual address of the terminal device Location;
Wherein, the application programming interface relation table has the physical address of the application programming interface and right Virtual address after the unified format answered;
The device address relation table has terminal device description information and corresponding physical address and corresponding unification Virtual address after format.
Wherein, the method also includes:
Obtain the physical address of one or more application Program Interfaces;
The physical address of one or more of application programming interfaces is separately converted to the void of unified address format Quasi- address;
By the physical address of one or more of application programming interfaces and void corresponding with the physical address Quasi- address storage is into the application programming interface relation table.
Wherein, the method also includes:
Obtain the physical address of terminal device and the device descriptive information of the corresponding terminal device;
Convert the physical address of the terminal device to the virtual address of unified address format;
By the physical address of the terminal device and virtual address corresponding with the physical address and equipment description letter Breath storage is into the device address relation table.
Wherein, corresponding application programming interface is called according to the physical address of the application programming interface, and Before the physical address of the application programming interface and the terminal device access terminal device further include:
Receive the instruction for executing broadcast;
It is broadcasted according to the instruction for executing broadcast;
Each application programming interface and terminal device are obtained according to the online information of the broadcast feedback;
Correspondingly, corresponding application programming interface is called according to the physical address of the application programming interface, And the step of accessing the terminal device by the physical address of the application programming interface and the terminal device, is specific Are as follows:
Call the corresponding online information instruction is online to answer according to the physical address of the application programming interface With Program Interfaces, and accessed by the physical address of the application programming interface and the terminal device described online Information indicates online terminal device.
The present invention also provides a kind of devices of Internet of Things short haul connection, are applied to middleware, and described device includes:
First obtains module, for obtaining the virtual address of the application programming interface of application program transmission and being intended to access Terminal device virtual address, the virtual address of the application programming interface and the terminal device to be accessed are virtually Location is distributed by the first communication protocol;
Matching module, for match obtain it is corresponding with the virtual address of the application programming interface described using journey The physical address of the corresponding terminal device of the virtual address of the physical address of sequence programming interface and the terminal device, institute The physical address of the physical address and the terminal device of stating application programming interface is distributed by the second communication protocol;
First processing module, for calling corresponding application program according to the physical address of the application programming interface Programming interface, and the terminal device is accessed by the physical address of the application programming interface and the terminal device.
Wherein, first communication protocol is Internet of Things short-range communication protocols.
Wherein, second communication protocol be high frequency wireless protocols, it is low-power consumption LAN protocol, bit-torrent agreement, non- Any one or more in contact Radio Frequency Identity Protocols.
Wherein, the matching module includes:
First acquisition submodule, for being connect according to the virtual address of the application programming interface in application programming The physical address of the application programming interface is obtained in mouth relation table;
Second acquisition submodule, for obtaining institute in the relation table of device address according to the virtual address of the terminal device State the physical address of terminal device;
Wherein, the application programming interface relation table has the physical address of the application programming interface and right Virtual address after the unified format answered;
The device address relation table has terminal device description information and corresponding physical address and corresponding unification Virtual address after format.
Wherein, described device further include:
Second obtains module, for obtaining the physical address of one or more application Program Interfaces;
Second processing module, for the physical address of one or more of application programming interfaces to be separately converted to The virtual address of unified address format;
First memory module, for by the physical address of one or more of application programming interfaces and with it is described The corresponding virtual address storage of physical address is into the application programming interface relation table.
Wherein, described device further include:
Third obtains module, and the equipment for the physical address and the corresponding terminal device that obtain terminal device is retouched State information;
Third processing module, for converting unified address format virtually for the physical address of the terminal device Location;
Second memory module, for by the physical address of the terminal device and corresponding with the physical address virtual Address and device descriptive information storage are into the device address relation table.
Wherein, further includes:
Receiving module before executing operation for the first processing module, receives the instruction for executing broadcast;
Broadcast module, for being broadcasted according to the instruction for executing broadcast;
4th obtains module, for obtaining each application programming interface and terminal device according to the broadcast feedback Online information;
Correspondingly, the first processing module is specifically used for:
Call the corresponding online information instruction is online to answer according to the physical address of the application programming interface With Program Interfaces, and accessed by the physical address of the application programming interface and the terminal device described online Information indicates online terminal device.
The present invention also provides a kind of middlewares, comprising: the device of above-mentioned Internet of Things short haul connection.
The advantageous effects of the above technical solutions of the present invention are as follows:
In above scheme, the method for the Internet of Things short haul connection is compiled by obtaining the application program that application program is sent The virtual address of the virtual address of journey interface and the terminal device to be accessed, matching obtain virtual with application programming interface The object of the corresponding terminal device of virtual address of the physical address and terminal device of the corresponding application programming interface in address Address is managed, and then corresponding application programming interface is called according to the physical address of application programming interface, and by answering Terminal device is accessed with the physical address of Program Interfaces and terminal device, shields different short-range communication protocols, it is right Upper layer application provides unified virtual network address and interface, by the virtual address that smart machine is unified, to control intelligence Equipment makes user that need not be concerned about which kind of agreement smart machine is specifically, the complexity of application and development is greatly reduced, before use The IP address of the network and node that are no longer necessary where solving intelligent node, user is easy to use, can be good at meeting user Demand for experience.
Detailed description of the invention
Fig. 1 is the method and step schematic diagram of the Internet of Things short haul connection of the embodiment of the present invention;
Fig. 2 is the flow diagram that the embodiment of the present invention calls corresponding physical address according to the virtual address of API;
Fig. 3 is the apparatus structure schematic diagram of the Internet of Things short haul connection of the embodiment of the present invention;
Fig. 4 is the Java middleware architecture schematic diagram of the embodiment of the present invention.
Specific embodiment
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool Body embodiment is described in detail.
The present invention in view of the prior art in due to network address form and api interface it is different, using preceding it should be understood that intelligence The IP address of network and node where energy node, leads to user's victory inconvenient for use, is not well positioned to meet user experience demand The problem of, a kind of method of Internet of Things short haul connection is provided, is applied to middleware, as shown in Figure 1, which comprises
Step 11: obtaining the virtual address for the application programming interface that application program is sent and the terminal device to be accessed Virtual address, the virtual address of the virtual address of the application programming interface and the terminal device to be accessed led to by first Believe agreement distribution;
Step 12: matching obtains the application programming corresponding with the virtual address of the application programming interface The physical address of the corresponding terminal device of the virtual address of the physical address of interface and the terminal device, the application The physical address of the physical address of Program Interfaces and the terminal device is distributed by the second communication protocol;
Step 13: corresponding application programming interface is called according to the physical address of the application programming interface, And the terminal device is accessed by the physical address of the application programming interface and the terminal device.
The method of the Internet of Things short haul connection provided in an embodiment of the present invention is by obtaining answering for application program transmission With the virtual address of Program Interfaces and the virtual address for the terminal device to be accessed, matching obtains connecing with application programming The corresponding terminal of virtual address of the physical address and terminal device of the corresponding application programming interface of virtual address of mouth The physical address of equipment, and then corresponding application programming interface is called according to the physical address of application programming interface, And terminal device is accessed by the physical address of application programming interface and terminal device, shield different short haul connections Agreement provides unified virtual network address and interface to upper layer application, by the virtual address that smart machine is unified, to control Smart machine processed makes user that need not be concerned about which kind of agreement smart machine is specifically, greatly reduces the complexity of application and development, The IP address of the network and node that are no longer necessary where solving intelligent node before use, user is easy to use, can be good at full Sufficient user experience demand.
Wherein, first communication protocol is Internet of Things short-range communication protocols;Second communication protocol be high frequency without Wire protocol, low-power consumption LAN protocol, bit-torrent agreement, any one or more in non-contact radio-frequency identification agreement.
Specifically, matching obtains the application programming corresponding with the virtual address of the application programming interface The step of physical address of the corresponding terminal device of the virtual address of the physical address of interface and the terminal device, wraps It includes: being obtained in application programming interface relation table according to the virtual address of the application programming interface described using journey The physical address of sequence programming interface;The terminal is obtained in the relation table of device address according to the virtual address of the terminal device The physical address of equipment;
Wherein, the application programming interface relation table has the physical address of the application programming interface and right Virtual address after the unified format answered;The device address relation table has terminal device description information and corresponding physics Virtual address behind address and corresponding unified format.
Further, the method also includes: obtain one or more application Program Interfaces physical address;By institute The physical address for stating one or more application Program Interfaces is separately converted to the virtual address of unified address format;It will be described The physical address of one or more application Program Interfaces and virtual address corresponding with the physical address are stored to institute It states in application programming interface relation table.
The operation of the physical address of above-mentioned acquisition one or more application Program Interfaces can according to predetermined period come It executes.
Further, the method also includes: the physical address and the corresponding terminal for obtaining terminal device are set Standby device descriptive information;Convert the physical address of the terminal device to the virtual address of unified address format;It will be described The physical address of terminal device and the storage of virtual address corresponding with the physical address and device descriptive information are set to described In standby address relationship table.
The operation of the device descriptive information of the physical address of above-mentioned acquisition terminal device and the corresponding terminal device It can be executed according to predetermined period.
The API and equipment that user calls in order to prevent are unavailable, according to institute in the method provided in an embodiment of the present invention The physical address for stating application programming interface calls corresponding application programming interface, and passes through the application programming The physical address of interface and the terminal device accesses before the terminal device further include: receives the instruction for executing broadcast;Root It is broadcasted according to the instruction for executing broadcast;It is anti-according to the broadcast to obtain each application programming interface and terminal device The online information of feedback;
Correspondingly, corresponding application programming interface is called according to the physical address of the application programming interface, And the step of accessing the terminal device by the physical address of the application programming interface and the terminal device, is specific Are as follows: call the corresponding online information to indicate online application program according to the physical address of the application programming interface Programming interface, and the online information is accessed by the physical address of the application programming interface and the terminal device and is referred to Show online terminal device.
Concrete example explanation is carried out to the method for Internet of Things short haul connection provided in an embodiment of the present invention below.
Known home gateway application is the direct development and application program, so of the invention in several short-range communication protocols Embodiment be a kind of new agreement-Internet of Things short-range communication protocols are encapsulated on several short-range communication protocols, and The agreement is realized on the software platform of java applet design language middleware, shields different short-range communication protocols, system is provided One virtual network address and interface.Since RFID (non-contact radio-frequency identification) technology is answered extensively in asset management With, therefore this programme mentions short-range communication protocols Zigbee, Wifi, BT and RFID.
Wifi, Zigbee, BT, RFID are the equipment distributing equipment address of each automatic network after broadcasting respectively, as follows respectively Shown in table 1, table 2, table 3 and table 4, and the result device address table of networking is supplied to new agreement-Internet of Things short haul connection and is assisted View, Internet of Things short-range communication protocols are the address of all smart machines virtual one unified format, are not had in difference externally Body is the smart machine of which short haul connection, facilitates the unified management of address.
Wifi equipment The address Wifi
Wifi equipment 1 192.168.1.100
1 device address Wifi table of table
Zigbee equipment The address Zigbee
Zigbee equipment 1 253
2 device address Zigbee table of table
BT equipment The address BT
BT equipment 1 AA:BB:CC:DD
3 device address BT table of table
RFID device The address RFID
RFID device 1 AED34242SDJ
4 RFID device address table of table
In order to adapt to the extension of intelligent node, virtual address uses the form of the address class wifi, and Internet of Things short distance is logical The virtual address of letter is as shown in table 5 below to the relationship of device address:
Virtual address Implementor name The physical address of equipment in a network
10.10.10.1 Wifi equipment 1 192.168.1.100
10.10.10.2 BT equipment 1 AA:BB:CC:DD
10.10.10.3 Zigbee equipment 1 253
10.10.10.4 RFID device 1 AED34242SDJ
5 virtual address of table is to device address table
Therefore, application program requires no knowledge about specifically when accessing intelligent node (terminal device) in the object of which network Address and its form are managed, is only concerned virtual address after reunification, the mapping of virtual address to physical address is provided by the application Scheme (Internet of Things short-range communication protocols stack) complete.
Other than unified virtual address, scheme (Internet of Things short-range communication protocols stack) provided by the present application also defines system One API, virtual address are called as parameter, Internet of Things short-range communication protocols according to the corresponding physical address of virtual address Corresponding network API is realized and is read to the control of equipment and state, as shown in Fig. 2, Internet of Things short distance is logical using unified API Believe that agreement (this programme) according to the virtual address of unified API parameter, finds corresponding physical address, then call corresponding The API of the API or RFID of API, BT of API, Zigbee of Wifi.
The scheme (Internet of Things short-range communication protocols) of the application can be realized on Java middleware.
Scheme provided by the present application shields different short haul connections, has unified api interface, passes through device address to void The conversion of quasi- address, has unified the device address of different short haul connections.Internet of Things short-range communication protocols are under in the application Specific short-range communication protocols such as Wifi, Zigbee, Bluetooth (BT), RFID are shielded, system is provided to upper layer application One api interface, to control smart machine, makes application developer that need not be concerned about intelligence by the virtual address that smart machine is unified Energy equipment is which kind of specific agreement, greatly reduces the complexity of application and development.
In summary, short haul connection has a extensive future, and the application introduces the concept for integrating various short-range communication protocols, mentions The complexity of high short haul connection, income is considerable, and it is more than investment that income, which may be implemented,;And not with short-range communication technique Disconnected development, the agreement have a extensive future.
In order to solve the above-mentioned technical problem, the embodiment of the invention also provides a kind of device of Internet of Things short haul connection, Applied to middleware, as shown in figure 3, described device includes:
First obtains module, for obtaining the virtual address of the application programming interface of application program transmission and being intended to access Terminal device virtual address, the virtual address of the application programming interface and the terminal device to be accessed are virtually Location is distributed by the first communication protocol;
Matching module, for match obtain it is corresponding with the virtual address of the application programming interface described using journey The physical address of the corresponding terminal device of the virtual address of the physical address of sequence programming interface and the terminal device, institute The physical address of the physical address and the terminal device of stating application programming interface is distributed by the second communication protocol;
First processing module, for calling corresponding application program according to the physical address of the application programming interface Programming interface, and the terminal device is accessed by the physical address of the application programming interface and the terminal device.
The device of the Internet of Things short haul connection provided in an embodiment of the present invention is by obtaining answering for application program transmission With the virtual address of Program Interfaces and the virtual address for the terminal device to be accessed, matching obtains connecing with application programming The corresponding terminal of virtual address of the physical address and terminal device of the corresponding application programming interface of virtual address of mouth The physical address of equipment, and then corresponding application programming interface is called according to the physical address of application programming interface, And terminal device is accessed by the physical address of application programming interface and terminal device, shield different short haul connections Agreement provides unified virtual network address and interface to upper layer application, by the virtual address that smart machine is unified, to control Smart machine processed makes user that need not be concerned about which kind of agreement smart machine is specifically, greatly reduces the complexity of application and development, The IP address of the network and node that are no longer necessary where solving intelligent node before use, user is easy to use, can be good at full Sufficient user experience demand.
Wherein, first communication protocol is Internet of Things short-range communication protocols;Second communication protocol be high frequency without Wire protocol, low-power consumption LAN protocol, bit-torrent agreement, any one or more in non-contact radio-frequency identification agreement.
Specifically, the matching module includes: the first acquisition submodule, for according to the application programming interface Virtual address obtains the physical address of the application programming interface in application programming interface relation table;Second obtains Submodule, for obtaining the physics of the terminal device in the relation table of device address according to the virtual address of the terminal device Address;
Wherein, the application programming interface relation table has the physical address of the application programming interface and right Virtual address after the unified format answered;The device address relation table has terminal device description information and corresponding physics Virtual address behind address and corresponding unified format.
Further, described device further include: second obtains module, connects for obtaining one or more application programming The physical address of mouth;Second processing module, for distinguishing the physical address of one or more of application programming interfaces It is converted into the virtual address of unified address format;First memory module, for connecing one or more of application programmings The physical address of mouth and virtual address corresponding with the physical address are stored to the application programming interface relation table In.
Further, described device further include: third obtain module, for obtain terminal device physical address and The device descriptive information of the corresponding terminal device;Third processing module, for turning the physical address of the terminal device Turn to the virtual address of unified address format;Second memory module, for by the physical address of the terminal device and with institute The corresponding virtual address of physical address and device descriptive information storage are stated into the device address relation table.
The API and equipment that user calls in order to prevent are unavailable, described device provided in an embodiment of the present invention further include: connect Module is received, before executing operation for the first processing module, receives the instruction for executing broadcast;Broadcast module is used for basis The instruction for executing broadcast is broadcasted;4th obtains module, sets for obtaining each application programming interface and terminal The standby online information according to the broadcast feedback;
Correspondingly, the first processing module is specifically used for: according to the physical address tune of the application programming interface Online application programming interface is indicated with the corresponding online information, and passes through the application programming interface and institute The physical address for stating terminal device accesses the online information and indicates online terminal device.
The device of Internet of Things short haul connection provided in an embodiment of the present invention can be applied to Java middleware, wherein The architecture of Java middleware as shown in figure 4, Java middleware (Middle Ware Layer- middleware layer) with Applications (application program) is connected with Chip Platform (chip platform), and Java middleware probably includes four portions Point, it is Porting layers, Dalvik VM runtime, Embeded Third-party libraries and core respectively libraries。
Concrete meaning and the composition effect of various pieces are as follows:
(1) Porting layers (Porting layer)
Graft layers, packaging bottom layer platform and operating system, the encapsulation of encapsulation, driving including java standard library, network transmission The encapsulation of encapsulation and system function, is the basis that Java middleware is correctly run.
Standard library (java standard library): encapsulating for basic language interface and the relevant interface encapsulation of platform, such as String operation interface, file system interface, memory management operations interface etc..
Driver wrapper (driver package): to encapsulation such as I2C (two lines of the various kinds of equipment interface of this specification definition Formula universal serial bus), GPIO (universal input/output) encapsulation etc..
Network transmission (network transmission): http (hypertext transfer protocol) is encapsulated in graft layers.
System function wrapper (system function packet): the interface that underlying platform software has been realized, in graft layers Reseal, such as short message, event handling, thread management etc..
(2)Dalvik VM runtime
The kernel of Java Virtual Machine provides for explaining Java language using adjustment method and to the management of resource.
JNI interface is realized: JNI is Java language and the mechanism that C language is called mutually, and java applet tune may be implemented in JNI With C function, c program calls Java function.
Compiler (Compiler): the compiling to Java language.
Interpreter (Interpretation): the Java bytecode after explaining compiling.
Object Management group (Object): the object on Java language basis, class management.
Memory management (Memory): the memory management including kernel operation, garbage reclamation mechanism, memory mapping function etc..
Arch (autoregressive conditional different Variance model): for the function that need to efficiently execute, pass through implementation by assembly.
(3)Embeded Third-party libraries
The third party library (Embedded third party library) that virtual machine system is used such as compresses library, security module and multilingual Support etc..
Compression library (Zlib): the decompressing function of file is completed.
Security module (SSL): the security algorithm on basis is provided.
SQL (structured query language) database: SQL database is supported.
Multilingual support (ICU): multilingual and language management are supported.
(4)Core libraries
Core library, support, WMMP including AMS-Application manager (remote/local) and dynamically load Support and the support in the library J2ME etc., application program management and the API for development and application program are provided.
Application management system (AMS): local and remote application program management is supported.
WMMP communication protocol interface (WMMP implementation): Java middleware must provide answering for WMMP agreement Use routine interface.
M2M extension: the hardware adaptor interface of this specification definition, such as I2C, SPI etc. are encapsulated.
Java dynamically load (Java dynamic load): the dynamically load API of java class in realization system, to realize AMS lays the foundation.
J2ME compatibility (J2ME MIDP 2.0adaption): system can use for reference certain functions of J2ME and compatible J2ME, Such as interface definition mode, thread management module.
Multitask (Multi-task): multiple Java applications are realized while being operated in this system.
Library needed for Dalvik VM required libraries:Dalvik virtual machine.
Internet of Things short-range communication protocols are realized in Java middleware, need to encapsulate Wifi, BT in graft layers, Tetra- kinds of agreements of Zigbee, RFID realize Internet of Things short-range communication protocols in core librares.
It should be noted that the realization embodiment of the method for above-mentioned Internet of Things short haul connection is suitable for the Internet of Things In the embodiment of the device of net short haul connection, it can also reach identical technical effect.
In order to solve the above-mentioned technical problem, the embodiment of the invention also provides a kind of middlewares, comprising: above-mentioned Internet of Things The device of short haul connection.
Wherein, the realization embodiment of the device of above-mentioned Internet of Things short haul connection is suitable for the implementation of the middleware In example, it can also reach identical technical effect.
Above-described is the preferred embodiment of the present invention, it should be pointed out that the ordinary person of the art is come It says, under the premise of not departing from principle of the present invention, can also make several improvements and retouch, these improvements and modifications should also regard For protection scope of the present invention.

Claims (15)

1. a kind of method of Internet of Things short haul connection is applied to middleware, which is characterized in that the described method includes:
The virtual address for the application programming interface that application program is sent and the virtual address for the terminal device to be accessed are obtained, The virtual address of the application programming interface and the virtual address for the terminal device to be accessed are distributed by the first communication protocol, First communication protocol is Internet of Things short-range communication protocols;
Matching obtains the physics of the application programming interface corresponding with the virtual address of the application programming interface The physical address of the corresponding terminal device of the virtual address of address and the terminal device, the application programming connect The physical address of mouth and the physical address of the terminal device are distributed by the second communication protocol;
Corresponding application programming interface is called according to the physical address of the application programming interface, and is answered by described The terminal device is accessed with the physical address of Program Interfaces and the terminal device.
2. the method as described in claim 1, which is characterized in that real on the software platform of java applet design language middleware The now Internet of Things short-range communication protocols, shield different short-range communication protocols, provide unified virtual network address and connect Mouthful.
3. the method as described in claim 1, which is characterized in that second communication protocol is high frequency wireless protocols, low-power consumption LAN protocol, bit-torrent agreement, any one or more in non-contact radio-frequency identification agreement.
4. the method as described in claim 1, which is characterized in that matching is obtained with the application programming interface virtually The virtual address corresponding end of the physical address and the terminal device of the corresponding application programming interface in location The step of physical address of end equipment includes:
The application is obtained in application programming interface relation table according to the virtual address of the application programming interface The physical address of Program Interfaces;
The physical address of the terminal device is obtained in the relation table of device address according to the virtual address of the terminal device;
Wherein, the application programming interface relation table has the physical address of the application programming interface and corresponding Virtual address after unified format;
The device address relation table has terminal device description information and corresponding physical address and corresponding unified format Virtual address afterwards.
5. method as claimed in claim 4, which is characterized in that the method also includes:
Obtain the physical address of one or more application Program Interfaces;
The physical address of one or more of application programming interfaces is separately converted to unified address format virtually Location;
By the physical address of one or more of application programming interfaces and it is corresponding with the physical address virtually Location is stored into the application programming interface relation table.
6. method as claimed in claim 4, which is characterized in that the method also includes:
Obtain the physical address of terminal device and the device descriptive information of the corresponding terminal device;
Convert the physical address of the terminal device to the virtual address of unified address format;
The physical address of the terminal device and virtual address corresponding with the physical address and device descriptive information are deposited It stores up in the device address relation table.
7. the method as described in claim 1, which is characterized in that called according to the physical address of the application programming interface Corresponding application programming interface, and accessed by the physical address of the application programming interface and the terminal device Before the terminal device further include:
Receive the instruction for executing broadcast;
It is broadcasted according to the instruction for executing broadcast;
Each application programming interface and terminal device are obtained according to the online information of the broadcast feedback;
Correspondingly, corresponding application programming interface is called according to the physical address of the application programming interface, and led to Cross the step of physical address of the application programming interface and the terminal device accesses the terminal device specifically:
The application journey for calling the corresponding online information instruction online according to the physical address of the application programming interface Sequence programming interface, and the online information is accessed by the physical address of the application programming interface and the terminal device Indicate online terminal device.
8. a kind of device of Internet of Things short haul connection, it is applied to middleware, which is characterized in that described device includes:
First obtains module, for obtaining the virtual address of the application programming interface of application program transmission and the end to be accessed The virtual address of the virtual address of end equipment, the virtual address of the application programming interface and the terminal device to be accessed by The distribution of first communication protocol, first communication protocol are Internet of Things short-range communication protocols;
Matching module obtains the application program volume corresponding with the virtual address of the application programming interface for matching The physical address of the corresponding terminal device of the virtual address of the physical address of journey interface and the terminal device, it is described to answer It is distributed with the physical address of Program Interfaces and the physical address of the terminal device by the second communication protocol;
First processing module, for calling corresponding application programming according to the physical address of the application programming interface Interface, and the terminal device is accessed by the physical address of the application programming interface and the terminal device.
9. device as claimed in claim 8, which is characterized in that real on the software platform of java applet design language middleware The now Internet of Things short-range communication protocols, shield different short-range communication protocols, provide unified virtual network address and connect Mouthful.
10. device as claimed in claim 8, which is characterized in that second communication protocol is high frequency wireless protocols, low-power consumption LAN protocol, bit-torrent agreement, any one or more in non-contact radio-frequency identification agreement.
11. device as claimed in claim 8, which is characterized in that the matching module includes:
First acquisition submodule, for being closed according to the virtual address of the application programming interface in application programming interface It is the physical address that the application programming interface is obtained in table;
Second acquisition submodule, for obtaining the end in the relation table of device address according to the virtual address of the terminal device The physical address of end equipment;
Wherein, the application programming interface relation table has the physical address of the application programming interface and corresponding Virtual address after unified format;
The device address relation table has terminal device description information and corresponding physical address and corresponding unified format Virtual address afterwards.
12. device as claimed in claim 11, which is characterized in that described device further include:
Second obtains module, for obtaining the physical address of one or more application Program Interfaces;
Second processing module, for the physical address of one or more of application programming interfaces to be separately converted to unification The virtual address of address format;
First memory module, for by the physical address of one or more of application programming interfaces and with the physics The corresponding virtual address storage in address is into the application programming interface relation table.
13. device as claimed in claim 11, which is characterized in that described device further include:
Third obtains module, for obtaining the physical address of terminal device and the equipment description letter of the corresponding terminal device Breath;
Third processing module, for converting the physical address of the terminal device to the virtual address of unified address format;
Second memory module, for by the physical address of the terminal device and virtual address corresponding with the physical address With device descriptive information storage into the device address relation table.
14. device as claimed in claim 8, which is characterized in that further include:
Receiving module before executing operation for the first processing module, receives the instruction for executing broadcast;
Broadcast module, for being broadcasted according to the instruction for executing broadcast;
4th obtains module, for obtaining each application programming interface and terminal device according to the online of the broadcast feedback Information;
Correspondingly, the first processing module is specifically used for:
The application journey for calling the corresponding online information instruction online according to the physical address of the application programming interface Sequence programming interface, and the online information is accessed by the physical address of the application programming interface and the terminal device Indicate online terminal device.
15. a kind of middleware characterized by comprising such as the described in any item Internet of Things short haul connections of claim 8 to 14 Device.
CN201510053143.3A 2015-02-02 2015-02-02 A kind of method, apparatus and middleware of Internet of Things short haul connection Active CN105991779B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510053143.3A CN105991779B (en) 2015-02-02 2015-02-02 A kind of method, apparatus and middleware of Internet of Things short haul connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510053143.3A CN105991779B (en) 2015-02-02 2015-02-02 A kind of method, apparatus and middleware of Internet of Things short haul connection

Publications (2)

Publication Number Publication Date
CN105991779A CN105991779A (en) 2016-10-05
CN105991779B true CN105991779B (en) 2019-07-05

Family

ID=57036612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510053143.3A Active CN105991779B (en) 2015-02-02 2015-02-02 A kind of method, apparatus and middleware of Internet of Things short haul connection

Country Status (1)

Country Link
CN (1) CN105991779B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491337B (en) * 2018-04-03 2021-04-23 苏州和欣致远节能科技有限公司 Method for realizing group control
CN111435338A (en) * 2019-01-14 2020-07-21 中国移动通信集团终端有限公司 Multi-intelligent hardware unified management and control method, platform, system, equipment and storage medium
CN114500455B (en) * 2021-12-29 2023-08-25 杭州深渡科技有限公司 Configuration method and system of intelligent lamp

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402472A (en) * 2010-09-17 2012-04-04 鸿富锦精密工业(深圳)有限公司 System and method for testing memory
US20120331243A1 (en) * 2011-06-24 2012-12-27 International Business Machines Corporation Remote Direct Memory Access ('RDMA') In A Parallel Computer
US8935499B2 (en) * 2011-10-17 2015-01-13 International Business Machines Corporation Interface for management of data movement in a thin provisioned storage system
CN103188648A (en) * 2011-12-30 2013-07-03 中国移动通信集团公司 Internet of things system and management method thereof
CN102568514B (en) * 2012-01-05 2015-05-27 青岛艾孚高清技术有限公司 Three-dimensional (3D) high definition multi-media player

Also Published As

Publication number Publication date
CN105991779A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
CN107247597B (en) Abstract representation method of device object for providing uniform abstract representation for intelligent device
EP0726003B1 (en) Object-oriented network protocol configuration system
CN107301098A (en) A kind of remote procedure call device based on Thrift agreements, method and system
CN106169976A (en) A kind of service system based on novel intelligent home gateway
CN102857566A (en) Intelligent gateway of internet of things capable of being customized by software
CN105991779B (en) A kind of method, apparatus and middleware of Internet of Things short haul connection
WO2011137788A1 (en) Device management method, middleware, and machine-to-machine communication platform, device and system
CN106385422A (en) Public open system based on Internet-of-things and cloud computing and realizing method thereof
CN103051525A (en) Gateway service middleware system and method as well as device and system comprising gateway service middleware system
CN102185898B (en) Multi-protocol medical data sharing and service integration system and realization method
CN108055688A (en) A kind of distribution method and device for intelligent display device, terminal device
US9342286B2 (en) Mapping and formatting input commands to a third party protocol
CN105007205A (en) Method for implementation of unified management and control on intelligent home device
CN106953923A (en) A kind of industrial Internet of Things intelligence system
CN101645857B (en) Universal gateway architecture for interconnecting family network and external network
CN108683636A (en) A kind of charging pile means of communication and system
CN108471441A (en) A kind of SAP middlewares and the SAP R3 both-way communication methods using the SAP middlewares
CN105791394A (en) Remote dynamic configuration method for intelligent device control function
CN107450993A (en) A kind of data interactive method of distributed IEC61850 communication components
CN105871968A (en) Device search method, device and system
CN102739788B (en) A kind of field device communicating method based on EIB agreement
CN206640595U (en) A kind of home gateway
CN108259281A (en) Intelligent domestic system based on ZigBee and Raspberry Pi
KR102094041B1 (en) System having the Semantic Engine based on RDF Graph for Autonomous Interaction between IoT Devices in Real-Time
CN208001293U (en) Intelligent domestic system based on ZigBee and Raspberry Pi

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