CN111385341A - Communication method and related equipment - Google Patents

Communication method and related equipment Download PDF

Info

Publication number
CN111385341A
CN111385341A CN201811647410.XA CN201811647410A CN111385341A CN 111385341 A CN111385341 A CN 111385341A CN 201811647410 A CN201811647410 A CN 201811647410A CN 111385341 A CN111385341 A CN 111385341A
Authority
CN
China
Prior art keywords
mobile terminal
management platform
gateway device
address information
iot management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811647410.XA
Other languages
Chinese (zh)
Inventor
陈昌洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Petal Cloud Technology Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201811647410.XA priority Critical patent/CN111385341A/en
Publication of CN111385341A publication Critical patent/CN111385341A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A communication method and related equipment. The method comprises the following steps: the mobile terminal detects that the mobile terminal is not positioned in the local area network of the gateway equipment; the gateway device and the IoT management platform establish a first communication connection; the mobile terminal sends a request carrying the MAC address of the gateway equipment to an IoT management platform; the mobile terminal receives first external network address information sent by an IoT management platform; the first external network address information corresponds to the MAC address of the gateway equipment; the mobile terminal acquires second external network address information of the mobile terminal; the mobile terminal executes the operation of establishing second communication connection with the gateway equipment according to the first external network address information and the second external network address information; the second communication connection and the first communication connection are used for realizing communication between the mobile terminal and the IoT management platform. The method helps to reduce the number of communication links between the mobile terminal and the IoT management platform.

Description

