CN114364059B - Communication method and device of storage cabinet - Google Patents

Communication method and device of storage cabinet Download PDF

Info

Publication number
CN114364059B
CN114364059B CN202210028758.0A CN202210028758A CN114364059B CN 114364059 B CN114364059 B CN 114364059B CN 202210028758 A CN202210028758 A CN 202210028758A CN 114364059 B CN114364059 B CN 114364059B
Authority
CN
China
Prior art keywords
network
mode
dual
network mode
server
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.)
Active
Application number
CN202210028758.0A
Other languages
Chinese (zh)
Other versions
CN114364059A (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.)
Rajax Network Technology Co Ltd
Original Assignee
Rajax Network Technology 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 Rajax Network Technology Co Ltd filed Critical Rajax Network Technology Co Ltd
Priority to CN202210028758.0A priority Critical patent/CN114364059B/en
Publication of CN114364059A publication Critical patent/CN114364059A/en
Application granted granted Critical
Publication of CN114364059B publication Critical patent/CN114364059B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a communication method and device of a locker. The method comprises the steps of communicating with a server through a first network, acquiring the available state of the server and a second network, and simultaneously communicating with the server through the first network and the second network when the available second network exists. Therefore, the communication delay of the storage cabinet can be reduced, abnormal conditions of communication data are reduced, and the response speed and stability of the storage cabinet are improved.

Description

