CN112543230A - Method, device, equipment and medium for communication between controller host and cloud platform - Google Patents

Method, device, equipment and medium for communication between controller host and cloud platform Download PDF

Info

Publication number
CN112543230A
CN112543230A CN202011400949.2A CN202011400949A CN112543230A CN 112543230 A CN112543230 A CN 112543230A CN 202011400949 A CN202011400949 A CN 202011400949A CN 112543230 A CN112543230 A CN 112543230A
Authority
CN
China
Prior art keywords
communication link
cloud platform
main communication
link
controller host
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
CN202011400949.2A
Other languages
Chinese (zh)
Other versions
CN112543230B (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.)
Shenzhen Jieshun Science and Technology Industry Co Ltd
Original Assignee
Shenzhen Jieshun Science and Technology Industry 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 Shenzhen Jieshun Science and Technology Industry Co Ltd filed Critical Shenzhen Jieshun Science and Technology Industry Co Ltd
Priority to CN202011400949.2A priority Critical patent/CN112543230B/en
Publication of CN112543230A publication Critical patent/CN112543230A/en
Application granted granted Critical
Publication of CN112543230B publication Critical patent/CN112543230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application discloses a method, a device and equipment for communication between a controller host and a cloud platform and a computer readable storage medium, wherein the method comprises the following steps: detecting whether a main communication link between a controller in a parking lot and a cloud platform works normally or not; if not, closing the interface of the main communication link, and selecting a target auxiliary link from at least one auxiliary link; and starting the target auxiliary link, and updating the routing table and the default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route. According to the technical scheme, the abnormal condition that the main communication link does not work normally is timely found through active detection of the main communication link, normal connection and normal communication between the controller host and the cloud platform are guaranteed through the auxiliary link, interruption of the controller host and the cloud platform is avoided, interruption of parking service is avoided as much as possible, and stability and reliability of operation of the parking lot are improved.

Description