Communication method and related equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method and a related device.
Background
Internet of things (IoT) is an internet that covers everything in the world and is constructed by using Radio Frequency Identification (RFID) and wireless data communication technologies based on computer internet.
In the devices communicatively connected with the IoT, the mobile terminal may access the IoT directly or through the gateway device. The IoT may provide services for mobile terminals such as online debugging, remote maintenance, and the like. However, due to the large number of mobile terminals, when the mobile terminals access the IoT, a large number of communication links between a plurality of devices including the mobile terminals and the IoT need to be maintained by the IoT. Thus, traffic pressure is greater for IoT.
Disclosure of Invention
The present application provides a communication method that facilitates reducing a number of communication links between a mobile terminal and an IoT management platform. Also, the present application provides apparatus related to the method.
In a first aspect, the present application provides a method of communication, the method being executable by a mobile device. The method comprises the following steps: the mobile terminal detects that the mobile terminal is not positioned in the local area network of the gateway equipment; the gateway equipment and an IoT management platform establish a first communication connection; the mobile terminal sends a first request to the IoT management platform, wherein the first request carries the MAC address of the gateway equipment; the mobile terminal receives first external network address information sent by the IoT management platform; the first extranet address information is determined by the IoT management platform based on a corresponding relation between MAC addresses and extranet address information, and the first extranet address information corresponds to the MAC address of the gateway device; the mobile terminal acquires second external network address information of the mobile terminal; the mobile terminal executes the operation of establishing second communication connection with the gateway equipment according to the first external network address information and the second external network address information; the second communication connection and the first communication connection are used for realizing communication between the mobile terminal and the IoT management platform.
In the embodiment of the application, when the mobile terminal is not located in the local area network of the gateway device, the mobile terminal does not need to directly access the IoT management platform, but establishes the second communication connection with the gateway device, that is, the IoT management platform is still accessed through the gateway device, which helps to reduce the number of communication links between the mobile terminal and the IoT management platform, and helps to reduce the communication links that the IoT management platform needs to maintain.
In one possible design, the mobile terminal detecting that the mobile terminal is not within the range of the local area network of the gateway device includes: the mobile terminal detects that the wireless local area network communication mode is switched to the cellular mobile communication mode; or the mobile terminal detects that the IP address changes; or; the mobile terminal detects that the MAC address of the currently connected gateway device is inconsistent with the stored MAC address of the gateway device.
In this embodiment of the present application, the mobile terminal may detect that the mobile terminal is not located in the range of the local area network of the gateway device in multiple ways, for example, detect that the wireless local area network communication system is switched to the cellular mobile communication system, or detect that an IP address changes, or detect that the MAC address of the currently connected gateway device is inconsistent with the stored MAC address of the gateway device. When the mobile terminal is not in the local area network of the gateway device, the IoT management platform does not need to be directly accessed, and the IoT management platform is still accessed through the gateway device, so that the number of communication links between the mobile terminal and the IoT management platform is reduced, and the communication links which need to be maintained by the IoT management platform are reduced.
In one possible design, the first external network address information includes a first external network IP and a first port number; the second extranet address information includes a second extranet IP and a second port number.
In one possible design, the mobile terminal receives a control instruction through the gateway device; the control instruction is used for controlling the mobile terminal, and the control instruction is generated by the IoT management platform based on a second request sent by another mobile terminal.
In the embodiment of the present application, when a mobile terminal such as a bicycle is not located in the local area network of the gateway device, the IoT management platform is still accessed through the gateway device. When another mobile terminal, such as a cell phone, may send a request to the IoT management platform to request control of the bike. The IoT management platform generates a control instruction based on a request sent by the mobile phone and issues the control instruction to the bicycle through the gateway equipment. That is, the mobile terminal is not located within the local area network of the gateway device, but still communicates with the IoT management platform through the gateway device. In this way, the number of communication links between the mobile terminal and the IoT management platform is facilitated to be reduced, and the communication links that the IoT management platform needs to maintain are facilitated to be reduced.
In one possible design, the second request is for requesting unlocking of the mobile terminal; the control instruction is used for unlocking the mobile terminal.
In an embodiment of the present application, the request sent by another mobile terminal, such as a cell phone, to the IoT management platform may be a request to unlock the mobile terminal, such as a bicycle. Therefore, the IoT management platform generates a control command for unlocking the bicycle based on the request sent by the mobile phone, and issues the control command to the bicycle through the gateway device. I.e., the mobile terminal is not located in the local area network of the gateway device, the communication is still performed through the gateway device and the IoT management platform. In this way, the number of communication links between the mobile terminal and the IoT management platform is facilitated to be reduced, and the communication links that the IoT management platform needs to maintain are facilitated to be reduced.
In one possible design, the terminal device determines that a distance between a current first geographic location and a second geographic location of the gateway device is greater than a preset distance; the mobile terminal sends a third request to the IoT management platform, wherein the third request carries the MAC address of another gateway device; the mobile terminal receives third external network address information sent by the IoT management platform; the third foreign network address is determined by the IoT management platform based on the correspondence, the third foreign network address corresponding to a MAC address of the other gateway device; the mobile terminal executes the operation of establishing third communication connection with the other gateway equipment according to the first external network address information and the third external network address information; the third communication connection and the first communication connection are used for realizing communication between the mobile terminal and the IoT management platform.
In the embodiment of the application, when the mobile terminal detects that the current geographic location is far away from the gateway device, the mobile terminal may establish a connection with another gateway device, that is, the IoT management platform is accessed through another gateway device, which helps to reduce the number of communication links between the mobile terminal and the IoT management platform and helps to reduce the communication links that the IoT management platform needs to maintain.
In a second aspect, embodiments of the present application provide a communication method, which may be performed by a gateway device. The method comprises the following steps: the gateway equipment and the IoT management platform establish a first communication connection; the gateway equipment acquires first external network address information of the gateway equipment; the gateway equipment receives second external network address information sent by the mobile terminal; the gateway equipment executes the operation of establishing second communication connection with the mobile terminal based on the first external network address information and the second external network address information; wherein the second communication connection and the first communication connection are used for realizing communication between the mobile terminal and the IoT management platform, and the mobile terminal is not in a local area network of the gateway device.
In the embodiment of the application, the gateway device can establish connection with a mobile terminal which is not in the local area network of the gateway device, and the mobile terminal does not need to directly access the IoT management platform, but accesses the IoT management platform through the gateway device, so that the number of communication links between the mobile terminal and the IoT management platform is reduced, and the communication links which need to be maintained by the IoT management platform are reduced.
In one possible design, the first external network address information includes a first external network IP and a first port number; the second extranet address information includes a second extranet IP and a second port number.
In one possible design, the gateway device receives a control instruction sent by the IoT management platform, where the control instruction is an instruction generated by the IoT management platform based on a request sent by another mobile terminal; the control instruction comprises a device identifier of the mobile terminal, and the control instruction is used for controlling the mobile terminal; and the gateway equipment sends the control instruction to the mobile terminal based on the equipment identification.
In the embodiment of the present application, when a mobile terminal such as a bicycle is not located in the local area network of the gateway device, the IoT management platform is still accessed through the gateway device. When another mobile terminal, such as a cell phone, may send a request to the IoT management platform to request control of the bike. The IoT management platform generates a control instruction based on a request sent by the mobile phone and issues the control instruction to the bicycle through the gateway equipment. That is, the mobile terminal is not located within the local area network of the gateway device, but still communicates with the IoT management platform through the gateway device. In this way, the number of communication links between the mobile terminal and the IoT management platform is facilitated to be reduced, and the communication links that the IoT management platform needs to maintain are facilitated to be reduced.
In one possible design, the request sent by the other mobile terminal is for requesting unlocking of the mobile terminal; the control instruction is used for unlocking the mobile terminal.
In an embodiment of the present application, the request sent by another mobile terminal, such as a cell phone, to the IoT management platform may be a request to unlock the mobile terminal, such as a bicycle. Therefore, the IoT management platform generates a control command for unlocking the bicycle based on the request sent by the mobile phone, and issues the control command to the bicycle through the gateway device. I.e., the mobile terminal is not located in the local area network of the gateway device, the communication is still performed through the gateway device and the IoT management platform. In this way, the number of communication links between the mobile terminal and the IoT management platform is facilitated to be reduced, and the communication links that the IoT management platform needs to maintain are facilitated to be reduced.
In one possible design, after the gateway device obtains first external network address information of itself, the gateway device sends a registration request to the IoT management platform, where the registration request carries an MAC address of the gateway device and the first external network address information; when the IoT management platform receives a request sent by the mobile terminal, based on the MAC address of the gateway device carried in the request, sending first external network address information of the gateway device to the mobile terminal, wherein the first external network address information is used for the mobile terminal to execute the operation of establishing the second communication connection with the gateway device.
In the embodiment of the present application, the gateway device may register its own extranet address information in the IoT management platform. The mobile terminal may obtain the extranet address information of the gateway device from the IoT management platform to establish a connection with the gateway device. In this way, the gateway device can establish a connection with a mobile terminal that is not within the local area network of the gateway device, and the IoT management platform is accessed through the gateway device without directly accessing the IoT management platform for the mobile terminal, which helps to reduce the number of communication links between the mobile terminal and the IoT management platform and helps to reduce the communication links that the IoT management platform needs to maintain.
In a third aspect, an embodiment of the present application provides a management method for a mobile terminal, which may be executed by an IoT management platform. The method comprises the following steps: the method comprises the steps that an IoT management platform of the Internet of things establishes a first communication connection with gateway equipment; the IoT management platform receives a first request sent by a mobile terminal, wherein the first request carries the MAC address of the gateway equipment; the mobile terminal is not positioned in the local area network of the gateway equipment; the IoT management platform determines first external network address information based on a corresponding relation between MAC addresses and the external network address information, wherein the first external network address information corresponds to the MAC address of the gateway equipment; the IoT management platform sends the first external network address information to the mobile terminal, and the mobile terminal executes operation of establishing second communication connection with the gateway equipment based on second external network address information of the mobile terminal and the first external network address information; the second communication connection and the first communication connection are used for realizing communication between the IoT management platform and the mobile terminal.
In this embodiment of the application, when receiving a MAC address of a certain gateway device sent by a mobile terminal, an IoT management platform may send extranet address information corresponding to the MAC address to the mobile terminal. Therefore, when the mobile terminal is not in the local area network of the gateway device, the connection with the gateway device can be established based on the external network address information of the gateway device. For the mobile terminal, the IoT management platform is accessed through the gateway device without directly accessing the IoT management platform, so that the number of communication links between the mobile terminal and the IoT management platform is reduced, and the communication links which need to be maintained by the IoT management platform are reduced.
In one possible design, the first external network address information includes a first external network IP and a first port number; the second extranet address information includes a second extranet IP and a second port number.
In one possible design, the IoT management platform receives a second request sent by another mobile terminal, where the second request carries a device identifier of the mobile terminal; the IoT management platform generating a control instruction based on the second request; the control instruction carries the equipment identification of the mobile terminal; the IoT management platform sends the control instruction to the gateway device; and the gateway equipment sends the control instruction to the mobile terminal based on the equipment identification.
In the embodiment of the present application, when a mobile terminal such as a bicycle is not located in the local area network of the gateway device, the IoT management platform is still accessed through the gateway device. When another mobile terminal, such as a cell phone, may send a request to the IoT management platform to request control of the bike. The IoT management platform generates a control instruction based on a request sent by the mobile phone and issues the control instruction to the bicycle through the gateway equipment. That is, the mobile terminal is not located within the local area network of the gateway device, but still communicates with the IoT management platform through the gateway device. In this way, the number of communication links between the mobile terminal and the IoT management platform is facilitated to be reduced, and the communication links that the IoT management platform needs to maintain are facilitated to be reduced.
In one possible design, the second request is for requesting unlocking of the mobile terminal; the control instruction is used for unlocking the mobile terminal.
In an embodiment of the present application, the request sent by another mobile terminal, such as a cell phone, to the IoT management platform may be a request to unlock the mobile terminal, such as a bicycle. Therefore, the IoT management platform generates a control command for unlocking the bicycle based on the request sent by the mobile phone, and issues the control command to the bicycle through the gateway device. I.e., the mobile terminal is not located in the local area network of the gateway device, the communication is still performed through the gateway device and the IoT management platform. In this way, the number of communication links between the mobile terminal and the IoT management platform is facilitated to be reduced, and the communication links that the IoT management platform needs to maintain are facilitated to be reduced.
In one possible design, before the IoT management platform determines the first extranet address information based on a corresponding relationship between a MAC address and extranet address information, the IoT management platform receives a registration request sent by the gateway device, where the registration request carries the MAC address of the gateway device and the first extranet address information.
In the embodiment of the present application, the gateway device may register its own extranet address information in the IoT management platform. The mobile terminal may obtain the extranet address information of the gateway device from the IoT management platform to establish a connection with the gateway device. I.e., the mobile terminal is not located in the local area network of the gateway device, the communication is still performed through the gateway device and the IoT management platform. In this way, the number of communication links between the mobile terminal and the IoT management platform is facilitated to be reduced, and the communication links that the IoT management platform needs to maintain are facilitated to be reduced.
In a fourth aspect, an embodiment of the present invention provides a mobile terminal. The mobile terminal includes: a memory, a processor, and a transceiver, the processor coupled with the memory and the transceiver; wherein the memory is for storing computer executable program code; wherein the program code comprises instructions which, when executed by the processor, cause the mobile terminal to carry out the technical solution of the first aspect and any one of the possible designs of the first aspect.
In a fifth aspect, an embodiment of the present application further provides a mobile terminal, where the mobile terminal includes a module/unit that performs the method of the first aspect or any one of the possible designs of the first aspect; these modules/units may be implemented by hardware, or by hardware executing corresponding software.
In a sixth aspect, an embodiment of the present invention provides a gateway device. The gateway apparatus includes: a memory, a processor, and a transceiver, the processor coupled with the memory and the transceiver; wherein the memory is for storing computer executable program code; wherein the program code comprises instructions which, when executed by the processor, cause the gateway device to carry out any of the solutions of the second aspect and its possible design.
In a seventh aspect, an embodiment of the present application further provides a gateway device, where the gateway device includes a module/unit that executes the second aspect or any one of the possible designed methods of the second aspect; these modules/units may be implemented by hardware, or by hardware executing corresponding software.
In an eighth aspect, an embodiment of the present invention provides an internet of things IoT management platform. The IoT management platform comprises: a memory, a processor, and a transceiver, the processor coupled with the memory and the transceiver; wherein the memory is for storing computer executable program code; wherein the program code comprises instructions that, when executed by the processor, cause the gateway device to perform the solution as designed in any one of the third aspect and its possible design.
In a ninth aspect, an embodiment of the present invention provides an internet of things IoT management platform. The IoT management platform includes modules/units that perform the methods of the third aspect or any one of the possible designs of the third aspect; these modules/units may be implemented by hardware, or by hardware executing corresponding software.
In a tenth aspect, an embodiment of the present application provides a chip, where the chip is coupled to a memory in a mobile terminal, and implements a technical solution of any one of the first aspect and the first aspect of the embodiment of the present application; "coupled" in the context of this application means that two elements are joined to each other either directly or indirectly.
In an eleventh aspect, an embodiment of the present application provides a chip, where the chip is coupled to a memory in a gateway device, and executes a technical solution of any one of the second aspect and the possible designs of the second aspect of the embodiment of the present application; "coupled" in the context of this application means that two elements are joined to each other either directly or indirectly.
In a twelfth aspect, an embodiment of the present application provides a chip, where the chip is coupled with a memory in an IoT management platform, and performs a technical solution designed in any one of the third aspect and the third aspect of the embodiment of the present application; "coupled" in the context of this application means that two elements are joined to each other either directly or indirectly.
In a thirteenth aspect, an embodiment of the present application provides a communication system, where the communication system includes at least two of the mobile terminal of the first aspect, the gateway device of the second aspect, and the IoT management platform of the third aspect.
In a fourteenth aspect, an embodiment of the present application provides a communication system, where the communication system includes the mobile terminal described in the first aspect and the gateway device described in the second aspect.
In a fifteenth aspect, a computer-readable storage medium of the embodiments of the present application includes a computer program, which, when running on an electronic device, causes the electronic device to execute a technical solution of any one of the first aspect and the possible designs of the first aspect of the embodiments of the present application; or when the computer program runs on the electronic device, the electronic device is enabled to execute the technical scheme of any one of the second aspect and the possible design of the second aspect of the embodiments of the present application; or, when the computer program runs on the electronic device, the electronic device is caused to execute the technical solution of any one of the possible designs of the third aspect and the third aspect of the embodiments of the present application.
Sixteenth, in the embodiment of the present application, when the computer program product runs on an electronic device, the electronic device executes a technical solution of the first aspect of the embodiment of the present application and any one of possible designs of the first aspect of the embodiment of the present application; or when the computer program product runs on an electronic device, the electronic device is caused to execute the technical solution of the second aspect of the embodiment of the present application and any one of the possible designs of the second aspect; or when the computer program product runs on an electronic device, the electronic device is caused to execute the technical solution of any one of the third aspect and its possible design of the embodiments of the present application.
Drawings
Fig. 1A is a schematic diagram of an IoT management platform according to an embodiment of the present disclosure;
fig. 1B is a schematic diagram of another IoT management platform provided in an embodiment of the present application;
fig. 2 is a schematic diagram of information interaction among a mobile phone, a bicycle, and an IoT management platform according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of information interaction between a bicycle and an IoT management platform in a local area network according to an embodiment of the present application;
fig. 4 is a schematic diagram of an application scenario provided in the present application;
FIG. 5 is a schematic diagram of another application scenario provided herein;
FIG. 6 is a schematic structural diagram of a bicycle in accordance with an embodiment of the present application;
fig. 7 is a schematic structural diagram of a mobile phone 100 according to an embodiment of the present application;
fig. 8A is a flowchart illustrating a communication method according to an embodiment of the present application;
fig. 8B is a schematic flowchart of a process of determining whether to move out of the lan of the gateway device according to the embodiment of the present application;
fig. 9 is an example of a management method of a mobile terminal according to an embodiment of the present application;
fig. 10 is a flowchart illustrating another communication method according to an embodiment of the present application;
fig. 11 is an example of a management method of a mobile terminal according to an embodiment of the present application;
fig. 12 is a schematic view of a display interface of a mobile phone provided in an embodiment of the present application;
fig. 13 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a gateway device according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of an IoT management platform according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of an IoT management platform according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Hereinafter, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
The internet of things related to the embodiment of the application is connected with the object as the name implies. Wherein, the 'object' can be electronic equipment with specific communication function, such as a smart watch, a mobile phone, an automobile, a bicycle and the like. For example, after the communication chip is mounted on the bicycle, the bicycle can realize a communication function, and then the bicycle can be in communication connection with other 'things' by using the same communication technology such as RFID, wireless data communication and the like. Generally, the internet of things exists in a greater sense of facilitating management of various "things" and providing various services for the "things".
The embodiment of the application relates to an IoT management platform which is used for providing various services for a mobile terminal (such as a bicycle, a smart household appliance, a smart watch and the like). The IoT management platform may be one server or a cluster of servers to provide different services.
Two IoT management platforms provided by embodiments of the present application are described below.
Please refer to fig. 1A, which is a schematic diagram of an IoT management platform according to an embodiment of the present disclosure. As shown in fig. 1A, the IoT management platform may include device access, device management, rules engine, security authentication, etc. of the mobile terminal.
The device access can be in various modes, such as fixed broadband, 2G/3G/4G, 5G and the like, and the IoT management platform also supports various protocol accesses, such as HTTP/HTTPS, MQTTS, CoAP, CoAPS and the like. There are various IoT management platforms, such as an OceanConnect internet of things platform, and the embodiments of the present application are not limited thereto.
Wherein the device management comprises: the system comprises a life cycle, a device group, a device shadow, firmware upgrading, an object model, data analysis, online debugging, remote maintenance, data storage, real-time monitoring and the like. Taking firmware upgrade as an example, the IoT management platform may provide a firmware upgrade service for the mobile terminal, that is, upgrade a software version in the mobile terminal. Taking remote maintenance as an example, the IoT management platform may provide remote maintenance service for the mobile terminal, for example, the mobile terminal may report the fault information to the IoT management platform, and the IoT management platform provides a solution based on the fault information to solve the fault of the mobile terminal.
When the IoT management platform performs data transmission with the mobile terminal, the rule engine may process a message sent by the mobile terminal (for example, convert a language of the message sent by the mobile terminal into an SQL statement) using the rule engine, and forward the processed data to the cloud product (see fig. 1A) for further computation. For example: the processed data may be stored (e.g., table storage) or may be subject to stream computations (e.g., computations using Maxcomputer).
In the security authentication, before the mobile terminal communicates with the IoT management platform, the IoT management platform may perform security authentication on the mobile terminal, and verify the identity.
Please continue to refer to fig. 1B, which is a schematic diagram of another IoT management platform provided in the embodiments of the present application. As shown in fig. 1B, the IoT management platform may include a Message negotiator (Message Broker), a Rules Engine (Rules Engine), a Device shadow (Device shads), and security authentication.
The message negotiator is configured to forward data sent by the mobile terminal, for example, forward the data sent by the mobile terminal to the device shadow.
The device shadow, that is, each mobile terminal may create a virtual device (for short, device shadow) on the IoT management platform, where the device shadow includes the latest status of the mobile terminal (for example, the mobile terminal may send the latest status in real time to the device shadow corresponding to the mobile terminal), and therefore, other devices may read a message in the device shadow and interact with the device shadow, so as to implement interaction between the other devices and the mobile terminal.
The rule engine and the security authentication are similar to those described above with respect to fig. 1A, and are not described again.
In another IoT management platform shown in fig. 1B, an app in a mobile terminal may use a cloud product through an Application Programming Interface (API), and for example, the app in a mobile phone may store pictures, videos, texts, and the like generated by the app in a digital asset inventory.
The IoT management platform shown in fig. 1A or 1B may be applied to various industries, such as smart industry, smart transportation, smart cities, smart appliances, and the like.
Taking the smart home appliance industry as an example, the smart home appliances in each user's home can be in communication connection with the IoT management platform (access to the IoT management platform) to realize intelligent operation of the home appliances, such as intelligent management of an air conditioner, that is, the user can use a mobile phone to remotely control cooling or heating of the air conditioner before returning home (for example, the mobile phone sends a cooling instruction to the IoT management platform, and the IoT management platform sends a cooling instruction to the air conditioner). For another example, the bicycle may be connected to the IOT management platform, and after the mobile phone scans the two-dimensional code on the bicycle to obtain information about the bicycle, the mobile phone may send the unlocking request to the IOT management platform, and the IOT management platform sends the unlocking instruction to the bicycle, so that the bicycle is unlocked.
The gateway device according to the embodiment of the present application is configured to manage multiple mobile terminals, that is, multiple mobile terminals are connected to an IoT management platform through the same gateway device. Continuing to take the intelligent household appliances as an example, assume that all the intelligent household appliances in one cell are connected with the IoT management platform through the same gateway device; or all mobile terminals in a local area network are connected with the IoT management platform through a gateway device. Continuing with the example of bicycles (hereinafter, simply referred to as bicycles), referring to fig. 2, a gateway device manages a plurality of bicycles (for example, a plurality of bicycles are in a local area network of the gateway device, which will be described later). Taking one of the bicycles as an example, a two-dimensional code is set on the bicycle, the mobile phone scans the two-dimensional code to obtain identification information of the bicycle, such as a number of the bicycle (for example, through specific app scanning), the mobile phone sends an unlocking request to the IoT management platform, the unlocking request carries the number, the IoT management platform sends an unlocking instruction of the bicycle to the gateway device, and the unlocking instruction carries the number of the bicycle and an unlocking password. The gateway device forwards the unlocking instruction to the bicycle (sent through the intranet of the local area network, which will be described later), and the bicycle is unlocked based on the unlocking password. The bicycle reports the journey (sent through an intranet of a local area network, which will be described later) to the IoT management platform through the gateway device, and the IoT management platform sends a payment prompt to the mobile phone. By the method, each mobile terminal is not required to be connected with the IoT management platform, the mobile terminals are convenient to manage, and links which need to be maintained by the IoT management platform are saved.
The mobile terminal that this application embodiment relates to, including terminals such as bicycle, smart mobile phone, intelligent household electrical appliances, intelligent wrist-watch, car, unmanned aerial vehicle, this application embodiment is not limited.
The external network address related to the embodiment of the present application is a global IP address for uniquely identifying a device, and is an address recognized by an IoT management platform. In short, when the mobile device with the extranet address sends a data access request (carrying the extranet address in the data access request) to the IoT management platform, the IoT management platform will process the data access request. A mobile terminal without an extranet address cannot send a data access request directly to the IoT management platform. Generally, the external network address can be allocated by an external network server, the number of global IP addresses is limited, and the external network server can allocate the currently available external network address to the terminal device requesting to acquire the external network address. After the mobile device obtains the foreign network address, the data can be accessed to the IoT management platform through the foreign network address.
The embodiment of the application relates to a local area network, and a computer set consisting of a plurality of mobile devices in an area. Fig. 3 is a schematic view of a mobile device and an IoT management platform in a local area network according to an embodiment of the present disclosure for performing data transmission. As shown in fig. 3, bicycle a and bicycle B are within the range of the local area network of the gateway device, and bicycle a or bicycle B is connected with the gateway device through the intranet. Specifically, bike a only has an internal network address (e.g., an internal network IP) and only the gateway device has an external network address (e.g., the gateway device requests the external network server to assign the external network address). When bicycle a accesses data to the IoT management platform (such as when bicycle a reports a trip), the data access request (carrying the intranet IP of bicycle a) is forwarded to the IoT management platform via the gateway device. Since the gateway device has an external network address (such as an external network IP), the gateway device converts the internal network IP in the data access request into the external network IP, and then sends the data access request to the IoT management platform.
In addition, when the two devices perform data transmission, the two devices can carry port numbers in addition to the external network addresses. By way of example, please continue to refer to fig. 3. Assume that the intranet IP address of bicycle a is 10.0.0.1, the port number is 45321, the extranet IP address of the gateway device is 121.0.0.2, the port number is 80, the extranet address of the IoT management platform is 54.223.189.245, and the port number is 50000. It is to be understood that the numbers herein are by way of example only and are not limiting.
When bicycle A wants to access the data of the IoT management platform, the source IP address and the destination IP address, the source port and the destination port carried in the data access request packet sent to the IoT management platform. Where the source IP address is 10.0.0.1, the destination IP address is 54.223.189.245, the source port is 45421, and the destination port is 80.
When this data access request passes through the gateway device, the gateway device modifies the source address in the data access request to an external network address (i.e., 10.0.0.1 is modified to 121.0.0.2), and the source port is modified to the port number of the gateway device (i.e., 45421 is modified to 50000). The gateway device sends the modified data access request to an IoT management platform.
And the IoT management platform sends response information to the gateway equipment, wherein the response information carries a source IP address, a destination IP address, a source port and a destination port. Where the source port is 80, the destination port is 50000, the source IP address is 54.223.189.245, and the destination IP address is 121.0.0.2. I.e. this response information is sent to the gateway device. After receiving the response message, the gateway device modifies the destination port in the response message to 45421 and modifies the destination address to 10.0.0.1, and thus, the gateway device feeds back the response message to bicycle a.
The embodiments of the present application relate to a network system, i.e. a network type, such as cellular mobile communication network or wireless local area network communication. Cellular mobile communication networks such as LTE standards and the like; the wireless local area network communication network is, for example, WiFi 5GHz WiFi2.4 GHz.
The embodiments of the present application relate to a plurality of numbers greater than or equal to two.
It should be noted that the term "and/or" is only one kind of association relationship describing the associated object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified. Moreover, in the description of the embodiments of the present invention, the terms "first," "second," and the like are used for descriptive purposes only and not for purposes of indicating or implying relative importance, nor for purposes of indicating or implying order.
Fig. 4 is a schematic view of an application scenario provided in the present application. As shown in fig. 4, the application scenario includes: the system comprises an IoT management platform, a plurality of mobile terminals and a gateway device. As shown in fig. 4 (a), three mobile terminals are within the range of the local area network covered by the gateway device, so the three mobile terminals establish connection with the IoT management platform through the gateway device, and the gateway device and the IoT management platform are connected through the communication link 2. The mobile terminal 1 is not in the range of the local area network of the gateway device, so the mobile terminal 1 is directly connected with the IoT management platform, and it is assumed that the mobile terminal 1 is connected with the IoT management platform through the communication link 1. Therefore, in fig. 4 (a), the gateway device may manage a plurality of mobile terminals, and the communication link that needs to be maintained for the IoT management platform includes two communication links, i.e., communication link 1 and communication link 2.
When the mobile terminal 2 moves out of the range of the local area network of the gateway device, the mobile terminal 2 is also directly connected to the IoT management platform, i.e. the gateway device no longer manages the mobile terminal 2, please refer to (b) in fig. 4. Assuming that the mobile terminal 2 establishes the communication link 3 with the IoT management platform, the communication link that needs to be maintained for the IoT management platform includes three, namely, communication link 1, communication link 2, and communication link 3.
Therefore, after a mobile terminal moves out of the local area network, the mobile terminal needs to be directly connected with the IoT management platform, and the IoT management platform needs to manage more mobile terminals due to the huge number of mobile terminals, that is, communication links needing to be maintained are increased, and the service pressure is increased.
In the solution provided in the embodiment of the present application, after a mobile terminal moves out of the local area network of the gateway device, the mobile terminal does not need to be directly connected to the IoT management platform, but can still be connected to the IoT management platform through the gateway device, thereby avoiding increasing the number of communication links that need to be maintained.
The following describes a communication method provided by an embodiment of the present application, taking a mobile terminal as a bicycle as an example. Fig. 5 is a schematic view of another application scenario provided in the embodiment of the present application. As shown in fig. 5, the application scenario includes: an IoT management platform, a plurality of bicycles, a gateway device. As shown in fig. 5 (a), for the IoT management platform, the communication link to be maintained includes two communication links, i.e., communication link 1 and communication link 2. Wherein, the bicycles 2 and 3 are in the lan of the gateway device, and the data transmission manner thereof is shown in fig. 4.
As shown in fig. 5 (b), when the bicycle 2 moves out of range of the local area network covered by the gateway device, the bicycle 2 does not directly connect with the IoT management platform, but continues to connect with the IoT management platform through the gateway device. That is, when the bike 2 moves out of the gateway device's lan, the bike 2 is still managed by the gateway device (the bike 2 still reports a trip through the gateway device, etc.). Specifically, since the bicycles 2 are not already within the local area network of the gateway device, the bicycles 2 cannot be connected to the gateway device through the intranet, but are connected by other means such as P2P (described later).
Thus, in fig. 5 (b), the communication link that needs to be maintained is also two, i.e., communication link 1 and communication link 2, for the IoT management platform. Therefore, in the technical scheme of the embodiment of the application, the communication link which needs to be maintained by the IoT management platform is not added, so that the link maintenance cost of the IoT management platform is saved, the service pressure of the IoT management platform is relieved, and meanwhile, the mobile terminal is conveniently managed.
The structure of the bicycle illustrated in fig. 3, 4 or 5 will now be described.
Please refer to fig. 6, which is a schematic structural diagram of a bicycle according to an embodiment of the present application. As shown in fig. 6, the bicycle is provided with a processor, a GPS chip, a communication chip, a memory, and the like.
The processor may be configured to determine whether the device is currently located in a local area network (described below) of the gateway device.
A GPS chip that can be used for tracking a position, calculating a trip (i.e., a trip), and the like; or the GPS chip sends the geographical position information to the processor, and the processor calculates the journey.
The communication chip can realize data transmission with other devices such as mobile phones, gateway devices and the like. The communication chip may include a wireless communication module (such as a wifi chip, an antenna, etc.), and/or a mobile communication module (such as a SIM card, also referred to as an internet card, an antenna, etc.). When the communication chip includes wireless communication module and mobile communication module, different communication chips can switch, for example when the bicycle is in local area network, can be connected with gateway equipment through the wifi chip, and then realize being connected with IOT management platform. When the bicycle is determined to have moved out of the local area network, the bicycle is connected with the IOT management platform through the mobile communication module.
The memory is configured to store an Internet Protocol Address (IP Address for short), a Media Access Control Address (MAC Address for short) of the gateway device, and the like. For example, the processor determines to move out of the local area network when detecting that the MAC address of the currently connected gateway device is different from the MAC address stored in the memory.
Of course, the bicycle may also include more or fewer components than shown in fig. 6, such as, for example, a battery, a timer (for counting usage time), etc.
The structure of the handset shown in fig. 3 is described below.
Fig. 7 is a schematic structural diagram of a mobile phone 100 according to an embodiment of the present disclosure.
The cellular phone 100 may include a processor 110, an antenna 1, an antenna 2, a mobile communication module 151, a wireless communication module 152, a sensor module 180, keys 190, a display 194, and the like. Wherein the sensor module 180 may include a touch sensor 180K.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the mobile phone 100. In other embodiments of the present application, the handset 100 may include more or fewer components than shown, or some components may be combined, some components may be separated, or a different arrangement of components may be used. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The components of the handset 100 shown in figure 7 are described below.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors. The controller may be a neural center and a command center of the cell phone 100, among others. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
The communication function of the mobile phone 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to the handset 100. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the mobile phone 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
The function of the sensor module 180 is described below.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the mobile phone 100, different from the position of the display 194.
The touch sensor 180K may assist the processor 110 in determining whether it is currently within range of the local area network. Taking the touch screen of the mobile phone 100 as an example to display a main interface, the main interface includes icons of a plurality of applications, such as a pay application, a setup application, a WeChat application, a QQ application, and the like. The touch sensor 180K may detect a touch operation of a user on the touch screen and send the touch operation to the processor 110, and the processor 100 may determine an icon corresponding to the touch operation based on the touch operation, that is, determine an application to be clicked by the user. Assuming that the processor 110 determines that the user clicks the pay bank application based on the touch operation, and further, the processor 110 detects that the user clicks a scan control in the pay bank through the touch sensor 180K, the mobile phone 100 displays a scan frame and activates the camera 193.
Similarly, the mobile phone 100 may also receive an input operation through the keys 190 and transmit the input operation to the processor 110, and the processor 110 determines an icon corresponding to the input operation, such as a pay-for-treasure application. The processor 110 may also determine that the user clicks a scan control in the payment instrument based on the input operation received by the button 190, and the processor 110 activates the camera 193.
The camera 193 is used to capture an image, or scan a two-dimensional code, a barcode, or the like. Taking the two-dimensional code as an example, after the camera 193 scans the two-dimensional code, information in the two-dimensional code, such as a bicycle number, is obtained and sent to the processor 110. The processor 110 sends a request unlocking instruction for requesting unlocking the bicycle to the IOT management platform through the mobile communication module 151 or the wireless communication module 152, where the instruction may carry a bicycle number.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the cell phone 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The display screen 194 is used for displaying a display interface of an application, for example, a display interface of a payment treasure, and the display interface may include payment information and the like, a usage duration of a bicycle, and the like.
Although not shown in fig. 7, the handset 100 may have other components. For example, fingerprint sensor, audio module (speaker, receiver, microphone, earphone interface), etc., this application embodiment need not be repeated.
As can be seen from the foregoing fig. 5, in the embodiment of the present application, when the bicycle is not in the lan of the gateway device, the bicycle is still connected to the gateway device, but since the bicycle is not already in the lan, the bicycle cannot be connected to the gateway device through the intranet, so that the bicycle may establish other connection modes with the gateway device, such as peer-to-peer (P2P for short), and the like. In this way, the bike may still establish a connection with the IoT platform through the gateway device when not in the local area network of the gateway device. Hereinafter, the connection of the bicycles and the gateway device through P2P is taken as an example, but the present application is not limited to the P2P connection.
The implementation of the application scenario shown in fig. 5 will be described below by taking the bicycle shown in fig. 6 and the mobile phone shown in fig. 7 as examples.
A two-dimensional code is set on the bicycle, when the mobile phone 100 scans the two-dimensional code (for example, a specific app in the mobile phone 100 scans the two-dimensional code), the relevant information (for example, a bicycle number) of the bicycle carried in the two-dimensional code is obtained, and the mobile phone 100 sends an unlocking request to the gateway device through the mobile communication module 151 or the wireless communication module 152, where the unlocking request carries the bicycle number. The gateway device sends an unlock request to the IoT management platform. And the IoT management platform issues an unlocking instruction to the gateway equipment, wherein the unlocking instruction carries a bicycle number and an unlocking password. The gateway device issues an unlocking instruction to the bicycle (receiving the unlocking instruction through the intranet, see the related description of the embodiment shown in fig. 4 for details), and after receiving the unlocking instruction, the communication chip in the bicycle sends a processor, and the processor controls unlocking of the bicycle.
The GPS chip in the bicycle can detect the current location information in real time, and then the communication chip reports the trip to the gateway device (reporting through the intranet, specifically please refer to the related description of the embodiment shown in fig. 4), and the gateway device reports the trip to the IoT management platform.
When the bike determines that it has moved out of range of the gateway device's local area network, the bike establishes a p2p connection with the gateway device. Thus, the bike may still communicate with the gateway device when outside the local area network range of the gateway device. The process of determining that the bicycle has moved out of range of the lan, and the process of establishing a p2p connection with the gateway device, will be described later.
Outside the local area network of the gateway device, the bicycles still report the journey to the IoT management platform through the gateway device. When the handset 100 sends an instruction to end the journey to the IoT management platform (the instruction to end the journey is sent through the mobile communication module 151 or the wireless communication module 152), the IoT management platform sends the fee payment information to the handset 100.
Please refer to fig. 8A, which is a flowchart illustrating a communication method according to an embodiment of the present application. The method may be applied to the application scenario shown in fig. 5, or a similar application scenario. As shown in fig. 8A, the process includes:
s801: the gateway device establishes a path link 1 with the IoT management platform.
In this embodiment of the present application, there may be multiple connection manners between the gateway device and the IoT management platform, for example, the gateway device and the IoT management platform may establish an IP connection, a TCP connection, and the like, which is not limited in this embodiment of the present application. It should be noted that, after the gateway device establishes a connection with the IoT management platform, a communication connection (hereinafter, referred to as a long connection) may be maintained for a long time. Because the bicycle reports information to the IoT management platform through the gateway device in real time, that is, the gateway device needs to perform data transmission with the IoT management platform in real time, after the gateway device establishes connection with the IoT management platform, the connection can be uninterrupted in a short time, and a long connection can be maintained.
S802: the gateway equipment sends a first request to an extranet server, wherein the first request is used for requesting to acquire an available extranet address and an available port number.
As can be seen from the foregoing fig. 4, to implement data communication with the IoT management platform, the gateway device needs to obtain an extranet address and a port number. Thus, the gateway device may request from the extranet server to obtain the first extranet address and the first port number.
S803: the extranet server sends the first extranet address and the first port number to the gateway device.
S804: the gateway equipment sends a registration request to the IoT management platform, wherein the registration request carries a first external network address and a first port number.
S805: and the IoT management platform sends response information of successful registration to the gateway device.
It should be understood that each gateway device may perform S802-S805 once, i.e., each gateway device may register the foreign network address and port number at the IoT management platform, which stores it for use. Specifically, the IoT management platform may store a correspondence between a device identification of each gateway device and an extranet address, a port number. For example, please refer to table 1 below, which stores the extranet address and port number of each gateway device for the IoT management platform. In table 1, the device identifier of the gateway device is an MAC address as an example, but the embodiment of the present application is not limited to this.
TABLE 1
Device identification of gateway device External network address Port number
MAC Address 1 Extranet IP1 Port number 1
MAC Address 2 Extranet IP2 Port No. 2
S806: and the bicycle judges that the bicycle is currently located in the range of the preset local area network of the gateway equipment.
Optionally, S806 has multiple implementation manners, for example, when the bicycle is first accessed within the range of the local area network of one gateway device, the MAC address of the gateway device is stored, that is, the first accessed gateway device is the preset gateway device. The bike stores the MAC address of the pre-set gateway device for use.
And if the bicycle determines that the MAC address of the currently connected gateway device is consistent with the stored MAC address, determining that the bicycle is positioned in a preset local area network of the gateway device. For example, the gateway device may broadcast information (e.g., broadcast information in a range covered by the gateway device), where the broadcast information carries a MAC address of the gateway device. When the bicycle enters the range covered by the preset gateway equipment, the bicycle can receive the broadcast information of the gateway equipment and acquire the MAC address of the gateway equipment carried in the broadcast information.
For another example, as can be seen from the foregoing, when a bicycle is within the range of the lan of a gateway device, the gateway device will assign an IP address to the bicycle, and if the IP address is not changed, the bicycle is within the range of the lan.
The preset gateway device may have other determination methods besides the gateway device that can be accessed for the first time, which will be described later.
The execution sequence of S801 to S806 is not limited in the embodiment of the present application.
S807: the bicycle is connected with the gateway equipment through the intranet. When the gateway device receives the data sent by the mobile terminal through the intranet, the data are sent to the IoT management platform by using the communication link 1 established before, so that data transmission between the bicycle and the IoT management platform is realized.
Please refer to the related description of the embodiment shown in fig. 3 and 4 for the communication between the bicycle and the IoT management platform when the bicycle is within the range of the local area network, which is not repeated herein.
S808: and the bicycle is determined to be moved out of the range of the local area network covered by the preset gateway equipment currently.
Optionally, there are multiple implementations of S808. As an example, the bicycle detects that the current network system is switched. For example, the wireless network system is switched to a mobile communication network system (such as 3G and 4G), that is, the bicycle is moved out of the local area network.
As another example, the bicycle detects that the current IP address changes, and fig. 4 shows that the gateway device assigns an IP address to the bicycle when the bicycle is in the lan, and the IP address of the bicycle changes when the bicycle is moved out of the lan. Therefore, the bicycle can judge to move out of the local area network by detecting the change of the IP address.
As yet another example, the bike compares the MAC address of the currently connected gateway device to a stored MAC address for consistency, and if not, movement out of the lan is indicated. For example, after the bicycle moves out of the local area network of the preset gateway device, when the bicycle enters the range covered by another gateway device, the bicycle can receive the broadcast information of the other gateway device, acquire the MAC address carried in the broadcast information, compare the MAC address with the stored MAC address, and if the MAC address is inconsistent, determine to move out of the local area network range of the preset gateway device.
Of course, several implementations of S808 described above may be used in combination to improve accuracy. For example, please refer to fig. 8B. The bicycle firstly judges whether the current network system is a cellular network system such as 3G/4G/5G, if so, the local area network of the gateway equipment is moved out, if not, whether the MAC address of the currently connected gateway equipment is consistent with the stored MAC address is further judged, if so, the currently connected gateway equipment is determined to be in the range of the local area network of the gateway equipment, and if not, the local area network of the gateway equipment is moved out.
For another example, although the bicycle detects that the network system is switched, the bicycle is switched from the first wireless network system (for example, WiFi2.4GHz) to the second wireless network system (for example, WiFi 5GHz), that is, the bicycle is still in a wireless environment, and the bicycle can further determine whether the MAC address of the currently connected gateway device is consistent with the stored MAC address, if not, the bicycle is moved out of the local area network.
It should be understood that when the bicycle is not within the range of the preset lan of the gateway device, the bicycle cannot be connected to the gateway device through the intranet, and can only be connected to the gateway device through other means such as P2P connection or the like. Take the P2P connection as an example. To establish a P2P connection with a gateway device, the bike needs to know its own extranet address and port number, as well as the extranet address and port number of the gateway device.
Therefore, when the bicycle detects that it is currently moved out of the local area network of the preset gateway device, it requests the extranet server to acquire its extranet address and port number, and also requests the IoT management platform to acquire the extranet address of the gateway device (because each gateway device registers the extranet address and port number at the IoT management platform).
S809: and the bicycle sends a second request to the extranet server, wherein the second request is used for requesting to acquire an available extranet address and a port number.
S810: and the extranet server sends a second extranet address and a second port number to the bicycle.
In the foregoing S804-S805, the gateway device registers the foreign network address and the port number in the IoT management platform. Thus, the bike may obtain the extranet address and port number of the gateway device from the IoT management platform.
S811: and the bicycle sends a third request to the IoT management platform, wherein the third request is used for requesting to acquire the external network address and the port number of the gateway equipment, and the third request carries the MAC address of the gateway equipment.
S812: the IoT management platform determines first external network address information based on a corresponding relation between the MAC address and the external network address information, wherein the first external network address information corresponds to the MAC address of the gateway equipment.
Note that the IoT management platform stores the external network addresses and port numbers of a plurality of gateway devices. Therefore, the bicycle sends the third request to the IoT management platform that may carry the stored MAC address of the gateway device. After receiving the third request, the IoT management platform determines, based on the MAC address in the third request, the extranet address and the port number corresponding to the MAC address from table 1.
S813: the IoT management platform sends the first extranet address and the first port number of the gateway device to the bicycle.
S814: the bicycle sends a p2p connection request to the gateway device, wherein the request carries a second external network address and a second port number;
s815: the bike receives the response message sent by the gateway device indicating agreement to establish the p2p connection.
It should be understood that, in the foregoing process, the bicycle obtains the extranet address and the port number of the gateway device from the IoT management platform, and then the bicycle can send a message to the gateway device (taking fig. 3 as an example, the gateway device knows the extranet address and the port number of the IoT management platform, and when sending the message to the IoT management platform, the message carries the destination IP and the destination port, so that the message is sent to the IoT management platform). However, if two devices establish a P2P connection, the external network address and the port number of the opposite terminal need to be known, so in this embodiment of the application, after the bicycle knows the external network address and the port number of itself, the bicycle can send the external network address and the port number of itself to the gateway device, so as to establish the P2P connection.
S816: the mobile phone scans the two-dimensional code to obtain the identification information of the bicycle, such as the number of the bicycle.
For example, the mobile phone scans the two-dimensional code through a specific app (such as a Payment device) to obtain the number of the bicycle.
S817: the mobile phone sends a request unlocking request to the IoT management platform, wherein the unlocking request carries a bicycle number.
For example, the connection established between the handset and the IoT management platform may be maintained for a short time. For example, the mobile phone may establish a connection with the IoT management platform only when an unlock request is sent to the IoT management platform using a specific app or when an end-of-travel instruction is sent to the IoT management platform, and the mobile phone may disconnect from the IoT management platform the rest of the time.
S818: the IoT management platform issues an unlocking instruction (carrying a bicycle number and an unlocking password) to the gateway equipment through the existing communication link 1. And the gateway equipment issues an unlocking instruction to the bicycle.
It should be noted that, the unlocking instruction issued by the IoT management platform to the gateway device carries the serial number of the bicycle, so that after receiving the unlocking instruction, the gateway device knows which bicycle should be issued with the unlocking instruction, and therefore the gateway device sends the unlocking instruction to the bicycle.
S819: and the bicycles report the journey to the IoT management platform through the gateway equipment.
S820: the handset sends an instruction to the IoT management platform indicating an end of travel.
S821: the IoT management platform sends a usage cost indication to the handset.
The embodiment shown in fig. 5 and 8A differs from that shown in fig. 4 in that: in fig. 4, when the mobile terminal is within the range of the lan, there is an intranet connection between the mobile terminal and the gateway device (the mobile terminal does not need to know the address of the extranet). When the mobile terminal moves out of the range of the local area network, the mobile terminal is directly connected with the IoT management platform, and the process increases the communication link which needs to be maintained by the IoT management platform. However, in the embodiment of the present application, when the mobile terminal moves out of the range of the local area network, the mobile terminal is not directly connected to the IoT management platform, but is still connected to the gateway device, but because the mobile terminal is not located in the range of the local area network covered by the gateway device, the mobile terminal cannot be connected to the gateway device through the intranet. Accordingly, the mobile terminal may establish a P2P connection with the gateway device. To connect with the gateway device P2P, the mobile terminal needs to know the external network address and port number of the opposite terminal. Therefore, compared with the prior art, the process shown in fig. 8A has a process in which the gateway device registers the extranet address in the IoT management platform, and a process in which the bicycle acquires the extranet address of the gateway device from the IoT management platform and informs the gateway device of the extranet address of the bicycle itself, so that the bicycle and the gateway device establish a P2P connection. In the process, the number of communication links between the gateway device and the IoT management platform is not increased, and the management cost of the IoT management platform is saved.
An example is described below, please refer to fig. 9, which is a diagram illustrating an example of a management method for a mobile terminal according to an embodiment of the present application. As shown in fig. 9, the bicycle was connected to the IoT management platform through the school's gateway device during the last time period (communication link 1). In the next period of time, the bicycle was moved from school to square, and according to the prior art scheme, the bicycle was directly connected to the IoT management platform. However, in the embodiment of the present application, the bike still establishes a connection with the IoT management platform through the gateway device of the school (the bike establishes a P2P connection with the IoT management platform). When the mobile phone 100 moves out of the range of the local area network, the mobile phone is not directly connected with the IoT management platform, and the number of communication links is not increased, which is beneficial to saving cost.
It should be noted that, in the embodiments shown in fig. 5 and fig. 8A, after the bicycle is moved out of the local area network, the bicycle is connected to the IoT management platform through a preset gateway device. In some embodiments, the preset gateway device may be fixed, for example, before the bicycle leaves the factory. The bicycle manufacturer sets up the fixed gateway device for each bicycle and stores the MAC address of the fixed gateway device in the memory of the bicycle. For example, after the bicycle leaves the factory, the gateway device connected for the first time is determined as the fixed gateway device, and the bicycle stores the MAC address of the gateway device. For example, the fixed gateway device of the bicycle may also be manually specified, such as the user may manually configure the MAC address of the fixed gateway device in the bicycle, such as the user assigns the fixed gateway device to the bicycle via a mobile phone (described later), and for example, the IoT management platform may also assign the gateway device to the bicycle.
In other embodiments, the predetermined gateway device may also be dynamically changed, for example, every time a bicycle enters a lan of a new gateway device, the stored MAC address of the gateway device is updated to the MAC of the new gateway device (as described above, the gateway device may broadcast the MAC address). In this embodiment, when the bicycle moves out of the local area network, it can connect with the IoT management platform through the last connected gateway device.
Fig. 10 is a schematic view of another application scenario provided in the embodiment of the present application. As shown in fig. 10, the application scenario includes: an IoT management platform, a gateway device 1, and a gateway device 2. As shown in fig. 10 (a), for the IoT management platform, there are three communication links to be maintained, namely, communication link 1, communication link 2, and communication link 3. When the bike 2 is removed from the local area network of the gateway device 1, it is still connected to the IoT management platform through the gateway device 1. When the gateway device comes within the range of the local area network of the gateway device 2, the bicycle will store the MAC address of the gateway device 1 as the MAC address of the gateway device 2. Therefore, when the bicycle moves out of the range of the local area network of the gateway device 2, the bicycle is connected to the IoT management platform through the gateway device 2, please refer to (b) in fig. 10. In this embodiment, for the IoT management platform, the number of communication links that need to be maintained is still three, and the number of communication links that need to be maintained is not increased.
In the application scenario shown in fig. 10, the stored MAC address is updated to the MAC address of the new gateway device each time a bicycle 2 comes within range of the local area network of the new gateway device. Therefore, when the bicycle 2 is not in the local area network covered by the gateway device (for example, when entering the mobile communication network 4G), the bicycle is connected to the IoT management platform through the last connected gateway device.
An example is described below, please refer to fig. 11, which is a diagram illustrating an example of a management method for a mobile terminal according to an embodiment of the present application. As shown in fig. 11, the bicycle is in the school, and communicates with the IoT management platform through the school's gateway device. When a bicycle moves from school to company, the bicycle establishes a connection with the IoT management platform through the company's gateway device. When a bicycle moves from the company to the square, the cell phone 100 establishes a connection with the IoT management platform through the company's gateway device. In short, when the mobile phone 100 is not in the range of the local area network, it is connected to the IoT management platform through the last connected gateway device.
In still other embodiments, the gateway device may also be provided via a cell phone. Continuing with the example of a bicycle, after a payer in a mobile phone scans a two-dimensional code of the bicycle, a fixed gateway device of the bicycle may be set in the app.
The following describes the process of setting up a fixed gateway device by a mobile phone.
Fig. 12 is a schematic view of a display interface of a mobile phone according to an embodiment of the present application. As shown in fig. 12, the mobile phone displays a display interface of the gateway device setting app (such as a pay pal). The display interface can be an interface displayed after the mobile phone scans the two-dimensional code arranged on the bicycle.
The setting interface includes identification information of a plurality of gateway devices. The user may select one of the gateway devices as a fixed gateway device (e.g., the user selects a TDCD, clicks the "ok" control, and sets the TDCD as the fixed gateway device). After the mobile phone 100 selects the fixed gateway device, the MAC address of the fixed gateway device is sent to the bicycle (for example, the MAC address is sent to the IOT management platform, and the IOT management platform sends the MAC address to the bicycle, for example, the MAC address is issued to the bicycle through the original gateway device). The bike stores the MAC address of the gateway device.
It should be noted that the gateway device setting app shown in fig. 12 may be a single app for setting a fixed gateway device in the mobile phone, for example, the mobile phone is set when it leaves the factory. Of course, the function for setting the fixed gateway device may also be integrated in other apps (such as a pay-for-your-use app), and the embodiment of the present application is not limited.
In other embodiments of the present application, the bicycle may also determine a distance between the current location and the fixed gateway device. As an example, when the distance is greater than a preset distance, the bicycle may prompt the user to reset the fixed gateway device. For example, a bicycle moves from a hai lake area to an eastern city area, and if the fixed gateway device set by the bicycle is the gateway device of the hai lake area, after the bicycle moves to the eastern city area, the user is prompted to reset a new gateway device. As another example, when the distance is greater than the preset distance, the bicycle may update the gateway device by itself, such as when the bicycle moves from the hai lake area to the eastern city area, and when the bicycle moves to the eastern city area, a connection is established with the gateway device of the eastern city area, assuming that the fixed gateway device provided by the bicycle is the gateway device of the hai lake area. The bicycle can prompt to reset the new gateway equipment by self, and can also prompt to reset the new gateway equipment through a mobile phone. For example, the mobile phone may prompt the user to set a new gateway device through the app shown in fig. 12, and of course, the mobile phone may output a prompt message in a notification bar or other location. The prompt message may be a text message, a voice message, etc., and the embodiment of the present application is not limited.
As another example, a bicycle manufacturer may also remotely set up a fixed gateway device for a bicycle. For example, a bicycle manufacturer (e.g., a yellow bike manufacturer) may maintain communication with the bicycle, and when the bicycle detects that the distance between the current location and the fixed gateway device is greater than a preset distance, a prompt is sent to the bicycle manufacturer to replace the fixed gateway device, and the bicycle is reassigned by the manufacturer. Certainly, the bicycle manufacturer can also manage the number of the bicycles accessed by each gateway device, so that more bicycles managed by some gateway devices are avoided, fewer bicycles managed by some gateway devices are avoided, and balance is realized.
As can be seen from the above description, in the solution provided in the embodiment of the present application, when the mobile terminal is not in the range of the local area network of the gateway device, the mobile terminal does not need to be directly connected to the IoT management platform, but still is connected to the IoT management platform through a certain gateway device. The gateway device may be a gateway device to which the mobile terminal is connected last time, or a preset fixed gateway device. In this way, for the IoT management platform, data of the communication link which needs to be maintained is not added, and cost is saved.
In practical applications, the design idea of the communication method in the embodiment of the present invention may also be applied to a non-internet of things, and may also be applied to other networks similar to the scenarios shown in fig. 5 or fig. 10, and the embodiment of the present invention is not limited in particular.
The various embodiments of the present application can be combined arbitrarily to achieve different technical effects.
In the embodiments provided in the present application, the method provided in the embodiments of the present application is described from the perspective of the terminal device (the mobile phone 100) as an execution subject. In order to implement the functions in the method provided by the embodiment of the present application, the terminal may include a hardware structure and/or a software module, and implement the functions in the form of a hardware structure, a software module, or a hardware structure and a software module. Whether any of the above-described functions is implemented as a hardware structure, a software module, or a hardware structure plus a software module depends upon the particular application and design constraints imposed on the technical solution.
The following describes the apparatus provided by the embodiment of the present invention with reference to the drawings.
Fig. 13 shows a schematic structure diagram of a mobile terminal 1300. The mobile terminal 1300 may implement the functions of the mobile terminal referred to above. The mobile terminal 1300 may include a memory 1301, a processor 1302, and a transceiver 1303. The memory 1301, the processor 1302, and the transceiver 1303 are connected by a bus. The memory 1301 is used to store computer instructions that, when executed by the processor 1302, the processor 1302 may perform S806, S808 in the embodiment shown in fig. 8A, and/or other processes for supporting the techniques described herein. The processor 1302 may further execute instructions stored in the memory 1301 to trigger the transceiver 1303 to perform an operation of establishing a communication connection with another device, for example, to trigger the transceiver 1303 to perform an operation of establishing a communication connection with a gateway device.
The transceiver 1303 can be used for transceiving data transmitted by other devices. For example, the transceiver 1303 may include a receiver and a transmitter. Among other things, the transmitter may be used to perform S807, S809, S811, S815, S819 in the embodiment shown in fig. 8A, and/or other processes for supporting the techniques described herein. The receiver may be used to perform S807, S810, S813, S815, S818 in the embodiment shown in fig. 8A, and/or other processes for supporting the techniques described herein. All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
When the mobile terminal 1300 shown in fig. 13 is the bicycle shown in fig. 6, the processor 1301 can be a processor in the bicycle and the transceiver 1302 can be a communication chip in the bicycle.
Fig. 14 shows a schematic structural diagram of a gateway device 1400. The gateway device 1400 may implement the functionality of the gateway device referred to above. The gateway device 1400 may include a memory 1401, a processor 1402, and a transceiver 1403. Wherein the memory 1401, the processor 1402, and the transceiver 1403 are connected by a bus. The memory 1401 is used for storing computer instructions which, when executed by the processor 1402, trigger the transceiver 1403 to establish a communication connection with another device, such as a mobile terminal, by triggering the transceiver 1403 to establish a communication connection with the mobile terminal.
The transceiver 1303 can also be used for transceiving data transmitted by other devices. Such as transceiver 1403 may include a receiver and a transmitter. Among other things, the transmitter may be used to perform S802, S804, S815, S818, S819 in the embodiment shown in fig. 8A, and/or other processes for supporting the techniques described herein. The receiver may be used to perform S803, S805, S814, S818, S819 in the embodiment shown in fig. 8A, and/or other processes for supporting the techniques described herein. All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
Fig. 15 shows a schematic structural diagram of an IoT management platform 1500. IoT management platform 1500 may implement the functionality of the IoT management platform referenced above. The IoT management platform 1500 may include a processing unit 1501, a receiving unit 1502, and a transmitting unit 1503. Processing unit 1501 may be used, among other things, to perform S812 in the embodiment shown in fig. 8A, and/or other processes for supporting the techniques described herein. The receive unit 1501 may be used to perform S804, S811, S817, S819, S820 in the embodiment shown in fig. 8A, and/or other processes for supporting the techniques described herein. The sending unit 1503 may be used to perform S805, S813, S818, S821 in the embodiment shown in fig. 8A, and/or other processes for supporting the techniques described herein. All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
In the embodiment of the present invention, the IoT management platform 1500 may be presented in a form of dividing each functional module according to each function, or may be presented in a form of dividing each functional module in an integrated manner. A "module" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that may provide the described functionality.
In a simple embodiment, one skilled in the art may think that any one of the apparatuses in the IoT management platform 1500 may also be implemented by the structure shown in fig. 16.
As shown in fig. 16, IoT management platform 1600 may include: memory 1601, processor 1602, and communication interface 1604. The processor 1602, the memory 1601, and the transceiver 1604 are connected by a bus. Memory 1601 is used to store computer executable instructions that when executed by transceiver 1600, processor 1602 executes to cause IoT management platform 1600 to perform S812 as shown in the embodiment shown in fig. 8A. For a specific method, reference may be made to the above description and the related description in the drawings, which are not repeated herein.
The transceiver 1604 may include a receiver and a transmitter. Among other things, the receiver may be used to perform S804, S811, S817, S819, S820 in the embodiment shown in fig. 8A, and/or other processes for supporting the techniques described herein. The transmitter may be used to perform S805, S813, S818, S821 in the embodiment shown in fig. 8A, and/or other processes for supporting the techniques described herein.
Alternatively, IoT management platform 1600 may be a field-programmable gate array (FPGA), an Application Specific Integrated Circuit (ASIC), a system on chip (SoC), a Central Processing Unit (CPU), a Network Processor (NP), a digital signal processing circuit (DSP), a Microcontroller (MCU), or a programmable logic controller (PLD) or other integrated chip.
An embodiment of the present invention further provides a computer-readable storage medium, where the storage medium may include a memory, where the memory may store a program, and the program includes all or part of the steps of the mobile terminal described in the method embodiment shown in fig. 8A when executed; alternatively, the program includes all or part of the steps of the gateway device described in the method embodiment shown in fig. 8A when executed; alternatively, the program may execute all or part of the steps of the IoT management platform as described in the method embodiment shown in fig. 8A.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to a determination of …" or "in response to a detection of …", depending on the context. Similarly, depending on the context, the phrase "at the time of determination …" or "if (a stated condition or event) is detected" may be interpreted to mean "if the determination …" or "in response to the determination …" or "upon detection (a stated condition or event)" or "in response to detection (a stated condition or event)".
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), among others.
The foregoing description, for purpose of explanation, has been described with reference to specific embodiments. However, the exemplary discussions above are not intended to be exhaustive or to limit the application to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best utilize the application and various embodiments with various modifications as are suited to the particular use contemplated.
In the embodiments provided in the present application, the method provided in the embodiments of the present application is introduced from the perspective of the terminal device as an execution subject. In order to implement the functions in the method provided by the embodiment of the present application, the terminal device may include a hardware structure and/or a software module, and implement the functions in the form of a hardware structure, a software module, or a hardware structure and a software module. Whether any of the above-described functions is implemented as a hardware structure, a software module, or a hardware structure plus a software module depends upon the particular application and design constraints imposed on the technical solution.