Communication method and device of storage cabinet
Technical Field
The invention relates to the technical field of lockers, in particular to a communication method and device of a locker.
Background
At present, people often use article storage cabinets, such as take-out meal, express delivery pieces, supermarket storage bags, railway station storage bags and the like. The access of the locker is seriously dependent on the network of the equipment, and once the network has a problem, a user cannot normally take and put articles. At present, the locker basically uses the internet of things card to provide basic network service, but the network priority of the internet of things card is lower than that of 4G and 5G network service, and when network resources are strived for, the internet of things card can be degraded by automatic network service, so that the access service of the locker is delayed in a short time and even abnormal.
Disclosure of Invention
In view of the above, the embodiment of the invention provides a communication method and a device for a locker, which can reduce communication delay of the locker, reduce abnormal conditions of communication data and improve response speed and stability of the locker.
In a first aspect, an embodiment of the present invention provides a method for communicating a locker, where the method includes:
initializing a network mode into a single network mode, and communicating with a server through a first network in the single network mode;
acquiring the available state of a second network corresponding to the locker from a server; and
switching the network mode to a dual network mode in response to the presence of an available second network, in which communication is made with the server through the first network and the second network;
the first network is a mobile data network, and the second network is a wireless local area network.
In some embodiments, the switching the network mode to the dual network mode is specifically:
in response to there being an available second network, a start-up script for a dual network mode is run to switch the network mode to the dual network mode.
In some embodiments, the dual network mode initiation script includes a dual network mode priority configuration, a routing table, and a policy;
wherein the priority is configured to cause the first network and the second network to coexist;
the routing table and policies are used to enable the first network and the second network to be simultaneously on-line.
In some embodiments, the start-up script is obtained by:
modifying a priority code of a network so that the first network and the second network coexist;
modifying a routing table and a policy to enable the first network and the second network to be on the internet at the same time;
generating a dual-network mode configuration file in response to the first network and the second network being successful in surfing the internet at the same time; and
and generating a starting script of the dual-network mode according to the dual-network mode configuration file.
In some embodiments, the method further comprises:
in response to there being no available second network, the control network mode is a single network mode.
In some embodiments, the method further comprises:
and in the dual-network mode, synchronizing the data of the first network and the second network.
In a second aspect, an embodiment of the present invention provides a communication device for a locker, the device including:
the network initialization unit is used for initializing a network mode into a single network mode, and communicating with the server through a first network in the single network mode;
the state query unit is used for acquiring the available state of the second network corresponding to the storage cabinet from the server;
a network mode switching unit configured to switch the network mode to a dual network mode in which communication is performed with the server through the first network and the second network in response to the presence of an available second network;
the first network is a mobile data network, and the second network is a wireless local area network.
In some embodiments, the network mode switching unit is specifically configured to:
in response to there being an available second network, a start-up script for a dual network mode is run to switch the network mode to the dual network mode.
In some embodiments, the dual network mode initiation script includes a dual network mode priority configuration, a routing table, and a policy;
wherein the priority is configured to cause the first network and the second network to coexist;
the routing table and policies are used to enable the first network and the second network to be simultaneously on-line.
In some embodiments, the apparatus further includes a startup script acquisition unit configured to acquire the startup script by:
modifying a priority code of a network so that the first network and the second network coexist;
modifying a routing table and a policy to enable the first network and the second network to be on the internet at the same time;
generating a dual-network mode configuration file in response to the first network and the second network being successful in surfing the internet at the same time; and
and generating a starting script of the dual-network mode according to the dual-network mode configuration file.
In some embodiments, the network mode switching unit is further configured to:
in response to there being no available second network, the control network mode is a single network mode.
In some embodiments, the apparatus further comprises:
and the data synchronization unit is used for synchronizing the data of the first network and the second network in the dual-network mode.
In a third aspect, embodiments of the present invention provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides an electronic device comprising a memory and a processor, the memory storing one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method as described in the first aspect.
According to the technical scheme, the first network and the server are communicated, the available state of the second network is obtained from the server, and when the available second network exists, the first network and the second network are communicated with the server at the same time. Therefore, the communication delay of the storage cabinet can be reduced, abnormal conditions of communication data are reduced, and the response speed and stability of the storage cabinet are improved.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of embodiments of the present invention with reference to the accompanying drawings, in which:
FIG. 1 is a schematic illustration of a locker system according to an embodiment of the invention;
FIG. 2 is a flow chart of a network configuration of an embodiment of the present invention;
FIG. 3 is a control flow diagram of a locker system according to an embodiment of the invention;
FIG. 4 is a flow chart of a method of communication of a locker according to an embodiment of the invention;
FIG. 5 is a flow chart of a communication device of a locker according to an embodiment of the invention;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The present invention is described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth in detail. The present invention will be fully understood by those skilled in the art without the details described herein. Well-known methods, procedures, flows, components and circuits have not been described in detail so as not to obscure the nature of the invention.
Moreover, those of ordinary skill in the art will appreciate that the drawings are provided herein for illustrative purposes and that the drawings are not necessarily drawn to scale.
Unless the context clearly requires otherwise, the words "comprise," "comprising," and the like in the description are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, it is the meaning of "including but not limited to".
In the description of the present invention, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
FIG. 1 is a schematic diagram of a locker system according to an embodiment of the invention. As shown in fig. 1, the locker system according to the embodiment of the present invention includes a locker 1 and a server 2. Wherein the locker 1 comprises a first communication module 11 and a second communication module 12. The first communication module 11 communicates with the server 2 via a first network, and the second communication module 12 communicates with the server 2 via a second network.
In this embodiment, the locker 1 is used for storing and taking out articles.
In this embodiment, the server 2 may be a stand-alone server or may be a server cluster composed of a plurality of servers.
Further, the locker usually uses a mobile data network card to provide basic network service, so the first communication module 11 is a mobile communication module, and correspondingly, the first network is a mobile data network.
In an alternative implementation, the first communication module 11 is a 5G/4G/3G/2G mobile data communication module. Correspondingly, the locker 1 further comprises a mobile data card and a card slot matched with the mobile data communication module, wherein the mobile data card can be a common card (such as a mobile phone card) of 5G/4G/3G/2G, and is arranged in the card slot. Specifically, the mobile data card may be mounted in the card slot by means of insertion, patch, embedding, etc. Therefore, the mobile data communication module and the corresponding mobile communication card can provide mobile communication service (including 2G, 3G, 4G and 5G) for the locker, and the locker can communicate with the server through the mobile communication network.
In another alternative implementation, the first communication module 11 is a 5G/4G/3G/2G internet of things module. Correspondingly, the storage cabinet 1 further comprises an Internet of things card and a clamping groove matched with the Internet of things module, wherein the Internet of things card is installed in the clamping groove. Specifically, the internet of things card can be installed in the card slot in a manner of insertion, patch, embedding and the like. The internet of things card is a 5G/4G/3G/2G card provided by an operator, and the special number section and the independent network element are adopted, so that the management requirement of intelligent hardware and the internet of things industry on equipment networking and the mobile informatization application requirement can be met, and the internet of things card has the advantages of low price, strong environmental adaptability and the like. Therefore, the internet of things module and the corresponding internet of things card can provide mobile communication service (comprising 2G, 3G, 4G and 5G) for the storage cabinet, and the storage cabinet can communicate with the server through the mobile communication network.
It should be understood that the above-listed first communication module is only one example of the embodiment of the present invention, and the embodiment of the present invention is not limited thereto, and the first communication module may be implemented based on various existing manners, for example, the first communication module 11 may also be a GSM (Global System for Mobile Communications ) module, a GPRS (General packet radio service, general packet radio service) module, an eMTC (LTE advanced MTO, enhanced machine type communication) module, an NB-IoT (Narrow Band Internet of Things ) module, and the like.
Further, the second communication module 12 is a wireless lan module, and correspondingly, the second network is a wireless lan.
In a specific implementation, the second communication module 12 is a Wi-Fi (wireless network communication technology) module. Wi-Fi, also known as "Mobile hotspot," is a brand authentication of Wi-Fi alliance manufacturers as a product, and is a wireless local area network technology created in the IEEE 802.11 standard. In general, radio waves are transmitted through a wireless router, and networking can be performed by a Wi-Fi connection method in an effective range covered by the radio waves of the wireless router, thereby performing wireless communication.
It should be understood that the above-listed second communication module is only one example of the embodiment of the present invention, and the embodiment of the present invention is not limited thereto, and the second communication module may be implemented based on various existing manners, for example, the second communication module 12 may also be a bluetooth module.
Thus, the locker 1 may communicate with the server 2 via the first network and the second network.
Further, the locker of the embodiment of the invention can work in a single network mode or a double network mode. The single network mode refers to that the locker communicates with the server through a network, and the embodiment of the invention is illustrated by taking the locker communicates with the server through a first network. The dual network mode means that the locker can communicate with the server through both the first network and the second network.
In the single network or dual network mode, the communication data between the cabinet and the server may be a control instruction sent by the server to the cabinet, for example, an instruction for opening the cabinet door, an instruction for closing the cabinet door, and the like. The status data sent from the locker to the server may be, for example, whether each compartment is loaded with an article, an action being performed by each compartment (such as opening or closing a door), or an abnormal status such as a damaged locker.
Further, the server 2 is an AIoT (Artificial Intelligence & Internet of Things, artificial intelligence internet of things) service platform. The AIoT is integrated with an AI (Artificial Intelligence ) technology and an IoT (Internet of Things, internet of things) technology, mass data from different dimensions are generated and collected through the internet of things and stored at the cloud end and the edge end, and then through big data analysis and higher-form artificial intelligence, the purposes of everything datamation and everything intelligent combination are achieved. In the system, the mutual and the mutual communication among different intelligent terminal devices, different system platforms and different application scenes are realized, and everything is mutually fused.
Further, AIoT may provide efficient, visual bulk management device management functionality, with a range of managed devices involving sensors, microcontrollers, and gateways for powerful routing device group communications, etc. Therefore, in the control of the storage cabinet, a large number of storage cabinets, sensors, controllers and other devices in the storage cabinets can be managed. Meanwhile, the AIoT can acquire data through a sensor arranged on the storage cabinet, and then the future running condition of the equipment is predicted through a simulation means, so that preventive maintenance is adopted, the downtime risk is reduced, and the downtime is shortened. Moreover, the method is also applicable to the field of the present invention. AIoT also supports multiple protocols, multiple networks, multiple platforms, multiple territories of device fast access, networks with 2G, 3G, 4G, 5G, NB-IoT, loRa and Wi-Fi etc., communication protocols with MQTT, coAP, HTTP etc.
In this embodiment, the locker 1 is configured with a predetermined operating system, and the network is configured by the operating system.
In a specific implementation manner, the operating system configured by the locker 1 is an Android (Android) system, and Android is an operating system based on free and open source codes of a Linux kernel, and the Android system can be applied to various intelligent devices such as smart phones, tablet computers, televisions, digital cameras, game machines and smart watches.
It should be appreciated that the operating system of the locker according to the embodiments of the present invention is not limited, and may be implemented by various existing operating systems, for example, a windows operating system, a liunx operating system, an ios operating system, etc.
Taking an Android system as an example, in a default situation, when one network is connected, the connection of the other network is forcibly disconnected, that is, the two networks cannot coexist. Thus, the embodiment of the invention needs to configure the network so that the first network and the second network coexist.
Specifically, the flow of configuring the network may refer to fig. 2, and specifically includes the following steps:
step S110, modifying the priority code of the network.
In this embodiment, in general, the Android system defaults to Wi-Fi with a higher priority than 4G, and thus, when the system connects Wi-Fi, 4G is disconnected. Therefore, the priority code of the Android system needs to be modified so that the 4G priority is higher than Wi-Fi, and meanwhile, when a new network is added, the original Android system is removed, and the action of closing the existing network according to the network priority is performed, so that the coexistence of networks is increased. Thus, wi-Fi and 4G networks can coexist, and the action of cutting off other networks can be skipped.
Further, the network is configured by modifying the frame of the Android system.
Specifically, the network connection management system of the Android system includes connectityservice, network management service, network statsservice and network policy management service, and these four parts cooperate together to complete the connection management service of the network. The ConnectivityService provides a data connection management service, the NetworkPolicyManagerService provides a network policy management service, the NetworkStatsService provides a network transmission data statistics service, and the NetworkManagementService provides a management service for a physical network interface.
The networkpolicymanageservice maintains network usage policies, which may be read from a policy file. The setting policy interface provided by the NetworkPolicyManager can be set, and the networkpolicymanageservice can control network connection according to the settings or policies read from the policy file.
ConnectivityService implementation manages all data connections of the system, including physical connections, virtual connections, and shared connections.
Further, in the android system, by default, when one network is connected, the connection of the other network is forced to be disconnected, so, in order to meet the requirement that the first network and the second network are connected simultaneously, the network management mechanism of the android needs to be modified, so that when one network is connected, the other network is not forced to be disconnected.
In one particular implementation, the code of ConnectivityService may be configured so that two networks may be connected at the same time. Such that when one network is networked, the other network is not forced to disconnect.
Different Android version modification modes are different, and the embodiment of the invention is not described herein.
Step S120, modifying the routing table and the policy so that the first network and the second network are simultaneously surfing the internet.
In the present embodiment, after the configuration of step S110, although 4G and Wi-Fi can coexist, it is actually possible to internet only through one of the networks, and thus, by modifying the routing table and the policy, the first network and the second network can be simultaneously internet surfing.
The Android system maintains a plurality of routing tables and a policy table, the policy table defining usage policies for each routing table, each policy containing a priority, the routing table being a spreadsheet (file) or class database stored in a router or networked computer, storing paths pointing to specific network addresses.
And step S130, generating a dual-network mode configuration file in response to the successful simultaneous internet surfing of the first network and the second network.
In this embodiment, when the first network and the second network are successfully connected to each other at the same time, a dual-network mode configuration file is generated, which includes network information that needs to coexist, parameter information related to the network information, and the like.
And step 140, generating a starting script of the dual-network mode according to the dual-network mode configuration file.
In this embodiment, the dual-network mode configuration file is used to generate a corresponding startup script according to a specific format. Such that in response to the presence of the available second network, a startup script is run to communicate with the server over the first network and the second network.
Thus, the configuration of the simultaneous connection of the double networks can be completed.
Further, FIG. 3 is a flow chart of a method of communication of a locker according to an embodiment of the invention. In the embodiment shown in fig. 3, the communication method of the locker includes the following steps:
step S210, starting the storage cabinet.
In this embodiment, the locker is booted up by restarting the operating system of the locker.
Step S220, initializing to communicate with the server through the first network.
In this embodiment, after the locker is started, an application program connected to a network is started, and according to the configuration of the priority of the network, the application program communicates with the server through the first network with higher priority.
Further, since there may be an environment without Wi-Fi coverage, the network is configured so that the 4G network is automatically connected at the time of power-on, and communication is performed with the server through the 4G network.
Step S230, inquiring the availability status of the second network from the server.
In this embodiment, the locker establishes a connection with the server through the first network, and obtains the availability status of the second network from the server. The availability status includes the presence of an available second network and the absence of an available second network.
Further, after the communication connection is established between the server and the server through the first network, a query request is sent to the server through the first network, and after the server receives the query request, the server returns an available state to the locker.
Specifically, the server pre-stores network status of each locker or locker site, including at least the availability status of the second network. Therefore, after receiving the inquiry request, inquiring the corresponding network state according to the locker identification so as to acquire the available state of the second network, and sending the available state to the locker through the first network.
Step S240, detecting whether the second network is available.
In this embodiment, the locker detects whether the second network is available according to the received availability status sent by the server.
Step S250, in response to there being no available second network, communicates with the server through the first network.
In this embodiment, if there is no second network available, then communication is made with the server via the first network.
Step S260, in response to the presence of the available second network, communicates with the server through the first network and the second network.
In this embodiment, if there is a second network available, a switch is made to a dual-network communication mode in which communication is performed with the server through both the first network and the second network.
Step S270, data synchronization.
In this embodiment, as described above, in the second mode, communication is performed with the server through the first network and the second network at the same time, that is, the processes of the first network and the second network use the same data resource, and in order to avoid causing data security or sequence confusion, the present invention tries to perform inter-process data synchronization on the first network and the second network.
Further, the synchronization of the data between the processes of the first network and the second network may be implemented based on various existing manners, which are not limited by the embodiment of the present invention. For example, a Queue may be created by creating a shared process Queue, which is a multi-process secure Queue, and data transfer between multiple processes may be implemented using the Queue. Therefore, repeated transmission of the same data in two networks can be avoided, and meanwhile, when data of one network is lost, data transmission through the other network can be avoided.
FIG. 4 is a flow chart of a method of communication of a locker according to an embodiment of the invention. In the embodiment shown in fig. 4, the communication method includes the steps of:
step S210, initializing a network mode to be a single network mode, and communicating with a server through a first network in the single network mode.
And step S220, acquiring the available state of the second network corresponding to the locker from a server.
Step S230, in response to the presence of the available second network, switching the network mode to a dual network mode in which communication with the server is performed through the first network and the second network;
the first network is a mobile data network, and the second network is a wireless local area network.
In some embodiments, the switching the network mode to the dual network mode is specifically:
in response to there being an available second network, a start-up script for a dual network mode is run to switch the network mode to the dual network mode.
In some embodiments, the dual network mode initiation script includes a dual network mode priority configuration, a routing table, and a policy;
wherein the priority is configured to cause the first network and the second network to coexist;
the routing table and policies are used to enable the first network and the second network to be simultaneously on-line.
In some embodiments, the start-up script is obtained by:
modifying a priority code of a network so that the first network and the second network coexist;
modifying a routing table and a policy to enable the first network and the second network to be on the internet at the same time;
generating a dual-network mode configuration file in response to the first network and the second network being successful in surfing the internet at the same time; and
and generating a starting script of the dual-network mode according to the dual-network mode configuration file.
In some embodiments, the method further comprises:
in response to there being no available second network, the control network mode is a single network mode.
In some embodiments, the method further comprises:
and in the dual-network mode, synchronizing the data of the first network and the second network.
The embodiment of the invention communicates with the server through the first network, acquires the available state of the second network from the server, and communicates with the server through the first network and the second network simultaneously when the available second network exists. Therefore, the communication delay of the storage cabinet can be reduced, abnormal conditions of communication data are reduced, and the response speed and stability of the storage cabinet are improved.
FIG. 5 is a schematic diagram of a communication device of a locker according to an embodiment of the invention. In the embodiment shown in fig. 5, the communication apparatus includes a network initializing unit 51, a status inquiring unit 52, and a network mode switching unit 53. The network initializing unit 51 is configured to initialize a network mode to a single network mode, where the single network mode is used to communicate with the server through the first network. The status query unit 52 is configured to obtain, from a server, an available status of the second network corresponding to the locker. The network mode switching unit 53 is configured to switch the network mode to a dual network mode in which communication is performed with the server through the first network and the second network in response to the presence of the available second network. The first network is a mobile data network, and the second network is a wireless local area network.
In some embodiments, the network mode switching unit is specifically configured to:
in response to there being an available second network, a start-up script for a dual network mode is run to switch the network mode to the dual network mode.
In some embodiments, the dual network mode initiation script includes a dual network mode priority configuration, a routing table, and a policy;
wherein the priority is configured to cause the first network and the second network to coexist;
the routing table and policies are used to enable the first network and the second network to be simultaneously on-line.
In some embodiments, the apparatus further includes a startup script acquisition unit configured to acquire the startup script by:
modifying a priority code of a network so that the first network and the second network coexist;
modifying a routing table and a policy to enable the first network and the second network to be on the internet at the same time;
generating a dual-network mode configuration file in response to the first network and the second network being successful in surfing the internet at the same time; and
and generating a starting script of the dual-network mode according to the dual-network mode configuration file.
In some embodiments, the network mode switching unit is further configured to:
in response to there being no available second network, the control network mode is a single network mode.
In some embodiments, the apparatus further comprises:
and the data synchronization unit is used for synchronizing the data of the first network and the second network in the dual-network mode.
The embodiment of the invention communicates with the server through the first network, acquires the available state of the second network from the server, and communicates with the server through the first network and the second network simultaneously when the available second network exists. Therefore, the communication delay of the storage cabinet can be reduced, abnormal conditions of communication data are reduced, and the response speed and stability of the storage cabinet are improved.
Fig. 6 is a schematic diagram of an electronic device according to an embodiment of the invention. In this embodiment, the electronic device includes a server, a terminal, and the like. As shown in fig. 6, the electronic device: at least one processor 61; and a memory 62 communicatively coupled to the at least one processor 61; and a communication module 63 communicatively connected to the scanning device, the communication module 63 receiving and transmitting data under the control of the processor 61; wherein the memory 62 stores instructions executable by the at least one processor 61, the instructions being executable by the at least one processor 61 to implement the communication method described above.
Specifically, the electronic device includes: one or more processors 61 and a memory 62, one processor 61 being exemplified in fig. 6. The processor 61, the memory 62 may be connected by a bus or otherwise, which is exemplified in fig. 6 by a bus connection. The memory 62 is used as a non-volatile computer-readable storage medium for storing non-volatile software programs, non-volatile computer-executable programs, and modules. The processor 61 executes various functional applications of the device and data processing, i.e., implements the above-described communication method, by running nonvolatile software programs, instructions, and modules stored in the memory 62.
Memory 62 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store a list of options, etc. In addition, memory 62 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 62 may optionally include memory located remotely from processor 61, which may be connected to an external device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 62 that, when executed by the one or more processors 61, perform the communication methods of any of the method embodiments described above.
The product may perform the method provided by the embodiment of the present application, and have corresponding functional modules and beneficial effects of the performing method, and technical details not described in detail in the embodiment of the present application may be referred to the method provided by the embodiment of the present application.
The embodiment of the invention communicates with the server through the first network, acquires the available state of the second network from the server, and communicates with the server through the first network and the second network simultaneously when the available second network exists. Therefore, the communication delay of the storage cabinet can be reduced, abnormal conditions of communication data are reduced, and the response speed and stability of the storage cabinet are improved.
Embodiments of the present invention relate to a non-volatile storage medium for storing a computer-readable program for causing a computer to execute some or all of the above-described method embodiments.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments described herein. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, and various modifications and variations may be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (14)

