CN106452895A - Service communication method for master equipment and slave equipment and relevant equipment - Google Patents

Service communication method for master equipment and slave equipment and relevant equipment Download PDF

Info

Publication number
CN106452895A
CN106452895A CN201610940111.XA CN201610940111A CN106452895A CN 106452895 A CN106452895 A CN 106452895A CN 201610940111 A CN201610940111 A CN 201610940111A CN 106452895 A CN106452895 A CN 106452895A
Authority
CN
China
Prior art keywords
equipment
main
corresponding virtual
main equipment
operational control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610940111.XA
Other languages
Chinese (zh)
Inventor
田可心
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201610940111.XA priority Critical patent/CN106452895A/en
Publication of CN106452895A publication Critical patent/CN106452895A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0233Object-oriented techniques, for representation of network management data, e.g. common object request broker architecture [CORBA]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]

Abstract

The embodiment of the invention provides a service communication method for master equipment and slave equipment and relevant equipment. An Internet of things system comprises the master equipment and the slave equipment, wherein the master equipment and the slave equipment support the same service protocol. The method comprises the following steps that: the master equipment acquires service management data of the slave equipment; the master equipment creates a virtual service object corresponding to the slave equipment according to the service management data of the slave equipment, wherein the virtual service object corresponding to the slave equipment is based on the service protocol; and the master equipment performs service communication with the slave equipment by using the virtual service object corresponding to the slave equipment. In the embodiment of the invention, the master equipment acquires the service management data of the slave equipment, and creates the virtual service object to perform service communication with the slave equipment, so that implemented service functions of the slave equipment can be adjusted dynamically; various functions are implemented; and the demands of different users are met.

Description