Claims (35)

1. A method of communication, the method comprising:
the mobile terminal detects that the mobile terminal is not positioned in the local area network of the gateway equipment; the gateway equipment and an IoT management platform establish a first communication connection;
the mobile terminal sends a first request to the IoT management platform, wherein the first request carries the MAC address of the gateway equipment;
the mobile terminal receives first external network address information sent by the IoT management platform; the first extranet address information is determined by the IoT management platform based on a corresponding relation between MAC addresses and extranet address information, and the first extranet address information corresponds to the MAC address of the gateway device;
the mobile terminal acquires second external network address information of the mobile terminal;
the mobile terminal executes the operation of establishing second communication connection with the gateway equipment according to the first external network address information and the second external network address information;
the second communication connection and the first communication connection are used for realizing communication between the mobile terminal and the IoT management platform.
2. The method of claim 1, wherein the mobile terminal detecting that it is not within range of the local area network of the gateway device comprises:
the mobile terminal detects that the wireless local area network communication mode is switched to the cellular mobile communication mode; or
The mobile terminal detects that the IP address changes; or;
the mobile terminal detects that the MAC address of the currently connected gateway device is inconsistent with the stored MAC address of the gateway device.
3. The method of claim 1 or 2, wherein the first external network address information comprises a first external network IP and a first port number; the second extranet address information includes a second extranet IP and a second port number.
4. The method of any of claims 1-3, wherein the method further comprises:
the mobile terminal receives a control instruction through the gateway equipment; the control instruction is used for controlling the mobile terminal,
the control instruction is a control instruction generated by the IoT management platform based on a second request sent by another mobile terminal.
5. The method of claim 4, wherein the second request is for requesting unlocking of the mobile terminal; the control instruction is used for unlocking the mobile terminal.
6. The method of any of claims 1-5, wherein the method further comprises:
the terminal equipment determines that the distance between a current first geographical position and a second geographical position of the gateway equipment is greater than a preset distance;
the mobile terminal sends a third request to the IoT management platform, wherein the third request carries the MAC address of another gateway device;
the mobile terminal receives third external network address information sent by the IoT management platform; the third foreign network address is determined by the IoT management platform based on the correspondence, the third foreign network address corresponding to a MAC address of the other gateway device;
the mobile terminal executes the operation of establishing third communication connection with the other gateway equipment according to the first external network address information and the third external network address information;
the third communication connection and the first communication connection are used for realizing communication between the mobile terminal and the IoT management platform.
7. A method of communication, the method comprising:
the gateway equipment and the IoT management platform establish a first communication connection;
the gateway equipment acquires first external network address information of the gateway equipment;
the gateway equipment receives second external network address information sent by the mobile terminal;
the gateway equipment executes the operation of establishing second communication connection with the mobile terminal based on the first external network address information and the second external network address information;
wherein the second communication connection and the first communication connection are used for realizing communication between the mobile terminal and the IoT management platform, and the mobile terminal is not in a local area network of the gateway device.
8. The method of claim 7, wherein the first extranet address information includes a first extranet IP and a first port number; the second extranet address information includes a second extranet IP and a second port number.
9. The method of claim 7 or 8, wherein the method further comprises:
the gateway device receives a control instruction sent by the IoT management platform, wherein the control instruction is an instruction generated by the IoT management platform based on a request sent by another mobile terminal; the control instruction comprises a device identifier of the mobile terminal, and the control instruction is used for controlling the mobile terminal;
and the gateway equipment sends the control instruction to the mobile terminal based on the equipment identification.
10. A method according to any of claims 7-9, wherein the request sent by the other mobile terminal is for requesting unlocking of the mobile terminal; the control instruction is used for unlocking the mobile terminal.
11. The method of any of claims 7-10, wherein after the gateway device obtains its first external network address information, the method further comprises:
the gateway equipment sends a registration request to the IoT management platform, wherein the registration request carries the MAC address of the gateway equipment and the first external network address information;
when the IoT management platform receives a request sent by the mobile terminal, based on the MAC address of the gateway device carried in the request, sending first external network address information of the gateway device to the mobile terminal, wherein the first external network address information is used for the mobile terminal to execute the operation of establishing the second communication connection with the gateway device.
12. A management method of a mobile terminal, the method comprising:
the method comprises the steps that an IoT management platform of the Internet of things establishes a first communication connection with gateway equipment;
the IoT management platform receives a first request sent by a mobile terminal, wherein the first request carries the MAC address of the gateway equipment; the mobile terminal is not positioned in the local area network of the gateway equipment;
the IoT management platform determines first external network address information based on a corresponding relation between MAC addresses and the external network address information, wherein the first external network address information corresponds to the MAC address of the gateway equipment;
the IoT management platform sends the first external network address information to the mobile terminal, and the mobile terminal executes operation of establishing second communication connection with the gateway equipment based on second external network address information of the mobile terminal and the first external network address information;
the second communication connection and the first communication connection are used for realizing communication between the IoT management platform and the mobile terminal.
13. The method of claim 12, wherein the first extranet address information includes a first extranet IP and a first port number; the second extranet address information includes a second extranet IP and a second port number.
14. The method of claim 12 or 13, wherein the method further comprises:
the IoT management platform receives a second request sent by another mobile terminal, wherein the second request carries the equipment identification of the mobile terminal;
the IoT management platform generating a control instruction based on the second request; the control instruction carries the equipment identification of the mobile terminal;
the IoT management platform sends the control instruction to the gateway device; and the gateway equipment sends the control instruction to the mobile terminal based on the equipment identification.
15. The method of claim 14, wherein the second request is for requesting unlocking of the mobile terminal; the control instruction is used for unlocking the mobile terminal.
16. The method of any of claims 12-15, wherein prior to the IoT management platform determining the first foreign network address information based on a correspondence between MAC addresses and foreign network address information, the method further comprises:
and the IoT management platform receives a registration request sent by the gateway equipment, wherein the registration request carries the MAC address of the gateway equipment and the first external network address information.
17. A mobile terminal, comprising: a processor and a transceiver;
the processor is used for detecting that the gateway device is not positioned in the local area network of the gateway device; the gateway equipment and an IoT management platform establish a first communication connection;
the transceiver is configured to send a first request to the IoT management platform, where the first request carries an MAC address of the gateway device;
the transceiver is further configured to receive first extranet address information sent by the IoT management platform; the first extranet address information is determined by the IoT management platform based on a corresponding relation between MAC addresses and extranet address information, and the first extranet address information corresponds to the MAC address of the gateway device;
the transceiver is also used for acquiring second external network address information of the transceiver;
the processor is further configured to trigger the transceiver to execute an operation of establishing a second communication connection with the gateway device according to the first external network address information and the second external network address information;
the second communication connection and the first communication connection are used for realizing communication between the mobile terminal and the IoT management platform.
18. The mobile terminal according to claim 17, wherein the processor, when being configured to detect that it is not within a range of a local area network of the gateway device, is specifically configured to:
detecting that the communication mode of the wireless local area network is switched to a cellular mobile communication mode; or
Detecting that the IP address changes; or;
and detecting that the MAC address of the currently connected gateway equipment is inconsistent with the stored MAC address of the gateway equipment.
19. The mobile terminal according to claim 17 or 18, characterized in that the first external network address information comprises a first external network IP and a first port number; the second extranet address information includes a second extranet IP and a second port number.
20. The mobile terminal of any of claims 17-19, wherein the transceiver is further configured to:
receiving a control instruction through the gateway device; the control instruction is used for controlling the mobile terminal,
the control instruction is a control instruction generated by the IoT management platform based on a second request sent by another mobile terminal.
21. The mobile terminal of claim 20, wherein the second request is for requesting unlocking of the mobile terminal; the control instruction is used for unlocking the mobile terminal.
22. The mobile terminal of any of claims 17-21, wherein the processor is further configured to:
determining that the distance between the current first geographical position and the second geographical position of the gateway equipment is greater than a preset distance;
the transceiver is further configured to send a third request to the IoT management platform, where the third request carries a MAC address of another gateway device;
the transceiver is further configured to receive third extranet address information sent by the IoT management platform; the third foreign network address is determined by the IoT management platform based on the correspondence, the third foreign network address corresponding to a MAC address of the other gateway device;
the processor is further configured to trigger the transceiver to execute an operation of establishing a third communication connection with the another gateway device according to the first external network address information and the third external network address information;
the third communication connection and the first communication connection are used for realizing communication between the mobile terminal and the IoT management platform.
23. A gateway device, wherein the gateway device and an internet of things (IoT) management platform establish a first communication connection; the gateway apparatus includes: a processor and a transceiver;
the transceiver is used for acquiring the first external network address information of the transceiver,
the receiver is also used for receiving second external network address information sent by the mobile terminal;
the processor is configured to trigger the transceiver to perform an operation of establishing a second communication connection with the mobile terminal based on the first external network address information and the second external network address information;
wherein the second communication connection and the first communication connection are used for realizing communication between the mobile terminal and the IoT management platform, and the mobile terminal is not in a local area network of the gateway device.
24. The gateway device of claim 23, wherein said first external network address information comprises a first external network IP and a first port number; the second extranet address information includes a second extranet IP and a second port number.
25. The gateway device of claim 23 or 24, wherein the transceiver is further configured to:
receiving a control instruction sent by the IoT management platform, wherein the control instruction is an instruction generated by the IoT management platform based on a request sent by another mobile terminal; the control instruction comprises a device identifier of the mobile terminal, and the control instruction is used for controlling the mobile terminal;
the processor is further configured to trigger the transceiver to send the control instruction to the mobile terminal based on the device identifier.
26. The gateway device according to any of claims 23-25, wherein the request sent by the further mobile terminal is for requesting unlocking of the mobile terminal; the control instruction is used for unlocking the mobile terminal.
27. The gateway device of any of claims 23-26, wherein said transceiver is further configured to: sending a registration request to the IoT management platform, wherein the registration request carries the MAC address of the gateway device and the first external network address information;
when the IoT management platform receives a request sent by the mobile terminal, based on the MAC address of the gateway device carried in the request, sending first external network address information of the gateway device to the mobile terminal, wherein the first external network address information is used for the mobile terminal to execute the operation of establishing the second communication connection with the gateway device.
28. An Internet of things (IoT) management platform, wherein the IoT management platform establishes a first communication connection with a gateway device; the IoT management platform comprises: a processing unit, a transmitting unit and a receiving unit;
the receiving unit is configured to receive a first request sent by a mobile terminal, where the first request carries an MAC address of the gateway device; the mobile terminal is not positioned in the local area network of the gateway equipment;
the processing unit is used for determining first external network address information based on the corresponding relation between the MAC address and the external network address information, and the first external network address information corresponds to the MAC address of the gateway equipment;
the sending unit is configured to send the first external network address information to the mobile terminal, and the mobile terminal executes an operation of establishing a second communication connection with the gateway device based on second external network address information of the mobile terminal and the first external network address information;
the second communication connection and the first communication connection are used for realizing communication between the IoT management platform and the mobile terminal.
29. The IoT management platform recited in claim 28, wherein the first extranet address information comprises a first extranet IP and a first port number; the second extranet address information includes a second extranet IP and a second port number.
30. The IoT management platform recited in claim 28 or 29, wherein the receiving unit is further configured to receive a second request sent by another mobile terminal, the second request carrying therein a device identifier of the mobile terminal;
the processing unit is further configured to generate a control instruction based on the second request; the control instruction carries the equipment identification of the mobile terminal;
the sending unit is further configured to send the control instruction to the gateway device; and the gateway equipment sends the control instruction to the mobile terminal based on the equipment identification.
31. The IoT management platform recited in claim 30, wherein the second request is to request unlocking of the mobile terminal; the control instruction is used for unlocking the mobile terminal.
32. The IoT management platform recited in any of claims 28-31, wherein the receiving unit is further to:
and receiving a registration request sent by the gateway equipment, wherein the registration request carries the MAC address of the gateway equipment and the first external network address information.
33. A communication system, the communication system comprising:
a mobile terminal as claimed in any one of claims 17 to 22, and
the gateway device of any one of claims 23-27.
34. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a computer, cause the computer to carry out the method according to any one of claims 1-16.
35. A computer program product, characterized in that the computer program product stores a computer program comprising program instructions which, when executed by a computer, cause the computer to carry out the method according to any one of claims 1-16.
CN201811647410.XA 2018-12-29 2018-12-29 Communication method and related equipment Pending CN111385341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811647410.XA CN111385341A (en) 2018-12-29 2018-12-29 Communication method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811647410.XA CN111385341A (en) 2018-12-29 2018-12-29 Communication method and related equipment

