Low-power Communication Method for Fog Computing Based on Edge-cloud Integration
Through the fog calculation method that integrates the end-edge edges, the keystore verification of cloud and fog layer nodes is used to generate and verify user IDs and keys, which solves the problem of malicious users tampering with data in fog calculation, and realizes the reliability confirmation and low-power communication of car wash terminals.
Patent Information
- Application Number
- CN202411058459.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2044-08-02
AI Technical Summary
In fog calculation, when the terminal device is in a network outage state, malicious users may tamper with data and perform malicious operations. The existing technology cannot effectively confirm the user's credibility and cannot meet the low-power consumption requirements.
Through the fog calculation method that integrates the end-edge and edges, the user ID and key are generated and verified by using the keystore verification between the cloud layer and the fog layer nodes, ensuring that only verified users can wake up the car wash terminal and generate a one-time key for storage after each car wash to prevent malicious access.
Effectively confirm the credibility of car wash users, prevent malicious operations, maintain low power consumption characteristics, ensure that the terminal can only be awakened once per car wash, and enhance terminal protection in offline state.
Smart Images

Figure CN119052789B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of fog computing communication technology, and in particular, to a low-power communication method for fog computing based on end-edge integration. Background Art
[0002] With the rapid development of Internet of Things (IoT) technology, the IoT is increasingly widely applied in people's lives and is gradually transforming from simple device-to-device connections to an intelligent direction. For the IoT to achieve greater success, it must rely on an open and well-supported platform. Cloud computing, with its powerful computing and storage capabilities, has become the support platform for big data analysis and processing. By uploading complex applications to the cloud for storage and processing, and then sending the processing results from the cloud to mobile users. However, with the explosive growth in the number of IoT terminal devices currently, the amount of raw data sensed and acquired by the IoT is extremely large, and there are complex relationships among the massive amounts of data. Filtering, processing, analyzing, etc. of the massive data pose a huge challenge to the cloud computing system. Especially when it comes to applications with high requirements for time delay of underlying data, the following problems emerge:
[0003] (1) It cannot meet the requirements of extremely low time delays in real-time and semi-real-time applications in the system boundary area. Traditional cloud computing cannot achieve this requirement because it needs to gather all data to the computing center for processing.
[0004] (2) The number of IoT terminals is too large, and the networking is generally complex, so it cannot meet the network requirements needed for cloud computing in all areas of the application. The computing power of underlying equipment is relatively limited and is restricted by on-site energy supply.
[0005] To solve the above problems, the concept of fog computing has emerged in the prior art. That is, taking the user's mobile phone as a fog node, the mobile phone uses short-distance transmission protocols (such as Bluetooth, WIFI) to interact with the car wash terminal and then connects to the cloud through the network. Through the computing, storage, and network communication services provided by the mobile phone, the computing, analysis, and processing of data are closer to the terminal, thereby reducing the response delay and storage overhead of IoT services processed through the cloud layer, reducing the consumption of wireless resources, reducing the energy consumption of terminal devices, and thus extending their standby time, and continuing to provide computing services in areas without Internet coverage, as Figure 1 shown in the fog computing system.
[0006] Between the cloud layer and the terminal device layer, a user's mobile phone is added as a fog layer. A large amount of information related to a specific environment can be directly stored and processed on the mobile phone. As a fog computing layer, the mobile phone includes both an up and down gateway, as well as temporary data storage and computing devices. It can make intelligent judgments on data requests to be processed. This layer will directly act as a gateway to upload data to the cloud data center. It not only inherits the advantages of cloud computing but also has the advantages of edge computing, can give full play to the computing function of the terminal and the advantage of local proximity processing, and can well solve the problem of rapid response for latency-sensitive applications.
[0007] However, using the mobile phone as fog computing also brings new security problems. Since the terminal device does not communicate directly with the cloud layer, real-time information synchronization between the terminal device and the cloud layer cannot be achieved. In specific commercial application scenarios, such as a self-service car wash terminal in an underground parking lot and in a network-disconnected state, malicious users can tamper with the local data of the mobile phone to "cheat" the terminal device, disguise themselves as other users, and thus achieve the purpose of maliciously evading payment or engaging in unfair commercial competition. Therefore, it is necessary to provide a communication method that allows a car wash terminal in a network-disconnected state to confirm the credibility of car wash users and retains the low-power consumption advantage of fog computing. Summary of the Invention
[0008] The purpose of this application is to provide a communication method that allows a car wash terminal in a network-disconnected state to confirm the credibility of car wash users and retains the low-power consumption advantage of fog computing.
[0009] According to one aspect of this application, a low-power consumption communication method for fog computing based on end-edge integration is provided, which is applicable to fog layer nodes. The method includes the steps:
[0010] Maintain real-time communication with the cloud layer, initiate a temporary communication request to the car wash terminal, and receive the first secret key request returned by the car wash terminal. If the fog layer node is a new user, generate a second secret key request, and send the user ID and the second secret key request to the primary secret key library of the cloud layer for verification;
[0011] After receiving the one-time first secret key returned after passing the verification by the primary secret key library of the cloud layer, send it to the car wash terminal to wake up the terminal;
[0012] Conduct order interaction with the awakened car wash terminal, receive the one-time second secret key generated by the car wash terminal based on the order result, store it, and send it to the secondary secret key library of the cloud layer for storage.
[0013] Preferably, after the step of initiating a temporary communication request to the car wash terminal and receiving the first secret key request returned by the car wash terminal, the following is further included:
[0014] If the fog layer node is an old user, generate a third secret key request, and send the third secret key request and the second secret key stored during the previous car wash to the secondary secret key library of the cloud layer for verification;
[0015] If the cloud layer finds the same second secret key in the secondary secret key library, receive the first secret key returned by the primary secret key library of the cloud layer, and send it to the car wash terminal to wake up the terminal.
[0016] Preferably, when a new user registers, it includes the steps of:
[0017] Establish real-time communication with the cloud layer;
[0018] The user registers, generates a user ID and stores it locally;
[0019] Send the user ID to the primary secret key library of the cloud layer for storage.
[0020] Preferably, the step of initiating a communication request to the car wash terminal specifically includes:
[0021] Search for nearby car wash terminals;
[0022] The Internet of Things APP lists each car wash terminal, and the user selects one of the car wash terminals to initiate a communication request;
[0023] In the step of receiving the first secret key request returned by the car wash terminal,
[0024] Also receive and store the device identification code returned by the car wash terminal; if the fog layer node is a new user, send the device identification code, user ID, and second secret key request to the primary secret key library of the cloud layer for verification. The primary secret key library of the cloud layer checks whether there is the same user ID. If so, call the first secret key corresponding to the car wash terminal in the primary secret key library according to the device identification code, and delete the user ID stored in the primary secret key library; if the fog layer node is an old user, send the device identification code, third secret key request, and the second secret key stored during the previous car wash to the secondary secret key library of the cloud layer for verification. The secondary secret key library of the cloud layer checks whether there is the same second secret key. If so, call the first secret key corresponding to the car wash terminal in the primary secret key library according to the device identification code, and delete the second secret key stored in the secondary secret key library.
[0025] Preferably, the step of performing an order interaction with the awakened car wash terminal, receiving the one-time second secret key generated by the car wash terminal based on the order result, storing it, and sending it to the secondary secret key library of the cloud layer for storage specifically includes:
[0026] Send an order request to the awakened car wash terminal through the Internet of Things APP,
[0027] Receive the terminal status information sent by the car wash terminal and generate an order based on the terminal status information; wherein, the terminal status information includes a combination of multiple pieces of information such as car wash price, average car wash duration, car wash machine status, car wash effect, car wash evaluation, and car wash machine operation guide;
[0028] After the order is paid, receive the one-time second secret key generated by the car wash terminal based on the order result;
[0029] Receive the second secret key, delete the previously stored second secret key, store the currently received second secret key, and send the second secret key to the secondary secret key library of the cloud for storage.
[0030] Preferably, the step of receiving the terminal status information sent by the car wash terminal and generating an order based on the terminal status information specifically includes:
[0031] Receive the terminal status information sent by the car wash terminal, and combine the terminal status information with the user's historical data stored in the Internet of Things APP to analyze the user's car wash preferences, and generate an order option for user interaction;
[0032] The user checks the order option and generates an order, and the order includes a device identification code representing the unique identity of the car wash terminal and a decimal sequence code representing the historical car wash times of the car wash terminal.
[0033] Preferably, in the step of generating the one-time second secret key based on the order result, the second secret key includes:
[0034] A device string, including a device identification code representing the unique identity of the car wash terminal;
[0035] A historical string, including a decimal sequence code representing the historical car wash times of the car wash terminal;
[0036] An order string, including a decimal sequence code representing the order option selected by the user.
[0037] A fog computing low-power communication method based on edge-cloud integration, applicable to a car wash terminal. When a user washes a car, the method includes the steps of:
[0038] Receive an external communication request, and determine whether the request object is a fog layer node. If so, establish a temporary communication and return a secret key request to the fog layer node;
[0039] Receive a one-time first secret key from the cloud and forwarded by the fog layer node to wake up the terminal;
[0040] Interact with the fog layer node for an order, generate a one-time second secret key based on the order result, send it to the fog layer node for storage, and forward it to the secondary secret key library in the cloud layer through the fog layer node for storage.
[0041] A low-power communication method for fog computing based on edge-cloud integration, applicable to the cloud layer. When a new user registers, the method includes the steps of:
[0042] Establish real-time communication with the fog layer node;
[0043] Receive the user ID generated after the user registration is completed;
[0044] Check whether the same user ID exists in the primary secret key library. If not, store the user ID in the primary secret key library;
[0045] Maintain real-time communication with the fog layer node.
[0046] A low-power communication method for fog computing based on edge-cloud integration, applicable to the cloud layer. When a user washes a car,
[0047] Maintain real-time communication with the fog layer node;
[0048] Receive the user ID and the second secret key request sent by the fog layer node, and check whether the same user ID exists in the primary secret key library. If so, call the first secret key in the primary secret key library and send it to the fog layer node, and delete the user ID in the primary secret key library;
[0049] Receive the second secret key sent by the fog layer node, and check whether the same second secret key exists in the secondary secret key library. If not, store the second secret key in the secondary secret key library.
[0050] This application has the following beneficial effects:
[0051] After the fog layer node receives the first one-time secret key returned after passing the verification of the primary secret key library in the cloud layer, it wakes up the car wash terminal. After the order interaction is completed, it receives the one-time second secret key generated by the car wash terminal based on the order result, stores it, and sends it to the secondary secret key library in the cloud layer for storage, which is used to wake up the terminal during the next car wash. Thus, except for the first car wash of a new user, any subsequent car wash uses the previous car wash as the credit basis, excluding the occurrence of malicious access to the car wash terminal by individual users. Even if there is malicious access, it can only be executed once. If the second secret key is not generated during the current car wash, it is impossible to wake up any car wash terminal during the next car wash, thereby strengthening the protection of the offline car wash terminal. [[ID=ABSTRACT]]Description of the Drawings
[0052] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0053] Figure 1 The fog computing system described in the background art;
[0054] Figure 2 The step flow block diagram of the user registration stage of the communication method described in the present application;
[0055] Figure 3 The step flow block diagram of the user car washing stage of the communication method described in the present application;
[0056] Figure 4 The structural block diagram of the communication system described in the present application;
[0057] Figure 5 The structural block diagram of the second secret key described in the present application;
[0058] Explanation of the reference numerals in the drawings:
[0059] 100, communication system; 10, cloud layer; 20, fog layer node; 30, car washing terminal; 11, user center; 12, primary secret key library; 13, secondary secret key library; 121, first secret key; 122, user ID; 131, second secret key; 1311, device string; 1312, historical string; 1313, order string. Detailed implementation manners
[0060] To facilitate the understanding of the present application, the following will describe the present application more comprehensively with reference to the relevant accompanying drawings. The preferred embodiments of the present application are shown in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure content of the present application more thorough and comprehensive.
[0061] It should be noted that when an element is referred to as being "fixed to" another element, it can be directly on the other element or there may also be an intermediate element. When an element is considered to be "connected" to another element, it can be directly connected to the other element or there may be an intermediate element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are only for the purpose of illustration.
[0062] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0063] Please refer to Figure 1 - Figure 5 , an embodiment of this application provides a fog computing low-power communication method based on edge-cloud integration. The user establishes a temporary communication with the offline car wash terminal 30 through the fog layer node 20 and interacts with the cloud layer 10 in real time.
[0064] The method mainly includes two stages, namely the user registration stage and the user car wash stage. The main inventive concept of this application focuses on the user car wash stage, and the user registration stage is the execution basis for the user car wash stage.
[0065] Next, first refer to Figure 2 , this embodiment first describes the user registration stage. This communication method includes the steps:
[0066] S101 The fog layer node 20 establishes a real-time communication with the cloud layer 10.
[0067] The communication system 100 mainly includes the cloud layer 10, the fog layer, and the terminal. The fog layer is composed of multiple fog layer nodes 20. The fog layer node 20 is the user's mobile phone. In this application scenario, the terminal is the car wash terminal 30. The car wash terminal 30 is set outdoors or in an underground parking lot and is in an offline and standby sleep state. The car wash terminal 30 does not directly communicate with the cloud layer 10 but indirectly communicates with the cloud layer 10 through the fog layer. Each fog layer node 20 is equivalent to a car wash user. The user establishes a real-time communication with the cloud layer 10 through the mobile phone and performs account registration. Each user binds their ID card. Therefore, each user can only perform one valid registration.
[0068] S102 The user performs the operation of user registration on the fog layer node 20.
[0069] S103 The cloud layer 10 generates a user ID 122 and stores it in the user center 11.
[0070] The user completes the registration of a new user, and a unique user ID 122 is generated in the cloud layer 10 and stored in the user center 11 of the cloud layer 10.
[0071] S104 The cloud layer 10 stores the user ID 122 in the primary key library 12 and sends it to the fog layer node 20.
[0072] In addition to being stored in the user center 11 of cloud layer 10, user ID 122 also needs to be stored in the primary key library 12 of cloud layer 10 and the corresponding fog layer node 20. The user ID 122 is directly called from the user center 11 of cloud layer 10 and sent to the fog layer node 20, and stored in the primary key library 12.
[0073] In the primary key library 12, in addition to storing the user ID 122, there are also wake-up keys for all car wash terminals 30, denoted here as the first key 121. Each car wash terminal 30 has N first keys 121 built-in and stored in the primary key library 12 at the time of factory. Each first key 121 can only be used once. After use, both the primary key library 12 and the car wash terminal 30 will delete the used first key 121.
[0074] New users can call the first key 121 once. After that, they can only obtain the permission to call the first key 121 by verifying with the second key 131.
[0075] S105 The fog layer node 20 receives the user ID 122 and stores it.
[0076] The user ID 122 stored in the fog layer node 20 is not only used for the Internet of Things APP to call, but also used for the user's first car wash. When the user washes the car for the first time, the user ID 122 stored in the fog layer node 20 needs to be called to obtain the first key 121.
[0077] S106 After completing the registration of new users, the fog layer node 20 continues to maintain real-time communication with the cloud layer 10 to call the computing power of the fog layer node 20 to cooperate with adjacent fog layer nodes 20 when necessary.
[0078] In the above embodiments, the communication method in the user registration stage is described. Next, please refer to Figure 3 , and then the user car wash stage will be described. This communication method includes the steps:
[0079] S201 The fog layer node 20 maintains real-time communication with the cloud layer 10 and initiates a communication request to the car wash terminal 30.
[0080] Taking the car wash terminal 30 being set outdoors as an example, the car wash terminal 30 is in a sleep standby state to save energy. The user's mobile phone acts as the fog layer node 20 and always maintains communication with the cloud layer 10. When the user wants to wash the car, through the device scanning function on the Internet of Things APP, the car wash terminal 30 around the user's mobile phone is scanned, and the corresponding car wash terminal 30 is selected to initiate a communication request.
[0081] In another implementation, it is also possible to initiate a communication request to the car wash terminal 30 by scanning the QR code on the car wash terminal 30.
[0082] In step S202 , the car wash terminal 30 receives an external communication request and determines whether the request object is a fog layer node 20 . If so, a temporary communication is established and a secret key request 1 is returned to the fog layer node 20 .
[0083] The car wash terminal 30 receives the external communication request and determines whether the request object is the fog layer node 20. The judgment method is whether the user's mobile phone initiates the communication request through the Internet of Things APP.
[0084] If the request object is the fog layer node 20, the car wash terminal 30 returns a key request 1 to the fog layer node 20 to request the first key 121 for waking up the fog layer node 20. At this time, the car wash terminal 30 is still in the energy-saving standby state.
[0085] S203: The fog layer node 20 receives the key request 1.
[0086] At this time, there are two cases. One is that the user is a new user and has not washed the car on any car washing terminal 30 before, and then steps S204a and S205a are executed; the other is that the user is an old user and has washed the car on at least one car washing terminal 30, and then steps S204b and S205b are executed.
[0087] S204a: If the fog layer node 20 is a new user, it directly sends a second secret key request to the cloud layer 10.
[0088] If the fog layer node 20 is a new user, the fog layer node 20 generates a second key request after receiving the first key request, and sends the user ID 122 and the second key request to the primary key repository 12 of the cloud layer 10 for verification.
[0089] The user ID 122 is used to verify whether the fog layer node 20 is a new user. The second key request is used to trigger the verification procedure of the cloud layer 10. The primary key library 12 stores the first key 121 for waking up the car wash terminal 30 and the user ID 122 for verifying whether the fog layer node 20 is a new user.
[0090] Furthermore, in order to call the first secret key 121 for waking up a specific car wash terminal 30, the car wash terminal 30 will send its own device identification code while returning the secret key request 1. The fog layer node 20 will also send the device identification code when sending the secret key request 2 to the cloud layer 10. The key library 12 will call the corresponding first secret key 121 through the device identification code to wake up the car wash terminal 30.
[0091] S205a The cloud layer 10 determines whether the fog layer node 20 is a new user. If so, the cloud layer 10 returns the first secret key 121 to the fog layer node 20 .
[0092] After the fog layer node 20 receives the second key request, it triggers a new user verification program in the key library 12, that is, it checks in the first key library 121 to see if there is a user ID 122 that is the same as the user ID of this user. If there is the same ID, it determines that the user is a new user, and calls the first key 121 corresponding to the device identification code from the first key library 12, and returns it to the fog layer node 20 for waking up the car wash terminal 30.
[0093] At the same time, the cloud layer 10 deletes the user ID 122 that has passed the verification. Then, the same user ID 122 cannot pass the new user verification next time. And the user center 11 of the cloud layer 10 will not store the same user ID 122 in the first key library 12 multiple times, unless the staff intervenes to exclude some special situations. The cloud layer 10 will also not pass the re-registration request with the same ID card during the user registration stage. Therefore, theoretically, there is no situation where the same user ID 122 is used multiple times. Each user can only obtain a successful new user verification once.
[0094] S204b If the fog layer node 20 is an old user, it sends the third key request and the second key 131 to the cloud layer 10.
[0095] If the fog layer node 20 is an old user, after receiving the first key request, the fog layer node 20 generates the third key request, and the third key request is used to trigger the verification program of the cloud layer 10.
[0096] Similarly, in order to call the first key 121 for waking up a specific car wash terminal 30, when the car wash terminal 30 returns the first key request, it also sends its own device identification code. When the fog layer node 20 sends the third key request to the cloud layer 10, it also sends this device identification code. The first key library 12 calls the corresponding first key 121 through this device identification code for waking up the car wash terminal 30.
[0097] At the same time, the second key library 13 deletes the second key 131 that has passed the verification.
[0098] The fog layer node 20 sends the device identification code, the third key request, and the second key 131 to the cloud layer 10.
[0099] S205b The cloud layer 10 receives the second key 131 and checks in the second key library 13 to see if there is the same second key 131. If so, it returns the first key 121 to the fog layer node 20.
[0100] After the cloud layer 10 receives the third secret key request, it triggers the verification program of the secondary secret key library 13. The secondary secret key library 13 searches for the same second secret key 131 as the received second secret key 131. If the same second secret key 131 exists, the verification passes, and the corresponding first secret key 121 in the primary secret key library 12 is called according to the device identification code and sent to the fog layer node 20 to wake up the user car wash terminal 30.
[0101] S206 The fog layer node 20 receives the first secret key 121 and sends it to the car wash terminal 30.
[0102] The fog layer node 20 receives the first secret key 121 from the cloud layer 10 and forwards it to the car wash terminal 30 for terminal wake-up.
[0103] S207 The car wash terminal 30 receives the one-time first secret key 121 from the cloud layer 10 and forwarded by the fog layer node 20 to wake up the terminal.
[0104] S208 The car wash terminal 30 interacts the local data with the temporary data of the fog layer node 20, generates a one-time second secret key 131 based on the interaction result, and sends it to the fog layer node 20.
[0105] After waking up, the car wash terminal 30 interacts with the fog layer node 20. The car wash terminal 30 sends its own terminal status information to the fog layer node 20. The fog layer node 20 generates order options based on the terminal status information and the user's historical usage records stored in the fog layer node 20. The user places an order through the order options. After placing the order, an order is generated. The car wash terminal 30 generates a one-time second secret key 131 based on the order and sends it to the fog layer node 20.
[0106] Among them, the fog layer node 20 receives the terminal status information sent by the car wash terminal 30, combines the terminal status information and the user's historical car wash data stored in the Internet of Things APP to analyze the user's car wash preferences, and generates order options for user interaction. The user checks the order options and generates an order. The order includes a device identification code representing the unique identity of the car wash terminal 30 and a decimal sequence code representing the historical car wash times of the car wash terminal 30.
[0107] Among them, the terminal status information includes a combination of multiple information such as car wash price, average car wash duration, car wash machine status, car wash effect, car wash evaluation, and car wash machine operation guide;
[0108] Among them, the second secret key 131 includes: a device string 1311, a historical string 1312, and an order string 1313.
[0109] The device string 1311 contains a device identification code representing the unique identity of the car wash terminal 30. The history string 1312 contains a decimal sequence code representing the historical car wash times of the car wash terminal 30. The order string 1313 contains a decimal sequence code representing the order options selected by the user.
[0110] The fog layer node 20 of S209 stores the second secret key 131 and sends it to the cloud layer 10.
[0111] S210 The cloud layer 10 stores the second secret key 131.
[0112] Figure 4 It is a structural block diagram of a fog computing low-power communication system 100 based on edge-cloud integration provided by an embodiment of the present invention. The system includes: a cloud layer 10, a fog layer node 20, and a car wash terminal 30.
[0113] The cloud layer 10 includes: a user center 11, a primary secret key library 12, and a secondary secret key library 13. The user center 11 is used for user registration and generates a user ID 122. The user ID 122 is first stored in the user center 11, then stored in the primary secret key library 12, and sent to the fog layer node 20 that performs the registration.
[0114] The primary secret key library 12 is used to store the user ID 122 and the first secret key 121 for waking up the terminal, and is used to execute the verification program for new users. The first secret key 121 corresponds to a car wash terminal 30 and is disposable. The first secret key 121 is deleted after being called. The secondary secret key library 13 is used to store the second secret key 131 and is used to execute the verification program for the second secret key 131.
[0115] The second secret key 131 includes a device string 1311, a history string 1312, and an order string 1313. The device string 1311 contains a device identification code representing the unique identity of the car wash terminal 30. The history string 1312 contains a decimal sequence code representing the historical car wash times of the car wash terminal 30. The order string 1313 contains a decimal sequence code representing the order options selected by the user.
[0116] In the new user registration stage, only the cloud layer 10 and the fog layer node 20 interact, and the car wash terminal 30 does not participate in the communication interaction. The user center 11 of the cloud layer 10 is used to perform new user registration and generate the user ID 122. The user ID 122 is stored in the user center 11, the primary secret key library 12, and the fog layer node 20 respectively.
[0117] During the user car wash phase, the cloud layer 10, the fog layer node 20, and the car wash terminal 30 all interact, but there is no direct interaction between the car wash terminal 30 and the cloud layer 10. And the car wash terminal 30 needs the first secret key 121 to be awakened. The first secret key 121 is stored in the cloud layer 10. When the fog layer node 20 requests the first secret key 121 from the cloud layer 10, it needs to be verified first. There are two verification methods. One is based on the verification of new users, which is relatively simple. The other is for the verification of old users, which requires the old user to provide the second secret key 131 generated during the previous car wash. That is, the generation of the second secret key 131 is related to the user's behavior. The cloud layer 10 is only the storage party of the second secret key 131, and the car wash terminal 30 is the generation party of the second secret key 131. In this way, the car wash terminal 30 during the previous car wash is the generation party of the second secret key 131, and the cloud layer 10 is the storage party of the second secret key 131. Users cannot forge the secret key through the current car wash terminal 30 they face, and the fog layer node 20 also has no basis for forging the secret key, thus preventing malicious access.
[0118] Equivalently, every car wash of the user is based on the previous car wash as its own credit basis, excluding the occurrence of individual users maliciously accessing the car wash terminal 30. Even if there is malicious access, it can only be executed once. If the second secret key 131 is not generated during the current car wash, any car wash terminal 30 cannot be awakened during the next car wash. Thereby strengthening the protection of the car wash terminal 30 in the offline state.
[0119] Thereby, after the one-time first secret key 121 returned after passing the verification of the first secret key library 12 of the cloud layer 10 is received by the fog layer node 20, the car wash terminal 30 is awakened. After the order interaction is completed, the one-time second secret key 131 generated by the car wash terminal 30 based on the order result is received, and after being stored, it is sent to the secondary secret key library 13 of the cloud layer 10 for storage, which is used for the terminal wake-up during the next car wash. Thus, except for the first car wash of new users, any subsequent car wash is based on the previous car wash as the credit basis, excluding the occurrence of individual users maliciously accessing the car wash terminal 30. Even if there is malicious access, it can only be executed once. If the second secret key 131 is not generated during the current car wash, any car wash terminal 30 cannot be awakened during the next car wash, thereby strengthening the protection of the car wash terminal 30 in the offline state.
[0120] The above-described embodiments only represent several embodiments of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the patent application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A low-power communication method for fog computing based on edge-cloud integration, characterized in that, Applicable to fog layer nodes. When the user washes the car, the method includes the steps of: Maintaining real-time communication with the cloud layer, initiating a temporary communication request to the car wash terminal, and receiving the first key request returned by the car wash terminal. If the fog layer node is a new user, generate the second key request, and send the user ID and the second key request to the primary key library of the cloud layer for verification; Receive the one-time first key returned after passing the verification of the primary key library of the cloud layer, and send it to the car wash terminal for terminal wake-up; Perform order interaction with the awakened car wash terminal, receive the one-time second key generated by the car wash terminal based on the order result, store it and send it to the secondary key library of the cloud layer for storage; Each car wash terminal has N first keys built-in and stored in the primary key library at the time of factory. Each first key can only be used once. After use, both the primary key library and the car wash terminal will delete the used first key.
2. The fog computing low-power communication method based on edge-cloud integration according to claim 1, wherein After the step of initiating a temporary communication request to the car wash terminal and receiving the first key request returned by the car wash terminal, it further includes: If the fog layer node is an old user, generate the third key request, and send the third key request and the second key stored during the previous car wash to the secondary key library of the cloud layer for verification; If the cloud layer finds the same second key in the secondary key library, receive the first key returned by the primary key library of the cloud layer, and send it to the car wash terminal for terminal wake-up.
3. The fog computing low-power communication method based on edge-cloud integration according to claim 1, characterized in that When a new user registers, it includes the steps of: Establish real-time communication with the cloud layer; The user registers, generates a user ID and stores it locally; Send the user ID to the primary key library of the cloud layer for storage.
4. The fog computing low-power communication method based on edge-cloud integration according to claim 1, wherein The step of performing order interaction with the awakened car wash terminal, receiving the one-time second key generated by the car wash terminal based on the order result, storing it and sending it to the secondary key library of the cloud layer for storage specifically includes: Send an order request to the awakened car wash terminal through the Internet of Things APP, Receive the terminal status information sent by the car wash terminal, and generate an order based on the terminal status information; Among them, the terminal status information includes a combination of multiple information such as car wash price, average car wash duration, car wash machine status, car wash effect, car wash evaluation, and car wash machine operation guide; After the order is paid, receive the one-time second key generated by the car wash terminal based on the order result; Receive the second key, delete the previously stored second key, store the currently received second key, and send the second key to the secondary key library of the cloud layer for storage.
5. The fog computing low-power communication method based on edge-cloud integration according to claim 4, characterized in that The step of receiving the terminal status information sent by the car wash terminal and generating an order based on the terminal status information specifically includes: Receive the terminal status information sent by the car wash terminal, combine the terminal status information and the user's historical data stored in the Internet of Things APP to analyze the user's car wash preferences, and generate order options for user interaction; The user checks the order options and generates an order. The order includes the device identification code representing the unique identity of the car wash terminal and the decimal sequence code representing the historical car wash times of the car wash terminal.
6. The fog computing low-power communication method based on edge-cloud integration according to claim 4, wherein In the step of generating the one-time second key based on the order result, the second key includes: The device string includes a device identification code representing the unique identity of the car wash terminal; The history string includes a decimal sequence code representing the historical car wash times of the car wash terminal; The order string includes a decimal sequence code representing the order options selected by the user.
7. A fog computing low-power communication method based on edge-cloud integration, characterized in that, Applicable to a car wash terminal. When a user washes a car, the method includes the steps of: Receiving an external communication request and determining whether the request object is a fog layer node. If so, establishing a temporary communication and returning a secret key request to the fog layer node; Receiving a one-time first secret key from the cloud layer and forwarded by the fog layer node for terminal wake-up; Performing order interaction with the fog layer node, generating a one-time second secret key based on the order result, sending it to the fog layer node for storage, and forwarding it to the secondary secret key library in the cloud layer for storage via the fog layer node; Each car wash terminal has N first secret keys built-in and stored in the primary secret key library at the time of factory. Each first secret key can only be used once. After use, both the primary secret key library and the car wash terminal will delete the used first secret key.
Citation Information
Patent Citations
Remote access control system and control method in fog computing environment, terminal and medium
CN114143343A