A kind of main equipment and the service communication method from equipment and relevant device
Technical field
The present invention relates to Internet of Things control field, especially relate to a kind of main equipment and the service communication method from equipment and Relevant device.
Background technology
In the Internet of things system such as car networking, main equipment be connected from equipment, by main equipment with from equipment business lead to Letter, can control from equipment and realize corresponding business function or provide business function from equipment on the master.For example lead Equipment is car machine, is air quality detector from equipment, by the service communication of car machine and air quality detector, can be in car The measurement result of air quality detector is provided a user with machine.
At present, in order to realize main equipment and service communication from equipment, need to install on the master corresponding from equipment Application program (APP), the APP makes main device and from carrying out service communication between equipment, realizes from equipment so as to control Corresponding business function or the business function for realizing from equipment on the master.
However, the business function supported by APP is often changeless, it is impossible to enter Mobile state adjustment.Such as main equipment For car machine and from equipment for air quality detector when, after corresponding APP being installed on car machine, can only on real cars on hand machine to User provides the measurement result of air quality detector, and cannot realize other business functions, the such as uncontrollable sky of car machine The working condition of gas mass detecting instrument, so as to cause single function, it is impossible to meet the demand of different user.
Content of the invention
Present invention solves the technical problem that being that providing a kind of main equipment and the service communication method from equipment and correlation sets Standby, to realize, by main equipment and the service communication from equipment, dynamically adjusting the business function from equipment that is realized, so as to Functional diversities are realized, meets the demand of different user.
For this purpose, the technical scheme that the present invention solves technical problem is:
The invention provides a kind of main equipment and the service communication method from equipment, Internet of things system include main equipment and from Equipment, the main equipment and described from equipment support identical service protocol;Methods described includes:
The main equipment obtains the operational control data from equipment;
The main equipment is created described from the corresponding virtual service pair of equipment according to the operational control data from equipment As described from the corresponding virtual service object of equipment based on the service protocol;
The main equipment carries out service communication with described from equipment using described from the corresponding virtual service object of equipment.
Optionally, described from equipment at least two from equipment;
The main equipment includes from the operational control data of equipment described in obtaining:The main equipment obtains described at least two From equipment, each is from the operational control data of equipment;
The main equipment is created described from the corresponding virtual service pair of equipment according to the operational control data from equipment As, including:The main equipment creates each from the corresponding virtual service pair of equipment according to each from the operational control data of equipment As each is based on the service protocol from the corresponding virtual service object of equipment;
The main equipment carries out service communication with described from equipment from the corresponding virtual service object of equipment using described, Including:The main equipment carries out service communication with each from equipment using each from the corresponding virtual service object of equipment.
Optionally, described at least two include first from equipment and second from equipment from equipment;
Methods described also includes:
The main equipment is received described first and sends from equipment using described first from the corresponding virtual service object of equipment Business function data;
The main equipment utilizes described second from the corresponding virtual service object of equipment, by described first from equipment transmission Business function data is activation is to described second from equipment.
Optionally, the main equipment carries out business with described from equipment from the corresponding virtual service object of equipment using described Communication, including:
The main equipment sends operation code mark to described from equipment using described from the corresponding virtual service object of equipment Know, the operation code identifies described from the corresponding business function of equipment execution or the corresponding business function of return for controlling Data.
Optionally, described include from the operational control data of equipment:The interface configuration data from equipment and operation generation Code mark;The main equipment is created described from the corresponding virtual service pair of equipment according to the operational control data from equipment As, including:
The main equipment is from equipment according to the interface configuration data from equipment is created on the main equipment Business function interface, wherein, the business function interface from equipment is used for sending out from equipment to described based on the service protocol The operation code from equipment is sent to identify.
Optionally, the main equipment obtains the operational control data from equipment, including:
The main equipment receives send, the operational control data from equipment from equipment;Or, the master sets The predefined type of service for sending from equipment described in standby reception, the main equipment obtains business corresponding with the type of service Management data, used as the operational control data from equipment.
Optionally, also include:
The main equipment receives the facility information from equipment;
The main equipment carries out service communication with described from equipment from the corresponding virtual service object of equipment using described, Including:The main equipment enters industry with described from equipment using described from the corresponding virtual service object of equipment and facility information Business communication.
The invention provides a kind of main equipment, Internet of things system includes the main equipment and from equipment, the main equipment and Described from equipment support identical service protocol;The main equipment includes:
Acquiring unit, for obtaining the operational control data from equipment;
Creating unit, described from the corresponding virtuality industry of equipment for according to the operational control data from equipment, creating Business object, described from the corresponding virtual service object of equipment based on the service protocol;
Communication unit, for the main equipment using described from the corresponding virtual service object of equipment, with described from equipment Carry out service communication.
Optionally, described from equipment at least two from equipment;
The acquiring unit, specifically for obtain described at least two from equipment each from the operational control number of equipment According to;
The creating unit, specifically for according to each from the operational control data of equipment, creating each and corresponding to from equipment Virtual service object, each is based on the service protocol from the corresponding virtual service object of equipment;
The communication unit, specifically for using each from the corresponding virtual service object of equipment, entering from equipment with each Row service communication.
Optionally, described at least two include first from equipment and second from equipment from equipment;The main equipment also includes:
First receiving unit, for using described first from the corresponding virtual service object of equipment, receive described first from The business function data that equipment sends;
Transmitting element, for using described second from the corresponding virtual service object of equipment, described first being sent out from equipment The business function data is activation that send is to described second from equipment.
Optionally, the communication unit specifically for, using described from the corresponding virtual service object of equipment, to described from Equipment sends operation code mark, the operation code identify for control described from equipment execute corresponding business function or Return corresponding business function data.
Optionally, described include from the operational control data of equipment:The interface configuration data from equipment and operation generation Code mark;
The creating unit is specifically for creating institute according to the interface configuration data from equipment on the main equipment The business function interface from equipment is stated, wherein, the business function interface from equipment is used for based on the service protocol to institute State from equipment and send the operation code mark from equipment.
Optionally, the acquiring unit is specifically for receiving the send, operational control from equipment from equipment Data;Or, the main equipment receives the predefined type of service for sending from equipment, the main equipment obtain with described The corresponding operational control data of type of service, used as the operational control data from equipment.
Optionally, also include:
Second receiving unit, for receiving the facility information from equipment;
The communication unit is specifically for using described from the corresponding virtual service object of equipment and facility information, with institute Stating from equipment carries out service communication.
By technique scheme, in the embodiment of the present invention, main equipment obtains the operational control data from equipment, root According to the operational control data from equipment, establishment is described from the corresponding virtual service object of equipment, so as to described from equipment Service communication is carried out, corresponding business function is realized from equipment with control or business from equipment is provided on the main equipment Function, wherein, described is based on identical service protocol from the corresponding virtual service object of equipment and main equipment.It can be seen that, this In bright embodiment, main equipment is created virtual service object and is entered from equipment with described by obtaining the operational control data from equipment Row service communication, therefore, it is possible to dynamically adjust the business function from equipment that is realized, so as to realize functional diversities, meets The demand of different user.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of embodiment of the method provided in an embodiment of the present invention;
Fig. 2 is the structural representation of Internet of things system provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another kind embodiment of the method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of device embodiment provided in an embodiment of the present invention.
Specific embodiment
In Internet of things system, by main equipment and the service communication from equipment, can control and realize accordingly from equipment Business function or provide business function from equipment on the master.For example in car networking, main equipment is car machine, from equipment For air quality detector, by car machine and the service communication of air quality detector, sky can be provided a user with car machine The measurement result of gas mass detecting instrument;Again for example, it car machine, is mobile phone from equipment that main equipment is, by the business of car machine and mobile phone Communication, can play the files such as photo in mobile phone, audio frequency and video on the car machine.Wherein, car machine refers to the core in car networking Control device.
At present, in order to realize main equipment and service communication from equipment, need to install on the master corresponding from equipment APP, however, the business function supported by APP is often changeless, that is to say, that after installing APP on the master, Main equipment can control the business function and the business function from equipment that realizes on the master that realizes from equipment, be fixing Constant, it is impossible to enter Mobile state adjustment, so as to cause single function, it is impossible to meet the demand of different user.
Further, since different types of from equipment, operating system, communication mode etc. are often different, logical so as to be based on Letter agreement is also different.Therefore in order to realize main equipment and the service communication from equipment, for different types of from equipment, main equipment On generally need multiple different APP are installed.For example from equipment include air quality detector and mobile phone when, need on main equipment Air quality detector and the mobile phone corresponding APP of difference are installed, it is higher not only result in exploitation maintenance cost, and occupies relatively Many system resource.
The embodiment of the present invention provides a kind of main equipment and the service communication method from equipment and relevant device, to realize passing through Main equipment and the service communication from equipment, dynamically adjust the business function from equipment that is realized, vdiverse in function so as to realize Change, meet the demand of different user.Additionally, in a kind of optional embodiment of the application, additionally it is possible to realize main equipment with many Individual from equipment carry out service communication when, without the need for installing multiple APP on the master, so as to reduce exploitation maintenance cost, and drop Low system resource.
In order that those skilled in the art more fully understand the technical scheme in the present invention, below in conjunction with reality of the present invention The accompanying drawing in example is applied, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described enforcement Example is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, this area is common The every other embodiment obtained under the premise of creative work is not made by technical staff, should all belong to present invention protection Scope.
Fig. 1 is referred to, embodiments provides a kind of method reality of main equipment and the service communication method from equipment Apply example.The present embodiment is used in the Internet of things system such as car networking, and Internet of things system includes main equipment and from equipment, the main equipment Identical service protocol is supported with described from equipment.Wherein, unrestricted from the number of equipment, can be 1, or extremely Few two.When the number from equipment is at least two, can be as shown in Fig. 2 Internet of things system includes main equipment 201, first From equipment 202 and second from equipment 203.Wherein, service protocol refers to the agreement for realizing upper-layer service communication.
The methods described of the present embodiment includes:
S101:The main equipment obtains the operational control data from equipment.
Wherein, operational control data include the management data of the business that is supported from equipment, for example, which is supported from equipment How business, operate these business etc., and operational control data are used for creating virtual service object, so that main equipment can be with Service communication is carried out from equipment.For example, include interface configuration data and the operation generation from equipment from the operational control data of equipment Code mark, interface configuration data is used for indicating that main equipment is created from the business function interface of equipment, and by business function interface It is associated with operation code mark so that by the triggering to business function interface, carry out service communication, i.e. base with from equipment The operation code mark from equipment is sent in the service protocol to from equipment.The operation code is identified for control from setting For the corresponding business function of execution or the corresponding business function data of return.
In a kind of optional embodiment of the present invention, before step S101, the present embodiment also includes, the main equipment with Described physical connection is set up from equipment.For example, main equipment with set up USB from equipment and be connected, bluetooth connection or wireless connect.
S102:The main equipment is created described from the corresponding virtuality of equipment according to the operational control data from equipment Business object.Wherein, described from the corresponding virtual service object of equipment based on the service protocol.
Wherein, described from the corresponding virtual service of equipment to liking the business function from equipment, it is mapped to master and sets Standby upper realization, for example, virtual service object specifically can be embodied by business function interface.It is specifically described below.
If described include interface configuration data and operation code mark from the operational control data of equipment, this step is concrete Can include:The main equipment is from equipment according to the interface configuration data from equipment is created on the main equipment Business function interface, wherein, the business function interface from equipment is used for sending out from equipment to described based on the service protocol The operation code from equipment is sent to identify.The operation code identifies described from the corresponding business work(of equipment execution for controlling Or corresponding business function data can be returned.Therefore, described from equipment receive operation code mark after, can based on operation Marking code executes corresponding business function, or can also identify business work(corresponding to main equipment return based on operation code Energy data, so that main equipment provides a user with the business function from equipment.
S103:The main equipment carries out business with described from equipment using described from the corresponding virtual service object of equipment Communication.Realize corresponding business function or business work(from equipment be provided on the main equipment so as to control from equipment Energy.
Illustrate, in car networking, it car machine, is air quality detector from equipment that main equipment is, car machine creates air The corresponding setting interface of mass detecting instrument, detects user by the triggering to the interface, sends behaviour to air quality detector Make marking code, the setting state of air quality detector can be controlled or indicate that air quality detector is returned to car machine Testing result etc..Or, it is mobile phone from equipment, car machine can also create the corresponding file browsing interface of mobile phone, detect user By the triggering to the interface, operation code mark being sent to mobile phone, indicates that mobile phone returns corresponding file with car to car machine Play out on machine.It can be seen that, due to car machine and air quality detector, or identical service protocol supported by car machine and mobile phone, And the business function from equipment that is realized can be dynamically adjusted, so as to realize by creating virtual service object in real time Functional diversities, meet the demand of different user.
Utilizing from the corresponding virtual service object of equipment, after service communication is carried out from equipment, can be by virtual industry Business object release, or sleep state is set to, wake up after some time.
By technique scheme, in the embodiment of the present invention, main equipment obtains the operational control data from equipment, root According to the operational control data from equipment, establishment is described from the corresponding virtual service object of equipment, so as to described from equipment Service communication is carried out, corresponding business function is realized from equipment with control or business from equipment is provided on the main equipment Function, wherein, described is based on identical service protocol from the corresponding virtual service object of equipment and main equipment.It can be seen that, this In bright embodiment, main equipment is created virtual service object and is entered from equipment with described by obtaining the operational control data from equipment Row service communication, therefore, it is possible to dynamically adjust the business function from equipment that is realized, so as to realize functional diversities, meets The demand of different user.Additionally, the embodiment of the present application can create and discharge virtual service object in real time, system resource is improved Utilization rate.
Higher in order to solve the problems, such as system resource, in the embodiment of the present application, when the number from equipment is at least two When, a kind of service protocol of standard can be issued, and from equipment, main equipment can all support that the business of the standard is assisted with each View.And each operational control data from equipment in the embodiment of the present application, is obtained, according to each from the operational control of equipment Data, create each from the corresponding virtual service object of equipment difference, so as to using each from the corresponding virtual service pair of equipment As carrying out service communication with each respectively from equipment.It can be seen that, service protocol of the embodiment of the present application by standard, and create The corresponding virtual service object of difference, can realize main equipment carries out service communication with each from equipment respectively, therefore need not In main equipment, multiple APP are being installed, so as to reduce exploitation maintenance cost, and are reducing system resource.Additionally, the embodiment of the present invention In by the corresponding virtual service object of difference, each can be managed independently from equipment, prevent different business function it Between impact.
It is illustrated by taking the Internet of things system shown in Fig. 2 as an example, main equipment 201 obtains the first business pipe from equipment 202 Reason data, and second from the operational control data of equipment 203.Main equipment 201 is according to first from the operational control number of equipment 202 According to, first is created from the corresponding virtual service object of equipment, such as first from the business function interface of equipment 202, the business work( Energy interface is used for sending the first operation code mark from equipment 202 to first from equipment 202;Also, main equipment 201 is according to Two from the operational control data of equipment 203, create second from the corresponding virtual service object of equipment, and such as second from equipment 203 Business function interface, the business function interface be used for second from equipment 203 send the second operation code mark from equipment 203 Know.Main equipment 201 carries out service communication with first from equipment 202 using first from the corresponding virtual service object of equipment, with Main equipment 201 provides first and realizes first from equipment 202 from the business function of equipment 202 or control first from equipment 202 Business function;Also, main equipment 201 enters industry with second from equipment 203 using second from the corresponding virtual service object of equipment Business communication, from the business function of equipment 203 or to control second to realize second from equipment 203 in the offer of main equipment 201 second Business function from equipment 203.Wherein, each can adopt identical look & feel and operation from the business function interface of equipment Custom.
In a kind of optional embodiment of the present invention, one or more types of service, wherein type of service can be predefined Can include file or arrange parameter etc. is browsed, and the corresponding operational control data of the type of service can be stored in On main equipment or other equipment, for example, it is stored in the local data base of main equipment.When needing to create virtual service object, Predefined type of service can be sent to main equipment from equipment, by main equipment according to the type of service, from main equipment or Corresponding operational control data are obtained in other equipment;Or, from equipment can also self-defined new type of service, now need From equipment by the operational control data is activation of the type of service of new definition to main equipment, main equipment is according to the operational control for receiving Data creation virtual service object.
Specifically, when being applied to the Internet of things system shown in Fig. 2, main equipment 201 obtains the first operational control from equipment Data, including:Main equipment 201 receive first send from equipment 202, first from the operational control data of equipment 202;Or, Main equipment 201 receives the first predefined first type of service for sending from equipment 202, and main equipment 201 is obtained and described first The corresponding operational control data of type of service, such as main equipment 201 can from the local data base of main equipment 201, obtain with The corresponding operational control data of first type of service, as first from the operational control data of equipment 202;Main equipment 201 The second operational control data from equipment are obtained, including:Main equipment 201 receive second send from equipment 203, second from equipment 203 operational control data;Or, main equipment 201 receives the second predefined second type of service for sending from equipment 203, Main equipment 201 obtains operational control data corresponding with second type of service, as first from the operational control of equipment 202 Data.
It should be noted that in the embodiment of the present invention, although the main equipment supports phase with described at least two from equipment Same service protocol, but the service protocol can be with different protocol formats.For example main equipment 201 and first is from equipment 202 support the first protocol format, and main equipment 201 and second supports second protocol form from equipment 203.Wherein, for from equipment For embedded system or the situation of single-chip microcomputer, binary protocol form can be adopted, for being the senior behaviour of Android from equipment Make the situation of system, JSON protocol format can be adopted.
Binary protocol form:
Protocol header Protocol data length Protocol contents Verification data
0x00,0x10 0x04 0x10,0x20,0x30 0x55
JSON protocol format:
The embodiment of the present invention, main equipment can also receive the facility information from equipment, wherein facility information can include with At least one information lower:Device identification, device type, the protocol format of support, the protocol version that supports etc..Main equipment can root According to the facility information from equipment to carrying out Classification Management from equipment, or according to facility information with communicated from equipment.Specifically Ground, the main equipment carries out service communication with described from equipment from the corresponding virtual service object of equipment using described, including: The main equipment is carried out business from equipment and leads to described using described from the corresponding virtual service object of equipment and facility information Letter.
For example, main equipment has two physical connections with from equipment:Bluetooth connection and USB connection, pass through respectively from equipment This two physical connections send the device identification from equipment, and two physical connections of the device identification and this are associated by main equipment. Main equipment with before carrying out service communication from equipment, can determine whether out this two physical connections, using virtual service object and make Service communication is carried out with any of which bar physical connection.
In embodiments of the present invention, two can carry out service communication by main equipment from equipment.For example, shown in Fig. 2 Internet of things system in, methods described also includes:Main equipment 201 utilizes the first virtual service object, receives first from setting The standby 202 business function data for sending, wherein, by sending operation code mark, main equipment can indicate that first sends out from equipment Send business function data;Main equipment 201 utilizes the second virtual service object, by the business function data is activation to second From equipment 203.For example, first from equipment 202 be air purifier A, second from equipment 203 be air purifier B, air cleaning Device A needs to know the configuration status of air purifier B, can carry out service communication with main equipment 201, ask configuration data, empty Gas purifier B carries out service communication with main equipment 201, it is allowed to query configuration data, and therefore can to receive air net for main equipment 201 Change the configuration data of device B, and the configuration data is sent to air purifier A.
The embodiment of the present invention additionally provides a kind of specific embodiment of the method, lower mask by taking the Internet shown in Fig. 2 as an example Body explanation.
Fig. 3 is referred to, embodiments provides another kind of method of main equipment and the service communication method from equipment Embodiment.The present embodiment is with the Internet of things system shown in Fig. 2, and Internet of things system includes main equipment 201, first from equipment 202 With second from equipment 203.Main equipment 201, first supports identical service protocol from equipment 202 and second from equipment 203.
The methods described of the present embodiment includes:
S301:Main equipment 201 and first sets up physical connection from equipment 202 and second respectively from equipment 203.
For example, main equipment 201 is set up USB with first from equipment 202 and is connected, and sets up wireless connection with second from equipment 203.
S302:Main equipment 201 receive first from equipment 202 send first from facility information and the business pipe of equipment 202 Reason data, and receive second from equipment 203 send second from facility information and the operational control data of equipment 203, quite Registration is on the master completed from equipment 202 and second from equipment 203 in first.
If one of them supports the predefined type of service of main equipment from equipment, it is also possible to send out predefined type of service Main equipment 201 is delivered to, by main equipment 202, corresponding operational control data is obtained according to predefined type of service.Wherein, business Management data include the management data of the business that is supported from equipment, for example, support which business from equipment, how to operate these Business etc., such as operational control data include interface configuration data and operation code mark, and interface configuration data is used for indicating master Equipment is created from the business function interface of equipment, and business function interface is associated with operation code mark, by right The triggering at business function interface with carry out service communication from equipment, i.e. based on the service protocol to send from equipment should be from setting Standby operation code mark, controls from equipment and executes corresponding business function or control from equipment root according to operation code mark Corresponding business function data are returned according to operation code mark.
S303:Main equipment 201 according to first from operational control data creation the first virtual service object of equipment 202, i.e., First from the business function interface of equipment 202, and the business function interface is used for based on the service protocol to first from equipment 202 Send first to identify from the operation code of equipment 202;And main equipment 201 is according to second from the operational control data of equipment 203 The second virtual service object is created, i.e., second from the business function interface of equipment 203, the business function interface is used for based on described Service protocol sends second to second from equipment 203 and identifies from the operation code of equipment 203.
For example, first is that air quality detector, corresponding business function interface is used for controlling air quality from equipment 202 The functions such as the working condition of detector, running parameter, inquiry testing result, without the need for user to the direct behaviour of air quality detector Make.
S304:Main equipment 201 detects business function interface of the user operation first from equipment 202, using first from setting Standby 202 facility information simultaneously sends the first operation code mark from equipment 202 based on the service protocol to first from equipment 202 Know.
S305:Main equipment 202 receives first from equipment 202 according to first from the operation code mark return of equipment 202 Business function data.
For example, first is that air quality detector, main equipment 202 receives air quality detector return from equipment 202 Testing result.
S306:Main equipment 201 detects business function interface of the user operation second from equipment 203, using first from setting Standby 202 facility information simultaneously sends the second operation code mark from equipment 203 based on the service protocol to second from equipment 203 Know.
S307:Main equipment 202 receives second from equipment 203 according to second from the operation code mark return of equipment 203 Business function data.
For example, second is that mobile phone, main equipment 202 receives the files such as the respective audio of mobile phone return, picture from equipment 203. Main equipment 202 can also play this document.
It should be noted that S304 is that coordination, both execution sequences are not with step S306 the step of the present embodiment Circumscribed, for example both can execute simultaneously, it is also possible to be executed with certain sequencing, and the embodiment of the present invention to this and is not added with To limit.
Corresponding said method embodiment, present invention also offers corresponding device embodiment, is specifically described below.
Fig. 4 is referred to, embodiments provides a kind of device embodiment of main equipment.In the present embodiment, Internet of Things System includes the main equipment and from equipment, the main equipment and described from equipment support identical service protocol;The master sets Standby include:Acquiring unit 401, creating unit 402 and communication unit 403.
Acquiring unit 401, for obtaining the operational control data from equipment.
Creating unit 402, described from the corresponding virtuality of equipment for according to the operational control data from equipment, creating Business object, described from the corresponding virtual service object of equipment based on the service protocol.
Communication unit 403, for the main equipment using described from the corresponding virtual service object of equipment, with described from setting Standby carry out service communication.
Optionally, described from equipment at least two from equipment;
The acquiring unit, specifically for obtain described at least two from equipment each from the operational control number of equipment According to;
The creating unit, specifically for according to each from the operational control data of equipment, creating each and corresponding to from equipment Virtual service object, each is based on the service protocol from the corresponding virtual service object of equipment;
The communication unit, specifically for using each from the corresponding virtual service object of equipment, entering from equipment with each Row service communication.
Optionally, described at least two include first from equipment and second from equipment from equipment;The main equipment also includes:
First receiving unit, for using described first from the corresponding virtual service object of equipment, receive described first from The business function data that equipment sends;
Transmitting element, for using described second from the corresponding virtual service object of equipment, described first being sent out from equipment The business function data is activation that send is to described second from equipment.
Optionally, the communication unit specifically for, using described from the corresponding virtual service object of equipment, to described from Equipment sends operation code mark, the operation code identify for control described from equipment execute corresponding business function or Return corresponding business function data.
Optionally, described include from the operational control data of equipment:The interface configuration data from equipment and operation generation Code mark;
The creating unit is specifically for creating institute according to the interface configuration data from equipment on the main equipment The business function interface from equipment is stated, wherein, the business function interface from equipment is used for based on the service protocol to institute State from equipment and send the operation code mark from equipment.
Optionally, the acquiring unit is specifically for receiving the send, operational control from equipment from equipment Data;Or, the main equipment receives the predefined type of service for sending from equipment, the main equipment obtain with described The corresponding operational control data of type of service, used as the operational control data from equipment.
Optionally, also include:
Second receiving unit, for receiving the facility information from equipment;
The communication unit is specifically for using described from the corresponding virtual service object of equipment and facility information, with institute Stating from equipment carries out service communication.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description, Device and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method are permissible Realize by another way.For example, device embodiment described above is only schematic, for example, the unit Divide, only a kind of division of logic function, can have other dividing mode, such as multiple units or component when actually realizing Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or not execute.Another, shown or The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces Close or communicate to connect, can be electrical, mechanical or other forms.
The unit that illustrates as separating component can be or may not be physically separate, aobvious as unit The part for showing can be or may not be physical location, you can be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part in other words prior art being contributed or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, use so that a computer including some instructions Equipment (can be personal computer, server, or network equipment etc.) executes the complete of each embodiment methods described of the present invention Portion or part steps.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, above example only in order to technical scheme to be described, rather than a limitation;Although with reference to front State embodiment to be described in detail the present invention, it will be understood by those within the art that:Which still can be to front State the technical scheme described in each embodiment to modify, or equivalent is carried out to which part technical characteristic;And these Modification or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a kind of main equipment and the service communication method from equipment, it is characterised in that Internet of things system includes main equipment and from setting Standby, the main equipment and described from equipment support identical service protocol;Methods described includes:
The main equipment obtains the operational control data from equipment;
The main equipment is according to the operational control data from equipment, and establishment is described from the corresponding virtual service object of equipment, Described from the corresponding virtual service object of equipment be based on the service protocol;
The main equipment carries out service communication with described from equipment using described from the corresponding virtual service object of equipment.
2. method according to claim 1, it is characterised in that described from equipment be at least two from equipment;
The main equipment includes from the operational control data of equipment described in obtaining:The main equipment obtains described at least two from setting In standby, each is from the operational control data of equipment;
The main equipment is according to the operational control data from equipment, and establishment is described from the corresponding virtual service object of equipment, Including:The main equipment creates each from the corresponding virtual service object of equipment according to each from the operational control data of equipment, Each is based on the service protocol from the corresponding virtual service object of equipment;
The main equipment carries out service communication with described from equipment from the corresponding virtual service object of equipment using described, including: The main equipment carries out service communication with each from equipment using each from the corresponding virtual service object of equipment.
3. method according to claim 2, it is characterised in that described at least two include first from equipment and from equipment Two from equipment;
Methods described also includes:
The main equipment receives the described first industry for sending from equipment using described first from the corresponding virtual service object of equipment Business performance data;
The main equipment utilizes described second from the corresponding virtual service object of equipment, by the described first business for sending from equipment Performance data is sent to described second from equipment.
4. method according to claim 1, it is characterised in that the main equipment is using described from the corresponding virtuality industry of equipment Business object carries out service communication with described from equipment, including:
The main equipment sends operation code mark to described from equipment from the corresponding virtual service object of equipment using described, The operation code identifies described from the corresponding business function of equipment execution or the corresponding business function number of return for controlling According to.
5. method according to claim 4, it is characterised in that described include from the operational control data of equipment:Described from The interface configuration data of equipment and operation code mark;The main equipment is created according to the operational control data from equipment Described from the corresponding virtual service object of equipment, including:
The main equipment is from the business of equipment according to the interface configuration data from equipment is created on the main equipment Function interface, wherein, the business function interface from equipment is used for sending institute to described from equipment based on the service protocol State and identify from the operation code of equipment.
6. method according to claim 1, it is characterised in that the main equipment obtains the operational control number from equipment According to, including:
The main equipment receives send, the operational control data from equipment from equipment;Or, the main equipment connects The predefined type of service for sending from equipment is received, the main equipment obtains operational control corresponding with the type of service Data, used as the operational control data from equipment.
7. method according to claim 1, it is characterised in that also include:
The main equipment receives the facility information from equipment;
The main equipment carries out service communication with described from equipment from the corresponding virtual service object of equipment using described, including: The main equipment is carried out business from equipment and leads to described using described from the corresponding virtual service object of equipment and facility information Letter.
8. a kind of main equipment, it is characterised in that Internet of things system includes the main equipment and from equipment, the main equipment and described Identical service protocol is supported from equipment;The main equipment includes:
Acquiring unit, for obtaining the operational control data from equipment;
Creating unit, described from the corresponding virtual service pair of equipment for according to the operational control data from equipment, creating As described from the corresponding virtual service object of equipment based on the service protocol;
Communication unit, for the main equipment using described from the corresponding virtual service object of equipment, is carried out from equipment with described Service communication.
9. main equipment according to claim 8, it is characterised in that described from equipment be at least two from equipment;
The acquiring unit, specifically for obtain described at least two from equipment each from the operational control data of equipment;
The creating unit, specifically for according to each from the operational control data of equipment, creating each from the corresponding void of equipment Intend business object, each is based on the service protocol from the corresponding virtual service object of equipment;
The communication unit, specifically for using each from the corresponding virtual service object of equipment, entering industry with each from equipment Business communication.
10. main equipment according to claim 9, it is characterised in that described at least two include first from equipment from equipment With second from equipment;The main equipment also includes:
First receiving unit, for using described first from the corresponding virtual service object of equipment, receiving described first from equipment The business function data of transmission;
Transmitting element, for using described second from the corresponding virtual service object of equipment, by described first from equipment transmission Business function data is activation is to described second from equipment.
CN201610940111.XA 2016-11-01 2016-11-01 Service communication method for master equipment and slave equipment and relevant equipment Pending CN106452895A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610940111.XA CN106452895A (en) 2016-11-01 2016-11-01 Service communication method for master equipment and slave equipment and relevant equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610940111.XA CN106452895A (en) 2016-11-01 2016-11-01 Service communication method for master equipment and slave equipment and relevant equipment

Publications (1)

Publication Number Publication Date
CN106452895A true CN106452895A (en) 2017-02-22

Family

ID=58178816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610940111.XA Pending CN106452895A (en) 2016-11-01 2016-11-01 Service communication method for master equipment and slave equipment and relevant equipment

Country Status (1)

Country Link
CN (1) CN106452895A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110474838A (en) * 2019-08-22 2019-11-19 广州拓波软件科技有限公司 A kind of Json mixing binary transmissions data method
CN114077448A (en) * 2020-08-11 2022-02-22 深圳云天励飞技术股份有限公司 Data management method and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916157A (en) * 2010-07-14 2010-12-15 浙江浙大中控信息技术有限公司 Medical device monitoring method, medical device, server and medical system
CN103763392A (en) * 2014-01-29 2014-04-30 百度在线网络技术(北京)有限公司 Control method, device and system for equipment
CN104298447A (en) * 2014-10-08 2015-01-21 百度在线网络技术(北京)有限公司 Method and system for generating user interface, and control equipment
CN105629908A (en) * 2014-10-31 2016-06-01 腾讯科技(深圳)有限公司 Internet of things equipment control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916157A (en) * 2010-07-14 2010-12-15 浙江浙大中控信息技术有限公司 Medical device monitoring method, medical device, server and medical system
CN103763392A (en) * 2014-01-29 2014-04-30 百度在线网络技术(北京)有限公司 Control method, device and system for equipment
CN104298447A (en) * 2014-10-08 2015-01-21 百度在线网络技术(北京)有限公司 Method and system for generating user interface, and control equipment
CN105629908A (en) * 2014-10-31 2016-06-01 腾讯科技(深圳)有限公司 Internet of things equipment control method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110474838A (en) * 2019-08-22 2019-11-19 广州拓波软件科技有限公司 A kind of Json mixing binary transmissions data method
CN114077448A (en) * 2020-08-11 2022-02-22 深圳云天励飞技术股份有限公司 Data management method and related equipment

Similar Documents

Publication Publication Date Title
CN201887792U (en) Multi-protocol conversion gateway
CN107533484A (en) System and method for dynamically managing virtual network function descriptor
CN106357421A (en) Method and device for transmitting flexible business flow of Ethernet
CN102281254A (en) Design system and method of server serial port
CN103703724A (en) Resource payment method
CN105593782A (en) Information handling system docking with coordinated power and data communication
CN104063290A (en) Systems, Methods, And Apparatuses For Handling Timeouts
CN101968775B (en) Computer system
CN106933753A (en) The control method and device of intelligent interface card
CN103701881B (en) Virtual hotplug system for supporting input/output (I/O) function dynamic distribution and working method thereof
USRE46770E1 (en) Computer managing method
CN106101984A (en) The security module management method of a kind of NFC Mobile payment terminal and terminal
CN107819659A (en) A kind of intelligent level UNICOM communication network based on SPI
CN103186440B (en) Detect subcard method, apparatus and system in place
CN106452895A (en) Service communication method for master equipment and slave equipment and relevant equipment
CN106507383A (en) Real name auditing method, equipment and system
CN109218086A (en) A kind of switching network construction method and system
CN114144769A (en) Method and apparatus for determining link fork availability
CN101699416B (en) Communication method and system between host computer and card reader with multiple card holders
CN105591722B (en) A kind of interplate communication method and device
CN108985556B (en) Method, apparatus, equipment and the computer storage medium of flow scheduling
CN105786732A (en) Data access method and apparatus
CN106453282A (en) Method and system for controlling ATM equipment
CN106933624A (en) A kind of Intelligent hardware control system and control method
US8441671B2 (en) Dynamic module configuration in a controller area network (CAN) with fixed sub-module board identification and plug-N-play support

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170222

RJ01 Rejection of invention patent application after publication