Publications (1)

Publication Number Publication Date
CN111385341A true CN111385341A (en) 2020-07-07

Family

ID=71218349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811647410.XA Pending CN111385341A (en) 2018-12-29 2018-12-29 Communication method and related equipment

Country Status (1)

Country Link
CN (1) CN111385341A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738281A (en) * 2021-03-31 2021-04-30 深圳佳兆业科技集团有限公司 Service calling system
CN113259996A (en) * 2021-05-17 2021-08-13 上海龙旗科技股份有限公司 IOT wireless debugging method and equipment
CN113747468A (en) * 2021-08-04 2021-12-03 武汉慧联无限科技有限公司 Control method of electronic device, LoRa gateway, electronic device and storage medium
CN114629907A (en) * 2022-03-25 2022-06-14 广州助蜂网络科技有限公司 Management and control method and device for parking lot equipment
CN115996237A (en) * 2021-10-15 2023-04-21 中煤科工集团智能矿山有限公司 Remote management method, processor and storage medium for terminal of Internet of things

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111458A (en) * 2009-12-23 2011-06-29 中国移动通信集团公司 Method and device for obtaining IP address of mobile terminal
CN102546154A (en) * 2011-12-19 2012-07-04 上海顶竹通讯技术有限公司 Mobile communication network and switching method of terminal
WO2013097757A1 (en) * 2011-12-28 2013-07-04 华为技术有限公司 Data transmission method and apparatus
CN104113530A (en) * 2014-06-26 2014-10-22 小米科技有限责任公司 Method and apparatus for router access
CN105635316A (en) * 2016-02-18 2016-06-01 果博斯(天津)科技有限公司 Control method for home terminal unit and server
CN106358189A (en) * 2016-09-05 2017-01-25 北京小米移动软件有限公司 Device and method for accessing wireless local area network
CN106559854A (en) * 2015-09-24 2017-04-05 成都鼎桥通信技术有限公司 The method and apparatus that mobile terminal accesses LTE network
CN106656813A (en) * 2016-12-13 2017-05-10 珠海市杰理科技股份有限公司 Data transmission method
CN107195061A (en) * 2017-07-07 2017-09-22 东峡大通(北京)管理咨询有限公司 The control method and system of a kind of intelligent bicycle lock, intelligent bicycle lock
CN107948677A (en) * 2016-10-13 2018-04-20 中国移动通信有限公司研究院 A kind of dispatching method, server and the first peer node
CN108615287A (en) * 2018-04-27 2018-10-02 成都西谷曙光数字技术有限公司 Low power-consumption intelligent lock administration system
CN108769292A (en) * 2018-06-29 2018-11-06 北京百悟科技有限公司 Message data processing method and processing device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111458A (en) * 2009-12-23 2011-06-29 中国移动通信集团公司 Method and device for obtaining IP address of mobile terminal
CN102546154A (en) * 2011-12-19 2012-07-04 上海顶竹通讯技术有限公司 Mobile communication network and switching method of terminal
WO2013097757A1 (en) * 2011-12-28 2013-07-04 华为技术有限公司 Data transmission method and apparatus
CN104113530A (en) * 2014-06-26 2014-10-22 小米科技有限责任公司 Method and apparatus for router access
CN106559854A (en) * 2015-09-24 2017-04-05 成都鼎桥通信技术有限公司 The method and apparatus that mobile terminal accesses LTE network
CN105635316A (en) * 2016-02-18 2016-06-01 果博斯(天津)科技有限公司 Control method for home terminal unit and server
CN106358189A (en) * 2016-09-05 2017-01-25 北京小米移动软件有限公司 Device and method for accessing wireless local area network
CN107948677A (en) * 2016-10-13 2018-04-20 中国移动通信有限公司研究院 A kind of dispatching method, server and the first peer node
CN106656813A (en) * 2016-12-13 2017-05-10 珠海市杰理科技股份有限公司 Data transmission method
CN107195061A (en) * 2017-07-07 2017-09-22 东峡大通(北京)管理咨询有限公司 The control method and system of a kind of intelligent bicycle lock, intelligent bicycle lock
CN108615287A (en) * 2018-04-27 2018-10-02 成都西谷曙光数字技术有限公司 Low power-consumption intelligent lock administration system
CN108769292A (en) * 2018-06-29 2018-11-06 北京百悟科技有限公司 Message data processing method and processing device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738281A (en) * 2021-03-31 2021-04-30 深圳佳兆业科技集团有限公司 Service calling system
CN113259996A (en) * 2021-05-17 2021-08-13 上海龙旗科技股份有限公司 IOT wireless debugging method and equipment
CN113747468A (en) * 2021-08-04 2021-12-03 武汉慧联无限科技有限公司 Control method of electronic device, LoRa gateway, electronic device and storage medium
CN113747468B (en) * 2021-08-04 2024-01-05 武汉慧联无限科技有限公司 Control method of electronic equipment, loRa gateway, electronic equipment and storage medium
CN115996237A (en) * 2021-10-15 2023-04-21 中煤科工集团智能矿山有限公司 Remote management method, processor and storage medium for terminal of Internet of things
CN115996237B (en) * 2021-10-15 2023-12-05 中煤科工集团智能矿山有限公司 Remote management method, processor and storage medium for terminal of Internet of things
CN114629907A (en) * 2022-03-25 2022-06-14 广州助蜂网络科技有限公司 Management and control method and device for parking lot equipment

