CN112004242A - Port mapping registration method and device of elevator terminal and computer equipment - Google Patents

Port mapping registration method and device of elevator terminal and computer equipment Download PDF

Info

Publication number
CN112004242A
CN112004242A CN202010901596.8A CN202010901596A CN112004242A CN 112004242 A CN112004242 A CN 112004242A CN 202010901596 A CN202010901596 A CN 202010901596A CN 112004242 A CN112004242 A CN 112004242A
Authority
CN
China
Prior art keywords
elevator
port mapping
area network
request
local area
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.)
Granted
Application number
CN202010901596.8A
Other languages
Chinese (zh)
Other versions
CN112004242B (en
Inventor
曹堂金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Xinchao Media Group Co Ltd
Original Assignee
Chengdu Xinchao Media Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Xinchao Media Group Co Ltd filed Critical Chengdu Xinchao Media Group Co Ltd
Priority to CN202010901596.8A priority Critical patent/CN112004242B/en
Publication of CN112004242A publication Critical patent/CN112004242A/en
Application granted granted Critical
Publication of CN112004242B publication Critical patent/CN112004242B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

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

Abstract

The invention relates to the technical field of elevator Internet of things and discloses a port mapping registration method and device for an elevator terminal and computer equipment. According to the invention, the port mapping registration of the corresponding elevator terminal can be completed, namely in the interaction method for realizing the cross-local area network access of the elevator terminal, the elevator terminal in the elevator car can be enabled to carry out port mapping relation configuration on the router of the elevator car, and the configured port mapping relation is uploaded to the router of the elevator machine room through the router of the elevator car, so that another elevator terminal in other elevator cars can access the router of the elevator machine room and find the cross-local area network access target and the configured port mapping relation, and the cross-local area network access request can be further transmitted to the target terminal based on the found port mapping relation, so that the target terminal can timely respond to the cross-local area network access request.

Description

Port mapping registration method and device of elevator terminal and computer equipment
Technical Field
The invention belongs to the technical field of elevator Internet of things, and particularly relates to a port mapping registration method and device for an elevator terminal and computer equipment.
Background
An elevator is one of indispensable devices in buildings in modern society, and the holding quantity of the elevator will be continuously increased in the future. By means of the characteristics of huge holding capacity of the elevator, high-frequency people flow and low interference of a closed space, the life circle media advertisement represented by the elevator advertisement screen rapidly grows up to become a new growth engine of the advertisement market and rapidly grows. Meanwhile, with the rise of the fourth Generation communication technology 4G (G is a short for Generation) and the fifth Generation communication technology 5G, the new Generation of the elevator internet of things advertisement screen is gradually popularized. However, because 4G and 5G traffic charges are expensive, the media operator hopes that the advertisement screen of the internet of things of the elevator can not only issue advertisements in time through reliable networking, but also make the traffic charges low, so the media operator needs an elevator internet of things network which can save traffic and realize low-cost networking.
At present, the network coverage modes for providing an elevator internet of things for equipment terminals in an elevator car are as follows:
(1) the router is installed in an elevator machine room, a network covers elevator car top equipment through a WiFi (Wireless Fidelity) network bridge or a Power Line Communication (PLC) mode, so that equipment terminals can access the network, although the network coverage mode can realize cross-elevator mutual access of a plurality of equipment terminals corresponding to different elevators through the elevator machine room router, an elevator independent local area network which is required by partial use scenes and is configured for a single elevator cannot be provided (namely in the elevator independent local area network, only different equipment terminals corresponding to the elevator can be communicated with one another, for example, part of an internet of things advertising screen of the elevator has an elevator rescue function and is communicated and interacted with an elevator running state data collector installed at the top of an elevator car, when the data collector finds that the elevator rapidly drops, the advertising screen needs to be informed through a network data packet to initiate a distress flow, at the moment, only different equipment terminals corresponding to the elevator can be communicated with each other);
(2) the router is directly installed on the elevator car, and equipment terminals in the elevator car are accessed to the network, and although the network coverage mode can provide an independent local area network for each elevator to realize the mutual communication of the equipment terminals in the elevator, the network coverage mode cannot share data for a plurality of equipment terminals in different elevators, is not beneficial to saving flow, and can cause the increase of network cost of cross-elevator communication.
In summary, there is a need to provide a method for discovering elevator terminals and accessing elevator terminals across local area networks while providing an independent local area network for each elevator, so as to facilitate data sharing and save network traffic cost.
Disclosure of Invention
The invention aims to solve the problems that the existing elevator Internet of things technology cannot give consideration to providing an independent local area network for each elevator shaft and realizing cross-local area network elevator terminal discovery and elevator terminal access, and provides a port mapping registration method and device for an elevator terminal, computer equipment and a computer storage medium.
In a first aspect, the present invention provides a port mapping registration method for an elevator terminal, including:
receiving a mapping registration inquiry request sent by the first elevator terminal;
forwarding the mapping registration query request to the elevator machine room router so that the elevator machine room router responds and returns all currently stored port mapping information, wherein the all currently stored port mapping information refers to all current port mapping information which is stored on the elevator machine room router and comes from at least one elevator terminal;
forwarding all the currently stored port mapping information to the first elevator terminal, so that the first elevator terminal generates and initiates a second cross-local area network access request according to the port mapping information of a second cross-local area network access target after finding the port mapping information of the second cross-local area network access target;
receiving a second cross-local area network access request sent by the first elevator terminal;
and forwarding the second cross-local area network access request to a home elevator car router of the second cross-local area network access target through the elevator machine room router, so that the home elevator car router forwards the second cross-local area network access request to the second cross-local area network access target according to a configured port mapping relation corresponding to the second cross-local area network access target, and the second cross-local area network access target can respond to the second cross-local area network access request.
Based on the content of the invention, the port mapping registration of the corresponding elevator terminal can be completed, namely in the interaction method for realizing the cross-local area network access of the elevator terminal, the elevator terminal in the elevator car can be enabled to carry out port mapping relation configuration on the router of the elevator car, and the configured port mapping relation is uploaded to the router of the elevator machine room through the router of the elevator car, so that another elevator terminal in other elevator cars can access the router of the elevator machine room and find the cross-local area network access target and the configured port mapping relation, and the cross-local area network access request can be further transmitted to the target terminal based on the found port mapping relation, so that the target terminal can timely respond to the cross-local area network access request. Therefore, by the interactive method which comprises the contents of the invention and realizes the cross-local area network access of the elevator terminal, the purposes of cross-local area network discovery of the elevator terminal and access of the elevator terminal can be realized while an independent local area network is provided for each elevator, the data sharing can be further facilitated, the network flow cost can be saved, and the practical application and popularization are facilitated.
In one possible design, after sending the port map registration request to the elevator machine room router, the method further comprises:
receiving a first cross-local area network access request which is transferred by the elevator machine room router and comes from the second elevator terminal, wherein the first cross-local area network access request is generated by the second elevator terminal according to port mapping information corresponding to the first elevator terminal;
and forwarding the first cross-local area network access request to the first elevator terminal according to the configured port mapping relation corresponding to the first elevator terminal, so that the first elevator terminal responds to the first cross-local area network access request.
Through the design, the cross-local-area-network access request can be correctly forwarded to the cross-local-area-network access target by utilizing the configured port mapping relation in the interaction method for realizing the cross-local-area-network access to the elevator terminal, so that the integrity of the access process is ensured.
In one possible design, prior to receiving the port mapping configuration request sent by the first elevator terminal, the method further includes:
receiving a mapping configuration query request sent by the first elevator terminal;
responding to the mapping configuration inquiry request, feeding back all configured port mapping information to the first elevator terminal so that the first elevator terminal determines whether the port mapping information to be configured is contained in all configured port mapping information or not, and if not, initiating the port mapping configuration request.
Through the design, the elevator terminal can judge whether the port mapping information to be configured is configured on the elevator car router in advance through a query response mode, so that repeated port mapping configuration requests are avoided, and the reliability and the simplicity are further improved.
In one possible design, prior to receiving the port mapping configuration request sent by the first elevator terminal, the method further includes:
receiving a wide area address query request sent by the first elevator terminal;
and responding to the wide area address query request, and feeding back all communication ports of the local elevator car router in the elevator wide area network and/or the current mappable configuration of the local elevator car router in the elevator wide area network to the first elevator terminal, so that the first elevator terminal generates the port mapping configuration request according to the fed-back internet protocol address and/or communication port.
Through the design, the elevator terminal can acquire the information required by initiating the port mapping configuration request in advance through a query response mode: the wide area network protocol address and the wide area network port are used for avoiding initiating wrong port mapping configuration requests, and further improving the reliability and the simplicity.
In one possible design, after sending the port mapping registration request to the elevator machine room router, the method further includes:
receiving a port mapping logout request sent by the first elevator terminal;
responding the port mapping logout request, and deleting the mapping relation configuration specified by the port mapping logout request;
and forwarding the port mapping logout request to the elevator machine room router so that the elevator machine room router responds to and deletes the port mapping information specified by the port mapping logout request.
Through the design, the elevator terminal can delete the port mapping relation configured on the affiliated elevator car router and the port mapping relation registered on the elevator machine room router at any time through a logout request response mode, and the purpose of flexibly managing the port mapping relation is achieved.
In one possible design, the method further includes:
receiving a mapping registration inquiry request sent by the first elevator terminal;
forwarding the mapping registration query request to the elevator machine room router so that the elevator machine room router responds and returns all currently stored port mapping information, wherein the all currently stored port mapping information refers to all current port mapping information which is stored on the elevator machine room router and comes from at least one elevator terminal;
forwarding all the currently stored port mapping information to the first elevator terminal, so that the first elevator terminal generates and initiates a second cross-local area network access request according to the port mapping information of a second cross-local area network access target after finding the port mapping information of the second cross-local area network access target;
receiving a second cross-local area network access request sent by the first elevator terminal;
and forwarding the second cross-local area network access request to a home elevator car router of the second cross-local area network access target through the elevator machine room router, so that the home elevator car router forwards the second cross-local area network access request to the second cross-local area network access target according to a configured port mapping relation corresponding to the second cross-local area network access target, and the second cross-local area network access target can respond to the second cross-local area network access request.
Through the design, the elevator terminal can discover other elevator terminals in other elevator cars and configured port mapping relations through a mapping registration query mode, and initiate a cross-local area network access request based on the discovered port mapping relations, so that the elevator terminal can exchange roles of an access requester and an access responder as required, and further facilitates practical application and popularization.
In one possible design, the port mapping information further includes a port mapping function description, a device description of the first elevator terminal, and/or an internet protocol address of the elevator machine room router in the elevator wide area network.
Through the design, the port mapping information can be enriched, other elevator terminals can judge whether cross-local area network access requirements exist or not and accurately identify cross-local area network access targets after acquiring the port mapping information, and the like, so that the practical application and popularization are further facilitated.
In a second aspect, the invention provides a port mapping registration device of an elevator terminal, which comprises a configuration request receiving unit, a configuration request responding unit and a registration request sending unit which are in communication connection in sequence;
the configuration request receiving unit is used for receiving a port mapping configuration request sent by a first elevator terminal, wherein the port mapping configuration request comprises at least one piece of port mapping information to be configured, and the port mapping information to be configured comprises a wide area network address and a port needing to configure a mapping relation on an elevator car router and a local area network address and a port corresponding to the first elevator terminal;
the configuration request responding unit is used for responding to the port mapping configuration request and completing port mapping relationship configuration according to the port mapping information to be configured;
the registration request sending unit is configured to send a port mapping registration request to an elevator machine room router, where the port mapping registration request includes at least one piece of configured port mapping information, so that the elevator machine room router responds to and stores the port mapping information in the port mapping registration request, and after a second elevator terminal queries and acquires the configured port mapping information, initiates a first cross-local area network access request by using the first elevator terminal as a first cross-local area network access target, and the second elevator terminal and the first elevator terminal are located in different local area networks respectively.
In a possible design, the system further includes a first access request receiving unit and a first access request forwarding unit which are connected in communication;
the first access request receiving unit is used for receiving a first cross-local area network access request which is transferred by the elevator machine room router and comes from the second elevator terminal, wherein the first cross-local area network access request is generated by the second elevator terminal according to port mapping information corresponding to the first elevator terminal;
the first access request forwarding unit is configured to forward the first cross-local area network access request to the first elevator terminal according to a configured port mapping relationship corresponding to the first elevator terminal, so that the first elevator terminal responds to the first cross-local area network access request.
In a possible design, the system further comprises a first query request receiving unit and a first query request responding unit which are connected in communication;
the first query request receiving unit is used for receiving a mapping configuration query request sent by a first elevator terminal before receiving a port mapping configuration request sent by the first elevator terminal;
the first query request response unit is configured to respond to the mapping configuration query request, and feed back all configured port mapping information to the first elevator terminal, so that the first elevator terminal determines whether the port mapping information to be configured is included in all configured port mapping information, and if not, initiates the port mapping configuration request.
In a possible design, the system further comprises a second query request receiving unit and a second query request responding unit which are connected in communication;
the second query request receiving unit is used for receiving a wide area address query request sent by a first elevator terminal before receiving a port mapping configuration request sent by the first elevator terminal;
the second query request response unit is used for responding to the wide area address query request, and feeding back the internet protocol address of the local elevator car router in the elevator wide area network and/or all communication ports of the local elevator car router which can be configured in a mapping mode currently in the elevator wide area network to the first elevator terminal, so that the first elevator terminal generates the port mapping configuration request according to the fed back internet protocol address and/or communication ports.
In a possible design, the system also comprises a logout request receiving unit, a logout request responding unit and a logout request forwarding unit which are sequentially communicated and connected;
the logout request receiving unit is used for receiving a port mapping logout request sent by the first elevator terminal after sending the port mapping registration request to the elevator machine room router;
the logout request responding unit is used for responding the port mapping logout request and deleting the mapping relation configuration specified by the port mapping logout request;
and the logout request forwarding unit is used for forwarding the port mapping logout request to the elevator machine room router so that the elevator machine room router responds to and deletes the port mapping information specified by the port mapping logout request.
In a possible design, the system further comprises a third query request receiving unit, a query request forwarding unit, a query response forwarding unit, a second access request receiving unit and a second access request forwarding unit;
the third query request receiving unit is used for receiving a mapping registration query request sent by the first elevator terminal;
the query request forwarding unit is in communication connection with the third query request receiving unit, and is configured to forward the mapping registration query request to the elevator machine room router, so that the elevator machine room router returns all currently stored port mapping information in response, where the all currently stored port mapping information is all current port mapping information which is stored on the elevator machine room router and is from at least one elevator terminal;
the query response forwarding unit is configured to forward all currently stored port mapping information to the first elevator terminal, so that after the first elevator terminal finds port mapping information of a second cross-local area network access target, a second cross-local area network access request is generated and initiated according to the port mapping information of the second cross-local area network access target;
the second access request receiving unit is used for receiving a second cross-local area network access request sent by the first elevator terminal;
the second access request forwarding unit is communicatively connected to the second access request receiving unit, and is configured to forward the second cross-local area network access request to an elevator car router to which the second cross-local area network access target belongs through the elevator machine room router, so that the elevator car router forwards the second cross-local area network access request to the second cross-local area network access target according to a configured port mapping relationship corresponding to the second cross-local area network access target, and the second cross-local area network access target can respond to the second cross-local area network access request.
In one possible design, the port mapping information further includes a port mapping function description, a device description of the first elevator terminal, and/or an internet protocol address of the elevator machine room router in the elevator wide area network.
In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver communicatively connected, wherein the memory is used for storing a computer program, the transceiver is used for transceiving a message, and the processor is used for reading the computer program and executing the method as described in the first aspect or any one of the possible designs of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon instructions which, when executed on a computer, perform the method as set forth in the first aspect or any one of the possible designs of the first aspect.
In a fifth aspect, the present invention provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method as described above in the first aspect or any one of the possible designs of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of an interactive method for accessing an elevator terminal across a local area network provided by the invention.
Fig. 2 is a schematic diagram of a topology structure of an elevator internet of things provided by the invention.
Fig. 3 is a schematic structural view of a port map registration device of an elevator terminal according to the present invention.
Fig. 4 is a schematic structural diagram of a computer device provided by the present invention.
Fig. 5 is a schematic structural diagram of an interactive system for accessing elevator terminals across a local area network provided by the invention.
Detailed Description
The invention is further described with reference to the following figures and specific embodiments. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. Specific structural and functional details disclosed herein are merely illustrative of example embodiments of the invention. This invention may, however, be embodied in many alternate forms and should not be construed as limited to the embodiments set forth herein.
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments of the present invention.
It should be understood that, for the term "and/or" as may appear herein, it is merely an associative relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, B exists alone, and A and B exist at the same time; for the term "/and" as may appear herein, which describes another associative object relationship, it means that two relationships may exist, e.g., a/and B, may mean: a exists independently, and A and B exist independently; in addition, for the character "/" that may appear herein, it generally means that the former and latter associated objects are in an "or" relationship.
It will be understood that when an element is referred to herein as being "connected," "connected," or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. Conversely, if a unit is referred to herein as being "directly connected" or "directly coupled" to another unit, it is intended that no intervening units are present. In addition, other words used to describe the relationship between elements should be interpreted in a similar manner (e.g., "between … …" versus "directly between … …", "adjacent" versus "directly adjacent", etc.).
It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used herein, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, numbers, steps, operations, elements, components, and/or groups thereof.
It should also be noted that, in some alternative designs, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may, in fact, be executed substantially concurrently, or the figures may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
It should be understood that specific details are provided in the following description to facilitate a thorough understanding of example embodiments. However, it will be understood by those of ordinary skill in the art that the example embodiments may be practiced without these specific details. For example, systems may be shown in block diagrams in order not to obscure the examples in unnecessary detail. In other instances, well-known processes, structures and techniques may be shown without unnecessary detail in order to avoid obscuring example embodiments.
As shown in fig. 1 to 2, the interaction method for realizing access to an elevator terminal across a local area network provided in the first aspect of this embodiment is suitable for being executed in an elevator internet of things network shown in fig. 2: the elevator internet of things network comprises an elevator machine room router, a first elevator car router, a second elevator car router, a first elevator terminal and a second elevator terminal, wherein the elevator machine room router is installed in an elevator machine room and can be accessed to the internet in a 4G, 5G or wired broadband mode; the first elevator car router and the second elevator car router are respectively installed at the tops of elevator cars of different elevator hoistways, and are respectively in communication connection with the elevator machine room router in a mode of WiFi network bridge or power carrier communication mode PLC and the like (namely, the first elevator car router and the second elevator car router are used as sub-nodes in a wide area network established on the basis of the elevator machine room router, and one elevator machine room router can be connected with the elevator car routers of a plurality of adjacent elevator hoistways), so that the first elevator car router and the second elevator car router can be used as a secondary router to provide network access for equipment terminals of corresponding elevators; the first elevator terminal is located on top of or inside an elevator car corresponding to the first elevator car router and serves as a child node in a first elevator local area network established based on the first elevator car router (the first elevator car router may communicatively connect a plurality of device terminals on top of or inside the corresponding elevator car) so as to access the network; the second elevator terminal is positioned on the top or inside of the elevator car corresponding to the second elevator car router and is used as a child node in a second elevator local area network established based on the second elevator car router (the second elevator car router can also be used for connecting a plurality of equipment terminals on the top or inside of the corresponding elevator car in a communication mode) so as to access the network. In addition, the first elevator terminal and the second elevator terminal may include, but are not limited to, an electronic advertisement screen, a smart phone, a data collector (e.g., a collector for collecting elevator operation state data, etc.), a monitoring camera, and the like.
The interactive method for realizing the access to the elevator terminal across the local area network can be but is not limited to comprise the following steps S1-S12.
S1, a first elevator car router receives a port mapping configuration request sent by a first elevator terminal, wherein the port mapping configuration request comprises at least one piece of port mapping information to be configured, and the port mapping information to be configured comprises a wide area network address and a port needing to be configured with a mapping relation on the elevator car router and a local area network address and a port corresponding to the first elevator terminal.
Before the step S1, the port mapping configuration request may be generated and initiated on the first elevator terminal through manual operation (i.e. the specific content of the port mapping information to be configured is input through manual operation of the human-machine interface of the first elevator terminal), or may be automatically generated and initiated by the first elevator terminal based on a preset rule or program code, for example, when a file needs to be shared to the outside, the port mapping configuration request may be automatically generated and initiated; for a detailed example, for 4 advertisement machines (i.e. as elevator terminals) in different elevator cars, after a certain advertisement machine (i.e. as a first elevator terminal) acquires advertisement content in a conventional advertisement publishing manner, the port mapping configuration request can be automatically generated and initiated, so as to provide corresponding access target addresses and port information for other 3 advertisement machines (i.e. as second elevator terminals), and the purpose of downloading the advertisement content across a local area network is achieved.
In step S1, the port mapping information to be configured may include, but is not limited to, a first local area network protocol address and a first local area network port, and a first wide area network protocol address and a first wide area network port that request to perform mapping relationship configuration with the first local area network protocol address and the first local area network port. The first local area network protocol address refers to an internet protocol address of the first elevator terminal in a first elevator local area network; the first elevator local area network is a local area network established based on a first elevator car router (since the execution subject of step S1 is the first elevator car router, it can be regarded as a local elevator car router); the first lan protocol address may be dynamically assigned by the first elevator car router for the first elevator terminal or statically set on the first elevator terminal, as shown in fig. 2, for example 192.168.0.30. The first local Area network port refers to an electronic device communication port where the first elevator terminal is connected below the first elevator car router, and may specifically include, but is not limited to, a Local Area Network (LAN) port or a WiFi access point, and as shown in fig. 2, the first local Area network port may be, for example, a LAN port: 5000. the first WAN protocol address refers to an Internet protocol address of the first elevator car router in the elevator WAN; the elevator wide area network is a wide area network established based on an elevator machine room router; the first wan protocol address is dynamically assigned by the elevator machine room router for the first elevator car router or is statically configured on the first elevator car router, as shown in fig. 2, and may be, for example, 192.168.31.100. The first WAN port refers to an external network port opposite to the first lan port, so that after the mapping relationship configuration is completed, a request for accessing the first WAN port can be automatically mapped onto the first lan port, and then the first elevator terminal can receive the request through the first lan port and generate a corresponding response action, which may specifically but not limited to include a WAN (wide Area network) port, an 4/5G communication module, a power carrier communication interface, a WiFi station, or the like, as shown in fig. 2, where the first WAN port may be, for example, a WAN port: 6000. the port mapping information to be configured may exist in the form of an information table (i.e. the first local area network protocol address, the first local area network port, the first wide area network protocol address, the first wide area network port, and the like are respectively recorded by a plurality of table frames) or an information field (i.e. the first local area network protocol address, the first local area network port, the first wide area network protocol address, the first wide area network port, and the like are respectively recorded by a plurality of fields), and the like. In addition, the port mapping configuration request can be uploaded to the first elevator car router by the first elevator terminal through the first elevator local area network after being generated.
S2, the first elevator car router responds to the port mapping configuration request, and port mapping relationship configuration is completed according to the port mapping information to be configured.
In step S2, the specific content of the port mapping information may be added to a mapping relationship configuration table maintained locally, so as to complete the port mapping relationship configuration. For example, the following mapping relationship may be configured according to the port mapping information to be configured: 192.168.0.30.5000 → 192.168.31.100.6000, so that the first elevator car router, upon receiving any request from the elevator wan, can automatically map the request onto lan port 192.168.0.30.5000 as long as the request is directed to access wan port 192.168.31.100.6000 (i.e., 192.168.31.100.6000 is the destination address and port information of the request). In addition, after the port mapping relationship configuration is completed, the first elevator car router can also return a port mapping configuration response result to the first elevator terminal, so that the first elevator terminal can conventionally judge whether the mapping relationship configuration is completed correctly according to the returned response result, and if the mapping relationship configuration is not completed correctly, the port mapping configuration request is reinitiated.
And S3, sending a port mapping registration request to the elevator machine room router by the first elevator car router, wherein the port mapping registration request comprises at least one piece of configured port mapping information.
In step S3, the port mapping registration request may be automatically generated and initiated by the first elevator car router after completing mapping configuration. In addition, the port map registration request may be uploaded to the elevator machine room router by the first elevator car router over the elevator wide area network after being generated.
And S4, responding and storing the port mapping information in the port mapping registration request by the router of the elevator machine room.
In step S4, the specific content of the port mapping information may be added to a mapping relationship registry maintained locally, so as to implement completion or saving of mapping relationship registration. In addition, after the router of the elevator machine room executes the saving action, the saving execution result can be used as a port mapping registration response result to be returned to the first elevator car router, so that the first elevator car router can conveniently judge whether the mapping relation registration is correctly completed or not according to the returned response result, and if the mapping relation registration is incorrect, the port mapping registration request can be reinitiated.
Through the foregoing steps S1 to S4, the port mapping registration corresponding to the first elevator terminal can be completed, that is, in the interaction method for achieving cross-lan access to an elevator terminal, the elevator terminal in the elevator car can configure the port mapping relationship on the elevator car router to which the elevator terminal belongs, and the configured port mapping relationship is uploaded to the elevator machine room router through the elevator car router to be saved, so that another elevator terminal in another elevator car can access the elevator machine room router and find a cross-lan access target and a configured port mapping relationship, which is beneficial to further transmitting a cross-lan access request to a target terminal based on the found port mapping relationship, and the target terminal can timely respond to the cross-lan access request.
And S5, receiving a mapping registration inquiry request from the second elevator terminal by the second elevator car router.
Before the step S5, the port mapping configuration request may be generated and initiated on the second elevator terminal through manual operation (i.e., through manual operation of a human-machine interface of the second elevator terminal), or may be generated and initiated automatically by the second elevator terminal based on a pre-established rule or program code, for example, the mapping registration query request is periodically generated and initiated, so that when the first elevator terminal finds that the file is shared externally through the registered port mapping information, an access request may be initiated based on the port mapping information, thereby achieving the purpose of downloading the file across the local area network. In addition, the mapping registration query request, after being generated, can be uploaded by the second elevator terminal to the second elevator car router (which is another elevator car router relative to the first elevator car router) via the second elevator local area network.
S6, the second elevator car router forwards the mapping registration query request to the elevator machine room router.
In step S6, the mapping registration query request may be uploaded to the elevator machine room router by the second elevator car router over the elevator wide area network.
And S7, returning all the currently stored port mapping information in response by the router of the elevator machine room, wherein the port mapping information to be configured comprises a wide area network address and a port needing to be configured with a mapping relation on the router of the elevator car and a local area network address and a port corresponding to the first elevator terminal.
In step S7, specifically, the elevator machine room router may return the mapping relationship registry maintained locally to the second elevator car router as the all currently saved port mapping information. In addition, all the currently stored port mapping information can be issued to the second elevator car router by the elevator machine room router through the elevator wide area network.
And S8, the second elevator car router forwards all the currently stored port mapping information to the second elevator terminal so that the second elevator terminal finds the port mapping information of the cross-local area network access target.
In step S8, the second elevator car router may issue all currently stored port mapping information to the second elevator terminal through the second elevator lan. After receiving all the currently stored port mapping information, the second elevator terminal can firstly judge whether the returned port mapping information is correct or not through a conventional format checking mode, if not, a mapping registration query request is reinitiated, and if so, whether the port mapping information of a cross-local area network access target exists or not can be found in all the currently stored port mapping information according to the current cross-local area network access requirement (such as the requirement of cross-local area network access to the first elevator terminal for downloading advertisement content) so as to determine whether to initiate a cross-local area network access request subsequently or not. Because the currently stored port mapping information contains the previously registered port mapping information corresponding to the first elevator terminal, when the second elevator terminal needs to access the first elevator terminal across the local area network, the first elevator terminal can be used as a first local area network access target to initiate a first local area network access request.
S9, receiving a first cross-local area network access request from the second elevator terminal by the second elevator car router, wherein the first cross-local area network access request is generated by the second elevator terminal according to the port mapping information corresponding to the first elevator terminal in all the currently stored port mapping information.
In step S9, the specific manner in which the second elevator terminal generates the first cross-lan access request according to the port mapping information corresponding to the first elevator terminal in all the currently stored port mapping information may include, but is not limited to: and taking the first WAN protocol address and the first WAN port in the port mapping information as a target address and an access port of the first cross-LAN access request, so that the first elevator car router can map and forward the first cross-LAN access request to the first LAN protocol address and the first LAN port corresponding to the first WAN protocol address and the first WAN port according to the configured port mapping relation after receiving the target address and the access port. In addition, the second elevator terminal may also initiate a port mapping configuration request as the first elevator terminal, so as to achieve the purpose of performing local file sharing to the outside, that is, configuring on the second elevator car router and registering a second local area network protocol address and a port mapping relationship between the second local area network port and the second wide area network protocol address and the second wide area network port on the elevator machine room router, where specific meanings of the second local area network protocol address and the second local area network port, the second wide area network protocol address and the second wide area network port, and a configuration flow of the mapping relationship thereof may be derived with reference to the descriptions in steps S1 to S4, and details are not repeated herein. As shown in fig. 2, the second LAN protocol address may be, for example, 192.168.0.40, and the second LAN port may be, for example, a LAN port: 5000, the second WAN protocol address may be, for example, 192.168.31.101, and the second WAN port may be, for example, a WAN port: 6000. the first cross-local area network access request may be uploaded by the second elevator terminal to the second elevator car router (which is another elevator car router relative to the first elevator car router) after establishing a communication connection of the second elevator terminal with the second elevator car router based on the second elevator local area network.
S10, forwarding the first cross-local area network access request to the first elevator car router by the second elevator car router.
In step S10, the first cross-lan access request may be transmitted by the second elevator car router to the first elevator car router (which is another elevator car router relative to the second elevator car router) after establishing a communication connection between the second elevator car router and the first elevator car router based on the elevator wide area network, the elevator machine room router may play a role in relaying in a forwarding path.
Through the steps S5 to S10, the port mapping registration query corresponding to the second elevator terminal can be completed, that is, the elevator terminal can discover other elevator terminals in other elevator cars and configured port mapping relationships in a mapping registration query manner, and initiate a cross-local area network access request based on the discovered port mapping relationships.
S11, the first cross-local area network access request is received by the first elevator car router.
S12, the first cross-local area network access request is forwarded to the first elevator terminal by the first elevator car router according to the configured port mapping relation corresponding to the first elevator terminal, so that the first elevator terminal can respond to the first cross-local area network access request.
In step S12, according to the configured port mapping relationship corresponding to the first elevator terminal, the specific manner of forwarding the first cross-lan access request to the first elevator terminal includes, but is not limited to: and according to the configured mapping relation between the first WAN protocol address and a first WAN port (which is used as a target address and an access port in the first cross-LAN access request), mapping and forwarding the first cross-LAN access request to the corresponding first LAN protocol address and first LAN port so that the first elevator terminal receives the first cross-LAN access request. Furthermore, the first elevator terminal responds to the first cross-local area network access request in a conventional manner, for example, by means of a handshake interaction step required for conventionally establishing a communication connection, and responds to establishing a cross-local area network communication connection for communicatively connecting the first elevator terminal and the second elevator terminal, so as to fulfill the purpose of transmitting a shared file from the first elevator terminal to the second elevator terminal.
Through the steps S11-S12, in the interaction method for accessing the elevator terminal by crossing the local area network, the cross-local area network access request can be correctly forwarded to the cross-local area network access target by using the configured port mapping relation, so that the integrity of the access process is ensured.
Therefore, through the interaction method for realizing cross-local area network access to the elevator terminal described in the steps S1-S12, the purposes of cross-local area network discovery of the elevator terminal and access to the elevator terminal can be realized while an independent local area network is provided for each elevator, data sharing can be further facilitated, network flow cost can be saved, and practical application and popularization are facilitated.
As shown in fig. 1, this embodiment further specifically proposes a possible design for responding to query whether the port mapping relationship is configured or not, that is, before the first elevator car router receives the port mapping configuration request sent by the first elevator terminal, on the basis of the technical solution of the first aspect, the method further includes, but is not limited to, the following steps S101 to S102.
And S101, receiving a mapping configuration query request sent by the first elevator terminal.
Prior to said step S101, said mapping configuration query request may be automatically generated and initiated by said first elevator terminal based on pre-established rules or program code. In addition, the mapping configuration inquiry request can be uploaded to the first elevator car router by the first elevator terminal through the first elevator local area network after being generated.
S102, responding to the mapping configuration inquiry request, feeding back all configured port mapping information to the first elevator terminal so that the first elevator terminal determines whether the port mapping information to be configured is contained in all the configured port mapping information or not, and if not, initiating the port mapping configuration request.
In step S102, the first elevator car router may return a mapping relationship configuration table maintained locally to the first elevator terminal as the all configured port mapping information. In addition, the configured port mapping information can be issued to the first elevator terminal by the first elevator car router through the first elevator local area network.
After the step S102, the first elevator terminal determines whether the port mapping information to be configured is included in all configured port mapping information, and a specific manner of initiating the port mapping configuration request in the negative case may include, but is not limited to: when determining that the port mapping information to be configured is not contained in all the configured port mapping information, taking the port mapping information to be configured as the port mapping information to be configured in the port mapping configuration request, and initiating the port mapping configuration request, otherwise, not initiating the port mapping configuration request.
Therefore, through the possible design one described in the foregoing steps S101 to S102, the elevator terminal can determine in advance whether the port mapping information to be configured has been configured on the elevator car router to which the terminal belongs, in a query response manner, so as to avoid repeatedly initiating a port mapping configuration request, and further improve reliability and simplicity. Further, the steps S101 to S102 are also applied to the second elevator car router responding to the mapping configuration inquiry request from the second elevator terminal.
As shown in fig. 1, on the basis of the first aspect or the technical solution that may be designed in the first aspect, the present embodiment further specifically proposes a second possible design that responds to query of a wide area network address and port information, that is, before the first elevator car router receives a port mapping configuration request sent by the first elevator terminal, the method further includes, but is not limited to, the following steps S1001 to S1002.
And S1001, receiving a wide area address query request sent by the first elevator terminal.
Prior to the step S1001, the wide area address query request may be automatically generated and initiated by the first elevator terminal based on pre-established rules or program code. In addition, the wide area address query request may be uploaded by the first elevator terminal to the first elevator car router via the first elevator local area network after being generated.
S1002, responding to the wide area address query request, feeding back an internet protocol address of a local elevator car router (namely the first elevator car router) in the elevator wide area network and/or all communication ports of the local elevator car router which can be mapped and configured currently in the elevator wide area network to the first elevator terminal, so that the first elevator terminal generates the port mapping configuration request according to the fed-back internet protocol address and/or communication ports.
In step S1002, the feedback information may be sent to the first elevator terminal by the first elevator car router through the first elevator lan. The specific manner in which the first elevator terminal generates the port mapping configuration request according to the fed back internet protocol address and/or communication port may be, but is not limited to: and taking the fed back internet protocol address as a first wide area network protocol address in the port mapping information to be configured, and/or selecting one communication port from all the fed back communication ports as a first wide area network port in the port mapping information to be configured. In addition, after receiving the feedback information, the first elevator terminal can judge whether the returned information is correct or not through a conventional format checking mode, and if the returned information is incorrect, the first elevator terminal can reinitiate a wide area address inquiry request.
Therefore, through the second possible design described in the foregoing steps S1001 to S1002, the elevator terminal can acquire information required to initiate a port mapping configuration request in advance in a query response manner: the wide area network protocol address and the wide area network port are used for avoiding initiating wrong port mapping configuration requests, and further improving the reliability and the simplicity. When the wide area address query request is responded, the internet protocol address of the elevator machine room router in the elevator wide area network can be responded and returned, so that the specific content of the port mapping information is enriched. As shown in fig. 2, the internet protocol address of the elevator machine room router in the elevator wide area network can be given as 192.168.31.1, for example. Further, the steps S1001 to S1002 are also applied to the second elevator car router responding to a wide area address inquiry request from the second elevator terminal.
As shown in fig. 1, this embodiment further specifically proposes a possible design three for responding to the cancellation of the port mapping relationship based on the first aspect and the technical solution of any one of the first to second possible designs, that is, after the first elevator car router sends the port mapping registration request to the elevator machine room router, the method further includes, but is not limited to, the following steps S41 to S43.
S41, receiving a port mapping logout request sent by the first elevator terminal.
In step S41, the port mapping logout request may be automatically generated and initiated by the first elevator terminal based on pre-established rules or program codes, for example, after the file sharing transmission, the port mapping logout request may be automatically generated and initiated according to business requirements, so as to cancel the file sharing. In addition, the port mapping logout request can be uploaded to the first elevator car router by the first elevator terminal through the first elevator local area network after being generated.
And S42, responding to the port mapping logout request, and deleting the mapping relation configuration specified by the port mapping logout request.
In the step S42, the port mapping logout request specifies a specific manner of mapping relationship, which may be, but is not limited to, that the port mapping logout request includes port mapping information to be logout, so as to delete the corresponding port mapping information content in a mapping relationship configuration table maintained by the local computer, thereby implementing deletion of mapping relationship configuration. In addition, after the mapping relationship configuration is deleted, the first elevator car router can also return a port mapping configuration deletion result to the first elevator terminal, so that the first elevator terminal conventionally judges whether the mapping relationship configuration deletion is correctly completed or not according to the returned response result, and if the mapping relationship configuration deletion is incorrect, a port mapping logout request is reinitiated.
S43, the port mapping logout request is forwarded to the elevator machine room router, so that the elevator machine room router responds to and deletes the port mapping information specified by the port mapping logout request.
In step S43, the port map logout request may be uploaded from the first elevator car router to the elevator machine room router via the elevator wide area network. Because the port mapping logout request contains the port mapping information to be logout, the corresponding port mapping information content can be deleted in the mapping relation registry maintained by the local computer, thereby realizing the logout of the mapping relation configuration. In addition, after the router of the elevator machine room executes the logout action, the logout execution result can be returned to the first elevator car router as a port mapping logout response result, so that the first elevator car router can conventionally judge whether the mapping relation logout is correctly completed according to the returned response result, if not, the port mapping logout request is retransmitted, and if correct, the returned response result is retransmitted to the first elevator terminal, so that the first elevator terminal can conventionally judge whether the mapping relation logout is correctly completed according to the returned response result, and if not, the port mapping logout request is retransmitted.
Therefore, through the third possible design described in the foregoing steps S41 to S43, the elevator terminal can delete the port mapping relationship configured on the router of the elevator car to which the elevator terminal belongs and the port mapping relationship registered on the router of the elevator machine room at any time in a log-off request response manner, thereby achieving the purpose of flexibly managing the port mapping relationship. Furthermore, the steps S41-S43 also apply to the second elevator car router responding to a port map logout request from the second elevator terminal.
On the basis of the first aspect and any one of the possible designs, the present embodiment specifically provides a fourth possible design that responds to the mapping registration query request initiated by the first elevator terminal and transfers the request for access across the local area network, that is, the interaction method further includes, but is not limited to, the following steps S51 to S55.
And S51, receiving the mapping registration inquiry request sent by the first elevator terminal by the first elevator car router.
S52, the first elevator car router forwards the mapping registration inquiry request to the elevator machine room router so that the elevator machine room router responds and returns all currently stored port mapping information, wherein the all currently stored port mapping information refers to all current port mapping information which is stored on the elevator machine room router and comes from at least one elevator terminal.
And S53, the first elevator car router forwards all the currently stored port mapping information to the first elevator terminal, so that after the first elevator terminal finds the port mapping information of a second cross-local area network access target, a second cross-local area network access request is generated and initiated according to the port mapping information of the second cross-local area network access target.
S54, the first elevator car router receives a second cross-local area network access request sent by the first elevator terminal.
S55, the first elevator car router forwards the second cross-local area network access request to the elevator car router of the second cross-local area network access target through the elevator machine room router, so that the elevator car router forwards the second cross-local area network access request to the second cross-local area network access target according to the configured port mapping relation corresponding to the second cross-local area network access target, and the second cross-local area network access target can respond to the second cross-local area network access request.
In the foregoing steps S51 to S55, the details of the operation of the first elevator car router can be found in the detailed description of the second elevator car router in the foregoing first aspect; the details of the operation of the first elevator terminal can be referred to the detailed description of the second elevator terminal in the foregoing first aspect, and are not described herein again. In addition, for example, if the second cross-local area network access target is the second elevator terminal, the elevator car router to which the second cross-local area network access target belongs is the second elevator car router.
Therefore, through the possible design of the fourth mode, the elevator terminal can find other elevator terminals in other elevator cars and configured port mapping relations through a mapping registration query mode, and a cross-local-area-network access request is initiated based on the found port mapping relations, so that the elevator terminal can exchange the roles of an access requester and an access responder as required, and further practical application and popularization are facilitated.
The present embodiment further specifically proposes a fifth possible design for how to enrich port mapping information on the basis of the first aspect and the technical solution that may be designed to be any one of the first to fourth aspects, i.e. the port mapping information may also but not exclusively comprise port mapping function description content, device description content of the first elevator terminal and/or internet protocol address of the elevator machine room router in the elevator wide area network etc., wherein, the description content of the port mapping function is used for explaining the function of the port mapping at this time, so that other elevator terminals can judge whether cross-local area network access needs exist after acquiring the port mapping information, for example when the port mapping function description indicates that this port mapping is used for advertisement content sharing, other elevator terminals can judge whether the shared advertisement content needs to be acquired in a cross-local area network access mode or not based on the description content; the equipment description content of the first elevator terminal is used for explaining the specific type of the corresponding elevator terminal, so that other elevator terminals can accurately identify the cross-local area network access target after acquiring the port mapping information.
Therefore, by the fifth possible design, port mapping information can be enriched, other elevator terminals can judge whether cross-local area network access requirements exist or not and accurately identify cross-local area network access targets after acquiring the port mapping information, and the like, and practical application and popularization are further facilitated.
As shown in fig. 3, a second aspect of the present embodiment provides a virtual device for implementing the steps possibly designed in the first aspect or the first aspect and executed by the first elevator car router, including a configuration request receiving unit, a configuration request responding unit and a registration request sending unit, which are sequentially connected in communication;
the configuration request receiving unit is used for receiving a port mapping configuration request sent by a first elevator terminal, wherein the port mapping configuration request comprises at least one piece of port mapping information to be configured, and the port mapping information to be configured comprises a wide area network address and a port needing to configure a mapping relation on an elevator car router and a local area network address and a port corresponding to the first elevator terminal;
the configuration request responding unit is used for responding to the port mapping configuration request and completing port mapping relationship configuration according to the port mapping information to be configured;
the registration request sending unit is configured to send a port mapping registration request to an elevator machine room router, where the port mapping registration request includes at least one piece of configured port mapping information, so that the elevator machine room router responds to and stores the port mapping information in the port mapping registration request, and after a second elevator terminal queries and acquires the configured port mapping information, initiates a first cross-local area network access request by using the first elevator terminal as a first cross-local area network access target, and the second elevator terminal and the first elevator terminal are located in different local area networks respectively.
In a possible design, the system further includes a first access request receiving unit and a first access request forwarding unit which are connected in communication;
the first access request receiving unit is used for receiving a first cross-local area network access request which is transferred by the elevator machine room router and comes from the second elevator terminal, wherein the first cross-local area network access request is generated by the second elevator terminal according to port mapping information corresponding to the first elevator terminal;
the first access request forwarding unit is configured to forward the first cross-local area network access request to the first elevator terminal according to a configured port mapping relationship corresponding to the first elevator terminal, so that the first elevator terminal responds to the first cross-local area network access request.
In a possible design, the system further comprises a first query request receiving unit and a first query request responding unit which are connected in communication;
the first query request receiving unit is used for receiving a mapping configuration query request sent by a first elevator terminal before receiving a port mapping configuration request sent by the first elevator terminal;
the first query request response unit is configured to respond to the mapping configuration query request, and feed back all configured port mapping information to the first elevator terminal, so that the first elevator terminal determines whether the port mapping information to be configured is included in all configured port mapping information, and if not, initiates the port mapping configuration request.
In a possible design, the system further comprises a second query request receiving unit and a second query request responding unit which are connected in communication;
the second query request receiving unit is used for receiving a wide area address query request sent by a first elevator terminal before receiving a port mapping configuration request sent by the first elevator terminal;
the second query request response unit is used for responding to the wide area address query request, and feeding back the internet protocol address of the local elevator car router in the elevator wide area network and/or all communication ports of the local elevator car router which can be configured in a mapping mode currently in the elevator wide area network to the first elevator terminal, so that the first elevator terminal generates the port mapping configuration request according to the fed back internet protocol address and/or communication ports.
In a possible design, the system also comprises a logout request receiving unit, a logout request responding unit and a logout request forwarding unit which are sequentially communicated and connected;
the logout request receiving unit is used for receiving a port mapping logout request sent by the first elevator terminal after sending the port mapping registration request to the elevator machine room router;
the logout request responding unit is used for responding the port mapping logout request and deleting the mapping relation configuration specified by the port mapping logout request;
and the logout request forwarding unit is used for forwarding the port mapping logout request to the elevator machine room router so that the elevator machine room router responds to and deletes the port mapping information specified by the port mapping logout request.
In a possible design, the system further comprises a third query request receiving unit, a query request forwarding unit, a query response forwarding unit, a second access request receiving unit and a second access request forwarding unit;
the third query request receiving unit is used for receiving a mapping registration query request sent by the first elevator terminal;
the query request forwarding unit is in communication connection with the third query request receiving unit, and is configured to forward the mapping registration query request to the elevator machine room router, so that the elevator machine room router returns all currently stored port mapping information in response, where the all currently stored port mapping information is all current port mapping information which is stored on the elevator machine room router and is from at least one elevator terminal;
the query response forwarding unit is configured to forward all currently stored port mapping information to the first elevator terminal, so that after the first elevator terminal finds port mapping information of a second cross-local area network access target, a second cross-local area network access request is generated and initiated according to the port mapping information of the second cross-local area network access target;
the second access request receiving unit is used for receiving a second cross-local area network access request sent by the first elevator terminal;
the second access request forwarding unit is communicatively connected to the second access request receiving unit, and is configured to forward the second cross-local area network access request to an elevator car router to which the second cross-local area network access target belongs through the elevator machine room router, so that the elevator car router forwards the second cross-local area network access request to the second cross-local area network access target according to a configured port mapping relationship corresponding to the second cross-local area network access target, and the second cross-local area network access target can respond to the second cross-local area network access request.
In one possible design, the port mapping information further includes a port mapping function description, a device description of the first elevator terminal, and/or an internet protocol address of the elevator machine room router in the elevator wide area network.
For the working process, working details and technical effects of the foregoing apparatus provided in the second aspect of this embodiment, reference may be made to the interaction method described in any one of the above first aspect or the first aspect, which is not described herein again.
As shown in fig. 4, a third aspect of the present embodiment provides a computer apparatus for performing the steps performed by the first elevator car router in any one of the possible designs of the first aspect or the first aspect, including a memory, a processor and a transceiver, which are in communication with each other in sequence, wherein the memory is used for storing a computer program, the transceiver is used for transceiving messages, and the processor is used for reading the computer program and performing the steps performed by the first elevator car router in any one of the possible designs of the first aspect or the first aspect. For example, the Memory may include, but is not limited to, a Random-Access Memory (RAM), a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a First-in First-out (FIFO), and/or a First-in Last-out (FILO), and the like; the processor may not be limited to the use of a microprocessor model number STM32F105 family; the transceiver may be, but is not limited to, a WiFi (wireless fidelity) wireless transceiver, a bluetooth wireless transceiver, a GPRS (General Packet Radio Service) wireless transceiver, and/or a ZigBee (ZigBee protocol, low power local area network protocol based on ieee802.15.4 standard) wireless transceiver, etc. In addition, the computer device may also include, but is not limited to, a power module, a display screen, and other necessary components.
For the working process, working details, and technical effects of the foregoing computer device provided in the third aspect of this embodiment, reference may be made to the interaction method described in the first aspect or any one of the possible designs in the first aspect, which is not described herein again.
A fourth aspect of the present embodiments provides a computer-readable storage medium storing instructions for the steps performed by the first elevator car router and included in any one of the possible designs of the first aspect or the first aspect, i.e., the computer-readable storage medium having instructions stored thereon that, when executed on a computer, perform the steps performed by the first elevator car router and as in any one of the possible designs of the first aspect or the first aspect. The computer-readable storage medium refers to a carrier for storing data, and may include, but is not limited to, floppy disks, optical disks, hard disks, flash memories, flash disks and/or Memory sticks (Memory sticks), etc., and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
For a working process, working details, and technical effects of the foregoing computer-readable storage medium provided in the fourth aspect of this embodiment, reference may be made to the interaction method in any one of the above first aspect or the first aspect, which is not described herein again.
A fifth aspect of the present embodiments provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps as in the first aspect or any one of the possible designs of the first aspect and as performed by the first elevator car router. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices.
As shown in fig. 5, a sixth aspect of the present embodiment provides an interactive system for accessing an elevator terminal across a local area network, including an elevator machine room router, a first elevator car router, and a second elevator car router, where the elevator machine room router respectively associates the first elevator car router and the second elevator car router through an elevator wide area network established based on the elevator machine room router;
the elevator machine room router for performing the steps in the first aspect or any one of the possible designs of the first aspect and performed by the elevator machine room router;
the first elevator car router for performing the steps in the first aspect or any one of the possible designs of the first aspect and performed by the first elevator car router;
the second elevator car router to perform the steps in the first aspect or any one of the possible designs of the first aspect and performed by the second elevator car router.
The working process, working details and technical effects of the foregoing interactive system provided in this embodiment may refer to the interaction method described in the first aspect or any one of the possible designs in the first aspect, which is not described herein again.
The embodiments described above are merely illustrative, and may or may not be physically separate, if referring to units illustrated as separate components; if reference is made to a component displayed as a unit, it may or may not be a physical unit, and may be located in one place or distributed over a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: modifications may be made to the embodiments described above, or equivalents may be substituted for some of the features described. And such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Finally, it should be noted that the present invention is not limited to the above alternative embodiments, and that various other forms of products can be obtained by anyone in light of the present invention. The above detailed description should not be taken as limiting the scope of the invention, which is defined in the claims, and which the description is intended to be interpreted accordingly.

Claims (10)

1. A port mapping registration method of an elevator terminal is characterized by comprising the following steps:
receiving a port mapping configuration request sent by a first elevator terminal, wherein the port mapping configuration request comprises at least one piece of port mapping information to be configured, and the port mapping information to be configured comprises a wide area network address and a port needing to configure a mapping relation on an elevator car router and a local area network address and a port corresponding to the first elevator terminal;
responding the port mapping configuration request, and completing port mapping relationship configuration according to the port mapping information to be configured;
sending a port mapping registration request to an elevator machine room router, wherein the port mapping registration request comprises at least one piece of configured port mapping information, so that the elevator machine room router responds to and stores the port mapping information in the port mapping registration request, and after a second elevator terminal queries and acquires the configured port mapping information, the first elevator terminal is used as a first cross-local area network access target to initiate a first cross-local area network access request, and the second elevator terminal and the first elevator terminal are respectively located in different local area networks.
2. The method of claim 1, wherein after sending the port map registration request to the elevator machine room router, the method further comprises:
receiving a first cross-local area network access request which is transferred by the elevator machine room router and comes from the second elevator terminal, wherein the first cross-local area network access request is generated by the second elevator terminal according to port mapping information corresponding to the first elevator terminal;
and forwarding the first cross-local area network access request to the first elevator terminal according to the configured port mapping relation corresponding to the first elevator terminal, so that the first elevator terminal responds to the first cross-local area network access request.
3. The method of claim 1, wherein prior to receiving the port mapping configuration request sent by the first elevator terminal, the method further comprises:
receiving a mapping configuration query request sent by the first elevator terminal;
responding to the mapping configuration inquiry request, feeding back all configured port mapping information to the first elevator terminal so that the first elevator terminal determines whether the port mapping information to be configured is contained in all configured port mapping information or not, and if not, initiating the port mapping configuration request.
4. The method of claim 1, wherein prior to receiving the port mapping configuration request sent by the first elevator terminal, the method further comprises:
receiving a wide area address query request sent by the first elevator terminal;
and responding to the wide area address query request, and feeding back all communication ports of the local elevator car router in the elevator wide area network and/or the current mappable configuration of the local elevator car router in the elevator wide area network to the first elevator terminal, so that the first elevator terminal generates the port mapping configuration request according to the fed-back internet protocol address and/or communication port.
5. The method of claim 1, wherein after sending a port map registration request to the elevator machine room router, the method further comprises:
receiving a port mapping logout request sent by the first elevator terminal;
responding the port mapping logout request, and deleting the mapping relation configuration specified by the port mapping logout request;
and forwarding the port mapping logout request to the elevator machine room router so that the elevator machine room router responds to and deletes the port mapping information specified by the port mapping logout request.
6. The method of claim 1, wherein the method further comprises:
receiving a mapping registration inquiry request sent by the first elevator terminal;
forwarding the mapping registration query request to the elevator machine room router so that the elevator machine room router responds and returns all currently stored port mapping information, wherein the all currently stored port mapping information refers to all current port mapping information which is stored on the elevator machine room router and comes from at least one elevator terminal;
forwarding all the currently stored port mapping information to the first elevator terminal, so that the first elevator terminal generates and initiates a second cross-local area network access request according to the port mapping information of a second cross-local area network access target after finding the port mapping information of the second cross-local area network access target;
receiving a second cross-local area network access request sent by the first elevator terminal;
and forwarding the second cross-local area network access request to a home elevator car router of the second cross-local area network access target through the elevator machine room router, so that the home elevator car router forwards the second cross-local area network access request to the second cross-local area network access target according to a configured port mapping relation corresponding to the second cross-local area network access target, and the second cross-local area network access target can respond to the second cross-local area network access request.
7. The method of claim 1, characterized in that the port mapping information further contains a port mapping function description, a device description of the first elevator terminal and/or an internet protocol address of the elevator machine room router in the elevator wide area network.
8. A port mapping registration device of an elevator terminal is characterized by comprising a configuration request receiving unit, a configuration request response unit and a registration request sending unit which are sequentially in communication connection;
the configuration request receiving unit is used for receiving a port mapping configuration request sent by a first elevator terminal, wherein the port mapping configuration request comprises at least one piece of port mapping information to be configured, and the port mapping information to be configured comprises a wide area network address and a port needing to configure a mapping relation on an elevator car router and a local area network address and a port corresponding to the first elevator terminal;
the configuration request responding unit is used for responding to the port mapping configuration request and completing port mapping relationship configuration according to the port mapping information to be configured;
the registration request sending unit is configured to send a port mapping registration request to an elevator machine room router, where the port mapping registration request includes at least one piece of configured port mapping information, so that the elevator machine room router responds to and stores the port mapping information in the port mapping registration request, and after a second elevator terminal queries and acquires the configured port mapping information, initiates a first cross-local area network access request by using the first elevator terminal as a first cross-local area network access target, and the second elevator terminal and the first elevator terminal are located in different local area networks respectively.
9. A computer device, characterized by: comprising a memory, a processor and a transceiver communicatively connected, wherein the memory is adapted to store a computer program, the transceiver is adapted to transmit and receive messages, and the processor is adapted to read the computer program and to perform the method according to any of claims 1 to 7.
10. A computer-readable storage medium characterized by: the computer-readable storage medium having stored thereon instructions which, when executed on a computer, perform the method of any of claims 1-7.
CN202010901596.8A 2020-08-31 2020-08-31 Port mapping registration method and device of elevator terminal and computer equipment Active CN112004242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010901596.8A CN112004242B (en) 2020-08-31 2020-08-31 Port mapping registration method and device of elevator terminal and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010901596.8A CN112004242B (en) 2020-08-31 2020-08-31 Port mapping registration method and device of elevator terminal and computer equipment

Publications (2)

Publication Number Publication Date
CN112004242A true CN112004242A (en) 2020-11-27
CN112004242B CN112004242B (en) 2023-03-14

Family

ID=73465680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010901596.8A Active CN112004242B (en) 2020-08-31 2020-08-31 Port mapping registration method and device of elevator terminal and computer equipment

Country Status (1)

Country Link
CN (1) CN112004242B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080159265A1 (en) * 2006-12-30 2008-07-03 Arcsoft (Shanghai) Technology Company, Ltd Point-To-Point Communication Using UPnP Protocol
CN101594243A (en) * 2009-06-30 2009-12-02 中兴通讯股份有限公司 A kind of multicast spanning virtual local area networks implementation method based on optical network unit
CN102291473A (en) * 2011-09-09 2011-12-21 中山大学 NAT (Network Address Translation) penetrating method of home network equipment management system
CN103581350A (en) * 2012-07-25 2014-02-12 中国电信股份有限公司 Method, terminals, equipment and system for publishing Internet services across NAT
CN104427013A (en) * 2013-09-10 2015-03-18 中国电信股份有限公司 Carrier-grade address translation device and customer address mapping relation processing method thereof
CN104683736A (en) * 2013-11-27 2015-06-03 中国电信股份有限公司 Method and system for acquiring network video
EP2999162A1 (en) * 2014-09-18 2016-03-23 Alcatel Lucent Remote management of LAN devices by an Auto-Configuration Server
CN105516744A (en) * 2015-12-25 2016-04-20 Tcl集团股份有限公司 Smart TV accessing method and smart TV accessing system
CN108965036A (en) * 2018-09-21 2018-12-07 深圳市信锐网科技术有限公司 Configure across public network equipment exchanging visit method, system, server and storage medium
CN109391704A (en) * 2017-08-11 2019-02-26 浙江宇视科技有限公司 A kind of across the private network access method of video monitoring equipment and device
CN109600449A (en) * 2018-12-24 2019-04-09 深圳市网心科技有限公司 A kind of P2P penetrating method, device, system and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080159265A1 (en) * 2006-12-30 2008-07-03 Arcsoft (Shanghai) Technology Company, Ltd Point-To-Point Communication Using UPnP Protocol
CN101594243A (en) * 2009-06-30 2009-12-02 中兴通讯股份有限公司 A kind of multicast spanning virtual local area networks implementation method based on optical network unit
CN102291473A (en) * 2011-09-09 2011-12-21 中山大学 NAT (Network Address Translation) penetrating method of home network equipment management system
CN103581350A (en) * 2012-07-25 2014-02-12 中国电信股份有限公司 Method, terminals, equipment and system for publishing Internet services across NAT
CN104427013A (en) * 2013-09-10 2015-03-18 中国电信股份有限公司 Carrier-grade address translation device and customer address mapping relation processing method thereof
CN104683736A (en) * 2013-11-27 2015-06-03 中国电信股份有限公司 Method and system for acquiring network video
EP2999162A1 (en) * 2014-09-18 2016-03-23 Alcatel Lucent Remote management of LAN devices by an Auto-Configuration Server
CN105516744A (en) * 2015-12-25 2016-04-20 Tcl集团股份有限公司 Smart TV accessing method and smart TV accessing system
CN109391704A (en) * 2017-08-11 2019-02-26 浙江宇视科技有限公司 A kind of across the private network access method of video monitoring equipment and device
CN108965036A (en) * 2018-09-21 2018-12-07 深圳市信锐网科技术有限公司 Configure across public network equipment exchanging visit method, system, server and storage medium
CN109600449A (en) * 2018-12-24 2019-04-09 深圳市网心科技有限公司 A kind of P2P penetrating method, device, system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张波,王丽: "基于端口映射NAT网络方案分析与实施", 《软件工程师》 *

Also Published As

Publication number Publication date
CN112004242B (en) 2023-03-14

Similar Documents

Publication Publication Date Title
US20170244792A1 (en) Power-Line Carrier Terminal Control Apparatus, System, and Method
US10887394B2 (en) Mechanism and service for device naming
CN111586120B (en) Internet of things gateway equipment, data transmission method, storage medium and installation method
CN107852430A (en) The wide-area services of Internet of Things are found
US20240064059A1 (en) Opc ua-based centralized user configuration method and system for time-sensitive network
CN104184663A (en) Communication method and device based on software-defined network and integrated identification network
CN107820262B (en) Parameter configuration method, device and system
US20240007929A1 (en) Polymorphic network control system and method supporting mobile access of terminal
US20220345872A1 (en) Method and system for controlling id identifier network mobility based on programmable switch
CN104205729A (en) Method, device, and system for configuring device in network
CN106657377B (en) A kind of WIA-PA/ interconnects manufacture network information service adapter and implementation method entirely
CN112004242B (en) Port mapping registration method and device of elevator terminal and computer equipment
CN114928660B (en) Method for communication between transparent processes of embedded operating system
JP2003060656A (en) Vlan constructing method in wireless lan, vlan packet processing program for wireless repeater, recording medium recording vlan packet processing program for wireless repeater, wireless repeater with vlan function and wireless vlan system
CN106209641A (en) A kind of method, system and device of Message processing
CN113364849B (en) DDS-based cross-wide area network dual-roaming data transmission method, system and storage medium
CN102938704A (en) Access management method, device and system
CN212463256U (en) Wireless terminal equipment of Internet of things and communication module
CN112533303A (en) Method and system for maintaining routing table of formation performance unmanned aerial vehicle, computer equipment and terminal
WO2022087796A1 (en) Zigbee device attribute subscription method and apparatus, and device
CN117082152B (en) Service processing method, system and device
CN117278647B (en) Equipment discovery method, storage medium and electronic equipment
CN112462647B (en) Radio station network control system and method
CN117176639B (en) Multi-protocol-based network topology automatic discovery method and device
CN112636963B (en) Networking management system and networking management method based on multiple addresses

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
GR01 Patent grant
GR01 Patent grant