1. A method of communicating a locker, the method comprising:
initializing a network mode into a single network mode, and communicating with a server through a first network in the single network mode;
sending a query request to a server through the first network to acquire the available state of a second network corresponding to the storage cabinet from the server; and
switching the network mode to a dual network mode in response to the presence of an available second network, in which communication is made with the server through the first network and the second network;
the first network is a mobile data network, and the second network is a wireless local area network.
2. The method according to claim 1, wherein said switching said network mode to a dual network mode is specifically:
in response to there being an available second network, a start-up script for a dual network mode is run to switch the network mode to the dual network mode.
3. The method of claim 2, wherein the dual network mode initiation script comprises a dual network mode priority configuration, a routing table, and a policy;
wherein the priority is configured to cause the first network and the second network to coexist;
the routing table and policies are used to enable the first network and the second network to be simultaneously on-line.
4. The method according to claim 2, wherein the start-up script is obtained by:
modifying a priority code of a network so that the first network and the second network coexist;
modifying a routing table and a policy to enable the first network and the second network to be on the internet at the same time;
generating a dual-network mode configuration file in response to the first network and the second network being successful in surfing the internet at the same time; and
and generating a starting script of the dual-network mode according to the dual-network mode configuration file.
5. The method according to claim 1, wherein the method further comprises:
in response to there being no available second network, the control network mode is a single network mode.
6. The method according to claim 1, wherein the method further comprises:
and in the dual-network mode, synchronizing the data of the first network and the second network.
7. A communication device for a locker, the device comprising:
the network initialization unit is used for initializing a network mode into a single network mode, and communicating with the server through a first network in the single network mode;
the state query unit is used for sending a query request to a server through the first network so as to acquire the available state of the second network corresponding to the storage cabinet from the server;
a network mode switching unit configured to switch the network mode to a dual network mode in which communication is performed with the server through the first network and the second network in response to the presence of an available second network;
the first network is a mobile data network, and the second network is a wireless local area network.
8. The apparatus according to claim 7, wherein the network mode switching unit is specifically configured to:
in response to there being an available second network, a start-up script for a dual network mode is run to switch the network mode to the dual network mode.
9. The apparatus of claim 8, wherein the dual network mode initiation script comprises a dual network mode priority configuration, a routing table, and a policy;
wherein the priority is configured to cause the first network and the second network to coexist;
the routing table and policies are used to enable the first network and the second network to be simultaneously on-line.
10. The apparatus according to claim 8, further comprising a startup script acquisition unit configured to acquire the startup script by:
modifying a priority code of a network so that the first network and the second network coexist;
modifying a routing table and a policy to enable the first network and the second network to be on the internet at the same time;
generating a dual-network mode configuration file in response to the first network and the second network being successful in surfing the internet at the same time; and
and generating a starting script of the dual-network mode according to the dual-network mode configuration file.
11. The apparatus of claim 7, wherein the network mode switching unit is further configured to:
in response to there being no available second network, the control network mode is a single network mode.
12. The apparatus of claim 7, wherein the apparatus further comprises:
and the data synchronization unit is used for synchronizing the data of the first network and the second network in the dual-network mode.
13. A computer readable storage medium, on which computer program instructions are stored, which computer program instructions, when executed by a processor, implement the method of any of claims 1-6.
14. An electronic device comprising a memory and a processor, wherein the memory is configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method of any of claims 1-6.
CN202210028758.0A 2022-01-11 2022-01-11 Communication method and device of storage cabinet Active CN114364059B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210028758.0A CN114364059B (en) 2022-01-11 2022-01-11 Communication method and device of storage cabinet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210028758.0A CN114364059B (en) 2022-01-11 2022-01-11 Communication method and device of storage cabinet