Similar Documents

Publication Publication Date Title
US11134127B2 (en) Method and electronic device for providing multi-access edge computing service using multi-access edge computing discovery
CN111385341A (en) Communication method and related equipment
US11991260B2 (en) Dynamic service discovery and offloading framework for edge computing based cellular network systems
US20220166776A1 (en) Method for edge computing service and electronic device therefor
US20180115924A1 (en) Dynamic Exchange Of Wireless Communication Services
KR20160009618A (en) Method and apparatus for the virtualization of resources using a virtualization broker and context information
US20180167785A1 (en) Methods and aparatus for analyzing and grouping service layer subscriptions and notifcations for enhanced efficiency
US11129092B2 (en) Application specific location discovery
US9276934B2 (en) Self-activation of user device
US11799543B2 (en) Community broadband LTE access over satellite
CN110622571A (en) Network connection method, device and terminal
US11716129B2 (en) Method and device for providing differentiated service for each region on basis of beam book information
CN110972116A (en) Communication method and device
US11956843B2 (en) Electronic device supporting addition of secondary node, and method therefor
EP3934191A1 (en) Method for edge computing service and electronic device therefor
KR20110099482A (en) Apparatus and method for communicating local services
US20240236927A9 (en) Ranging method and apparatus, terminal device and storage medium
US20240137903A1 (en) Ranging method and apparatus, terminal device and storage medium
KR102679332B1 (en) Method edge computing service and electronic device thereof
US9313612B2 (en) Mobile wireless access point geolocation services proxy for mobile devices
CN103581904A (en) Network access method and device
WO2024093939A1 (en) Signal configuration method and system and communication apparatus
US20240007909A1 (en) Methods, systems, and devices for detecting cells for unmanned aerial vehicles over mobile networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20220524

Address after: 523799 Room 101, building 4, No. 15, Huanhu Road, Songshanhu Park, Dongguan City, Guangdong Province

Applicant after: Petal cloud Technology Co.,Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant before: HUAWEI DEVICE Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20200707

RJ01 Rejection of invention patent application after publication