WO2017028779A1 - Configuration method and apparatus for internet of things protocol conversion function, nonvolatile computer storage medium and electronic device - Google Patents

Configuration method and apparatus for internet of things protocol conversion function, nonvolatile computer storage medium and electronic device Download PDF

Info

Publication number
WO2017028779A1
WO2017028779A1 PCT/CN2016/095463 CN2016095463W WO2017028779A1 WO 2017028779 A1 WO2017028779 A1 WO 2017028779A1 CN 2016095463 W CN2016095463 W CN 2016095463W WO 2017028779 A1 WO2017028779 A1 WO 2017028779A1
Authority
WO
WIPO (PCT)
Prior art keywords
internet
gateway
protocol
things
configuration file
Prior art date
Application number
PCT/CN2016/095463
Other languages
French (fr)
Chinese (zh)
Inventor
李明
Original Assignee
北京佰才邦技术有限公司
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 北京佰才邦技术有限公司 filed Critical 北京佰才邦技术有限公司
Publication of WO2017028779A1 publication Critical patent/WO2017028779A1/en

Links

Images

Classifications

    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Definitions

  • the present application relates to the field of Internet of Things, and in particular, to a method and apparatus for configuring an Internet of Things protocol conversion function.
  • the Internet of Things is the Internet that connects things.
  • the IoT business is delivered through networked IoT terminals. Depending on the industry involved, IoT business can be divided into home, medical, transportation, education, industry, agriculture and other types.
  • the Internet of Things network includes an Internet of Things terminal (including a TV 22', a refrigerator 23' and a weight meter 24'), a gateway 25', a management server 26', a management terminal (including a management terminal 27', and management. Terminal 28' and management terminal 29') and mobile application terminal 30'.
  • the smart home (television 11') service is provided through the alljoyn protocol
  • the smart home (refrigerator 12') service is provided through the homekit protocol
  • the smart medical (weight scale 13') service is provided through the continua protocol
  • the network side is based on the oneM2M protocol. Deploy the IoT business.
  • IoT terminal Regardless of the protocol supported by the IoT terminal, it is only necessary to perform simple function expansion based on the deployed oneM2M system on the network side. This type of deployment reduces the deployment cost of IoT services and speeds up the deployment of IoT services. In addition, all deployed IoT services perform post-operation and maintenance through a unified oneM2M protocol system, reducing overall operation and maintenance costs. In this deployment mode, operators of IoT services can devote more energy and resources to specific services (such as smart TV services, smart refrigerator services, etc.), which is conducive to the scale and refinement of IoT services. Development.
  • specific services such as smart TV services, smart refrigerator services, etc.
  • the inventors have found that the existing protocol conversion function is usually written to the gateway device when the gateway device leaves the factory, and cannot add new IoT services. If it is necessary to add a new IoT service, it is necessary to re-customize the new gateway device. .
  • the embodiment of the present application provides a method for configuring an Internet of Things protocol conversion function and an electronic device, so as to at least solve the technical problem that the gateway device cannot add a new Internet of Things service.
  • the method further includes: the gateway determining whether the gateway locally has a resource for loading the configuration file; if not, Determining whether the priority of the first Internet of Things protocol is higher than a priority of the IoT protocol that is locally loaded by the gateway; and if the priority of the first Internet of Things protocol is high, the gateway deletes the local A configuration file corresponding to the loaded low priority IoT protocol for converting information between the low priority IoT protocol and the second Internet of Things protocol.
  • a method for configuring an Internet of Things protocol conversion function including: the configuration server sends an IoT protocol conversion configuration file to be loaded to the gateway, where the configuration file is used to Converting between the first Internet of Things protocol and the second Internet of Things protocol, wherein the gateway performs information conversion between the first Internet of Things protocol and the second Internet of Things protocol through the configuration file, and sends the completed Converted information.
  • the configuration server sends the IoT protocol conversion configuration file to be sent to the gateway, where the configuration server identifies the new Internet of Things protocol by receiving a service message that is sent by the gateway and includes a new Internet of Things protocol; or The configuration server receives a registration request of a new Internet of Things protocol sent by the gateway, and identifies the new Internet of Things protocol by using the registration request; the configuration server queries whether the new Internet of Things protocol is locally available. Corresponding IoT protocol conversion configuration file; if the IoT protocol conversion configuration file corresponding to the new IoT protocol is found, the IoT protocol conversion configuration file corresponding to the new IoT protocol is used as the to-be-loaded An IoT protocol conversion profile is sent to the gateway.
  • the method further includes: the configuration server receiving a deletion request from the gateway, wherein the deletion request carries an identifier of an Internet of Things protocol conversion configuration file to be deleted; and the configuration server is configured according to the received Deleting the identifier corresponding to the identifier in the deletion request; the configuration server returns a deletion response message to the gateway, and the gateway deletes the local corresponding Internet of Things protocol conversion according to the receiving the deletion response message Configuration file.
  • the method further includes: the configuration server acquiring a gateway list of an Internet of Things protocol conversion configuration file to be updated; and the configuration server sending, according to the gateway list, the Internet of Things protocol conversion configuration file to be updated to The gateway of the Internet of Things protocol conversion configuration file needs to be updated, and the gateway updates the local Internet of Things protocol conversion configuration file according to the received Internet of Things protocol conversion configuration file to be updated.
  • the embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions for performing the Internet of Things protocol conversion according to any one of the first aspects of the present application.
  • the configuration method of the function is not limited to any one of the first aspects of the present application.
  • the computer executable instructions further include: before the gateway acquires the IoT protocol conversion configuration file to be loaded from the configuration server, the gateway determines whether the gateway locally has a resource for loading the configuration file; If not, determining whether the priority of the first Internet of Things protocol is higher than a priority of the IoT protocol that is locally loaded by the gateway; and if the priority of the first Internet of Things protocol is high, the gateway And deleting a configuration file corresponding to the locally loaded low priority Internet of Things protocol for converting information between the low priority IoT protocol and the second Internet of Things protocol.
  • the obtaining, by the gateway, the IoT protocol conversion configuration file to be loaded from the configuration server includes: sending, by the gateway, a loading request to the configuration server, where the loading request is used to request loading the to-be-loaded Internet of Things protocol conversion configuration file And sending, by the configuration server, the to-be-loaded Internet of Things protocol conversion configuration file to the gateway after receiving the loading request; the gateway receiving the to-be-loaded Internet of Things protocol conversion configuration sent by the configuration server File to load the IoT protocol conversion profile to be loaded.
  • the configuration server sends the IoT protocol conversion configuration file to be sent to the gateway, where the configuration server identifies the new Internet of Things protocol by receiving a service message that is sent by the gateway and includes a new Internet of Things protocol; or The configuration server receives a registration request of a new Internet of Things protocol sent by the gateway, and identifies the new Internet of Things protocol by using the registration request; the configuration server queries whether the new Internet of Things protocol is locally available. Corresponding IoT protocol conversion configuration file; if the IoT protocol conversion configuration file corresponding to the new IoT protocol is found, the IoT protocol conversion configuration file corresponding to the new IoT protocol is used as the to-be-loaded An IoT protocol conversion profile is sent to the gateway.
  • the device further includes: a first determining unit, configured to determine, before the configuration of the Internet of Things protocol conversion configuration file to be loaded from the configuration server, whether the gateway locally has a resource for loading the configuration file; a unit, configured to determine, when the gateway does not have a resource for loading the configuration file, whether a priority of the first Internet of Things protocol is higher than a priority of an IoT protocol that is locally loaded by the gateway; and deleting a unit, configured to: when the priority of the first Internet of Things protocol is high, deleting an IoT protocol corresponding to a locally loaded low priority IoT protocol for placing information at the low priority and the A configuration file that is converted between the second IoT protocols.
  • a first determining unit configured to determine, before the configuration of the Internet of Things protocol conversion configuration file to be loaded from the configuration server, whether the gateway locally has a resource for loading the configuration file
  • a unit configured to determine, when the gateway does not have a resource for loading the configuration file, whether a priority of the first Internet of Things protocol is higher than
  • the obtaining unit includes: a sending module, configured to send a loading request to the configuration server, where the loading request is used to request loading the to-be-loaded Internet of Things protocol conversion configuration file, and the configuration server receives the Sending the to-be-loaded Internet of Things protocol conversion configuration file to the gateway after the loading request; the receiving module is configured to receive the to-be-loaded Internet of Things protocol conversion configuration file sent by the configuration server, to load the to-be-loaded IoT protocol conversion profile.
  • the first sending unit includes: a first receiving module, configured to identify the new Internet of Things protocol by receiving a service message that is sent by the gateway and includes a new Internet of Things protocol; or, a second receiving module, Receiving a registration request of a new Internet of Things protocol sent by the gateway, and identifying the new Internet of Things protocol by using the registration request;
  • the query module is configured to query whether the new Internet of Things protocol is corresponding to the local The IoT protocol conversion configuration file;
  • the sending module configured to: when the IoT protocol conversion configuration file corresponding to the new IoT protocol is found, use the IoT protocol conversion configuration file corresponding to the new IoT protocol as a The loaded IoT protocol conversion profile is sent to the gateway.
  • FIG. 3 is a flowchart of a method for configuring an Internet of Things protocol conversion function according to an embodiment of the present application
  • FIG. 5 is a flowchart of loading an Internet of Things protocol conversion configuration file according to an embodiment of the present application.
  • FIG. 6 is a loading flowchart of another Internet of Things protocol conversion configuration file according to an embodiment of the present application.
  • FIG. 7 is a loading flowchart of still another Internet of Things protocol conversion configuration file according to an embodiment of the present application.
  • FIG. 8 is a loading flowchart of still another Internet of Things protocol conversion configuration file according to an embodiment of the present application.
  • FIG. 9 is a flowchart of deleting an Internet of Things protocol conversion configuration file according to an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the gateway obtains the IoT protocol conversion configuration file to be loaded from the configuration server by loading the configuration server, and loads the IOT protocol conversion configuration file to be loaded, and performs the information first through the configuration file.
  • the conversion and transmission between the Internet of Things protocol and the second Internet of Things protocol has added new IoT services to the gateway, solving the technical problem that the gateway device cannot add new IoT services, and has added new features in the gateway device. The effect of the IoT business.
  • the basis of the foregoing IoT protocol priority setting may include, but is not limited to, the following factors: configuration of each protocol priority in the configuration server, history of use of each protocol in the gateway (the more frequently used, the higher the priority), etc. .
  • the gateway obtains the IoT protocol conversion configuration file to be loaded from the configuration server, the gateway sends a load request to the configuration server, and the load request is used to request to load the IoT protocol conversion configuration file to be loaded, and the configuration server receives the loading request.
  • the IoT protocol conversion configuration file to be loaded is sent to the gateway; the gateway receives the IoT protocol conversion configuration file sent by the configuration server to load the IoT protocol conversion configuration file to be loaded.
  • Step S15 If the user does not find an entry of the IoT protocol conversion profile that needs to be newly loaded in the list of entries of all loadable IoT protocol conversion profiles, or an entry of the IoT protocol conversion profile loaded in the gateway The list finds an entry for the new IoT protocol conversion profile that needs to be loaded, and the process ends. Otherwise, the user selects an entry for the newly loaded IoT protocol conversion profile in the list of entries for all loadable IoT protocol conversion profiles.
  • the embodiment of the present application further provides a method for configuring an Internet of Things protocol conversion function, which may be performed by a configuration server.
  • the method includes: the configuration server sends an Internet of Things protocol conversion configuration file to be loaded to the gateway.
  • the configuration file is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol, and the gateway converts the information between the first Internet of Things protocol and the second Internet of Things protocol through the configuration file, and sends the information. Complete the conversion information.
  • the configuration server may identify the Internet of Things protocol according to the service message of the Internet of Things protocol intercepted by the gateway, and may also identify the Internet of Things protocol corresponding to the request by using the registration request forwarded by the gateway. After identifying the new IoT protocol, the configuration server queries whether there is a new IoT protocol conversion profile locally, and if so, sends the profile to the gateway; otherwise, the loading process ends.
  • the configuration server is configured to implement a batch gateway to load the IoT protocol conversion configuration file, thereby preventing each gateway from separately sending a load request to the configuration server, thereby reducing the processing pressure of the configuration server.
  • the new IoT terminal successfully accesses the configuration file in the gateway to provide related IoT services.
  • the configuration method of the Internet of Things protocol conversion function of the embodiment further includes: the configuration server receives the deletion request from the gateway, wherein the deletion request carries the identifier of the Internet of Things protocol conversion configuration file to be deleted; and the configuration server receives the The identifier in the deletion request deletes the local entry corresponding to the identifier; the configuration server returns a delete response message to the gateway, and the gateway deletes the local corresponding Internet of Things protocol conversion configuration file according to the received deletion response message.
  • Step S52 The gateway sends the list of entries of the loaded Internet of Things protocol conversion configuration file to the configuration terminal.
  • Step S53 If the user does not find an entry of the Internet of Things protocol conversion profile that needs to be deleted in the entry list of the IoT protocol conversion profile loaded in the gateway, the process is deleted. Otherwise, the user selects an entry for the IoT protocol conversion profile that needs to be deleted in the list of entries of the IoT protocol conversion profile loaded in the gateway.
  • Step S54 The user sends a deletion request to the gateway through the configuration terminal, and requests to delete the selected Internet of Things protocol conversion configuration file that needs to be deleted.
  • the deletion process is automatically initiated by the gateway, which improves the spontaneity of the deletion of the Internet of Things protocol conversion configuration file.
  • Step S72 The configuration server sends an entry of the IoT protocol conversion configuration file to be deleted to the identified gateway.
  • the method further includes: the configuration server acquires a gateway list of the Internet of Things protocol conversion configuration file to be updated; and the configuration server sends the Internet of Things protocol conversion configuration file to be updated according to the gateway list to the gateway that needs to update the Internet of Things protocol conversion configuration file.
  • the gateway updates the local IoT protocol conversion configuration file according to the received IoT protocol conversion configuration file to be updated.
  • the configuration server may obtain the IoT protocol conversion configuration file to be updated, and send the configuration file to the gateway that needs to be updated, so that The gateway updates it.
  • Step S81 The configuration server obtains a list of gateways that need to update the Internet of Things protocol conversion configuration file through the gateway configuration file or the gateway management system.
  • the embodiment of the present application further provides a configuration device for the Internet of Things protocol conversion function, and the device may be disposed on the gateway, and configured to execute the configuration method of the Internet of Things protocol conversion function of the foregoing Embodiment 1 of the present application.
  • the apparatus includes an acquisition unit 131 and a conversion unit 133.
  • the obtaining unit 131 is configured to acquire, from the configuration server, an Internet of Things protocol conversion configuration file to be loaded, where the configuration file is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol.
  • the device further includes: a first determining unit, configured to determine, before obtaining the IoT protocol conversion configuration file to be loaded from the configuration server, whether the gateway locally has a resource for loading the configuration file; and the second determining unit is configured to: When there is no resource for loading the configuration file locally in the gateway, it is determined whether the priority of the first Internet of Things protocol is higher than the priority of the IoT protocol loaded locally by the gateway; and the deleting unit is used in the first Internet of Things protocol When the priority is high, the configuration file corresponding to the locally loaded low priority IoT protocol for converting information between the low priority IoT protocol and the second Internet of Things protocol is deleted.
  • a first determining unit configured to determine, before obtaining the IoT protocol conversion configuration file to be loaded from the configuration server, whether the gateway locally has a resource for loading the configuration file
  • the second determining unit is configured to: When there is no resource for loading the configuration file locally in the gateway, it is determined whether the priority of the first Internet of Things protocol is higher than the priority of the IoT
  • the priority of each Internet of Things protocol may be preset. Before the gateway receives the IoT protocol conversion configuration file to be loaded, the gateway determines whether there is a resource locally to load the IOT protocol conversion configuration to be loaded. File, if the gateway can also load, directly obtain the IoT protocol conversion configuration file to be loaded; otherwise, if not loadable, the gateway can also according to the priority of the first Internet of Things protocol and the priority of the Internet of Things protocol on the gateway.
  • the loading request may be initiated by the gateway, or may be the request sent by the forwarding user through the configuration terminal, that is, in the embodiment of the present application, the loading of the new Internet of Things protocol conversion configuration file may be initiated by the user through the configuration terminal. It may also be initiated by the gateway. Whether the configuration terminal or the gateway initiates, the sending module of the gateway sends a loading request to the configuration server to load the IoT protocol conversion configuration file to be loaded.
  • the configuration server For a specific implementation, refer to the description of the foregoing Embodiment 1 of the present application, and details are not described herein.
  • the first sending unit includes: a first receiving module, configured to identify a new Internet of Things protocol by receiving a service message that is sent by the gateway and includes a new Internet of Things protocol; or a second receiving module, configured to receive the A registration request for a new IoT protocol, and a new IoT protocol is identified by a registration request; a query module is used to query whether there is a new IoT protocol conversion profile corresponding to the IoT protocol; a sending module is used to When the IoT protocol conversion configuration file corresponding to the new IoT protocol is found, the IoT protocol conversion configuration file corresponding to the new IoT protocol is sent to the gateway as the IoT protocol conversion configuration file to be loaded.
  • the configuration server may identify the Internet of Things protocol according to the service message of the Internet of Things protocol intercepted by the gateway, and may also identify the Internet of Things protocol corresponding to the request by using the registration request forwarded by the gateway. After identifying the new IoT protocol, the configuration server queries whether there is a new IoT protocol conversion profile locally, and if so, sends the profile to the gateway; otherwise, the loading process ends.
  • the device further includes: a receiving unit, configured to receive a deletion request from the gateway, where the deletion request carries an identifier of the Internet of Things protocol conversion configuration file to be deleted; and the deleting unit is configured to use the identifier in the received deletion request The entry corresponding to the identifier of the configuration server is deleted; the return unit is configured to return a deletion response message to the gateway, and the gateway deletes the local corresponding Internet of Things protocol conversion configuration file according to the received deletion response message.
  • a receiving unit configured to receive a deletion request from the gateway, where the deletion request carries an identifier of the Internet of Things protocol conversion configuration file to be deleted
  • the deleting unit is configured to use the identifier in the received deletion request The entry corresponding to the identifier of the configuration server is deleted
  • the return unit is configured to return a deletion response message to the gateway, and the gateway deletes the local corresponding Internet of Things protocol conversion configuration file according to the received deletion response message.
  • the IoT protocol conversion configuration file loaded on the gateway can also be deleted.
  • the gateway may send a delete request to the configuration server to delete the IoT protocol conversion configuration file that is already loaded on the gateway.
  • An entry of the IoT protocol conversion configuration file that has been loaded on each gateway may be set on the configuration server.
  • the configuration server receives the deletion request, the entry corresponding to the identifier of the IoT protocol conversion configuration file to be deleted is deleted, and The deletion reply message is returned to the gateway, so that the gateway deletes the IoT protocol conversion configuration file to be deleted.
  • Sending a delete request to the configuration server through the gateway causes the configuration server to delete the corresponding local entry, thereby ensuring that the entry on the configuration server is synchronized with the Internet of Things protocol conversion configuration file loaded on the gateway.
  • FIG. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 14, the device includes:
  • processors 1410 and memory 1420 one processor 1410 is exemplified in FIG.
  • the processor 1410, the memory 1420, the input device 1430, and the output device 1440 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 1420 is a non-volatile computer readable storage medium, and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module, such as the configuration of the Internet of Things protocol conversion function in the embodiment of the present application.
  • the program corresponds to a program instruction/module (for example, the acquisition unit 131 and the conversion unit 133 shown in FIG. 13).
  • the processor 1410 executes various functional applications and data processing of the server by executing non-volatile software programs, instructions, and modules stored in the memory 1420, that is, a configuration method for implementing the Internet of Things protocol conversion function of the above method embodiment.
  • the one or more modules are stored in the memory 1420, and when executed by the one or more processors 1410, perform a configuration method of the Internet of Things protocol conversion function in any of the above method embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are a configuration method and apparatus for an Internet of Things protocol conversion function, a nonvolatile computer storage medium and an electronic device. The method comprises: a gateway acquiring an Internet of Things protocol conversion configuration file to be loaded from a configuration server, wherein the configuration file is used for converting information between a first Internet of Things protocol and a second Internet of Things protocol; and the gateway converting the information between the first Internet of Things protocol and the second Internet of Things protocol by means of the configuration file, and sending information about conversion completion. By means of the present application, the technical problem that a gateway device cannot increase new Internet of Things services is solved.

Description

物联网协议转换功能的配置方法、装置、非易失性计算机存储介质和电子设备Method, device, non-volatile computer storage medium and electronic device for configuring Internet of Things protocol conversion function
交叉引用cross reference
本申请要求在2015年08月17日提交中国专利局、申请号为201510505802.2、发明名称为“物联网协议转换功能的配置方法和装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201510505802.2, entitled "Configuration Method and Apparatus for IoT Protocol Conversion Function", filed on August 17, 2015, the entire contents of which are incorporated by reference. Combined in this application.
技术领域Technical field
本申请涉及物联网领域,具体而言,涉及一种物联网协议转换功能的配置方法和装置。The present application relates to the field of Internet of Things, and in particular, to a method and apparatus for configuring an Internet of Things protocol conversion function.
背景技术Background technique
物联网是物物相连的互联网。物联网业务通过联网的物联网终端提供。根据涉及行业的不同,物联网业务可以分为家居、医疗、交通、教育、工业、农业等多种类型。The Internet of Things is the Internet that connects things. The IoT business is delivered through networked IoT terminals. Depending on the industry involved, IoT business can be divided into home, medical, transportation, education, industry, agriculture and other types.
在现有技术中,物联网各个行业(如家居、医疗)的业务需使用不同的协议提供服务。即使在同一个行业(如家居)中,也存在使用多种不同类型协议的情况。In the prior art, the services of various industries of the Internet of Things (such as home and medical) need to use different protocols to provide services. Even in the same industry (such as home), there are many different types of protocols.
例如,在图1中,该物联网网络里包括物联网终端(包括电视11’、冰箱12’和体重仪13’)、网关14’、管理服务器(包括管理服务器15’、管理服务器16’和管理服务器17’)、管理终端(包括管理终端18’、管理终端19’和管理终端20’)以及手机应用终端21’。通过alljoyn协议提供智能家居(电视11’)服务,通过homekit协议提供智能家居(冰箱12’)服务,通过continua协议提供智能医疗(体重仪13’)服务。For example, in FIG. 1, the Internet of Things network includes an Internet of Things terminal (including a TV 11', a refrigerator 12' and a weight meter 13'), a gateway 14', a management server (including a management server 15', a management server 16', and The management server 17'), the management terminal (including the management terminal 18', the management terminal 19', and the management terminal 20') and the mobile application terminal 21'. The Smart Home (TV 11') service is provided through the alljoyn protocol, the Smart Home (Refrigerator 12') service is provided through the homekit protocol, and the Smart Medical (Body Scale 13') service is provided through the continua protocol.
在这种部署方式中,每部署一种新的业务,都需要部署一套端到端的***,包括物联网终端、管理服务器、管理终端、手机应用终端等。这种方式的部署成本高、部署速度慢、维护成本高、用户使用也不方便。In this deployment mode, each deployment of a new service requires deployment of an end-to-end system, including IoT terminals, management servers, management terminals, and mobile application terminals. This method has high deployment cost, slow deployment speed, high maintenance cost, and is inconvenient for users.
为了解决上述问题,业界正在研究制定公共的物联网能力层协议(如,oneM2M),为各种不同类型物联网业务的部署和运维提供方便、灵活、强大的 功能。In order to solve the above problems, the industry is studying the development of a common IoT capability layer protocol (for example, oneM2M) to provide convenient, flexible and powerful deployment and operation and maintenance of various types of IoT services. Features.
如图2所示,该物联网网络里包括物联网终端(包括电视22’、冰箱23’和体重仪24’)、网关25’、管理服务器26’、管理终端(包括管理终端27’、管理终端28’和管理终端29’)以及手机应用终端30’。物联网终端侧,通过alljoyn协议提供智能家居(电视11’)服务,通过homekit协议提供智能家居(冰箱12’)服务,通过continua协议提供智能医疗(体重仪13’)服务,网络侧基于oneM2M协议部署物联网业务。无论物联网终端支持何种协议,在网络侧只需要基于已部署的oneM2M***进行简单的功能扩展即可。这种部署方式降低了物联网业务的部署成本,加快了物联网业务的部署速度。此外,所有已部署的物联网业务通过统一的oneM2M协议***进行后期的运维,降低了总体的运维成本。在这种部署方式中,物联网业务的运营者可以将更多的精力和资源投入具体的业务本身(如,智能电视业务、智能冰箱业务等),有利于物联网业务的规模化、精细化化发展。As shown in FIG. 2, the Internet of Things network includes an Internet of Things terminal (including a TV 22', a refrigerator 23' and a weight meter 24'), a gateway 25', a management server 26', a management terminal (including a management terminal 27', and management. Terminal 28' and management terminal 29') and mobile application terminal 30'. On the IoT terminal side, the smart home (television 11') service is provided through the alljoyn protocol, the smart home (refrigerator 12') service is provided through the homekit protocol, and the smart medical (weight scale 13') service is provided through the continua protocol, and the network side is based on the oneM2M protocol. Deploy the IoT business. Regardless of the protocol supported by the IoT terminal, it is only necessary to perform simple function expansion based on the deployed oneM2M system on the network side. This type of deployment reduces the deployment cost of IoT services and speeds up the deployment of IoT services. In addition, all deployed IoT services perform post-operation and maintenance through a unified oneM2M protocol system, reducing overall operation and maintenance costs. In this deployment mode, operators of IoT services can devote more energy and resources to specific services (such as smart TV services, smart refrigerator services, etc.), which is conducive to the scale and refinement of IoT services. Development.
在该***中,为了能够接入使用不同业务协议(如,alljoyn、homekit等)的物联网终端,避免对已支持这些协议的物联网终端进行改动,需要在网关中完成这些协议与oneM2M协议的转换。基于这种方案,各业务协议的设计者能够专注于相关物联网业务功能本身的设计和生态***的构建,各物联网终端厂商在选择需支持的业务协议时具有了更大的灵活性。In this system, in order to be able to access IoT terminals using different service protocols (eg, alljoyn, homekit, etc.), to avoid changes to IoT terminals that already support these protocols, it is necessary to complete these protocols and oneM2M protocol in the gateway. Conversion. Based on this scheme, the designers of each service agreement can focus on the design of the related IoT business functions and the construction of the ecosystem. The IoT terminal manufacturers have greater flexibility in selecting the service protocols to be supported.
然而,发明人发现,现有的协议转换功能通常是在网关设备出厂时写入网关设备的,无法增加新的物联网业务,如果需要增加新的物联网业务,则需要重新定制新的网关设备。However, the inventors have found that the existing protocol conversion function is usually written to the gateway device when the gateway device leaves the factory, and cannot add new IoT services. If it is necessary to add a new IoT service, it is necessary to re-customize the new gateway device. .
针对上述的问题,目前尚未提出有效的解决方案。In response to the above problems, no effective solution has been proposed yet.
发明内容Summary of the invention
本申请实施例提供了一种物联网协议转换功能的配置方法和电子设备,以至少解决网关设备无法增加新的物联网业务的技术问题。The embodiment of the present application provides a method for configuring an Internet of Things protocol conversion function and an electronic device, so as to at least solve the technical problem that the gateway device cannot add a new Internet of Things service.
根据本申请实施例的第一方面,提供了一种物联网协议转换功能的配置方法,包括:网关从配置服务器获取待加载的物联网协议转换配置文件,所述配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换;所述网关通过所述配置文件将信息进行所述第一物联网协议和所述第二物联网协议之间的转换,并发送完成转换的信息。 According to a first aspect of the embodiments of the present application, a method for configuring an Internet of Things protocol conversion function is provided, including: a gateway acquiring, from a configuration server, an Internet of Things protocol conversion configuration file to be loaded, where the configuration file is used to Converting between an Internet of Things protocol and a second Internet of Things protocol; the gateway performs information conversion between the first Internet of Things protocol and the second Internet of Things protocol through the configuration file, and sends the completed conversion Information.
进一步地,在网关从配置服务器获取待加载的物联网协议转换配置文件之前,所述方法还包括:所述网关判断所述网关本地是否存在用于加载所述配置文件的资源;如果不存在,则判断所述第一物联网协议的优先级是否高于所述网关本地已加载的物联网协议的优先级;以及如果所述第一物联网协议的优先级高,则所述网关删除本地已加载的优先级低的物联网协议所对应的用于将信息在所述优先级低的物联网协议和所述第二物联网协议之间转换的配置文件。Further, before the gateway obtains the IoT protocol conversion configuration file to be loaded from the configuration server, the method further includes: the gateway determining whether the gateway locally has a resource for loading the configuration file; if not, Determining whether the priority of the first Internet of Things protocol is higher than a priority of the IoT protocol that is locally loaded by the gateway; and if the priority of the first Internet of Things protocol is high, the gateway deletes the local A configuration file corresponding to the loaded low priority IoT protocol for converting information between the low priority IoT protocol and the second Internet of Things protocol.
进一步地,网关从配置服务器获取待加载的物联网协议转换配置文件包括:所述网关向所述配置服务器发送加载请求,所述加载请求用于请求加载所述待加载的物联网协议转换配置文件,所述配置服务器接收到所述加载请求之后将所述待加载的物联网协议转换配置文件发送至所述网关;所述网关接收所述配置服务器发送的所述待加载的物联网协议转换配置文件,以加载所述待加载的物联网协议转换配置文件。Further, the obtaining, by the gateway, the IoT protocol conversion configuration file to be loaded from the configuration server includes: sending, by the gateway, a loading request to the configuration server, where the loading request is used to request loading the to-be-loaded Internet of Things protocol conversion configuration file And sending, by the configuration server, the to-be-loaded Internet of Things protocol conversion configuration file to the gateway after receiving the loading request; the gateway receiving the to-be-loaded Internet of Things protocol conversion configuration sent by the configuration server File to load the IoT protocol conversion profile to be loaded.
根据本申请实施例的第二方面,还提供了一种物联网协议转换功能的配置方法,包括:配置服务器向网关发送待加载的物联网协议转换配置文件,所述配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换,所述网关通过所述配置文件将信息进行所述第一物联网协议和所述第二物联网协议之间的转换,并发送完成转换的信息。According to the second aspect of the embodiments of the present application, a method for configuring an Internet of Things protocol conversion function is provided, including: the configuration server sends an IoT protocol conversion configuration file to be loaded to the gateway, where the configuration file is used to Converting between the first Internet of Things protocol and the second Internet of Things protocol, wherein the gateway performs information conversion between the first Internet of Things protocol and the second Internet of Things protocol through the configuration file, and sends the completed Converted information.
进一步地,配置服务器向网关发送待加载的物联网协议转换配置文件包括:所述配置服务器通过接收所述网关发送的包含新的物联网协议的业务消息识别所述新的物联网协议;或者,所述配置服务器接收所述网关发送的新的物联网协议的注册请求,并通过所述注册请求识别出所述新的物联网协议;所述配置服务器查询本地是否有所述新的物联网协议对应的物联网协议转换配置文件;如果发现所述新的物联网协议对应的物联网协议转换配置文件,则将所述新的物联网协议对应的物联网协议转换配置文件作为所述待加载的物联网协议转换配置文件发送至所述网关。Further, the configuration server sends the IoT protocol conversion configuration file to be sent to the gateway, where the configuration server identifies the new Internet of Things protocol by receiving a service message that is sent by the gateway and includes a new Internet of Things protocol; or The configuration server receives a registration request of a new Internet of Things protocol sent by the gateway, and identifies the new Internet of Things protocol by using the registration request; the configuration server queries whether the new Internet of Things protocol is locally available. Corresponding IoT protocol conversion configuration file; if the IoT protocol conversion configuration file corresponding to the new IoT protocol is found, the IoT protocol conversion configuration file corresponding to the new IoT protocol is used as the to-be-loaded An IoT protocol conversion profile is sent to the gateway.
进一步地,所述方法还包括:所述配置服务器接收来自所述网关的删除请求,其中,所述删除请求携带有待删除的物联网协议转换配置文件的标识;所述配置服务器根据接收到的所述删除请求中的所述标识删除本地与所述标识对应的条目;所述配置服务器向所述网关返回删除应答消息,所述网关根据接收到所述删除应答消息删除本地对应的物联网协议转换配置文件。 Further, the method further includes: the configuration server receiving a deletion request from the gateway, wherein the deletion request carries an identifier of an Internet of Things protocol conversion configuration file to be deleted; and the configuration server is configured according to the received Deleting the identifier corresponding to the identifier in the deletion request; the configuration server returns a deletion response message to the gateway, and the gateway deletes the local corresponding Internet of Things protocol conversion according to the receiving the deletion response message Configuration file.
进一步地,所述方法还包括:所述配置服务器向所述网关发送删除命令,所述删除命令携带有待删除的物联网协议转换配置文件的标识,所述网关根据接收到的所述删除命令中的所述标识删除本地对应的物联网协议转换配置文件。Further, the method further includes: the configuration server sending a delete command to the gateway, where the delete command carries an identifier of an Internet of Things protocol conversion configuration file to be deleted, and the gateway is configured according to the received deletion command. The identifier deletes the local corresponding Internet of Things protocol conversion profile.
进一步地,所述方法还包括:所述配置服务器获取待更新的物联网协议转换配置文件的网关列表;所述配置服务器根据所述网关列表将所述待更新的物联网协议转换配置文件发送至需要更新所述物联网协议转换配置文件的网关,所述网关根据接收到的待更新的物联网协议转换配置文件更新本地的物联网协议转换配置文件。Further, the method further includes: the configuration server acquiring a gateway list of an Internet of Things protocol conversion configuration file to be updated; and the configuration server sending, according to the gateway list, the Internet of Things protocol conversion configuration file to be updated to The gateway of the Internet of Things protocol conversion configuration file needs to be updated, and the gateway updates the local Internet of Things protocol conversion configuration file according to the received Internet of Things protocol conversion configuration file to be updated.
第三方面,本申请实施例还提供了一种非易失性计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行本申请第一方面中任一项物联网协议转换功能的配置方法。In a third aspect, the embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions for performing the Internet of Things protocol conversion according to any one of the first aspects of the present application. The configuration method of the function.
进一步地,所述计算机可执行指令设置为:网关从配置服务器获取待加载的物联网协议转换配置文件,所述配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换;所述网关通过所述配置文件将信息进行所述第一物联网协议和所述第二物联网协议之间的转换,并发送完成转换的信息。Further, the computer executable instructions are configured to: the gateway acquires an Internet of Things protocol conversion configuration file to be loaded from the configuration server, where the configuration file is used to perform information between the first Internet of Things protocol and the second Internet of Things protocol. Converting; the gateway performs information conversion between the first Internet of Things protocol and the second Internet of Things protocol through the configuration file, and sends information that completes the conversion.
进一步地,所述计算机可执行指令还包括:在网关从配置服务器获取待加载的物联网协议转换配置文件之前,所述网关判断所述网关本地是否存在用于加载所述配置文件的资源;如果不存在,则判断所述第一物联网协议的优先级是否高于所述网关本地已加载的物联网协议的优先级;以及如果所述第一物联网协议的优先级高,则所述网关删除本地已加载的优先级低的物联网协议所对应的用于将信息在所述优先级低的物联网协议和所述第二物联网协议之间转换的配置文件。Further, the computer executable instructions further include: before the gateway acquires the IoT protocol conversion configuration file to be loaded from the configuration server, the gateway determines whether the gateway locally has a resource for loading the configuration file; If not, determining whether the priority of the first Internet of Things protocol is higher than a priority of the IoT protocol that is locally loaded by the gateway; and if the priority of the first Internet of Things protocol is high, the gateway And deleting a configuration file corresponding to the locally loaded low priority Internet of Things protocol for converting information between the low priority IoT protocol and the second Internet of Things protocol.
进一步地,网关从配置服务器获取待加载的物联网协议转换配置文件包括:所述网关向所述配置服务器发送加载请求,所述加载请求用于请求加载所述待加载的物联网协议转换配置文件,所述配置服务器接收到所述加载请求之后将所述待加载的物联网协议转换配置文件发送至所述网关;所述网关接收所述配置服务器发送的所述待加载的物联网协议转换配置文件,以加载所述待加载的物联网协议转换配置文件。Further, the obtaining, by the gateway, the IoT protocol conversion configuration file to be loaded from the configuration server includes: sending, by the gateway, a loading request to the configuration server, where the loading request is used to request loading the to-be-loaded Internet of Things protocol conversion configuration file And sending, by the configuration server, the to-be-loaded Internet of Things protocol conversion configuration file to the gateway after receiving the loading request; the gateway receiving the to-be-loaded Internet of Things protocol conversion configuration sent by the configuration server File to load the IoT protocol conversion profile to be loaded.
第四方面,本申请实施例还提供了一种电子设备,包括:一个或多个处理 器;以及,存储器;其中,所述存储器存储有可被所述一个或多个处理器执行的指令,所述指令被设置为用于执行本申请第一方面任一项物联网协议转换功能的配置方法。In a fourth aspect, an embodiment of the present application further provides an electronic device, including: one or more processes And a memory; wherein the memory stores instructions executable by the one or more processors, the instructions being configured to perform the Internet of Things protocol conversion function of any of the first aspects of the present application Configuration method.
进一步地,所述至少一个处理器还能够执行:在网关从配置服务器获取待加载的物联网协议转换配置文件之前,判断所述网关本地是否存在用于加载所述配置文件的资源;如果不存在,则判断所述第一物联网协议的优先级是否高于所述网关本地已加载的物联网协议的优先级;以及如果所述第一物联网协议的优先级高,则所述网关删除本地已加载的优先级低的物联网协议所对应的用于将信息在所述优先级低的物联网协议和所述第二物联网协议之间转换的配置文件。Further, the at least one processor is further configured to: before the gateway obtains the IoT protocol conversion configuration file to be loaded from the configuration server, determine whether the gateway locally has a resource for loading the configuration file; if not Determining whether the priority of the first Internet of Things protocol is higher than a priority of the locally loaded Internet of Things protocol of the gateway; and if the priority of the first Internet of Things protocol is high, the gateway deletes the local A configuration file corresponding to the loaded IoT protocol with low priority for converting information between the low priority IoT protocol and the second Internet of Things protocol.
进一步地,网关从配置服务器获取待加载的物联网协议转换配置文件包括:所述网关向所述配置服务器发送加载请求,所述加载请求用于请求加载所述待加载的物联网协议转换配置文件,所述配置服务器接收到所述加载请求之后将所述待加载的物联网协议转换配置文件发送至所述网关;所述网关接收所述配置服务器发送的所述待加载的物联网协议转换配置文件,以加载所述待加载的物联网协议转换配置文件。Further, the obtaining, by the gateway, the IoT protocol conversion configuration file to be loaded from the configuration server includes: sending, by the gateway, a loading request to the configuration server, where the loading request is used to request loading the to-be-loaded Internet of Things protocol conversion configuration file And sending, by the configuration server, the to-be-loaded Internet of Things protocol conversion configuration file to the gateway after receiving the loading request; the gateway receiving the to-be-loaded Internet of Things protocol conversion configuration sent by the configuration server File to load the IoT protocol conversion profile to be loaded.
第五方面,本申请实施例还提供了一种非易失性计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行本申请第二方面任一项物联网协议转换功能的配置方法。In a fifth aspect, the embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions for performing the Internet of Things protocol conversion function of the second aspect of the present application. Configuration method.
进一步地,配置服务器向网关发送待加载的物联网协议转换配置文件包括:所述配置服务器通过接收所述网关发送的包含新的物联网协议的业务消息识别所述新的物联网协议;或者,所述配置服务器接收所述网关发送的新的物联网协议的注册请求,并通过所述注册请求识别出所述新的物联网协议;所述配置服务器查询本地是否有所述新的物联网协议对应的物联网协议转换配置文件;如果发现所述新的物联网协议对应的物联网协议转换配置文件,则将所述新的物联网协议对应的物联网协议转换配置文件作为所述待加载的物联网协议转换配置文件发送至所述网关。Further, the configuration server sends the IoT protocol conversion configuration file to be sent to the gateway, where the configuration server identifies the new Internet of Things protocol by receiving a service message that is sent by the gateway and includes a new Internet of Things protocol; or The configuration server receives a registration request of a new Internet of Things protocol sent by the gateway, and identifies the new Internet of Things protocol by using the registration request; the configuration server queries whether the new Internet of Things protocol is locally available. Corresponding IoT protocol conversion configuration file; if the IoT protocol conversion configuration file corresponding to the new IoT protocol is found, the IoT protocol conversion configuration file corresponding to the new IoT protocol is used as the to-be-loaded An IoT protocol conversion profile is sent to the gateway.
第六方面,本申请实施例还提供了一种电子设备,包括:一个或多个处理器;以及,存储器;其中,所述存储器存储有可被所述一个或多个处理器执行的指令,所述指令被设置为用于执行本申请第二方面任一项物联网协议转换功 能的配置方法。In a sixth aspect, an embodiment of the present application further provides an electronic device, including: one or more processors; and a memory; wherein the memory stores instructions executable by the one or more processors, The instruction is configured to perform any of the Internet of Things protocol conversion work of the second aspect of the present application The configuration method of the energy.
进一步地,配置服务器向网关发送待加载的物联网协议转换配置文件包括:所述配置服务器通过接收所述网关发送的包含新的物联网协议的业务消息识别所述新的物联网协议;或者,所述配置服务器接收所述网关发送的新的物联网协议的注册请求,并通过所述注册请求识别出所述新的物联网协议;所述配置服务器查询本地是否有所述新的物联网协议对应的物联网协议转换配置文件;如果发现所述新的物联网协议对应的物联网协议转换配置文件,则将所述新的物联网协议对应的物联网协议转换配置文件作为所述待加载的物联网协议转换配置文件发送至所述网关。Further, the configuration server sends the IoT protocol conversion configuration file to be sent to the gateway, where the configuration server identifies the new Internet of Things protocol by receiving a service message that is sent by the gateway and includes a new Internet of Things protocol; or The configuration server receives a registration request of a new Internet of Things protocol sent by the gateway, and identifies the new Internet of Things protocol by using the registration request; the configuration server queries whether the new Internet of Things protocol is locally available. Corresponding IoT protocol conversion configuration file; if the IoT protocol conversion configuration file corresponding to the new IoT protocol is found, the IoT protocol conversion configuration file corresponding to the new IoT protocol is used as the to-be-loaded An IoT protocol conversion profile is sent to the gateway.
第七方面,本申请实施例还提供了一种物联网协议转换功能的配置装置,其特征在于,包括:获取单元,用于从配置服务器获取待加载的物联网协议转换配置文件,所述配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换;转换单元,用于通过所述配置文件将信息进行所述第一物联网协议和所述第二物联网协议之间的转换,并发送完成转换的信息。In a seventh aspect, the embodiment of the present application further provides an apparatus for configuring an Internet of Things protocol conversion function, comprising: an obtaining unit, configured to acquire, from a configuration server, an Internet of Things protocol conversion configuration file to be loaded, where the configuration The file is configured to convert information between the first Internet of Things protocol and the second Internet of Things protocol; and the converting unit is configured to perform information on the first Internet of Things protocol and the second Internet of Things protocol by using the configuration file Convert between and send the information to complete the conversion.
进一步地,所述装置还包括:第一判断单元,用于在从配置服务器获取待加载的物联网协议转换配置文件之前,判断网关本地是否存在用于加载所述配置文件的资源;第二判断单元,用于在网关本地不存在用于加载所述配置文件的资源时,判断所述第一物联网协议的优先级是否高于所述网关本地已加载的物联网协议的优先级;以及删除单元,用于在所述第一物联网协议的优先级高时,删除本地已加载的优先级低的物联网协议所对应的用于将信息在所述优先级低的物联网协议和所述第二物联网协议之间转换的配置文件。Further, the device further includes: a first determining unit, configured to determine, before the configuration of the Internet of Things protocol conversion configuration file to be loaded from the configuration server, whether the gateway locally has a resource for loading the configuration file; a unit, configured to determine, when the gateway does not have a resource for loading the configuration file, whether a priority of the first Internet of Things protocol is higher than a priority of an IoT protocol that is locally loaded by the gateway; and deleting a unit, configured to: when the priority of the first Internet of Things protocol is high, deleting an IoT protocol corresponding to a locally loaded low priority IoT protocol for placing information at the low priority and the A configuration file that is converted between the second IoT protocols.
进一步地,所述获取单元包括:发送模块,用于向所述配置服务器发送加载请求,所述加载请求用于请求加载所述待加载的物联网协议转换配置文件,所述配置服务器接收到所述加载请求之后将所述待加载的物联网协议转换配置文件发送至网关;接收模块,用于接收所述配置服务器发送的所述待加载的物联网协议转换配置文件,以加载所述待加载的物联网协议转换配置文件。Further, the obtaining unit includes: a sending module, configured to send a loading request to the configuration server, where the loading request is used to request loading the to-be-loaded Internet of Things protocol conversion configuration file, and the configuration server receives the Sending the to-be-loaded Internet of Things protocol conversion configuration file to the gateway after the loading request; the receiving module is configured to receive the to-be-loaded Internet of Things protocol conversion configuration file sent by the configuration server, to load the to-be-loaded IoT protocol conversion profile.
第八方面,本申请实施例还提供了一种物联网协议转换功能的配置装置,包括:第一发送单元,用于向网关发送待加载的物联网协议转换配置文件,所述配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换,所 述网关通过所述配置文件将信息进行所述第一物联网协议和所述第二物联网协议之间的转换,并发送完成转换的信息。In an eighth aspect, the embodiment of the present application further provides an apparatus for configuring an Internet of Things protocol conversion function, including: a first sending unit, configured to send, to a gateway, an Internet of Things protocol conversion configuration file to be loaded, where the configuration file is used to Converting information between the first Internet of Things protocol and the second Internet of Things protocol, The gateway performs information conversion between the first Internet of Things protocol and the second Internet of Things protocol through the configuration file, and sends information that completes the conversion.
进一步地,所述第一发送单元包括:第一接收模块,用于通过接收所述网关发送的包含新的物联网协议的业务消息识别所述新的物联网协议;或者,第二接收模块,用于接收所述网关发送的新的物联网协议的注册请求,并通过所述注册请求识别出所述新的物联网协议;查询模块,用于查询本地是否有所述新的物联网协议对应的物联网协议转换配置文件;发送模块,用于在发现所述新的物联网协议对应的物联网协议转换配置文件时,将所述新的物联网协议对应的物联网协议转换配置文件作为所述待加载的物联网协议转换配置文件发送至所述网关。Further, the first sending unit includes: a first receiving module, configured to identify the new Internet of Things protocol by receiving a service message that is sent by the gateway and includes a new Internet of Things protocol; or, a second receiving module, Receiving a registration request of a new Internet of Things protocol sent by the gateway, and identifying the new Internet of Things protocol by using the registration request; the query module is configured to query whether the new Internet of Things protocol is corresponding to the local The IoT protocol conversion configuration file; the sending module, configured to: when the IoT protocol conversion configuration file corresponding to the new IoT protocol is found, use the IoT protocol conversion configuration file corresponding to the new IoT protocol as a The loaded IoT protocol conversion profile is sent to the gateway.
根据本申请实施例的物联网协议转换功能的配置方法和电子设备,通过设置配置服务器,网关从该配置服务器上获取待加载的物联网协议转换配置文件,以加载待加载的物联网协议转换配置文件,并通过该配置文件将信息进行第一物联网协议和第二物联网协议之间的转换和发送,从而在网关上增加了新的物联网业务,解决了网关设备无法增加新的物联网业务的技术问题,达到了在网关设备增加新的物联网业务的效果。According to the configuration method and the electronic device of the Internet of Things protocol conversion function according to the embodiment of the present application, the gateway obtains the IoT protocol conversion configuration file to be loaded from the configuration server by loading the configuration server to load the IoT protocol conversion configuration to be loaded. File, and through the configuration file to convert and send information between the first Internet of Things protocol and the second Internet of Things protocol, thereby adding a new Internet of Things service to the gateway, solving the problem that the gateway device cannot add a new Internet of Things The technical problems of the business have achieved the effect of adding new IoT services to the gateway devices.
附图说明DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.
图1是根据现有技术的一种物联网***的示意图;1 is a schematic diagram of an Internet of Things system according to the prior art;
图2是根据现有技术的另一种物联网***的示意图;2 is a schematic diagram of another Internet of Things system according to the prior art;
图3是根据本申请实施例的物联网协议转换功能的配置方法的流程图;3 is a flowchart of a method for configuring an Internet of Things protocol conversion function according to an embodiment of the present application;
图4是根据本申请实施例的一种物联网***的示意图;4 is a schematic diagram of an Internet of Things system according to an embodiment of the present application;
图5是根据本申请实施例的一种物联网协议转换配置文件的加载流程图;FIG. 5 is a flowchart of loading an Internet of Things protocol conversion configuration file according to an embodiment of the present application; FIG.
图6是根据本申请实施例的另一种物联网协议转换配置文件的加载流程图;6 is a loading flowchart of another Internet of Things protocol conversion configuration file according to an embodiment of the present application;
图7是根据本申请实施例的又一种物联网协议转换配置文件的加载流程图;7 is a loading flowchart of still another Internet of Things protocol conversion configuration file according to an embodiment of the present application;
图8是根据本申请实施例的又一种物联网协议转换配置文件的加载流程图;8 is a loading flowchart of still another Internet of Things protocol conversion configuration file according to an embodiment of the present application;
图9是根据本申请实施例的一种物联网协议转换配置文件的删除流程图; 9 is a flowchart of deleting an Internet of Things protocol conversion configuration file according to an embodiment of the present application;
图10是根据本申请实施例的另一种物联网协议转换配置文件的删除流程图;FIG. 10 is a flowchart of deleting another Internet of Things protocol conversion profile according to an embodiment of the present application; FIG.
图11是根据本申请实施例的又一种物联网协议转换配置文件的删除流程图;11 is a flowchart of deleting another IoT protocol conversion profile according to an embodiment of the present application;
图12是根据本申请实施例的一种物联网协议转换配置文件的更新流程图;12 is a flowchart of updating an Internet of Things protocol conversion configuration file according to an embodiment of the present application;
图13是根据本申请实施例3的一种物联网协议转换功能的配置装置的示意图;13 is a schematic diagram of an apparatus for configuring an Internet of Things protocol conversion function according to Embodiment 3 of the present application;
图14是根据本申请实施例的一种电子设备的结构示意图。FIG. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,以下将参照本申请实施例中的附图,通过实施方式清楚、完整地描述本申请的技术方案,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。The embodiments of the present application will be clearly and completely described in the following with reference to the drawings in the embodiments of the present application. Some embodiments, but not all of the embodiments.
基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope shall fall within the scope of the application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、***、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or order. It is to be understood that the data so used may be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
根据本申请实施例,提供了一种物联网协议转换功能的配置方法的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机***中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present application, a method embodiment of a method for configuring an Internet of Things protocol conversion function is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings may be in a computer system such as a set of computer executable instructions. The execution is performed, and although the logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
实施例一Embodiment 1
图3是根据本申请实施例的物联网协议转换功能的配置方法的流程图,如图3所示,该方法包括如下步骤: FIG. 3 is a flowchart of a method for configuring an Internet of Things protocol conversion function according to an embodiment of the present application. As shown in FIG. 3, the method includes the following steps:
步骤S302,网关从配置服务器获取待加载的物联网协议转换配置文件。该配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换。Step S302, the gateway acquires an Internet of Things protocol conversion configuration file to be loaded from the configuration server. The profile is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol.
步骤S304,网关通过配置文件将信息进行第一物联网协议和第二物联网协议之间的转换,并发送完成转换的信息。Step S304, the gateway performs the conversion between the first Internet of Things protocol and the second Internet of Things protocol through the configuration file, and sends the information that completes the conversion.
网关从配置服务器获取待加载的物联网协议转换配置文件,以加载待加载的物联网协议转换配置文件,其中,第一物联网协议为该网关上新增的物联网协议,第二物联网协议可以是网络侧部署的通用的物联网协议,网关从配置服务器获取待加载的物联网协议转换配置文件即完成对待加载的物联网协议转换配置文件的加载,这样,网关可以利用该配置文件的功能实现由第一物联网协议向第二物联网协议或者第二物联网协议向第一物联网协议的信息转换,并将完成转换的信息发送出去。The gateway obtains the IoT protocol conversion configuration file to be loaded from the configuration server to load the IoT protocol conversion configuration file to be loaded, wherein the first Internet of Things protocol is a new Internet of Things protocol on the gateway, and the second Internet of Things protocol It can be a general IoT protocol deployed on the network side. The gateway obtains the IoT protocol conversion configuration file to be loaded from the configuration server, that is, loads the IOT protocol conversion configuration file to be loaded, so that the gateway can utilize the function of the configuration file. Realizing information conversion from the first Internet of Things protocol to the second Internet of Things protocol or the second Internet of Things protocol to the first Internet of Things protocol, and transmitting the completed conversion information.
根据本申请实施例,通过设置配置服务器,网关从该配置服务器上获取待加载的物联网协议转换配置文件,以加载待加载的物联网协议转换配置文件,并通过该配置文件将信息进行第一物联网协议和第二物联网协议之间的转换和发送,从而在网关上增加了新的物联网业务,解决了网关设备无法增加新的物联网业务的技术问题,达到了在网关设备增加新的物联网业务的效果。According to the embodiment of the present application, the gateway obtains the IoT protocol conversion configuration file to be loaded from the configuration server by loading the configuration server, and loads the IOT protocol conversion configuration file to be loaded, and performs the information first through the configuration file. The conversion and transmission between the Internet of Things protocol and the second Internet of Things protocol has added new IoT services to the gateway, solving the technical problem that the gateway device cannot add new IoT services, and has added new features in the gateway device. The effect of the IoT business.
优选地,在网关从配置服务器获取待加载的物联网协议转换配置文件之前,方法还包括:网关判断网关本地是否存在用于加载配置文件的资源;如果不存在,则判断第一物联网协议的优先级是否高于网关本地已加载的物联网协议的优先级;以及如果第一物联网协议的优先级高,则网关删除本地已加载的优先级低的物联网协议所对应的用于将信息在优先级低的物联网协议和第二物联网协议之间转换的配置文件。Preferably, before the gateway obtains the IoT protocol conversion configuration file to be loaded from the configuration server, the method further includes: the gateway determining whether the gateway locally has a resource for loading the configuration file; if not, determining the first Internet of Things protocol Whether the priority is higher than the priority of the IoT protocol that is locally loaded by the gateway; and if the priority of the first IoT protocol is high, the gateway deletes the information of the IoT protocol that is locally loaded with a lower priority for the information A configuration file that is converted between a low priority IoT protocol and a second IoT protocol.
由于网关上的资源(如内存、处理器等)有限,决定了同一时间内在网关中加载的协议转换功能的数量将会受限。同时,由于物联网业务具有多样性的特点,需要转换的物联网业务协议类型也较多。此外,随着新的物联网业务的出现,新的物联网业务协议的数量会不断增加,从而需要不断补充支持新的协议转换功能。这样,当网关上资源耗尽时,也将导致网关无法增加新的物联网业务。Due to the limited resources (such as memory, processor, etc.) on the gateway, it is determined that the number of protocol conversion functions loaded in the gateway at the same time will be limited. At the same time, due to the diversity of IoT services, there are many types of IoT service protocols that need to be converted. In addition, with the advent of the new IoT business, the number of new IoT service agreements will continue to increase, which will require additional support for new protocol conversion functions. In this way, when the resources on the gateway are exhausted, the gateway will not be able to add new IoT services.
本实施例中,可以预先设置各物联网协议的优先级,在网关接收到待加载的物联网协议转换配置文件之前,网关判断其本地是否还有资源来加载上述待 加载的物联网协议转换配置文件,如果网关还可加载,则直接获取待加载的物联网协议转换配置文件;反之,如果不可加载,网关还可以根据第一物联网协议的优先级与网关上的物联网协议的优先级来进一步判断是否可以加载,其中,如果第一物联网协议的优先级高,则删除优先级较低的物联网协议对应的协议转换配置文件,加载该物联网协议对应的协议转换配置文件即待加载的物联网协议转换配置文件;反之,不加载该待加载的物联网协议转换配置文件。这样,保证在网关上存在资源时,可以加载待加载的物联网协议转换配置文件,在网关资源不足时,利用物联网协议的优先级来加载待加载的物联网协议转换配置文件。In this embodiment, the priority of each Internet of Things protocol may be preset. Before the gateway receives the IoT protocol conversion configuration file to be loaded, the gateway determines whether there is any resource in the local device to load the foregoing. The loaded IoT protocol conversion configuration file, if the gateway can also be loaded, directly obtain the IoT protocol conversion configuration file to be loaded; otherwise, if not loadable, the gateway can also be based on the priority of the first Internet of Things protocol and the gateway. The priority of the Internet of Things protocol is further determined whether the load can be loaded. If the priority of the first Internet of Things protocol is high, the protocol conversion configuration file corresponding to the lower priority IoT protocol is deleted, and the corresponding IoT protocol is loaded. The protocol conversion configuration file is the IoT protocol conversion configuration file to be loaded; otherwise, the IoT protocol conversion configuration file to be loaded is not loaded. In this way, when the resource exists on the gateway, the IoT protocol conversion configuration file to be loaded can be loaded, and when the gateway resource is insufficient, the IoT protocol conversion configuration file is loaded by using the priority of the Internet of Things protocol.
可选地,上述物联网协议优先级设置的依据可以包括但不限于如下因素:配置服务器中对于各协议优先级的配置、网关中各协议使用的历史情况(使用越频繁优先级越高)等。Optionally, the basis of the foregoing IoT protocol priority setting may include, but is not limited to, the following factors: configuration of each protocol priority in the configuration server, history of use of each protocol in the gateway (the more frequently used, the higher the priority), etc. .
优选地,网关从配置服务器获取待加载的物联网协议转换配置文件包括:网关向配置服务器发送加载请求,加载请求用于请求加载待加载的物联网协议转换配置文件,配置服务器接收到加载请求之后将待加载的物联网协议转换配置文件发送至网关;网关接收配置服务器发送的待加载的物联网协议转换配置文件,以加载待加载的物联网协议转换配置文件。Preferably, the gateway obtains the IoT protocol conversion configuration file to be loaded from the configuration server, the gateway sends a load request to the configuration server, and the load request is used to request to load the IoT protocol conversion configuration file to be loaded, and the configuration server receives the loading request. The IoT protocol conversion configuration file to be loaded is sent to the gateway; the gateway receives the IoT protocol conversion configuration file sent by the configuration server to load the IoT protocol conversion configuration file to be loaded.
上述加载请求可以是有网关主动发送的,也可以是转发用户通过配置终端发送的请求,也即是本申请实施例中,新的物联网协议转换配置文件的加载可以由用户通过配置终端发起的,也可以是由网关发起的,无论是配置终端还是网关发起的,都会由网关向配置服务器发送加载请求,用以加载待加载的物联网协议转换配置文件。The loading request may be initiated by the gateway, or may be the request sent by the forwarding user through the configuration terminal, that is, in the embodiment of the present application, the loading of the new Internet of Things protocol conversion configuration file may be initiated by the user through the configuration terminal. It may also be initiated by the gateway. Whether it is configured by the terminal or the gateway, the gateway sends a load request to the configuration server to load the IoT protocol conversion configuration file to be loaded.
下面分别对用户通过配置终端发起的加载流程和由网关发起的加载流程的可选实施方式来描述本申请实施例。其中,本实施例中加载流程主要包括物联网终端(例如电视41、冰箱42和体重仪43)、网关44、配置终端45、配置服务器46四种功能实体,如图4所示。The embodiments of the present application are described below for an optional implementation manner in which a user initiates a loading process initiated by a terminal and a loading process initiated by a gateway. The loading process in this embodiment mainly includes four functional entities of the Internet of Things terminal (such as the TV 41, the refrigerator 42 and the weight meter 43), the gateway 44, the configuration terminal 45, and the configuration server 46, as shown in FIG.
如图5所示,当用户购买了新的物联网终端后,加载该物联网终端对应的新的物联网协议转换配置文件可以通过以下步骤:As shown in FIG. 5, after the user purchases a new IoT terminal, loading the new IoT protocol conversion profile corresponding to the IoT terminal can be performed by the following steps:
步骤S11:用户通过配置终端向网关发送请求,请求获得全部可加载物联网协议转换配置文件的条目列表。 Step S11: The user sends a request to the gateway by configuring the terminal, requesting to obtain a list of entries of all loadable IoT protocol conversion configuration files.
步骤S12:网关获得该请求后向配置服务器转发该请求。Step S12: After obtaining the request, the gateway forwards the request to the configuration server.
步骤S13:配置服务器将全部可加载物联网协议转换配置文件的条目列表发送给网关。Step S13: The configuration server sends a list of entries of all loadable IoT protocol conversion profiles to the gateway.
步骤S14:网关将全部可加载物联网协议转换配置文件的条目列表及网关中已加载的物联网协议转换配置文件的条目列表发送给配置终端。Step S14: The gateway sends the list of entries of all loadable IoT protocol conversion profiles and the list of entries of the loaded IoT protocol conversion profile in the gateway to the configuration terminal.
步骤S15:用户如果在全部可加载物联网协议转换配置文件的条目列表中没有发现需要新加载的物联网协议转换配置文件的条目,或者,在网关中已加载的物联网协议转换配置文件的条目列表中发现需要加载的新的物联网协议转换配置文件的条目,那么流程将结束。否则,用户在全部可加载物联网协议转换配置文件的条目列表中选择需要新加载的物联网协议转换配置文件的条目。Step S15: If the user does not find an entry of the IoT protocol conversion profile that needs to be newly loaded in the list of entries of all loadable IoT protocol conversion profiles, or an entry of the IoT protocol conversion profile loaded in the gateway The list finds an entry for the new IoT protocol conversion profile that needs to be loaded, and the process ends. Otherwise, the user selects an entry for the newly loaded IoT protocol conversion profile in the list of entries for all loadable IoT protocol conversion profiles.
步骤S16:用户通过配置终端向网关发送请求,请求加载选定的需要新加载的物联网协议转换配置文件。Step S16: The user sends a request to the gateway by configuring the terminal to request to load the selected IoT protocol conversion configuration file that needs to be newly loaded.
步骤S17:网关获得该请求后向配置服务器转发该请求。Step S17: After obtaining the request, the gateway forwards the request to the configuration server.
步骤S18:配置服务器根据网关的请求,将需要新加载的物联网协议转换配置文件发送给网关。Step S18: The configuration server sends the newly loaded IoT protocol conversion configuration file to the gateway according to the request of the gateway.
步骤S19:网关加载该物联网协议转换配置文件,并将加载的结果发送给配置终端。Step S19: The gateway loads the IoT protocol conversion configuration file, and sends the loaded result to the configuration terminal.
如果网关成功加载了新的物联网协议转换配置文件,新的物联网终端通过网关中的该配置文件成功接入,提供相关的物联网业务。If the gateway successfully loads the new IoT protocol conversion profile, the new IoT terminal successfully accesses the configuration file in the gateway to provide related IoT services.
本实施例中,通过配置终端发起加载物联网协议转换配置文件的流程,使得用户可以灵活加载物联网协议转换配置文件至网关上,从而提供相应的物联网业务。In this embodiment, the process of loading the IoT protocol to convert the configuration file is initiated by the terminal, so that the user can flexibly load the IoT protocol to convert the configuration file to the gateway, thereby providing the corresponding Internet of Things service.
网关发起的加载流程如图6所示。当用户购买了新的物联网终端后,该物联网终端使用新的物联网业务协议发起注册请求,被网关获取。The loading process initiated by the gateway is shown in Figure 6. When the user purchases a new IoT terminal, the IoT terminal initiates a registration request using the new IoT service protocol and is acquired by the gateway.
步骤S21:网关获取物联网终端使用新的物联网协议发起的注册请求,网关识别出该物联网业务协议的类型。Step S21: The gateway acquires a registration request initiated by the Internet of Things terminal by using a new Internet of Things protocol, and the gateway identifies the type of the Internet of Things service protocol.
步骤S22:如果网关中已加载该物联网业务协议对应的物联网协议转换配置文件,那么加载流程结束。否则,网关向配置服务器发送请求,请求下载该物联网协议转换配置文件。Step S22: If the Internet of Things protocol conversion configuration file corresponding to the Internet of Things service protocol has been loaded in the gateway, the loading process ends. Otherwise, the gateway sends a request to the configuration server requesting to download the IoT protocol conversion configuration file.
步骤S23:若配置服务器中没有该物联网协议转换配置文件,则配置服务器 向网关返回加载失败。否则,配置服务器将该物联网协议转换配置文件发送给网关,网关加载该物联网协议转换配置文件。Step S23: If the configuration server does not have the IoT protocol conversion configuration file, configure the server. Returning to the gateway failed to load. Otherwise, the configuration server sends the IoT protocol conversion configuration file to the gateway, and the gateway loads the IoT protocol conversion configuration file.
如果网关成功加载了新的物联网协议转换功能,新的物联网终端通过网关中的该功能成功接入,提供相关的物联网业务。If the gateway successfully loads the new IoT protocol conversion function, the new IoT terminal successfully accesses through the function in the gateway to provide related IoT services.
可选地,网关发起的加载流程还可以是图7所示的加载流程。当用户购买了新的物联网终端后,该物联网终端使用新的物联网业务协议发起注册请求,被网关获取。Optionally, the gateway initiated loading process may also be the loading process shown in FIG. 7. When the user purchases a new IoT terminal, the IoT terminal initiates a registration request using the new IoT service protocol and is acquired by the gateway.
步骤S31:网关截取物联网终端使用新的物联网协议发送的业务消息。Step S31: The gateway intercepts the service message sent by the IoT terminal using the new IoT protocol.
步骤S32:网关将该业务消息发送给注册服务器。Step S32: The gateway sends the service message to the registration server.
步骤S33:注册服务器识别出该物联网业务协议的类型,并查询本地是否有该物联网业务协议对应的物联网协议转换配置文件。Step S33: The registration server identifies the type of the Internet of Things service protocol, and queries whether there is an Internet of Things protocol conversion configuration file corresponding to the Internet of Things service protocol.
步骤S34:若配置服务器没有该物联网业务协议对应的物联网协议转换配置文件,向网关发送识别失败的应答消息。否则,配置服务器将新的物联网协议转换物联网业务协议消息发送给网关,网关加载该物联网协议转换配置文件。Step S34: If the configuration server does not have the Internet of Things protocol conversion configuration file corresponding to the Internet of Things service protocol, send a response message identifying the failure to the gateway. Otherwise, the configuration server sends a new IoT protocol to convert the IoT service protocol message to the gateway, and the gateway loads the IoT protocol conversion configuration file.
如果网关成功加载了新的物联网协议转换配置文件,新的物联网终端通过网关中的该配置文件成功接入,提供相关的物联网业务。If the gateway successfully loads the new IoT protocol conversion profile, the new IoT terminal successfully accesses the configuration file in the gateway to provide related IoT services.
本实施例中,通过网关发起该物联网协议转换配置文件的加载流程,无需通过另外增加配置终端即可实现物联网协议转换配置文件的加载。In this embodiment, the loading process of the IoT protocol conversion configuration file is initiated by the gateway, and the loading of the Internet of Things protocol conversion configuration file can be realized without additionally adding the configuration terminal.
实施例二Embodiment 2
本申请实施例还提供了一种物联网协议转换功能的配置方法,该方法可以由配置服务器来执行,具体地,该方法包括:配置服务器向网关发送待加载的物联网协议转换配置文件。其中,配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换,网关通过配置文件将信息进行第一物联网协议和第二物联网协议之间的转换,并发送完成转换的信息。The embodiment of the present application further provides a method for configuring an Internet of Things protocol conversion function, which may be performed by a configuration server. Specifically, the method includes: the configuration server sends an Internet of Things protocol conversion configuration file to be loaded to the gateway. The configuration file is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol, and the gateway converts the information between the first Internet of Things protocol and the second Internet of Things protocol through the configuration file, and sends the information. Complete the conversion information.
配置服务器将待加载的物联网协议转换配置文件发送中网关,以使得网关加载该待加载的物联网协议转换配置文件,其中,第一物联网协议为该网关上新增的物联网协议,第二物联网协议可以是网络侧部署的通用的物联网协议,网关接收到配置服务器发送的待加载的物联网协议转换配置文件即完成对待加载的物联网协议转换配置文件的加载,这样,网关可以利用该配置文件的功能 实现由第一物联网协议向第二物联网协议或者第二物联网协议向第一物联网协议的信息转换,并将完成转换的信息发送出去。The configuration server sends the IoT protocol conversion profile to be sent to the gateway, so that the gateway loads the IoT protocol conversion configuration file to be loaded, where the first Internet of Things protocol is a new Internet of Things protocol on the gateway. The second Internet of Things protocol may be a general IoT protocol deployed on the network side, and the gateway receives the IoT protocol conversion configuration file sent by the configuration server to complete loading of the IoT protocol conversion configuration file to be loaded, so that the gateway can Take advantage of the features of this profile Realizing information conversion from the first Internet of Things protocol to the second Internet of Things protocol or the second Internet of Things protocol to the first Internet of Things protocol, and transmitting the completed conversion information.
根据本申请实施例,通过配置服务器向网关发送待加载的物联网协议转换配置文件,以使得网关加载待加载的物联网协议转换配置文件,并通过该配置文件将信息进行第一物联网协议和第二物联网协议之间的转换和发送,从而在网关上增加了新的物联网业务,解决了网关设备无法增加新的物联网业务的技术问题,达到了在网关设备增加新的物联网业务的效果。According to the embodiment of the present application, the configuration server sends the IoT protocol conversion configuration file to be loaded to the gateway, so that the gateway loads the IoT protocol conversion configuration file to be loaded, and uses the configuration file to perform the first Internet of Things protocol and The conversion and transmission between the second Internet of Things protocols has added new IoT services to the gateway, solved the technical problem that the gateway device cannot add new IoT services, and achieved the addition of new IoT services in the gateway devices. Effect.
优选地,配置服务器向网关发送待加载的物联网协议转换配置文件包括:配置服务器通过接收网关发送的包含新的物联网协议的业务消息识别新的物联网协议;或者,配置服务器接收网关发送的新的物联网协议的注册请求,并通过注册请求识别出新的物联网协议;配置服务器查询本地是否有新的物联网协议对应的物联网协议转换配置文件;如果发现新的物联网协议对应的物联网协议转换配置文件,则将新的物联网协议对应的物联网协议转换配置文件作为待加载的物联网协议转换配置文件发送至网关。Preferably, the configuration server sends the IoT protocol conversion configuration file to be sent to the gateway, where the configuration server identifies the new Internet of Things protocol by receiving the service message sent by the gateway and including the new IoT protocol; or the configuration server receives the information sent by the gateway. A registration request for a new IoT protocol, and a new IoT protocol is identified through the registration request; the configuration server queries whether there is a new IoT protocol conversion profile corresponding to the IoT protocol; if a new IoT protocol is found The IoT protocol conversion configuration file sends the IoT protocol conversion configuration file corresponding to the new IoT protocol to the gateway as the IoT protocol conversion configuration file to be loaded.
本实施例中,配置服务器可以根据网关截取的物联网协议的业务消息来识别该物联网协议,也可以通过网关转发的注册请求来识别该请求对应的物联网协议。在识别出新的物联网协议之后,配置服务器查询其本地是否有该新的物联网协议转换配置文件,如果是,则将该配置文件发送至网关;反之,则结束加载流程。In this embodiment, the configuration server may identify the Internet of Things protocol according to the service message of the Internet of Things protocol intercepted by the gateway, and may also identify the Internet of Things protocol corresponding to the request by using the registration request forwarded by the gateway. After identifying the new IoT protocol, the configuration server queries whether there is a new IoT protocol conversion profile locally, and if so, sends the profile to the gateway; otherwise, the loading process ends.
本实施例的配置服务器在加载待加载的物联网协议转换配置文件的流程可以参见本申请实施例1中的物联网协议转换功能的配置方法。For the process of loading the configuration file to be loaded by the configuration server of the present embodiment, refer to the configuration method of the Internet of Things protocol conversion function in Embodiment 1 of the present application.
优选地,配置服务器向网关发送待加载的物联网协议转换配置文件包括:配置服务器获取待加载的物联网协议转换配置文件的网关列表;配置服务器根据网关列表将待加载的物联网协议转换配置文件发送给未加载待加载的物联网协议转换配置文件的网关,网关根据接收待加载的物联网协议转换配置文件以加载该待加载的物联网协议转换配置文件。Preferably, the configuration server sends the IoT protocol conversion configuration file to be sent to the gateway, where the configuration server obtains a gateway list of the Internet of Things protocol conversion configuration file to be loaded, and the configuration server converts the IoT protocol to be loaded according to the gateway list. Sending to the gateway that does not load the IoT protocol conversion profile to be loaded, the gateway converts the configuration file according to the IoT protocol received to load the IOT protocol conversion configuration file to be loaded.
本申请实施例中,配置服务器可以发起物联网协议转换配置文件的加载流程,用以使得多个网关加载待加载的物联网协议转换配置文件。上述网关列表包含有未加载待加载的物联网协议转换配置文件的网关的标识,配置服务器获取到该网关列表之后,依据网关列表上的标识将待加载的物联网协议转换配置 文件发送给未加载待加载的物联网协议转换配置文件的网关。In the embodiment of the present application, the configuration server may initiate a loading process of the IoT protocol conversion configuration file, so that multiple gateways load the IoT protocol conversion configuration file to be loaded. The gateway list includes the identifier of the gateway that does not load the IoT protocol conversion configuration file to be loaded, and after the configuration server obtains the gateway list, the configuration of the Internet of Things protocol to be loaded is converted according to the identifier on the gateway list. The file is sent to the gateway that does not load the IoT protocol conversion profile to be loaded.
本申请实施例中,通过配置服务器实现批量的网关加载物联网协议转换配置文件,从而避免每一个网关分别向配置服务器发送加载请求,降低配置服务器的处理压力。In the embodiment of the present application, the configuration server is configured to implement a batch gateway to load the IoT protocol conversion configuration file, thereby preventing each gateway from separately sending a load request to the configuration server, thereby reducing the processing pressure of the configuration server.
可选地,一种配置服务器发起的加载流程如图8所示,当配置服务器添加了新的物联网协议转换配置文件之后,希望加载该新的物联网协议转换配置文件:Optionally, a configuration server initiated loading process is shown in FIG. 8. After the configuration server adds a new IoT protocol conversion configuration file, it is desired to load the new IoT protocol conversion configuration file:
步骤S41:配置服务器通过网关配置文件或网关管理***获得需加载新的物联网协议转换配置文件的网关列表,识别出其中未加载过该新的物联网协议转换配置文件的网关。Step S41: The configuration server obtains a gateway list that needs to load a new IoT protocol conversion configuration file through the gateway configuration file or the gateway management system, and identifies a gateway in which the new IoT protocol conversion configuration file is not loaded.
步骤S42:配置服务器将该新的物联网协议转换配文件发送给识别出的网关。Step S42: The configuration server sends the new IoT protocol conversion configuration file to the identified gateway.
步骤S43:网关加载该物联网协议转换配置文件,并将加载的结果发送给配置服务器。Step S43: The gateway loads the IoT protocol conversion configuration file, and sends the loaded result to the configuration server.
如果网关成功加载了新的物联网协议转换配置文件,新的物联网终端通过网关中的该配置文件成功接入,提供相关的物联网业务。If the gateway successfully loads the new IoT protocol conversion profile, the new IoT terminal successfully accesses the configuration file in the gateway to provide related IoT services.
优选地,本实施例的物联网协议转换功能的配置方法还包括:配置服务器接收来自网关的删除请求,其中,删除请求携带有待删除的物联网协议转换配置文件的标识;配置服务器根据接收到的删除请求中的标识删除本地与标识对应的条目;配置服务器向网关返回删除应答消息,网关根据接收到删除应答消息删除本地对应的物联网协议转换配置文件。Preferably, the configuration method of the Internet of Things protocol conversion function of the embodiment further includes: the configuration server receives the deletion request from the gateway, wherein the deletion request carries the identifier of the Internet of Things protocol conversion configuration file to be deleted; and the configuration server receives the The identifier in the deletion request deletes the local entry corresponding to the identifier; the configuration server returns a delete response message to the gateway, and the gateway deletes the local corresponding Internet of Things protocol conversion configuration file according to the received deletion response message.
本实施例中,加载到网关上的物联网协议转换配置文件,还可以进行删除。可选地,可以通过网关向配置服务器发送删除请求,用以删除网关上已经加载的物联网协议转换配置文件。配置服务器上可以设置有每个网关上已经加载的物联网协议转换配置文件的条目,当配置服务器接收到删除请求之后,将与待删除的物联网协议转换配置文件的标识对应的条目删除,并向网关返回删除应答消息,以使网关删除待删除的物联网协议转换配置文件。通过网关向配置服务器发送删除请求,使得配置服务器删除本地相应的条目,从而保证配置服务器上的条目与网关上加载的物联网协议转换配置文件保持同步。In this embodiment, the IoT protocol conversion configuration file loaded on the gateway can also be deleted. Optionally, the gateway may send a delete request to the configuration server to delete the IoT protocol conversion configuration file that is already loaded on the gateway. An entry of the IoT protocol conversion configuration file that has been loaded on each gateway may be set on the configuration server. After the configuration server receives the deletion request, the entry corresponding to the identifier of the IoT protocol conversion configuration file to be deleted is deleted, and The deletion reply message is returned to the gateway, so that the gateway deletes the IoT protocol conversion configuration file to be deleted. Sending a delete request to the configuration server through the gateway causes the configuration server to delete the corresponding local entry, thereby ensuring that the entry on the configuration server is synchronized with the Internet of Things protocol conversion configuration file loaded on the gateway.
本实施例中,物联网协议转换配置文件的删除流程可以由用户通过配置终 端发起,也可以是由网关发起,无论是配置终端还是网关发起的,都会由网关向配置服务器发送删除请求,用以删除相应的物联网协议转换配置文件。In this embodiment, the deletion process of the Internet of Things protocol conversion configuration file may be configured by the user through the configuration. The originating may also be initiated by the gateway. Whether the configuration terminal or the gateway initiates, the gateway sends a delete request to the configuration server to delete the corresponding IoT protocol conversion configuration file.
下面分别对用户通过配置终端发起的加载流程和由网关发起的加载流程的可选实施方式来描述本申请实施例。The embodiments of the present application are described below for an optional implementation manner in which a user initiates a loading process initiated by a terminal and a loading process initiated by a gateway.
用户发起的删除流程如图9所示,当用户决定不再使用某物联网终端,希望删除该物联网终端使用的物联网协议转换配置文件:The user-initiated deletion process is shown in Figure 9. When the user decides to no longer use an IoT terminal, he or she wants to delete the IoT protocol conversion configuration file used by the IoT terminal:
步骤S51:用户通过配置终端向网关发送请求,请求获得网关中已加载的物联网协议转换配置文件的条目列表。Step S51: The user sends a request to the gateway by configuring the terminal, and requests to obtain an entry list of the IoT protocol conversion configuration file loaded in the gateway.
步骤S52:网关将已加载的物联网协议转换配置文件的条目列表发送给配置终端。Step S52: The gateway sends the list of entries of the loaded Internet of Things protocol conversion configuration file to the configuration terminal.
步骤S53:用户如果在网关中已加载的物联网协议转换配置文件的条目列表中未发现需要删除的物联网协议转换配置文件的条目,那么删除流程。否则,用户在网关中已加载的物联网协议转换配置文件的条目列表中选择需要删除的物联网协议转换配置文件的条目。Step S53: If the user does not find an entry of the Internet of Things protocol conversion profile that needs to be deleted in the entry list of the IoT protocol conversion profile loaded in the gateway, the process is deleted. Otherwise, the user selects an entry for the IoT protocol conversion profile that needs to be deleted in the list of entries of the IoT protocol conversion profile loaded in the gateway.
步骤S54:用户通过配置终端向网关发送删除请求,请求删除选定的需要删除的物联网协议转换配置文件。Step S54: The user sends a deletion request to the gateway through the configuration terminal, and requests to delete the selected Internet of Things protocol conversion configuration file that needs to be deleted.
步骤S55:网关获得该删除请求后向配置服务器转发该删除请求。Step S55: After obtaining the deletion request, the gateway forwards the deletion request to the configuration server.
步骤S56:配置服务器根据网关转发的删除请求,更新该网关对应的已加载的物联网协议转换配置文件的条目列表的信息,删除上述删除请求中指定的需要删除的物联网协议转换配置文件对应的条目。然后,配置服务器向网关发送删除应答消息。网关收到该应答消息后,在本地将该物联网协议转换配置文件删除,并向配置终端发送删除应答消息。Step S56: The configuration server updates the information of the item list of the loaded IoT protocol conversion configuration file corresponding to the gateway according to the deletion request forwarded by the gateway, and deletes the corresponding IOT protocol conversion configuration file specified in the deletion request. entry. The configuration server then sends a delete response message to the gateway. After receiving the response message, the gateway deletes the IoT protocol conversion configuration file locally and sends a deletion response message to the configuration terminal.
本实施例中,通过增加用户删除流程,提高物联网协议转换配置文件删除的灵活性。In this embodiment, the flexibility of deleting the configuration file of the Internet of Things protocol is improved by increasing the user deletion process.
网关发起的删除流程如图10所示,当网关发现某个已加载的物联网协议转换功能长时间未使用时,触发该删除流程:The deletion process initiated by the gateway is as shown in FIG. 10. When the gateway finds that a loaded IoT protocol conversion function has not been used for a long time, the deletion process is triggered:
步骤S61:网关向配置服务器发送删除请求,该删除请求携带有需要删除的物联网协议转换功能的条目。Step S61: The gateway sends a deletion request to the configuration server, where the deletion request carries an entry of the Internet of Things protocol conversion function that needs to be deleted.
步骤S62:配置服务器更新该网关对应的已加载的物联网协议转换配置文件的条目列表的信息,删除上述删除请求中指定的需要删除的物联网协议转换配 置文件对应的条目,向网关发送删除应答消息。网关收到删除应答消息后,在本地将该物联网协议转换配置文件删除。Step S62: The configuration server updates the information of the entry list of the loaded Internet of Things protocol conversion configuration file corresponding to the gateway, and deletes the Internet of Things protocol conversion configuration specified in the deletion request. Set the entry corresponding to the file and send a delete response message to the gateway. After receiving the delete response message, the gateway deletes the IoT protocol conversion configuration file locally.
本实施例中,通过网关自动发起删除流程,提高了物联网协议转换配置文件删除的自发性。In this embodiment, the deletion process is automatically initiated by the gateway, which improves the spontaneity of the deletion of the Internet of Things protocol conversion configuration file.
优选地,方法还包括:配置服务器向网关发送删除命令,删除命令携带有待删除的物联网协议转换配置文件的标识,网关根据接收到的删除命令中的标识删除本地对应的物联网协议转换配置文件。Preferably, the method further includes: the configuration server sends a deletion command to the gateway, and the deletion command carries the identifier of the Internet of Things protocol conversion configuration file to be deleted, and the gateway deletes the local corresponding Internet of Things protocol conversion configuration file according to the identifier in the received deletion command. .
本实施例中,还可以通过配置服务器发起物联网协议转换配置文件的删除流程,具体地,当需要删除物联网协议转换配置文件时,配置服务器向网关发送删除命令,用以控制网关删除该删除命令中指定的物联网协议转换配置文件。另外,配置服务器发送删除命令的同时,还可以将配置服务器本地上与该删除命令中指定网关的物联网协议转换配置文件对应的条目删除,以便于保持配置服务器上的该网关的已加载的物联网协议转换配置文件的条目列表与网关上已加载的物联网协议转换配置文件保持一致。In this embodiment, the configuration server may also initiate an IOT protocol conversion configuration file deletion process. Specifically, when the IoT protocol conversion configuration file needs to be deleted, the configuration server sends a delete command to the gateway to control the gateway to delete the deletion. The IoT protocol conversion configuration file specified in the command. In addition, when the configuration server sends the delete command, the configuration server may also delete the entry corresponding to the IoT protocol conversion configuration file of the specified gateway in the delete command, so as to keep the loaded content of the gateway on the configuration server. The list of entries for the networking protocol conversion profile is consistent with the loaded IoT protocol conversion profile on the gateway.
可选地,配置服务器可以同时删除多个网关上的物联网协议转换配置文件,例如,当配置服务器不再支持某物联网协议转换功能时,希望删除相应的物联网协议转换配置文件,流程如图11所示:Optionally, the configuration server can delete the IoT protocol conversion configuration file on multiple gateways at the same time. For example, when the configuration server no longer supports an IoT protocol conversion function, it is desirable to delete the corresponding IoT protocol conversion configuration file. Figure 11 shows:
步骤S71:配置服务器通过网关配置文件或网关管理***获取需要删除物联网协议转换配置文件的网关列表,识别出其中未曾删除过该物联网协议转换配置文件的网关。Step S71: The configuration server obtains a gateway list that needs to delete the Internet of Things protocol conversion configuration file through the gateway configuration file or the gateway management system, and identifies a gateway in which the Internet of Things protocol conversion configuration file has not been deleted.
步骤S72:配置服务器将需删除的物联网协议转换配置文件的条目发送给识别出的网关。Step S72: The configuration server sends an entry of the IoT protocol conversion configuration file to be deleted to the identified gateway.
步骤S73:网关在本地将该物联网协议转换配置文件删除,并向配置服务器返回删除应答消息。配置服务器收到删除应答消息后,更新该网关对应的已加载的物联网协议转换配置文件条目列表的信息,删除指定的需要删除的物联网协议转换配置文件对应的条目。Step S73: The gateway locally deletes the Internet of Things protocol conversion configuration file, and returns a deletion response message to the configuration server. After receiving the delete response message, the configuration server updates the information of the loaded IoT protocol conversion profile entry list corresponding to the gateway, and deletes the corresponding entry corresponding to the IoT protocol conversion profile that needs to be deleted.
优选地,方法还包括:配置服务器获取待更新的物联网协议转换配置文件的网关列表;配置服务器根据网关列表将待更新的物联网协议转换配置文件发送至需要更新物联网协议转换配置文件的网关,网关根据接收到的待更新的物联网协议转换配置文件更新本地的物联网协议转换配置文件。 Preferably, the method further includes: the configuration server acquires a gateway list of the Internet of Things protocol conversion configuration file to be updated; and the configuration server sends the Internet of Things protocol conversion configuration file to be updated according to the gateway list to the gateway that needs to update the Internet of Things protocol conversion configuration file. The gateway updates the local IoT protocol conversion configuration file according to the received IoT protocol conversion configuration file to be updated.
本实施例中,当网关上已加载的物联网协议转换配置文件出现更新时,可以由配置服务器获取待更新的物联网协议转换配置文件,并将该配置文件发送至需要更新的网关,以使的网关对其进行更新。In this embodiment, when the IoT protocol conversion configuration file that is loaded on the gateway is updated, the configuration server may obtain the IoT protocol conversion configuration file to be updated, and send the configuration file to the gateway that needs to be updated, so that The gateway updates it.
一种可选的更新流程如图12所示,当配置服务器发现某协议转换功能的版本需要更新时,发起该更新流程:An optional update process is shown in Figure 12. When the configuration server finds that the version of a protocol conversion function needs to be updated, the update process is initiated:
步骤S81:配置服务器通过网关配置文件或网关管理***获得需更新该物联网协议转换配置文件的网关列表。Step S81: The configuration server obtains a list of gateways that need to update the Internet of Things protocol conversion configuration file through the gateway configuration file or the gateway management system.
步骤S82:配置服务器将需更新的物联网协议转换配置文件发送给上述识别出的网关。Step S82: The configuration server sends the IoT protocol conversion configuration file to be updated to the identified gateway.
步骤S83:网关在本地更新该物联网协议转换配置文件,并向配置服务器返回更新应答消息。Step S83: The gateway locally updates the IoT protocol conversion configuration file and returns an update response message to the configuration server.
如果更新成功,已有的物联网终端通过网关中更新后的物联网协议转换功能提供相关物联网业务。If the update is successful, the existing IoT terminal provides related IoT services through the updated IoT protocol conversion function in the gateway.
实施例三Embodiment 3
本申请实施例还提供了一种物联网协议转换功能的配置装置,该装置可以设置在网关上,用于执行本申请上述实施例1的物联网协议转换功能的配置方法。如图13所示,该装置包括:获取单元131和转换单元133。The embodiment of the present application further provides a configuration device for the Internet of Things protocol conversion function, and the device may be disposed on the gateway, and configured to execute the configuration method of the Internet of Things protocol conversion function of the foregoing Embodiment 1 of the present application. As shown in FIG. 13, the apparatus includes an acquisition unit 131 and a conversion unit 133.
获取单元131用于从配置服务器获取待加载的物联网协议转换配置文件,配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换。The obtaining unit 131 is configured to acquire, from the configuration server, an Internet of Things protocol conversion configuration file to be loaded, where the configuration file is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol.
转换单元133用于通过配置文件将信息进行第一物联网协议和第二物联网协议之间的转换,并发送完成转换的信息。The converting unit 133 is configured to perform information conversion between the first Internet of Things protocol and the second Internet of Things protocol through the configuration file, and send the information that completes the conversion.
获取单元131从配置服务器获取待加载的物联网协议转换配置文件,以加载待加载的物联网协议转换配置文件,其中,第一物联网协议为该网关上新增的物联网协议,第二物联网协议可以是网络侧部署的通用的物联网协议,网关通过获取单元131从配置服务器获取待加载的物联网协议转换配置文件即可完成对待加载的物联网协议转换配置文件的加载,这样,网关可以利用该配置文件的功能实现由第一物联网协议向第二物联网协议或者第二物联网协议向第一物联网协议的信息转换,并将完成转换的信息发送出去。The obtaining unit 131 obtains an Internet of Things protocol conversion configuration file to be loaded from the configuration server to load an Internet of Things protocol conversion configuration file to be loaded, where the first Internet of Things protocol is an Internet of Things protocol added on the gateway, and the second object The networking protocol may be a general IoT protocol deployed on the network side, and the gateway obtains the IoT protocol conversion configuration file to be loaded from the configuration server by the obtaining unit 131, so that the loading of the IoT protocol conversion configuration file to be loaded is completed, so that the gateway The function of the configuration file can be used to implement information conversion from the first Internet of Things protocol to the second Internet of Things protocol or the second Internet of Things protocol to the first Internet of Things protocol, and the completed conversion information is sent out.
根据本申请实施例,通过设置配置服务器,获取单元从该配置服务器上获 取待加载的物联网协议转换配置文件,以加载待加载的物联网协议转换配置文件,并通过该配置文件将信息进行第一物联网协议和第二物联网协议之间的转换和发送,从而在网关上增加了新的物联网业务,解决了网关设备无法增加新的物联网业务的技术问题,达到了在网关设备增加新的物联网业务的效果。According to the embodiment of the present application, by setting a configuration server, the obtaining unit obtains from the configuration server The IoT protocol conversion configuration file to be loaded is loaded to load the IoT protocol conversion configuration file to be loaded, and the information is converted and sent between the first Internet of Things protocol and the second Internet of Things protocol through the configuration file, thereby A new IoT service has been added to the gateway, which solves the technical problem that the gateway device cannot add a new IoT service, and achieves the effect of adding a new IoT service to the gateway device.
优选地,装置还包括:第一判断单元,用于在从配置服务器获取待加载的物联网协议转换配置文件之前,判断网关本地是否存在用于加载配置文件的资源;第二判断单元,用于在网关本地不存在用于加载配置文件的资源时,判断第一物联网协议的优先级是否高于网关本地已加载的物联网协议的优先级;以及删除单元,用于在第一物联网协议的优先级高时,删除本地已加载的优先级低的物联网协议所对应的用于将信息在优先级低的物联网协议和第二物联网协议之间转换的配置文件。Preferably, the device further includes: a first determining unit, configured to determine, before obtaining the IoT protocol conversion configuration file to be loaded from the configuration server, whether the gateway locally has a resource for loading the configuration file; and the second determining unit is configured to: When there is no resource for loading the configuration file locally in the gateway, it is determined whether the priority of the first Internet of Things protocol is higher than the priority of the IoT protocol loaded locally by the gateway; and the deleting unit is used in the first Internet of Things protocol When the priority is high, the configuration file corresponding to the locally loaded low priority IoT protocol for converting information between the low priority IoT protocol and the second Internet of Things protocol is deleted.
由于网关上的资源(如内存、处理器等)有限,决定了同一时间内在网关中加载的协议转换功能的数量将会受限。同时,由于物联网业务具有多样性的特点,需要转换的物联网业务协议类型也较多。此外,随着新的物联网业务的出现,新的物联网业务协议的数量会不断增加,从而需要不断补充支持新的协议转换功能。这样,当网关上资源耗尽时,也将导致网关无法增加新的物联网业务。Due to the limited resources (such as memory, processor, etc.) on the gateway, it is determined that the number of protocol conversion functions loaded in the gateway at the same time will be limited. At the same time, due to the diversity of IoT services, there are many types of IoT service protocols that need to be converted. In addition, with the advent of the new IoT business, the number of new IoT service agreements will continue to increase, which will require additional support for new protocol conversion functions. In this way, when the resources on the gateway are exhausted, the gateway will not be able to add new IoT services.
本实施例中,可以预先设置各物联网协议的优先级,在网关接收到待加载的物联网协议转换配置文件之前,网关判断其本地是否还有资源来加载上述待加载的物联网协议转换配置文件,如果网关还可加载,则直接获取待加载的物联网协议转换配置文件;反之,如果不可加载,网关还可以根据第一物联网协议的优先级与网关上的物联网协议的优先级来进一步判断是否可以加载,其中,如果第一物联网协议的优先级高,则删除优先级较低的物联网协议对应的协议转换配置文件,加载该物联网协议对应的协议转换配置文件即待加载的物联网协议转换配置文件;反之,不加载该待加载的物联网协议转换配置文件。这样,保证在网关上存在资源时,可以加载待加载的物联网协议转换配置文件,在网关资源不足时,利用物联网协议的优先级来加载待加载的物联网协议转换配置文件。In this embodiment, the priority of each Internet of Things protocol may be preset. Before the gateway receives the IoT protocol conversion configuration file to be loaded, the gateway determines whether there is a resource locally to load the IOT protocol conversion configuration to be loaded. File, if the gateway can also load, directly obtain the IoT protocol conversion configuration file to be loaded; otherwise, if not loadable, the gateway can also according to the priority of the first Internet of Things protocol and the priority of the Internet of Things protocol on the gateway. Further determining whether loading is possible, wherein if the priority of the first Internet of Things protocol is high, deleting the protocol conversion configuration file corresponding to the lower priority IoT protocol, loading the protocol conversion configuration file corresponding to the Internet of Things protocol to be loaded The Internet of Things protocol converts the configuration file; otherwise, the IoT protocol conversion configuration file to be loaded is not loaded. In this way, when the resource exists on the gateway, the IoT protocol conversion configuration file to be loaded can be loaded, and when the gateway resource is insufficient, the IoT protocol conversion configuration file is loaded by using the priority of the Internet of Things protocol.
可选地,上述物联网协议优先级设置的依据可以包括但不限于如下因素:配置服务器中对于各协议优先级的配置、网关中各协议使用的历史情况(使用 越频繁优先级越高)等。Optionally, the basis for setting the priority of the Internet of Things protocol may include, but is not limited to, the following factors: configuration of the priority of each protocol in the configuration server, and history of use of each protocol in the gateway (using The more frequently the priority is higher, etc.
优选地,获取单元包括:发送模块,用于向配置服务器发送加载请求,加载请求用于请求加载待加载的物联网协议转换配置文件,配置服务器接收到加载请求之后将待加载的物联网协议转换配置文件发送至网关;接收模块,用于接收配置服务器发送的待加载的物联网协议转换配置文件,以加载待加载的物联网协议转换配置文件。Preferably, the obtaining unit includes: a sending module, configured to send a loading request to the configuration server, where the loading request is used to request loading the IoT protocol conversion configuration file to be loaded, and the configuration server converts the Internet of Things protocol to be loaded after receiving the loading request The configuration file is sent to the gateway, and the receiving module is configured to receive the IoT protocol conversion configuration file sent by the configuration server to load the IoT protocol conversion configuration file to be loaded.
上述加载请求可以是有网关主动发送的,也可以是转发用户通过配置终端发送的请求,也即是本申请实施例中,新的物联网协议转换配置文件的加载可以由用户通过配置终端发起的,也可以是由网关发起的,无论是配置终端还是网关发起的,都会由网关的发送模块向配置服务器发送加载请求,用以加载待加载的物联网协议转换配置文件。具体的实现方式可以参见本申请上述实施例1的描述,这里不做赘述。The loading request may be initiated by the gateway, or may be the request sent by the forwarding user through the configuration terminal, that is, in the embodiment of the present application, the loading of the new Internet of Things protocol conversion configuration file may be initiated by the user through the configuration terminal. It may also be initiated by the gateway. Whether the configuration terminal or the gateway initiates, the sending module of the gateway sends a loading request to the configuration server to load the IoT protocol conversion configuration file to be loaded. For a specific implementation, refer to the description of the foregoing Embodiment 1 of the present application, and details are not described herein.
实施例四Embodiment 4
本申请实施例还提供了另一种物联网协议转换功能的配置装置,该装置可以设置在配置服务器上,用于执行本申请上述实施例2的物联网协议转换功能的配置方法,该装置包括:第一发送单元,用于向网关发送待加载的物联网协议转换配置文件,配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换,网关通过配置文件将信息进行第一物联网协议和第二物联网协议之间的转换,并发送完成转换的信息。The embodiment of the present application further provides another configuration device of the Internet of Things protocol conversion function, and the device may be disposed on the configuration server, and configured to execute the configuration method of the Internet of Things protocol conversion function of the foregoing embodiment 2 of the present application, where the device includes a first sending unit, configured to send, to the gateway, an IoT protocol conversion configuration file to be loaded, where the configuration file is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol, and the gateway uses the configuration file to convert the information. Performing a conversion between the first Internet of Things protocol and the second Internet of Things protocol, and transmitting the information to complete the conversion.
第一发送单元将待加载的物联网协议转换配置文件发送中网关,以使得网关加载该待加载的物联网协议转换配置文件,其中,第一物联网协议为该网关上新增的物联网协议,第二物联网协议可以是网络侧部署的通用的物联网协议,网关接收到第一发送单元发送的待加载的物联网协议转换配置文件即完成对待加载的物联网协议转换配置文件的加载,这样,网关可以利用该配置文件的功能实现由第一物联网协议向第二物联网协议或者第二物联网协议向第一物联网协议的信息转换,并将完成转换的信息发送出去。The first sending unit sends the IoT protocol conversion configuration file to be sent to the gateway, so that the gateway loads the IoT protocol conversion configuration file to be loaded, where the first Internet of Things protocol is an new Internet of Things protocol on the gateway. The second Internet of Things protocol may be a general IoT protocol deployed on the network side, and the gateway receives the IoT protocol conversion configuration file to be loaded sent by the first sending unit, that is, completes loading of the IoT protocol conversion configuration file to be loaded. In this way, the gateway can use the function of the configuration file to implement information conversion from the first Internet of Things protocol to the second Internet of Things protocol or the second Internet of Things protocol to the first Internet of Things protocol, and send the completed conversion information.
根据本申请实施例,通过向网关发送待加载的物联网协议转换配置文件,以使得网关加载待加载的物联网协议转换配置文件,并通过该配置文件将信息进行第一物联网协议和第二物联网协议之间的转换和发送,从而在网关上增加 了新的物联网业务,解决了网关设备无法增加新的物联网业务的技术问题,达到了在网关设备增加新的物联网业务的效果。According to the embodiment of the present application, the configuration file is converted by the IoT protocol to be loaded to the gateway, so that the gateway loads the IoT protocol conversion configuration file to be loaded, and the information is subjected to the first Internet of Things protocol and the second through the configuration file. Conversion and transmission between IoT protocols, thereby increasing on the gateway The new IoT business solves the technical problem that gateway devices cannot add new IoT services, and achieves the effect of adding new IoT services to gateway devices.
优选地,第一发送单元包括:第一接收模块,用于通过接收网关发送的包含新的物联网协议的业务消息识别新的物联网协议;或者,第二接收模块,用于接收网关发送的新的物联网协议的注册请求,并通过注册请求识别出新的物联网协议;查询模块,用于查询本地是否有新的物联网协议对应的物联网协议转换配置文件;发送模块,用于在发现新的物联网协议对应的物联网协议转换配置文件时,将新的物联网协议对应的物联网协议转换配置文件作为待加载的物联网协议转换配置文件发送至网关。Preferably, the first sending unit includes: a first receiving module, configured to identify a new Internet of Things protocol by receiving a service message that is sent by the gateway and includes a new Internet of Things protocol; or a second receiving module, configured to receive the A registration request for a new IoT protocol, and a new IoT protocol is identified by a registration request; a query module is used to query whether there is a new IoT protocol conversion profile corresponding to the IoT protocol; a sending module is used to When the IoT protocol conversion configuration file corresponding to the new IoT protocol is found, the IoT protocol conversion configuration file corresponding to the new IoT protocol is sent to the gateway as the IoT protocol conversion configuration file to be loaded.
本实施例中,配置服务器可以根据网关截取的物联网协议的业务消息来识别该物联网协议,也可以通过网关转发的注册请求来识别该请求对应的物联网协议。在识别出新的物联网协议之后,配置服务器查询其本地是否有该新的物联网协议转换配置文件,如果是,则将该配置文件发送至网关;反之,则结束加载流程。In this embodiment, the configuration server may identify the Internet of Things protocol according to the service message of the Internet of Things protocol intercepted by the gateway, and may also identify the Internet of Things protocol corresponding to the request by using the registration request forwarded by the gateway. After identifying the new IoT protocol, the configuration server queries whether there is a new IoT protocol conversion profile locally, and if so, sends the profile to the gateway; otherwise, the loading process ends.
本实施例的配置服务器在加载待加载的物联网协议转换配置文件的流程可以参见本申请实施例1中的物联网协议转换功能的配置方法。For the process of loading the configuration file to be loaded by the configuration server of the present embodiment, refer to the configuration method of the Internet of Things protocol conversion function in Embodiment 1 of the present application.
优选地,装置还包括:接收单元,用于接收来自网关的删除请求,其中,删除请求携带有待删除的物联网协议转换配置文件的标识;删除单元,用于根据接收到的删除请求中的标识删除配置服务器本地与标识对应的条目;返回单元,用于向网关返回删除应答消息,网关根据接收到删除应答消息删除本地对应的物联网协议转换配置文件。Preferably, the device further includes: a receiving unit, configured to receive a deletion request from the gateway, where the deletion request carries an identifier of the Internet of Things protocol conversion configuration file to be deleted; and the deleting unit is configured to use the identifier in the received deletion request The entry corresponding to the identifier of the configuration server is deleted; the return unit is configured to return a deletion response message to the gateway, and the gateway deletes the local corresponding Internet of Things protocol conversion configuration file according to the received deletion response message.
本实施例中,加载到网关上的物联网协议转换配置文件,还可以进行删除。可选地,可以通过网关向配置服务器发送删除请求,用以删除网关上已经加载的物联网协议转换配置文件。配置服务器上可以设置有每个网关上已经加载的物联网协议转换配置文件的条目,当配置服务器接收到删除请求之后,将与待删除的物联网协议转换配置文件的标识对应的条目删除,并向网关返回删除应答消息,以使网关删除待删除的物联网协议转换配置文件。通过网关向配置服务器发送删除请求,使得配置服务器删除本地相应的条目,从而保证配置服务器上的条目与网关上加载的物联网协议转换配置文件保持同步。In this embodiment, the IoT protocol conversion configuration file loaded on the gateway can also be deleted. Optionally, the gateway may send a delete request to the configuration server to delete the IoT protocol conversion configuration file that is already loaded on the gateway. An entry of the IoT protocol conversion configuration file that has been loaded on each gateway may be set on the configuration server. After the configuration server receives the deletion request, the entry corresponding to the identifier of the IoT protocol conversion configuration file to be deleted is deleted, and The deletion reply message is returned to the gateway, so that the gateway deletes the IoT protocol conversion configuration file to be deleted. Sending a delete request to the configuration server through the gateway causes the configuration server to delete the corresponding local entry, thereby ensuring that the entry on the configuration server is synchronized with the Internet of Things protocol conversion configuration file loaded on the gateway.
本实施例中,物联网协议转换配置文件的删除流程可以由用户通过配置终 端发起,也可以是由网关发起,无论是配置终端还是网关发起的,都会由网关向配置服务器发送删除请求,用以删除相应的物联网协议转换配置文件。In this embodiment, the deletion process of the Internet of Things protocol conversion configuration file may be configured by the user through the configuration. The originating may also be initiated by the gateway. Whether the configuration terminal or the gateway initiates, the gateway sends a delete request to the configuration server to delete the corresponding IoT protocol conversion configuration file.
优选地,装置还包括:第二发送单元,用于向网关发送删除命令,删除命令携带有待删除的物联网协议转换配置文件的标识,网关根据接收到的删除命令中的标识删除本地对应的物联网协议转换配置文件。Preferably, the device further includes: a second sending unit, configured to send a delete command to the gateway, where the delete command carries an identifier of the Internet of Things protocol conversion configuration file to be deleted, and the gateway deletes the local corresponding object according to the identifier in the received delete command. Networking protocol conversion configuration file.
本实施例中,还可以通过配置服务器发起物联网协议转换配置文件的删除流程,具体地,当需要删除物联网协议转换配置文件时,配置服务器向网关发送删除命令,用以控制网关删除该删除命令中指定的物联网协议转换配置文件。另外,配置服务器发送删除命令的同时,还可以将配置服务器本地上与该删除命令中指定网关的物联网协议转换配置文件对应的条目删除,以便于保持配置服务器上的该网关的已加载的物联网协议转换配置文件的条目列表与网关上已加载的物联网协议转换配置文件保持一致。In this embodiment, the configuration server may also initiate an IOT protocol conversion configuration file deletion process. Specifically, when the IoT protocol conversion configuration file needs to be deleted, the configuration server sends a delete command to the gateway to control the gateway to delete the deletion. The IoT protocol conversion configuration file specified in the command. In addition, when the configuration server sends the delete command, the configuration server may also delete the entry corresponding to the IoT protocol conversion configuration file of the specified gateway in the delete command, so as to keep the loaded content of the gateway on the configuration server. The list of entries for the networking protocol conversion profile is consistent with the loaded IoT protocol conversion profile on the gateway.
优选地,装置还包括:获取单元,用于获取待更新的物联网协议转换配置文件的网关列表;第一发送单元还用于根据网关列表将待更新的物联网协议转换配置文件发送至需要更新物联网协议转换配置文件的网关,网关根据接收到的待更新的物联网协议转换配置文件更新本地的物联网协议转换配置文件。Preferably, the device further includes: an obtaining unit, configured to acquire a gateway list of the Internet of Things protocol conversion configuration file to be updated; the first sending unit is further configured to send the IoT protocol conversion configuration file to be updated according to the gateway list to be updated. The Internet of Things protocol converts the profile of the gateway, and the gateway updates the local IoT protocol conversion profile according to the received IoT protocol conversion profile to be updated.
本实施例中,当网关上已加载的物联网协议转换配置文件出现更新时,可以由配置服务器获取待更新的物联网协议转换配置文件,并将该配置文件发送至需要更新的网关,以使的网关对其进行更新。In this embodiment, when the IoT protocol conversion configuration file that is loaded on the gateway is updated, the configuration server may obtain the IoT protocol conversion configuration file to be updated, and send the configuration file to the gateway that needs to be updated, so that The gateway updates it.
本申请实施例中的实施方式可以参见本申请上述实施例2中的物联网协议转换功能的配置方法,这里不做赘述。For the implementation of the embodiment of the present application, refer to the method for configuring the Internet of Things protocol conversion function in the foregoing Embodiment 2 of the present application, which is not described herein.
实施例五Embodiment 5
本申请实施例提供了一种非易失性计算机存储介质,所述计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的物联网协议转换功能的配置方法。The embodiment of the present application provides a non-volatile computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the configuration method of the Internet of Things protocol conversion function in any of the foregoing method embodiments. .
实施例六Embodiment 6
图14是本申请实施例提供的电子设备的结构示意图,如图14所示,该设备包括: FIG. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 14, the device includes:
一个或多个处理器1410以及存储器1420,图14中以一个处理器1410为例。One or more processors 1410 and memory 1420, one processor 1410 is exemplified in FIG.
执行物联网协议转换功能的配置方法的设备还可以包括:输入装置1430和输出装置1440。The apparatus that performs the configuration method of the Internet of Things protocol conversion function may further include: an input device 1430 and an output device 1440.
处理器1410、存储器1420、输入装置1430和输出装置1440可以通过总线或者其他方式连接,图14中以通过总线连接为例。The processor 1410, the memory 1420, the input device 1430, and the output device 1440 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
存储器1420作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的物联网协议转换功能的配置方法对应的程序指令/模块(例如,附图13所示的获取单元131和转换单元133)。处理器1410通过运行存储在存储器1420中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例物联网协议转换功能的配置方法。The memory 1420 is a non-volatile computer readable storage medium, and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module, such as the configuration of the Internet of Things protocol conversion function in the embodiment of the present application. The program corresponds to a program instruction/module (for example, the acquisition unit 131 and the conversion unit 133 shown in FIG. 13). The processor 1410 executes various functional applications and data processing of the server by executing non-volatile software programs, instructions, and modules stored in the memory 1420, that is, a configuration method for implementing the Internet of Things protocol conversion function of the above method embodiment.
存储器1420可以包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需要的应用程序;存储数据区可存储根据物联网协议转换功能的配置装置的使用所创建的数据等。此外,存储器1420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器1420可选包括相对于处理器1410远程设置的存储器,这些远程存储器可以通过网络连接至物联网协议转换功能的配置装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 1420 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; and the storage data area may store the use of the configuration device according to the Internet of Things protocol conversion function. Data, etc. Moreover, memory 1420 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 1420 can optionally include memory remotely located relative to processor 1410 that can be coupled to the configuration device of the Internet of Things protocol conversion function over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置1430可接收输入的数字或字符信息,以及产生与物联网协议转换功能的配置装置的用户设置以及功能控制有关的键信号输入。输出装置1440可包括显示屏等显示设备。The input device 1430 can receive input digital or character information, and generate key signal inputs related to user settings and function control of the configuration device of the Internet of Things protocol conversion function. The output device 1440 can include a display device such as a display screen.
所述一个或者多个模块存储在所述存储器1420中,当被所述一个或者多个处理器1410执行时,执行上述任意方法实施例中的物联网协议转换功能的配置方法。The one or more modules are stored in the memory 1420, and when executed by the one or more processors 1410, perform a configuration method of the Internet of Things protocol conversion function in any of the above method embodiments.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above products can perform the methods provided by the embodiments of the present application, and have the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiments of the present application.
本申请实施例的电子设备以多种形式存在,包括但不限于:The electronic device of the embodiment of the present application exists in various forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、 数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication devices: These devices are characterized by mobile communication functions and provide voice, Data communication is the main goal. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access. Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、***总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The server consists of a processor, a hard disk, a memory, a system bus, etc. The server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
(5)其他具有数据交互功能的电子装置。(5) Other electronic devices with data interaction functions.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种物联网协议转换功能的配置方法,用于网关,其特征在于,包括:A method for configuring an Internet of Things protocol conversion function for a gateway, comprising:
    网关从配置服务器获取待加载的物联网协议转换配置文件,所述配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换;The gateway acquires, from the configuration server, an IoT protocol conversion configuration file to be loaded, where the configuration file is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol;
    所述网关通过所述配置文件将信息进行所述第一物联网协议和所述第二物联网协议之间的转换,并发送完成转换的信息。The gateway performs information conversion between the first Internet of Things protocol and the second Internet of Things protocol through the configuration file, and sends information that completes the conversion.
  2. 根据权利要求1所述的方法,其特征在于,在网关从配置服务器获取待加载的物联网协议转换配置文件之前,所述方法还包括:The method according to claim 1, wherein before the gateway obtains the IoT protocol conversion profile to be loaded from the configuration server, the method further includes:
    所述网关判断所述网关本地是否存在用于加载所述配置文件的资源;Determining, by the gateway, whether the gateway locally has a resource for loading the configuration file;
    如果不存在,则判断所述第一物联网协议的优先级是否高于所述网关本地已加载的物联网协议的优先级;以及If not, determining whether the priority of the first Internet of Things protocol is higher than a priority of the locally loaded Internet of Things protocol of the gateway;
    如果所述第一物联网协议的优先级高,则所述网关删除本地已加载的优先级低的物联网协议所对应的用于将信息在所述优先级低的物联网协议和所述第二物联网协议之间转换的配置文件。If the priority of the first Internet of Things protocol is high, the gateway deletes an Internet of Things protocol corresponding to the locally loaded low priority Internet of Things protocol for placing information at the low priority and the first A configuration file for conversion between two Internet of Things protocols.
  3. 根据权利要求1所述的方法,其特征在于,网关从配置服务器获取待加载的物联网协议转换配置文件包括:The method according to claim 1, wherein the obtaining, by the gateway, the IoT protocol conversion configuration file to be loaded from the configuration server comprises:
    所述网关向所述配置服务器发送加载请求,所述加载请求用于请求加载所述待加载的物联网协议转换配置文件,所述配置服务器接收到所述加载请求之后将所述待加载的物联网协议转换配置文件发送至所述网关;Transmitting, by the gateway, a loading request to the configuration server, where the loading request is used to request loading the to-be-loaded Internet of Things protocol conversion configuration file, and the configuration server receives the loading request after the loading request a networking protocol conversion profile is sent to the gateway;
    所述网关接收所述配置服务器发送的所述待加载的物联网协议转换配置文件,以加载所述待加载的物联网协议转换配置文件。The gateway receives the to-be-loaded Internet of Things protocol conversion configuration file sent by the configuration server to load the IoT protocol conversion configuration file to be loaded.
  4. 一种物联网协议转换功能的配置方法,用于配置服务器,其特征在于,包括:A method for configuring an Internet of Things protocol conversion function, configured to configure a server, comprising:
    配置服务器向网关发送待加载的物联网协议转换配置文件,所述配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换,所述网关通过所述配置文件将信息进行所述第一物联网协议和所述第二物联网协议之间的转换,并发送完成转换的信息。 The configuration server sends an IoT protocol conversion configuration file to be loaded to the gateway, where the configuration file is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol, and the gateway uses the configuration file to send information Performing a conversion between the first Internet of Things protocol and the second Internet of Things protocol, and transmitting the information that completes the conversion.
  5. 根据权利要求4所述的方法,其特征在于,配置服务器向网关发送待加载的物联网协议转换配置文件包括:The method according to claim 4, wherein the sending, by the configuration server, the IoT protocol conversion configuration file to be loaded to the gateway comprises:
    所述配置服务器通过接收所述网关发送的包含新的物联网协议的业务消息识别所述新的物联网协议;或者,所述配置服务器接收所述网关发送的新的物联网协议的注册请求,并通过所述注册请求识别出所述新的物联网协议;The configuration server identifies the new Internet of Things protocol by receiving a service message sent by the gateway and including a new Internet of Things protocol; or the configuration server receives a registration request of a new Internet of Things protocol sent by the gateway, And identifying the new Internet of Things protocol by the registration request;
    所述配置服务器查询本地是否有所述新的物联网协议对应的物联网协议转换配置文件;The configuration server queries whether there is an Internet of Things protocol conversion configuration file corresponding to the new Internet of Things protocol;
    如果发现所述新的物联网协议对应的物联网协议转换配置文件,则将所述新的物联网协议对应的物联网协议转换配置文件作为所述待加载的物联网协议转换配置文件发送至所述网关。If the IoT protocol conversion profile corresponding to the new IoT protocol is found, the IoT protocol conversion profile corresponding to the new IoT protocol is sent to the IoT protocol conversion profile to be loaded. Said gateway.
  6. 一种非易失性计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为:A non-volatile computer storage medium storing computer executable instructions, the computer executable instructions being set to:
    网关从配置服务器获取待加载的物联网协议转换配置文件,所述配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换;The gateway acquires, from the configuration server, an IoT protocol conversion configuration file to be loaded, where the configuration file is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol;
    所述网关通过所述配置文件将信息进行所述第一物联网协议和所述第二物联网协议之间的转换,并发送完成转换的信息。The gateway performs information conversion between the first Internet of Things protocol and the second Internet of Things protocol through the configuration file, and sends information that completes the conversion.
  7. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
    从配置服务器获取待加载的物联网协议转换配置文件,所述配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换;Obtaining, from the configuration server, an IoT protocol conversion configuration file to be loaded, where the configuration file is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol;
    通过所述配置文件将信息进行所述第一物联网协议和所述第二物联网协议之间的转换,并发送完成转换的信息。The information is converted by the configuration file between the first Internet of Things protocol and the second Internet of Things protocol, and the information that completes the conversion is transmitted.
  8. 根据权利要求6所述的非易失性计算机存储介质,其特征在于,所述计算机可执行指令还用于: The non-volatile computer storage medium of claim 6 wherein said computer executable instructions are further for:
    在网关从配置服务器获取待加载的物联网协议转换配置文件之前,判断所述网关本地是否存在用于加载所述配置文件的资源;Before the gateway obtains the IoT protocol conversion configuration file to be loaded from the configuration server, determining whether the gateway locally has a resource for loading the configuration file;
    如果不存在,则判断所述第一物联网协议的优先级是否高于所述网关本地已加载的物联网协议的优先级;以及If not, determining whether the priority of the first Internet of Things protocol is higher than a priority of the locally loaded Internet of Things protocol of the gateway;
    如果所述第一物联网协议的优先级高,则所述网关删除本地已加载的优先级低的物联网协议所对应的用于将信息在所述优先级低的物联网协议和所述第二物联网协议之间转换的配置文件。If the priority of the first Internet of Things protocol is high, the gateway deletes an Internet of Things protocol corresponding to the locally loaded low priority Internet of Things protocol for placing information at the low priority and the first A configuration file for conversion between two Internet of Things protocols.
  9. 根据权利要求6所述的非易失性计算机存储介质,其特征在于,网关从配置服务器获取待加载的物联网协议转换配置文件包括:The non-volatile computer storage medium according to claim 6, wherein the obtaining, by the gateway, the Internet of Things protocol conversion configuration file to be loaded from the configuration server comprises:
    所述网关向所述配置服务器发送加载请求,所述加载请求用于请求加载所述待加载的物联网协议转换配置文件,所述配置服务器接收到所述加载请求之后将所述待加载的物联网协议转换配置文件发送至所述网关;Transmitting, by the gateway, a loading request to the configuration server, where the loading request is used to request loading the to-be-loaded Internet of Things protocol conversion configuration file, and the configuration server receives the loading request after the loading request a networking protocol conversion profile is sent to the gateway;
    所述网关接收所述配置服务器发送的所述待加载的物联网协议转换配置文件,以加载所述待加载的物联网协议转换配置文件。The gateway receives the to-be-loaded Internet of Things protocol conversion configuration file sent by the configuration server to load the IoT protocol conversion configuration file to be loaded.
  10. 根据权利要求7所述的电子设备,其特征在于,所述至少一个处理器还能够执行:The electronic device of claim 7, wherein the at least one processor is further capable of:
    在网关从配置服务器获取待加载的物联网协议转换配置文件之前,判断所述网关本地是否存在用于加载所述配置文件的资源;Before the gateway obtains the IoT protocol conversion configuration file to be loaded from the configuration server, determining whether the gateway locally has a resource for loading the configuration file;
    如果不存在,则判断所述第一物联网协议的优先级是否高于所述网关本地已加载的物联网协议的优先级;以及If not, determining whether the priority of the first Internet of Things protocol is higher than a priority of the locally loaded Internet of Things protocol of the gateway;
    如果所述第一物联网协议的优先级高,则所述网关删除本地已加载的优先级低的物联网协议所对应的用于将信息在所述优先级低的物联网协议和所述第二物联网协议之间转换的配置文件。If the priority of the first Internet of Things protocol is high, the gateway deletes an Internet of Things protocol corresponding to the locally loaded low priority Internet of Things protocol for placing information at the low priority and the first A configuration file for conversion between two Internet of Things protocols.
  11. 根据权利要求7所述的电子设备,其特征在于,网关从配置服务器获取待加载的物联网协议转换配置文件包括:The electronic device according to claim 7, wherein the gateway obtains the Internet of Things protocol conversion configuration file to be loaded from the configuration server, including:
    所述网关向所述配置服务器发送加载请求,所述加载请求用于请求加载所述待加载的物联网协议转换配置文件,所述配置服务器接收到所述加载请求之后将所述待加载的物联网协议转换配置文件发送至所述网关; Transmitting, by the gateway, a loading request to the configuration server, where the loading request is used to request loading the to-be-loaded Internet of Things protocol conversion configuration file, and the configuration server receives the loading request after the loading request a networking protocol conversion profile is sent to the gateway;
    所述网关接收所述配置服务器发送的所述待加载的物联网协议转换配置文件,以加载所述待加载的物联网协议转换配置文件。The gateway receives the to-be-loaded Internet of Things protocol conversion configuration file sent by the configuration server to load the IoT protocol conversion configuration file to be loaded.
  12. 一种非易失性计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为:A non-volatile computer storage medium storing computer executable instructions, the computer executable instructions being set to:
    配置服务器向网关发送待加载的物联网协议转换配置文件,所述配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换,所述网关通过所述配置文件将信息进行所述第一物联网协议和所述第二物联网协议之间的转换,并发送完成转换的信息。The configuration server sends an IoT protocol conversion configuration file to be loaded to the gateway, where the configuration file is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol, and the gateway uses the configuration file to send information Performing a conversion between the first Internet of Things protocol and the second Internet of Things protocol, and transmitting the information that completes the conversion.
  13. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
    向网关发送待加载的物联网协议转换配置文件,所述配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换,所述网关通过所述配置文件将信息进行所述第一物联网协议和所述第二物联网协议之间的转换,并发送完成转换的信息。Sending, to the gateway, an Internet of Things protocol conversion configuration file to be loaded, the configuration file is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol, and the gateway performs information through the configuration file Converting between the first Internet of Things protocol and the second Internet of Things protocol, and transmitting the information to complete the conversion.
  14. 根据权利要求12所述的非易失性计算机存储介质,其特征在于,配置服务器向网关发送待加载的物联网协议转换配置文件包括:The non-volatile computer storage medium according to claim 12, wherein the configuration server sends the IoT protocol conversion profile to be loaded to the gateway, including:
    所述配置服务器通过接收所述网关发送的包含新的物联网协议的业务消息识别所述新的物联网协议;或者,所述配置服务器接收所述网关发送的新的物联网协议的注册请求,并通过所述注册请求识别出所述新的物联网协议;The configuration server identifies the new Internet of Things protocol by receiving a service message sent by the gateway and including a new Internet of Things protocol; or the configuration server receives a registration request of a new Internet of Things protocol sent by the gateway, And identifying the new Internet of Things protocol by the registration request;
    所述配置服务器查询本地是否有所述新的物联网协议对应的物联网协议转换配置文件;The configuration server queries whether there is an Internet of Things protocol conversion configuration file corresponding to the new Internet of Things protocol;
    如果发现所述新的物联网协议对应的物联网协议转换配置文件,则将所述新的物联网协议对应的物联网协议转换配置文件作为所述待加载的物联网协议转换配置文件发送至所述网关。If the IoT protocol conversion profile corresponding to the new IoT protocol is found, the IoT protocol conversion profile corresponding to the new IoT protocol is sent to the IoT protocol conversion profile to be loaded. Said gateway.
  15. 根据权利要求13所述的电子设备,其特征在于,配置服务器向网关 发送待加载的物联网协议转换配置文件包括:The electronic device of claim 13 wherein the server is configured to the gateway Sending the IoT protocol conversion configuration file to be loaded includes:
    所述配置服务器通过接收所述网关发送的包含新的物联网协议的业务消息识别所述新的物联网协议;或者,所述配置服务器接收所述网关发送的新的物联网协议的注册请求,并通过所述注册请求识别出所述新的物联网协议;The configuration server identifies the new Internet of Things protocol by receiving a service message sent by the gateway and including a new Internet of Things protocol; or the configuration server receives a registration request of a new Internet of Things protocol sent by the gateway, And identifying the new Internet of Things protocol by the registration request;
    所述配置服务器查询本地是否有所述新的物联网协议对应的物联网协议转换配置文件;The configuration server queries whether there is an Internet of Things protocol conversion configuration file corresponding to the new Internet of Things protocol;
    如果发现所述新的物联网协议对应的物联网协议转换配置文件,则将所述新的物联网协议对应的物联网协议转换配置文件作为所述待加载的物联网协议转换配置文件发送至所述网关。If the IoT protocol conversion profile corresponding to the new IoT protocol is found, the IoT protocol conversion profile corresponding to the new IoT protocol is sent to the IoT protocol conversion profile to be loaded. Said gateway.
  16. 一种物联网协议转换功能的配置装置,其特征在于,包括:A device for configuring an Internet of Things protocol conversion function, comprising:
    获取单元,用于从配置服务器获取待加载的物联网协议转换配置文件,所述配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换;And an obtaining unit, configured to acquire, from the configuration server, an Internet of Things protocol conversion configuration file to be loaded, where the configuration file is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol;
    转换单元,用于通过所述配置文件将信息进行所述第一物联网协议和所述第二物联网协议之间的转换,并发送完成转换的信息。And a converting unit, configured to perform information conversion between the first Internet of Things protocol and the second Internet of Things protocol by using the configuration file, and send information that completes the conversion.
  17. 根据权利要求16所述的装置,其特征在于,所述装置还包括:The device according to claim 16, wherein the device further comprises:
    第一判断单元,用于在从配置服务器获取待加载的物联网协议转换配置文件之前,判断网关本地是否存在用于加载所述配置文件的资源;a first determining unit, configured to determine, before the configuration of the Internet of Things protocol conversion configuration file to be loaded from the configuration server, whether the gateway locally has a resource for loading the configuration file;
    第二判断单元,用于在网关本地不存在用于加载所述配置文件的资源时,判断所述第一物联网协议的优先级是否高于所述网关本地已加载的物联网协议的优先级;以及a second determining unit, configured to determine, when the gateway does not have a resource for loading the configuration file, whether the priority of the first Internet of Things protocol is higher than a priority of the locally loaded Internet of Things protocol of the gateway ;as well as
    删除单元,用于在所述第一物联网协议的优先级高时,删除本地已加载的优先级低的物联网协议所对应的用于将信息在所述优先级低的物联网协议和所述第二物联网协议之间转换的配置文件。a deleting unit, configured to delete, when the priority of the first Internet of Things protocol is high, an IoT protocol and a corresponding low-priority IoT protocol for lowering the information in the IoT protocol A configuration file for conversion between the second Internet of Things protocols.
  18. 根据权利要求16所述的装置,其特征在于,所述获取单元包括:The device according to claim 16, wherein the obtaining unit comprises:
    发送模块,用于向所述配置服务器发送加载请求,所述加载请求用于请求加载所述待加载的物联网协议转换配置文件,所述配置服务器接收到所述加载请求之后将所述待加载的物联网协议转换配置文件发送至网关; a sending module, configured to send a loading request to the configuration server, where the loading request is used to request loading the IoT protocol conversion configuration file to be loaded, and the configuration server sends the to-be-loaded after receiving the loading request The IoT protocol conversion profile is sent to the gateway;
    接收模块,用于接收所述配置服务器发送的所述待加载的物联网协议转换配置文件,以加载所述待加载的物联网协议转换配置文件。And a receiving module, configured to receive the to-be-loaded Internet of Things protocol conversion configuration file sent by the configuration server, to load the to-be-loaded Internet of Things protocol conversion configuration file.
  19. 一种物联网协议转换功能的配置装置,其特征在于,包括:A device for configuring an Internet of Things protocol conversion function, comprising:
    第一发送单元,用于向网关发送待加载的物联网协议转换配置文件,所述配置文件用于将信息在第一物联网协议和第二物联网协议之间进行转换,所述网关通过所述配置文件将信息进行所述第一物联网协议和所述第二物联网协议之间的转换,并发送完成转换的信息。a first sending unit, configured to send, to the gateway, an Internet of Things protocol conversion configuration file to be loaded, where the configuration file is used to convert information between the first Internet of Things protocol and the second Internet of Things protocol, where the gateway passes The configuration file converts information between the first Internet of Things protocol and the second Internet of Things protocol, and transmits information that completes the conversion.
  20. 根据权利要求19所述的装置,其特征在于,所述第一发送单元包括:The apparatus according to claim 19, wherein the first sending unit comprises:
    第一接收模块,用于通过接收所述网关发送的包含新的物联网协议的业务消息识别所述新的物联网协议;或者,第二接收模块,用于接收所述网关发送的新的物联网协议的注册请求,并通过所述注册请求识别出所述新的物联网协议;a first receiving module, configured to identify the new Internet of Things protocol by receiving a service message that is sent by the gateway and includes a new Internet of Things protocol; or a second receiving module, configured to receive a new object sent by the gateway a registration request of the networking protocol, and identifying the new IoT protocol by the registration request;
    查询模块,用于查询本地是否有所述新的物联网协议对应的物联网协议转换配置文件;a query module, configured to query whether there is an Internet of Things protocol conversion configuration file corresponding to the new Internet of Things protocol;
    发送模块,用于在发现所述新的物联网协议对应的物联网协议转换配置文件时,将所述新的物联网协议对应的物联网协议转换配置文件作为所述待加载的物联网协议转换配置文件发送至所述网关。 a sending module, configured to convert the IoT protocol conversion configuration file corresponding to the new IoT protocol as the IoT protocol to be loaded when the IoT protocol conversion configuration file corresponding to the new IoT protocol is found A configuration file is sent to the gateway.
PCT/CN2016/095463 2015-08-17 2016-08-16 Configuration method and apparatus for internet of things protocol conversion function, nonvolatile computer storage medium and electronic device WO2017028779A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510505802.2 2015-08-17
CN201510505802.2A CN105141601B (en) 2015-08-17 2015-08-17 The configuration method and device of Internet of Things protocol conversion function

Publications (1)

Publication Number Publication Date
WO2017028779A1 true WO2017028779A1 (en) 2017-02-23

Family

ID=54726809

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/095463 WO2017028779A1 (en) 2015-08-17 2016-08-16 Configuration method and apparatus for internet of things protocol conversion function, nonvolatile computer storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN105141601B (en)
WO (1) WO2017028779A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274700A (en) * 2018-11-30 2019-01-25 普拉瑞思科学仪器(苏州)有限公司 A kind of general intermediate connecting body module of experimental facilities Internet of Things and method
CN111555922A (en) * 2020-05-08 2020-08-18 中国通信服务股份有限公司 Method, device, equipment and storage medium for active adaptive access of Internet of things equipment
CN112039791A (en) * 2020-08-28 2020-12-04 富源智慧后勤服务江苏有限公司 Internet of things intelligent gateway routing method and system
CN112153088A (en) * 2019-06-27 2020-12-29 北京微云智联科技有限公司 Control system for Internet of things equipment
CN112806037A (en) * 2018-10-02 2021-05-14 西门子股份公司 System for data communication in a network of local devices
CN113364820A (en) * 2020-03-04 2021-09-07 青岛海尔空调电子有限公司 Equipment control method and device of Internet of things service system
CN114726918A (en) * 2022-02-15 2022-07-08 深圳Tcl新技术有限公司 Internet of things cross-network communication method, device, equipment and storage medium
CN115988100A (en) * 2023-03-14 2023-04-18 国网智联电商有限公司 Equipment intelligent perception internet of things gateway management platform based on multi-protocol self-adaption
CN116095113A (en) * 2023-01-04 2023-05-09 宁波奥克斯电气股份有限公司 Automatic update method and device for air conditioner Internet of things protocol and air conditioner Internet of things system

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141601B (en) * 2015-08-17 2019-03-12 北京佰才邦技术有限公司 The configuration method and device of Internet of Things protocol conversion function
CN106899461B (en) * 2015-12-18 2020-06-05 美的集团股份有限公司 Home gateway, data communication method used for same and intelligent home system
CN107087011B (en) 2016-02-14 2020-10-27 中兴通讯股份有限公司 Method, device and system for realizing remote access
CN107872441B (en) * 2016-09-28 2021-08-17 阿里巴巴集团控股有限公司 Method and device for generating equipment attribute configuration file
CN107888542A (en) * 2016-09-29 2018-04-06 北京视联动力国际信息技术有限公司 A kind of method and system depending on establishing communication between networked terminals and commander's equipment
CN107888539A (en) * 2016-09-29 2018-04-06 中兴通讯股份有限公司 Internet-of-things terminal access device and method
CN106549863B (en) * 2016-10-27 2019-06-21 北京物联港科技发展有限公司 A kind of things-internet gateway, terminal and its protocol self-adapting method and apparatus
CN108810054A (en) * 2017-05-04 2018-11-13 宏碁股份有限公司 High in the clouds manages system and its apparatus configuration method
CN107347025A (en) * 2017-06-14 2017-11-14 云丁网络技术(北京)有限公司 Data processing method, device, server and system
CN107454058A (en) * 2017-06-29 2017-12-08 广州视源电子科技股份有限公司 A kind of data transmission method for uplink, system, readable storage medium storing program for executing and computer equipment
CN110417567B (en) * 2018-04-27 2021-12-14 华为技术有限公司 Configuration method and device of Internet of things equipment
CN108769017B (en) * 2018-05-29 2022-01-11 杭州字符串科技有限公司 Data communication method and device
CN109104341B (en) * 2018-07-02 2021-03-19 厦门立林科技有限公司 Batch deployment method of same-family type intelligent home system
CN113595961A (en) * 2020-04-30 2021-11-02 阿里巴巴集团控股有限公司 Protocol conversion method and system, and gateway device
CN111917717A (en) * 2020-06-24 2020-11-10 格创东智(深圳)科技有限公司 Method and system for automatically analyzing industrial field protocol based on gateway identification
CN111835842B (en) 2020-07-02 2023-02-28 远景智能国际私人投资有限公司 Gateway resource updating method and device and Internet of things control platform
CN112202816A (en) * 2020-11-10 2021-01-08 中电工业互联网有限公司 Configurable soft gateway communication protocol analysis conversion system and method
CN112511416A (en) * 2020-11-23 2021-03-16 四川长虹电器股份有限公司 Rule-based data communication protocol conversion system, decoding method and encoding method
CN113067811A (en) * 2021-03-17 2021-07-02 北京自如信息科技有限公司 Protocol conversion method, device, system, electronic equipment and storage medium
CN113556359B (en) * 2021-08-04 2023-06-23 京东方科技集团股份有限公司 Communication protocol conversion method, device, system and gateway device
CN113507488A (en) * 2021-09-10 2021-10-15 之江实验室 Edge data plane control system and method based on heterogeneous security

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064670A (en) * 2006-04-30 2007-10-31 互联天下科技发展(深圳)有限公司 Network multi-service processing method and system
CN102195839A (en) * 2011-05-05 2011-09-21 中国联合网络通信集团有限公司 Home gateway configuration method, home gateway and gateway server
CN102255908A (en) * 2011-07-08 2011-11-23 北京邮电大学 Internet of things gateway protocol consistency realization method
CN102802139A (en) * 2012-07-10 2012-11-28 无锡航天飞邻测控技术有限公司 Gateway data adapting system and method of Internet of Things
CN203289469U (en) * 2013-02-28 2013-11-13 湖南科技学院 IOT gateway
CN105141601A (en) * 2015-08-17 2015-12-09 北京佰才邦技术有限公司 Method and device for configuring Internet-of-Things protocol conversion function

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064670A (en) * 2006-04-30 2007-10-31 互联天下科技发展(深圳)有限公司 Network multi-service processing method and system
CN102195839A (en) * 2011-05-05 2011-09-21 中国联合网络通信集团有限公司 Home gateway configuration method, home gateway and gateway server
CN102255908A (en) * 2011-07-08 2011-11-23 北京邮电大学 Internet of things gateway protocol consistency realization method
CN102802139A (en) * 2012-07-10 2012-11-28 无锡航天飞邻测控技术有限公司 Gateway data adapting system and method of Internet of Things
CN203289469U (en) * 2013-02-28 2013-11-13 湖南科技学院 IOT gateway
CN105141601A (en) * 2015-08-17 2015-12-09 北京佰才邦技术有限公司 Method and device for configuring Internet-of-Things protocol conversion function

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112806037A (en) * 2018-10-02 2021-05-14 西门子股份公司 System for data communication in a network of local devices
CN109274700A (en) * 2018-11-30 2019-01-25 普拉瑞思科学仪器(苏州)有限公司 A kind of general intermediate connecting body module of experimental facilities Internet of Things and method
CN112153088A (en) * 2019-06-27 2020-12-29 北京微云智联科技有限公司 Control system for Internet of things equipment
CN113364820A (en) * 2020-03-04 2021-09-07 青岛海尔空调电子有限公司 Equipment control method and device of Internet of things service system
CN111555922A (en) * 2020-05-08 2020-08-18 中国通信服务股份有限公司 Method, device, equipment and storage medium for active adaptive access of Internet of things equipment
CN111555922B (en) * 2020-05-08 2023-05-16 中国通信服务股份有限公司 Method, device, equipment and storage medium for actively adapting access of Internet of things equipment
CN112039791A (en) * 2020-08-28 2020-12-04 富源智慧后勤服务江苏有限公司 Internet of things intelligent gateway routing method and system
CN114726918A (en) * 2022-02-15 2022-07-08 深圳Tcl新技术有限公司 Internet of things cross-network communication method, device, equipment and storage medium
CN114726918B (en) * 2022-02-15 2024-04-02 深圳Tcl新技术有限公司 Internet of things cross-network communication method, device, equipment and storage medium
CN116095113A (en) * 2023-01-04 2023-05-09 宁波奥克斯电气股份有限公司 Automatic update method and device for air conditioner Internet of things protocol and air conditioner Internet of things system
CN115988100A (en) * 2023-03-14 2023-04-18 国网智联电商有限公司 Equipment intelligent perception internet of things gateway management platform based on multi-protocol self-adaption
CN115988100B (en) * 2023-03-14 2023-08-18 国网智联电商有限公司 Gateway management method for intelligent perception of Internet of things of equipment based on multi-protocol self-adaption

Also Published As

Publication number Publication date
CN105141601B (en) 2019-03-12
CN105141601A (en) 2015-12-09

Similar Documents

Publication Publication Date Title
WO2017028779A1 (en) Configuration method and apparatus for internet of things protocol conversion function, nonvolatile computer storage medium and electronic device
WO2018054195A1 (en) Resource allocating method and base station
JP6419792B2 (en) Method and apparatus for real-time sharing of multimedia content between wireless devices
WO2017107542A1 (en) Video program obtaining method, device and system
JP2019092147A (en) Information exchanging method and device, audio terminal, and computer-readable storage medium
US20130346591A1 (en) Clientless Cloud Computing
KR101672101B1 (en) Device controlling method, client, server and intermediate device
CN109408132A (en) A kind of configuration file processing method and server, user terminal, storage medium
CN109391502B (en) Information configuration method and management unit
CN108881228A (en) Cloud registration activation method, device, equipment and storage medium
CN105430711B (en) Transmission method, device and the equipment of information
JP6018316B2 (en) Terminal authentication registration system, terminal authentication registration method and program
US20170171496A1 (en) Method and Electronic Device for Screen Projection
US10908889B2 (en) Method, user equipment, and application server for downloading application
US20170171571A1 (en) Push Video Documentation Methods and Appliances
CN104410660A (en) Method and device of downloading multimedia resources as well as router and server
WO2019205555A1 (en) Method and apparatus for pushing message
US20170289243A1 (en) Domain name resolution method and electronic device
US9986057B2 (en) UI framework support for portal systems
US20170155712A1 (en) Method and device for updating cache data
US20170155741A1 (en) Server, method, and system for providing service data
CN104702634A (en) Method, device and system for processing data operation request
CN104978378B (en) A kind of Web access method and device
US20170171339A1 (en) Advertisement data transmission method, electrnoic device and system
US20170187800A1 (en) File synchronization method, electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16836643

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 22/06/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16836643

Country of ref document: EP

Kind code of ref document: A1