Publications (2)

Publication Number Publication Date
CN114364059A CN114364059A (en) 2022-04-15
CN114364059B true CN114364059B (en) 2024-02-23

Family

ID=81109935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210028758.0A Active CN114364059B (en) 2022-01-11 2022-01-11 Communication method and device of storage cabinet

Country Status (1)

Country Link
CN (1) CN114364059B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491653A (en) * 2013-05-13 2014-01-01 上海盛本通讯科技有限公司 WiFi and 3G coexisting method based on Android intelligent terminal
EP2706790A1 (en) * 2012-08-27 2014-03-12 Deutsche Telekom AG Network selection and traffic offloading module
CN106297046A (en) * 2015-06-12 2017-01-04 广州宝物达网络科技有限公司 The control system of express delivery cabinet
CN107426784A (en) * 2017-06-16 2017-12-01 贵州近邻宝科技有限公司 Communication network switching method, video inspection method, express delivery cabinet and other equipment
CN108173909A (en) * 2017-12-15 2018-06-15 北京臻迪科技股份有限公司 Method of data synchronization, mobile terminal and computer readable storage medium
CN109526020A (en) * 2018-10-29 2019-03-26 Oppo广东移动通信有限公司 Data transmission method and Related product
CN109743771A (en) * 2019-01-22 2019-05-10 苏州长风航空电子有限公司 A kind of method and its system for realizing that vehicle device is network coexisted
CN110232763A (en) * 2019-06-26 2019-09-13 深圳市丰巢科技有限公司 A kind of method, apparatus of pickup, express delivery cabinet and storage medium
CN110995867A (en) * 2019-12-20 2020-04-10 上海有个机器人有限公司 Communication system for human-computer interaction and robot
CN111327672A (en) * 2019-12-18 2020-06-23 珠海奔图电子有限公司 Data transmission control method, control device and mobile terminal
CN112801594A (en) * 2021-02-19 2021-05-14 上海中通吉网络技术有限公司 Terminal pickup method and device and express cabinet

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201604868D0 (en) * 2016-03-22 2016-05-04 Bybox Holdings Ltd Automated locker system and method for delivery and collection of packages
US11488436B2 (en) * 2017-01-03 2022-11-01 United Parcel Service Of America, Inc. Computerized locker banks with enhanced forecasting capabilities

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2706790A1 (en) * 2012-08-27 2014-03-12 Deutsche Telekom AG Network selection and traffic offloading module
CN103491653A (en) * 2013-05-13 2014-01-01 上海盛本通讯科技有限公司 WiFi and 3G coexisting method based on Android intelligent terminal
CN106297046A (en) * 2015-06-12 2017-01-04 广州宝物达网络科技有限公司 The control system of express delivery cabinet
CN107426784A (en) * 2017-06-16 2017-12-01 贵州近邻宝科技有限公司 Communication network switching method, video inspection method, express delivery cabinet and other equipment
CN108173909A (en) * 2017-12-15 2018-06-15 北京臻迪科技股份有限公司 Method of data synchronization, mobile terminal and computer readable storage medium
CN109526020A (en) * 2018-10-29 2019-03-26 Oppo广东移动通信有限公司 Data transmission method and Related product
CN109743771A (en) * 2019-01-22 2019-05-10 苏州长风航空电子有限公司 A kind of method and its system for realizing that vehicle device is network coexisted
CN110232763A (en) * 2019-06-26 2019-09-13 深圳市丰巢科技有限公司 A kind of method, apparatus of pickup, express delivery cabinet and storage medium
CN111327672A (en) * 2019-12-18 2020-06-23 珠海奔图电子有限公司 Data transmission control method, control device and mobile terminal
CN110995867A (en) * 2019-12-20 2020-04-10 上海有个机器人有限公司 Communication system for human-computer interaction and robot
CN112801594A (en) * 2021-02-19 2021-05-14 上海中通吉网络技术有限公司 Terminal pickup method and device and express cabinet