Method, device, equipment and medium for communication between controller host and cloud platform
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for communication between a controller host and a cloud platform.
Background
In the parking lot, the controller host is connected with the cloud platform through the network and communicates with the cloud platform to realize the processing of parking services.
At present, a controller host is connected and communicated with a cloud platform through a communication link, when the communication link breaks down, the controller host is disconnected from the cloud platform, and the parking service is interrupted, so that the parking lot cannot normally operate. And currently, the parking service is detected after being interrupted, and the network of the controller host is repaired after the network is found to be in failure, which leads to the continuous interruption of the parking service.
In summary, how to avoid the interruption of the parking service as much as possible is a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, a device and a computer readable storage medium for communicating a controller host with a cloud platform, which are used to avoid interruption of parking service as much as possible.
In order to achieve the above purpose, the present application provides the following technical solutions:
a method for a controller host to communicate with a cloud platform includes:
detecting whether a main communication link between a controller host machine and a cloud platform in a parking lot works normally or not;
if not, closing the interface of the main communication link, and selecting a target auxiliary link from at least one auxiliary link;
and starting the target auxiliary link, and updating a routing table and a default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
Preferably, after the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route, the method further includes:
detecting whether the main communication link is recovered to be normal;
and if so, updating the routing table and the default route according to the main communication link, so that the controller host communicates with the cloud platform through the main communication link according to the routing table and the default route.
Preferably, after determining that the primary communication link is recovered to normal, the method further includes:
and detecting whether the main communication link is stable within a preset time length, and if so, executing the step of updating the routing table and the default route according to the main communication link.
Preferably, before detecting whether the primary communication link returns to normal, the method further includes:
and opening an interface of the main communication link, and controlling the main communication link not to add the routing table.
Preferably, the detecting whether the main communication link between the controller host in the parking lot and the cloud platform works normally includes:
detecting a phy state, detecting a network state of the main communication link through an icmp protocol, and determining that the main communication link does not work normally if the phy state and/or the network state of the main communication link are/is abnormal.
Preferably, after determining that the primary communication link is not operating normally, the method further includes:
and sending out a notice that the main communication link does not work normally.
Preferably, the detecting whether the main communication link between the controller host in the parking lot and the cloud platform works normally includes:
and detecting whether the main communication link works normally or not at preset time intervals.
A controller host and cloud platform communication device, comprising:
the system comprises a first detection module, a second detection module and a third detection module, wherein the first detection module is used for detecting whether a main communication link between a controller host and a cloud platform in a parking lot works normally or not;
the selection module is used for closing an interface of the main communication link and selecting a target auxiliary link from at least one auxiliary link if the main communication link does not work normally;
and the starting module is used for starting the target auxiliary link and updating a routing table and a default route according to the target auxiliary link so that the controller host can communicate with the cloud platform through the target auxiliary link according to the routing table and the default route.
A controller host and cloud platform communication device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the controller host and cloud platform communication method as described in any one of the above when executing the computer program.
A computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of a controller host and cloud platform communication method as in any one of the above.
The application provides a method, a device, equipment and a computer readable storage medium for communication between a controller host and a cloud platform, wherein the method comprises the following steps: detecting whether a main communication link between a controller in a parking lot and a cloud platform works normally or not; if not, closing the interface of the main communication link, and selecting a target auxiliary link from at least one auxiliary link; and starting the target auxiliary link, and updating the routing table and the default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
The technical scheme disclosed by the application detects whether a main communication link between a controller host and a cloud platform in a parking lot normally works, closes an interface of the main communication link when detecting that the main communication link does not normally work, selects a target auxiliary link from the auxiliary links, opens the target auxiliary link, and updates a routing table and a default route so that the controller host can communicate with the cloud platform through the target auxiliary link, namely the application can timely find the abnormal condition that the main communication link does not normally work through the active detection of the main communication link, and ensures the normal connection and the normal communication between the controller host and the cloud platform by using the auxiliary link when the main communication link does not normally work so as to avoid the interruption between the controller host and the cloud platform due to the abnormal work of the main communication link, thereby avoiding the interruption of parking service as much as possible, and further improve the stability and reliability of the operation of the parking lot.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for a controller to communicate with a cloud platform according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram illustrating a connection between a controller host and a cloud platform according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a controller host and a cloud platform communication device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a controller host and a cloud platform communication device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, which shows a flowchart of a method for a controller to communicate with a cloud platform provided in an embodiment of the present application, a method for a controller to communicate with a cloud platform provided in an embodiment of the present application may include:
s11: detecting whether a main communication link between a controller host machine and a cloud platform in a parking lot works normally or not; if yes, go to step S11, otherwise go to step S12;
in view of the fact that the communication connection between the controller host and the cloud platform is achieved through one communication link, the controller host is disconnected from the cloud platform after the communication link fails, and therefore parking service can be interrupted, and in addition, detection can be performed only after the parking service is interrupted, and the communication link between the controller host and the cloud platform is maintained and processed when the communication link fails, which can lead to continuous interruption of the parking service, the method for communicating the controller host with the cloud platform is provided, so that the interruption of the parking service is avoided as much as possible, and the reliability and the stability of the operation of a parking lot are improved.
Specifically, when the controller host and the cloud platform in the parking lot are connected and communicated through the main communication link, whether the main communication link between the controller host and the cloud platform works normally or not can be detected, so that the abnormal condition that the main communication link does not work normally can be found in time through active detection. During the detection, if it is determined that the primary communication link between the controller host and the cloud platform is operating normally, step S11 may be continuously performed to continue the detection of the primary communication link, and if it is determined that the primary communication link between the controller host and the cloud platform is not operating normally, step S12 may be performed.
S12: the interface of the primary communication link is closed and a target secondary link is selected from the at least one secondary link.
When it is determined that the main communication link between the controller host and the cloud platform does not work normally, the interface of the main communication link may be closed, that is, an unnecessary interface may be closed, and at the same time, one auxiliary link may be selected from at least one auxiliary link previously set between the controller host and the cloud platform as a target auxiliary link, specifically, random selection may be performed, or each auxiliary link may be numbered in advance and selected according to the order of the numbers from small to large or from large to small.
It should be noted that, when only one auxiliary link is provided, the auxiliary link may be directly used as a target auxiliary link, and in order to reduce the operation cost of the parking lot, an auxiliary link may be preferably provided, specifically, refer to fig. 2, which shows a schematic connection diagram between the controller host and the cloud platform provided in the embodiment of the present application, and in fig. 2, a main communication link and an auxiliary link are provided between the controller host and the cloud platform.
S13: and starting the target auxiliary link, and updating the routing table and the default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
After the target auxiliary link is selected, the target auxiliary link can be started, the routing table and the default route can be updated according to the started target auxiliary link, namely, the routing table and the default route are updated to be the data transmission path with the target auxiliary link, so that the controller can communicate with the cloud platform through the target auxiliary link according to the updated routing table and the updated default route, and equipment accessed through the controller host can be accessed into the cloud platform through the controller host and the target auxiliary link, so that parking service in the parking lot can be continued without interruption, and the reliability, stability and continuity of operation of the parking lot are improved. In addition, because the communication link switching between the controller host and the cloud platform does not need human intervention, the communication cost of the controller host and the cloud platform can be reduced, and the labor cost of the operation of the parking lot can be reduced.
It should be noted that, after the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route, it may detect whether the target auxiliary link is working normally, and switch to the main communication link or any other auxiliary link when the target auxiliary link is not working normally (directly switch to the main communication link when the main communication link is normal, or switch to any other auxiliary link when the main communication link is abnormal), so that the controller host may communicate with the cloud platform continuously, thereby avoiding interruption of parking service.
The technical scheme disclosed by the application detects whether a main communication link between a controller host and a cloud platform in a parking lot normally works, closes an interface of the main communication link when detecting that the main communication link does not normally work, selects a target auxiliary link from the auxiliary links, opens the target auxiliary link, and updates a routing table and a default route so that the controller host can communicate with the cloud platform through the target auxiliary link, namely the application can timely find the abnormal condition that the main communication link does not normally work through the active detection of the main communication link, and ensures the normal connection and the normal communication between the controller host and the cloud platform by using the auxiliary link when the main communication link does not normally work so as to avoid the interruption between the controller host and the cloud platform due to the abnormal work of the main communication link, thereby avoiding the interruption of parking service as much as possible, and further improve the stability and reliability of the operation of the parking lot.
In the method for communicating between a controller and a cloud platform provided in an embodiment of the present application, after a controller host communicates with the cloud platform through a target auxiliary link according to a routing table and a default route, the method may further include:
detecting whether the main communication link is recovered to be normal;
and if so, updating the routing table and the default route according to the main communication link, so that the controller host communicates with the cloud platform through the main communication link according to the routing table and the default route.
In the application, after the routing table and the default route are updated according to the target auxiliary link, so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route, whether the main communication link is recovered to be normal or not can be detected, if the main communication link is not recovered to be normal, the controller host can continue to communicate with the cloud platform through the target auxiliary link, and the step of detecting whether the main communication link is recovered to be normal or not can be continuously executed, if the main communication link is recovered to be normal, the interface of the target auxiliary link can be closed, the routing table and the default route are updated according to the main communication link, so that the controller host communicates with the cloud platform through the main communication link according to the routing table and the default route, namely, the controller host and the cloud platform are connected and communicate by using the recovered main communication link, that is, under the condition that the main communication link is normal, the main communication link is preferentially adopted to provide services for the communication between the controller host and the cloud platform.
The method for communication between the controller and the cloud platform provided by the embodiment of the application, after determining that the main communication link is recovered to be normal, may further include:
and detecting whether the main communication link is stable within a preset time span, and if so, executing a step of updating the routing table and the default route according to the main communication link.
After determining that the main communication link is recovered to be normal, whether the main communication link is stable within a preset time length or not may be detected, if the main communication link is not stable within the preset time length, it is indicated that the network of the main communication link is not stable, at this time, in order to avoid an influence on communication between the controller host and the cloud platform, the step of updating the routing table and the default route according to the main communication link is not performed, and if the main communication link is stable within the preset time length, it is indicated that the network of the main communication link is stable, at this time, the step of updating the routing table and the default route according to the main communication link may be performed, so as to improve communication quality and communication stability of the controller host and the cloud platform.
It should be noted that the preset time length mentioned above can be set by a human being based on experience.
The method for communication between the controller and the cloud platform provided by the embodiment of the application, before detecting whether the main communication link is recovered to be normal, may further include:
and opening an interface of the main communication link, and controlling the main communication link not to add the routing table.
After the routing table and the default route are updated according to the target auxiliary link, the controller host can start an interface of the main communication link according to the routing table and the default route after communicating with the cloud platform through the target auxiliary link and before detecting whether the main communication link is recovered to be normal or not, but the main communication link is not added into the routing table at the moment, so that the influence on the communication between the controller host and the cloud platform is avoided, the routing table and the default route can be directly updated according to the main communication link after the main communication link is recovered to be normal, and the work of the main communication link can be directly recovered even if.
The method for communication between the controller and the cloud platform provided by the embodiment of the application detects whether a main communication link between a controller host and the cloud platform in a parking lot works normally, and can include the following steps:
and detecting the phy state, detecting the network state of the main communication link through an icmp protocol, and if the phy state and/or the network state of the main communication link are/is abnormal, determining that the main communication link does not work normally.
In the application, when detecting whether a main communication link between a controller host and a cloud platform in a parking lot works normally, a phy (physical interface transceiver) state may be detected, and an icmp (Internet Control Message Protocol) Protocol may be sent to detect a network state of the main communication link through the icmp Protocol, and if the phy state is abnormal and/or the network state of the main communication link is abnormal, it is determined that the main communication link does not work normally, and if the phy state is normal and the network state of the main communication link is normal, it is determined that the main communication link is normal.
Similarly, when detecting whether the main communication link is normal or not, it may also detect the network state of the main communication link by detecting phy and by using the icmp protocol, and if both are normal, it may be determined that the main communication link is normal.
The method for communication between the controller and the cloud platform provided by the embodiment of the application, after determining that the main communication link does not work normally, may further include:
a notification is sent that the primary communication link is not operating properly.
After the main communication link is determined to be not normally working, a notification that the main communication link is not normally working can be sent, specifically, the notification that the main communication link is not normally working can be sent through any one or any combination of buzzing, indicator light flashing, mail notification and short message notification, so that a manager in the parking lot can timely know the message that the main communication link is not normally working and timely carry out operations such as maintenance on the main communication link.
The method for communication between the controller and the cloud platform provided by the embodiment of the application detects whether a main communication link between a controller host and the cloud platform in a parking lot works normally, and can include the following steps:
and detecting whether the main communication link works normally or not at preset time intervals.
When the main communication link is detected, whether the main communication link normally works can be detected at preset time intervals, wherein the size of the preset time intervals can be set according to experience or actual needs.
Of course, it may also be detected whether the main communication link is working normally in real time or after receiving the detection command, and the detection mode is not limited in this application.
An embodiment of the present application further provides a controller host and cloud platform communication device, refer to fig. 3, which shows a schematic structural diagram of a controller host and cloud platform communication device provided in an embodiment of the present application, and the controller host and cloud platform communication device may include:
the first detection module 31 is configured to detect whether a main communication link between a controller host in a parking lot and a cloud platform works normally;
a selecting module 32, configured to close an interface of the main communication link and select a target auxiliary link from the at least one auxiliary link if the main communication link does not work normally;
the starting module 33 is configured to start the target auxiliary link, and update the routing table and the default route according to the target auxiliary link, so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
The controller host and cloud platform communication device provided by the embodiment of the application can further include:
the second detection module is used for detecting whether the main communication link is recovered to be normal or not after the controller host machine communicates with the cloud platform through the target auxiliary link according to the routing table and the default route;
and the updating module is used for updating the routing table and the default route according to the main communication link if the main communication link is recovered to be normal, so that the controller host can communicate with the cloud platform through the main communication link according to the routing table and the default route.
The controller host and cloud platform communication device provided by the embodiment of the application can further include:
and the third detection module is used for detecting whether the main communication link is stable within a preset time length after the main communication link is determined to be recovered to be normal, and if so, executing a step of updating the routing table and the default route according to the main communication link.
The controller host and cloud platform communication device provided by the embodiment of the application can further include:
and the control module is used for starting an interface of the main communication link and controlling the main communication link not to add the routing table before detecting whether the main communication link is recovered to be normal.
In an embodiment of the present application, the first detecting module 31 may include:
and the first detection unit is used for detecting the phy state and detecting the network state of the main communication link through an icmp protocol, and if the phy state and/or the network state of the main communication link are/is abnormal, determining that the main communication link does not work normally.
The controller host and cloud platform communication device provided by the embodiment of the application can further include:
and the notification sending module is used for sending out the notification that the main communication link does not work normally after the main communication link is determined to work normally.
In an embodiment of the present application, the first detecting module 31 may include:
and the second detection unit is used for detecting whether the main communication link works normally or not at preset time intervals.
An embodiment of the present application further provides a controller host and cloud platform communication device, refer to fig. 4, which shows a schematic structural diagram of a controller host and cloud platform communication device provided in an embodiment of the present application, and the schematic structural diagram may include:
a memory 41 for storing a computer program;
the processor 42, when executing the computer program stored in the memory 41, may implement the following steps:
detecting whether a main communication link between a controller in a parking lot and a cloud platform works normally or not; if not, closing the interface of the main communication link, and selecting a target auxiliary link from at least one auxiliary link; and starting the target auxiliary link, and updating the routing table and the default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps may be implemented:
detecting whether a main communication link between a controller in a parking lot and a cloud platform works normally or not; if not, closing the interface of the main communication link, and selecting a target auxiliary link from at least one auxiliary link; and starting the target auxiliary link, and updating the routing table and the default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For a description of a relevant part in the controller host and cloud platform communication apparatus, device and computer readable storage medium provided in the embodiment of the present application, reference may be made to the detailed description of a corresponding part in the controller host and cloud platform communication method provided in the embodiment of the present application, and details are not repeated here.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include elements inherent in the list. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for communication between a controller host and a cloud platform is characterized by comprising the following steps:
detecting whether a main communication link between a controller host machine and a cloud platform in a parking lot works normally or not;
if not, closing the interface of the main communication link, and selecting a target auxiliary link from at least one auxiliary link;
and starting the target auxiliary link, and updating a routing table and a default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
2. The method of claim 1, wherein after the controller host communicates with the cloud platform via the target auxiliary link according to the routing table and the default route, the method further comprises:
detecting whether the main communication link is recovered to be normal;
and if so, updating the routing table and the default route according to the main communication link, so that the controller host communicates with the cloud platform through the main communication link according to the routing table and the default route.
3. The controller host and cloud platform communication method of claim 2, further comprising, after determining that the primary communication link is back to normal:
and detecting whether the main communication link is stable within a preset time length, and if so, executing the step of updating the routing table and the default route according to the main communication link.
4. The method according to claim 2, further comprising, before detecting whether the primary communication link is back to normal:
and opening an interface of the main communication link, and controlling the main communication link not to add the routing table.
5. The method for communicating the controller host with the cloud platform according to claim 1, wherein detecting whether a main communication link between the controller host and the cloud platform in the parking lot is working normally comprises:
detecting a phy state, detecting a network state of the main communication link through an icmp protocol, and determining that the main communication link does not work normally if the phy state and/or the network state of the main communication link are/is abnormal.
6. The method of claim 1, wherein after determining that the primary communication link is not working properly, further comprising:
and sending out a notice that the main communication link does not work normally.
7. The method for communicating the controller host with the cloud platform according to claim 1, wherein detecting whether a main communication link between the controller host and the cloud platform in the parking lot is working normally comprises:
and detecting whether the main communication link works normally or not at preset time intervals.
8. A controller host and cloud platform communication device, comprising:
the system comprises a first detection module, a second detection module and a third detection module, wherein the first detection module is used for detecting whether a main communication link between a controller host and a cloud platform in a parking lot works normally or not;
the selection module is used for closing an interface of the main communication link and selecting a target auxiliary link from at least one auxiliary link if the main communication link does not work normally;
and the starting module is used for starting the target auxiliary link and updating a routing table and a default route according to the target auxiliary link so that the controller host can communicate with the cloud platform through the target auxiliary link according to the routing table and the default route.
9. A controller host and cloud platform communication device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the controller host and cloud platform communication method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the controller host and cloud platform communication method according to any one of claims 1 to 7.
CN202011400949.2A 2020-12-04 2020-12-04 Method, device, equipment and medium for communication between controller host and cloud platform Active CN112543230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011400949.2A CN112543230B (en) 2020-12-04 2020-12-04 Method, device, equipment and medium for communication between controller host and cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011400949.2A CN112543230B (en) 2020-12-04 2020-12-04 Method, device, equipment and medium for communication between controller host and cloud platform

Publications (2)

Publication Number Publication Date
CN112543230A true CN112543230A (en) 2021-03-23
CN112543230B CN112543230B (en) 2023-06-27

Family

ID=75015761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011400949.2A Active CN112543230B (en) 2020-12-04 2020-12-04 Method, device, equipment and medium for communication between controller host and cloud platform

Country Status (1)

Country Link
CN (1) CN112543230B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020156927A1 (en) * 2000-12-26 2002-10-24 Alacritech, Inc. TCP/IP offload network interface device
CN102368860A (en) * 2011-08-23 2012-03-07 李秀川 Network switch method and device
CN107332683A (en) * 2016-04-29 2017-11-07 中国移动通信集团内蒙古有限公司 A kind of link switch-over method and system
CN109118600A (en) * 2018-08-09 2019-01-01 武汉市艾派智能科技有限公司 A kind of Car park payment cloud platform and method based on Internet of Things
CN111193664A (en) * 2020-01-16 2020-05-22 郑州轻工业大学 Link backup method and device for computer network
CN111262665A (en) * 2018-11-30 2020-06-09 北京金山云网络技术有限公司 Data communication method, device, controller and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020156927A1 (en) * 2000-12-26 2002-10-24 Alacritech, Inc. TCP/IP offload network interface device
CN102368860A (en) * 2011-08-23 2012-03-07 李秀川 Network switch method and device
CN107332683A (en) * 2016-04-29 2017-11-07 中国移动通信集团内蒙古有限公司 A kind of link switch-over method and system
CN109118600A (en) * 2018-08-09 2019-01-01 武汉市艾派智能科技有限公司 A kind of Car park payment cloud platform and method based on Internet of Things
CN111262665A (en) * 2018-11-30 2020-06-09 北京金山云网络技术有限公司 Data communication method, device, controller and system
CN111193664A (en) * 2020-01-16 2020-05-22 郑州轻工业大学 Link backup method and device for computer network