Also Published As

Publication number Publication date
CN114364059A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
EP3165009B1 (en) Apparatus and method for controlling wireless data traffic
CN111865736B (en) Equipment control method and device
CN111542081B (en) Communication switching method and device and Internet of things communication module
CN111492717B (en) Session management method and device and communication system
CN103763121A (en) Method and device for quickly issuing network configuration information
CN103139253B (en) Realize the method for network interface card offloading functions, network interface card, host computer system and the network equipment
CN106131816B (en) Virtual SIM card management method and terminal
KR20140141584A (en) Communication device, control method, and program
CN106210023B (en) Virtual SIM card synchronous management method and terminal
CN107172075B (en) Communication method, system and readable storage medium based on network isolation
CN111163469A (en) Network distribution method of intelligent household appliance, wireless module and intelligent household appliance
KR20170116069A (en) How the security element operates
CN105847048B (en) The configuration method and device of smart machine
CN112637931A (en) Method and device for establishing network connection
CN111757317B (en) Request processing method, related device and system
CN113596792B (en) Binding method and device of electronic equipment, storage medium and electronic device
CN108012294B (en) Network switching method and device
CN112637221B (en) Equipment control method and device
CN114364059B (en) Communication method and device of storage cabinet
CN108141906B (en) Mobile data sharing method and mobile terminal
CN111050356A (en) Data transmission processing method and device, storage medium and electronic device
CN109429205A (en) A kind of narrowband Internet of Things upgrade method and device and system
CN104836708B (en) The binding method and device of information
CN107547723B (en) Method and device for receiving information by application
EP3047660A1 (en) Method of communicating between a server and a secure element

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