Also Published As

Publication number Publication date
CN112543230B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
US9282030B2 (en) Transport control server that calculates routing information
CN109428740B (en) Method and device for recovering equipment failure
EP3979574A1 (en) Method and device for implementing rerouting
CN112543230A (en) Method, device, equipment and medium for communication between controller host and cloud platform
CN111629386B (en) Communication method, system and equipment
CN105634817A (en) Network fault automatic detecting system and method based on SDN
CN112737844A (en) Method and device for switching between main and standby in redundant system
CN111371680A (en) Route management method, device, equipment and storage medium for dual-computer hot standby
CN116013053A (en) Bluetooth control method, system, terminal and storage medium based on network
CN115665035A (en) Information processing method and device, first node and storage medium
CN106330571B (en) A kind of fault handling method and device
JP3738378B2 (en) System configuration setting method and transmission apparatus
CN114585009A (en) UPF dual-computer hot standby switching method and device, electronic equipment and storage medium
EP3355480A1 (en) Communication device, communication processing method, communication processing apparatus and communication system
CN110138636B (en) Dynamic linear protection method and device
JP2018046356A (en) Radio network system, management device thereof and radio base station setting change method
JP4191155B2 (en) Supervisory control program, supervisory control device, supervisory control method
CN114389949B (en) Route upgrading method, electronic equipment and storage medium
JP6659047B2 (en) Communication network system, route control device, route control method, and route control program
CN112486750A (en) Host fault processing method, device, control system and storage medium
CN107340973B (en) Method and system for accessing asynchronous logic unit
CN101959223B (en) Self-healing control method and self-healing control device of flow-control transport protocol link failure
CN110532178A (en) A kind of Android system library file collapse location positioning method and device
JP2006186633A (en) System, method, and program for fault path diagnosis
KR20010065409A (en) Master machine selecting method in distribution type intelligent network system

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