Business processing method and device for control instructions of intelligent central control

By receiving and parsing the control commands of the intelligent central control unit in the cloud platform and establishing the association between the central control unit identifier and the scene identifier, the problem of the cloud platform being unable to recognize the intelligent central control unit's response is solved, enabling fast and accurate business processing, improving processing speed and accuracy, and enhancing user experience.

CN117749844BActive Publication Date: 2026-11-24XIAOAN KEJI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311606027.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-27
Publication Date
2026-11-24
Estimated Expiration
2043-11-27

AI Technical Summary

Technical Problem

The cloud platform is unable to quickly and accurately identify the responses of the intelligent central control system in different application scenarios, resulting in slower business processing speeds, incorrect results, and a reduced user experience.

Method used

By receiving control commands from the client, the system determines the scene identifier, establishes the association between the central control identifier, serial number, and scene identifier, assembles messages and sends them to the intelligent central control, receives and parses the responses to determine the target scene identifier, performs business processing, and uses a hash table to store the association to achieve fast and accurate business processing.

Benefits of technology

It improved the speed and accuracy of cloud platform business processing in different application scenarios, and enhanced the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117749844B_ABST
    Figure CN117749844B_ABST
Patent Text Reader

Abstract

This invention relates to the field of business processing technology, and provides a business processing method and apparatus for control commands of intelligent central control. The method determines the scene identifier corresponding to the control command and establishes a first association relationship. After receiving the second message from the target intelligent central control, the first association relationship is applied to determine the target scene identifier for business processing. This method can quickly and accurately apply the response of the intelligent central control to perform business processing in the corresponding application scenario, improve the business processing speed of the cloud platform, improve the accuracy of business processing results, and enhance the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of business processing technology, and in particular to a business processing method and apparatus for control commands of intelligent central control systems. Background Technology

[0002] In the field of shared bicycle technology, after the intelligent central control system is installed on the shared bicycle and put into market operation, whether it is the end user renting and returning the bicycle, the vehicle maintenance personnel moving the bicycle and changing the battery, or the cloud platform technicians troubleshooting problems, all need to send control commands to the intelligent central control system. Therefore, for the same intelligent central control system, corresponding control commands will be sent through the unified communication interface of the cloud platform in different application scenarios.

[0003] Taking the control command as an example of querying real-time information from the smart central control system, when an end user triggers the bike return service via a mini-program, the cloud platform sends a control command to the smart central control system to lock the bike and obtain its location information to calculate mileage and usage fees. When maintenance personnel trigger the battery swap service via the application, the cloud platform sends a control command to the smart central control system to obtain the bike's battery level and unlock the battery lock. When cloud platform technicians trigger the bike search service via computer, the cloud platform sends a control command to the smart central control system to obtain the bike's location information.

[0004] In reality, intelligent central control systems often originate from different suppliers, with varying and fixed communication protocol formats. This leads to a situation where, when the cloud platform issues control commands for different application scenarios, the cloud platform cannot identify the application scenario targeted by the intelligent central control system's response. Consequently, when the cloud platform is simultaneously processing business in multiple application scenarios, it cannot quickly and accurately apply the intelligent central control system's response to perform business processing for the corresponding application scenario. This not only reduces the cloud platform's business processing speed but may also cause confusion in the responses from the intelligent central control system used for business processing, resulting in incorrect business processing results and a degraded user experience. Summary of the Invention

[0005] This invention provides a business processing method and apparatus for control commands of intelligent central control systems, in order to overcome the deficiencies existing in the prior art.

[0006] This invention provides a business processing method for control commands of an intelligent central control system, including:

[0007] Receive control commands from the client for the target intelligent central control system, and determine the scene identifier corresponding to the control commands;

[0008] Assemble a first message according to the control command, establish a first association relationship between the central control identifier of the target intelligent central control, the serial number in the first message and the scene identifier, and send the first message to the target intelligent central control;

[0009] Receive the second message from the target intelligent central control, and based on the sequence number in the second message and the central control identifier of the target intelligent central control, apply the first association relationship to determine the target scene identifier corresponding to the second message;

[0010] Based on the target scene identifier, business processing is performed to obtain a first processing result, and the first processing result is sent to the client.

[0011] According to a service processing method for control commands of an intelligent central control system provided by the present invention, the step of sending the first message to the target intelligent central control system includes:

[0012] Based on the central control identifier of the target intelligent central control, the target long connection with the target intelligent central control is determined by applying the second association relationship between the central control identifier and the long connection identifier and the third association relationship between the long connection identifier and the long connection.

[0013] Based on the target long connection, the first message is sent to the target intelligent central control unit.

[0014] According to a service processing method for control commands of an intelligent central control system provided by the present invention, the step of sending the first message to the target intelligent central control system includes:

[0015] Receive long connection requests from various intelligent central control units;

[0016] Based on the long connection request, a long connection is created with each of the intelligent central control units, and the third association relationship is established.

[0017] According to the present invention, a business processing method for control commands of an intelligent central control system includes, after establishing the third association relationship, the following steps:

[0018] Receive login messages from each of the intelligent central control units;

[0019] Based on the login message, the central control identifier of each intelligent central control unit is determined, and the second association relationship is established.

[0020] According to the present invention, a business processing method for control instructions of an intelligent central control unit is provided, wherein the second association relationship is stored in a second hash table, and the second hash table uses the central control unit identifier as the key and the long connection identifier as the value;

[0021] The third association is stored in a third hash table, where the long connection identifier is used as the key and the long connection is used as the value.

[0022] According to a business processing method for control commands of an intelligent central control system provided by the present invention, the step of receiving a control command from a client for a target intelligent central control system and determining the scene identifier corresponding to the control command includes:

[0023] Based on the first microservice corresponding to the client, the control command is received and the scene identifier is determined. Based on the control command and the scene identifier, a client request is generated and the client request is sent to the second microservice corresponding to the target intelligent central control.

[0024] Based on the second microservice, the client request is parsed to obtain the control command and the scene identifier.

[0025] According to the present invention, a business processing method for control commands of an intelligent central control system, wherein the business processing based on the target scene identifier to obtain a first processing result includes:

[0026] Based on the target scenario identifier, the second microservice is used to perform business processing to obtain a second processing result, and the second processing result is sent to the first microservice.

[0027] Based on the second processing result, the first microservice is used for business processing to obtain the first processing result.

[0028] According to the present invention, a business processing method for control instructions of intelligent central control is provided, wherein the first association relationship is stored in a first hash table, and the first hash table uses the central control identifier and serial number as keys and the scene identifier as values.

[0029] The present invention also provides a business processing device for control commands of intelligent central control, comprising:

[0030] The first receiving module is used to receive control commands from the client for the target intelligent central control system and determine the scene identifier corresponding to the control commands;

[0031] The message sending module is used to assemble a first message according to the control command, establish a first association relationship between the central control identifier of the target intelligent central control, the serial number in the first message and the scene identifier, and send the first message to the target intelligent central control;

[0032] The second receiving module is used to receive the second message of the target intelligent central control, and based on the sequence number in the second message and the central control identifier of the target intelligent central control, apply the first association relationship to determine the target scene identifier corresponding to the second message;

[0033] The business processing module is used to perform business processing based on the target scene identifier, obtain a first processing result, and send the first processing result to the client.

[0034] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the business processing method for control instructions for intelligent central control as described above.

[0035] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the business processing method for control instructions for intelligent central control as described above.

[0036] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements the business processing method for control instructions for intelligent central control as described above.

[0037] This invention provides a method and apparatus for processing control commands of a smart central control system. The method first receives a control command from a client for a target smart central control system and determines the scene identifier corresponding to the control command. Then, it assembles a first message based on the control command, establishes a first association relationship between the central control identifier of the target smart central control system, the sequence number in the first message, and the scene identifier, and sends the first message to the target smart central control system. Subsequently, it receives a second message from the target smart central control system and, based on the sequence number in the second message and the central control identifier of the target smart central control system, applies the first association relationship to determine the target scene identifier corresponding to the second message. Finally, it performs business processing based on the target scene identifier to obtain a first processing result, which is then sent to the client. This method, by determining the scene identifier corresponding to the control command and establishing a first association relationship, and then applying this first association relationship to determine the target scene identifier for business processing after receiving the second message from the target smart central control system, can quickly and accurately apply the smart central control system's response to perform business processing in the corresponding application scenario, improving the business processing speed of the cloud platform, increasing the accuracy of business processing results, and enhancing the user experience. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on the drawings described below without creative effort.

[0039] Figure 1This is a flowchart illustrating the business processing method for control commands of an intelligent central control system provided by the present invention.

[0040] Figure 2 This is a schematic diagram illustrating the interaction process between various microservices, clients, and the target intelligent central control unit in the business processing method for control commands of intelligent central control provided by this invention;

[0041] Figure 3 This is a schematic diagram of the business processing device provided by the present invention;

[0042] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0043] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0044] The terms "first" and "second" in the specification and claims of this invention may explicitly or implicitly include one or more of those features. In the description of the invention, unless otherwise stated, "a plurality of" means two or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0045] Because existing cloud platforms cannot quickly and accurately apply the responses from intelligent central control systems to handle business in multiple application scenarios simultaneously, their processing speed is reduced, errors occur in processing results, and user experience is compromised. Therefore, this invention provides a business processing method for control commands from intelligent central control systems, introducing scenario identifiers to address the technical problems caused by the inability of existing cloud platforms to determine application scenarios.

[0046] Figure 1 This is a flowchart illustrating a business processing method for control commands of an intelligent central control system provided in an embodiment of the present invention, as shown below. Figure 1 As shown, the method includes:

[0047] S1, Receive control commands from the client for the target intelligent central control, and determine the scene identifier corresponding to the control commands;

[0048] S2, assemble a first message according to the control command, establish a first association relationship between the central control identifier of the target intelligent central control, the serial number in the first message and the scene identifier, and send the first message to the target intelligent central control;

[0049] S3, receive the second message from the target intelligent central control, and based on the sequence number in the second message and the central control identifier of the target intelligent central control, apply the first association relationship to determine the target scene identifier corresponding to the second message;

[0050] S4. Based on the target scene identifier, perform business processing to obtain a first processing result, and send the first processing result to the client.

[0051] Specifically, the business processing method for control commands of intelligent central control provided in the embodiments of the present invention is executed by a business processing device, which can be configured on a cloud platform. The device can be one or more microservices configured on the cloud platform, without specific limitations here.

[0052] First, step S1 is executed, receiving control commands from the client for the target smart central control unit and determining the scene identifier corresponding to the control commands. This target smart central control unit is installed on the target shared bicycle and is used to control the unlocking and locking of the designated shared bicycle, location information collection, and information transmission. Each shared bicycle has one corresponding smart central control unit installed. Here, the shared bicycle can be a shared bicycle or a shared electric bicycle.

[0053] A client refers to the object of operation by a user when performing business processing on the target intelligent central control system. Users can include bicycle rental users, vehicle maintenance personnel, and cloud platform technicians, etc. Correspondingly, a client can include applications (APPs) installed on mobile devices used by bicycle rental users or mini-programs embedded in applications installed on mobile devices, applications installed on mobile devices used by vehicle maintenance personnel or mini-programs embedded in applications installed on mobile devices, and terminal devices such as computers used by cloud platform technicians.

[0054] Control commands are commands related to the target smart central control system. These can include commands for locking and unlocking the target smart central control system, as well as commands for querying its real-time information; no specific limitations are specified here. The real-time information can include the target smart central control system's real-time location and configuration information, such as whether a helmet is configured and whether Bluetooth is supported.

[0055] The triggering method for this control command varies depending on the application scenario. For example, in the scenario where a user rents a bike and it is located, the control command can be triggered by the user scanning the QR code on the target shared bike where the smart control unit is located, to obtain real-time information about the target shared bike. In the scenario where a user unlocks a bike, the control command can be triggered by the user clicking the "Drive" button displayed on their app, to trigger the smart control unit to unlock. In the scenario where a user returns a bike, the control command can be triggered either by the user manually closing the lock on the target shared bike, or by the user clicking the "Return" button displayed on their app, to trigger the smart control unit to lock.

[0056] By parsing control commands, the operational intent of the target intelligent central control system can be determined, thereby identifying the corresponding scenario identifier. This scenario identifier can be used to uniquely mark different application scenarios, which can be characterized by the different needs of different users for the target intelligent central control system. For example, the scenario identifier for a bike rental user's location-based rental scenario could be 00, the scenario identifier for a unlocking scenario could be 01, the scenario identifier for a bike return scenario could be 02, the scenario identifier for vehicle maintenance personnel moving a bike could be 10, the scenario identifier for battery swapping could be 11, and the scenario identifier for cloud platform technicians troubleshooting problems could be 21.

[0057] Different users can be distinguished by the accounts they log into the client, and different needs can be differentiated by corresponding control commands.

[0058] Then, step S2 is executed. First, a serial number is defined, determined by the communication protocol between the service processing device and the target intelligent central control unit. Then, the serial number and control commands are assembled into a first message in a message format. Afterward, a first association relationship can be established between the central control unit's identifier, the serial number in the first message, and the scene identifier. This first association relationship can be stored for subsequent applications.

[0059] After receiving the first message, it needs to be sent to the target intelligent central control unit so that the target intelligent central control unit can respond to the control command, obtain the response result, and assemble the sequence number from the first message and the response result into a second message in a message format. The second message is then fed back to the service processing device. Here, the sequence number in the second message is the same as the sequence number in the first message.

[0060] The first message can be sent via a pre-established target long connection between the service processing device and the target intelligent central control unit. This target long connection can be a Transmission Control Protocol (TCP) keepalive connection.

[0061] Subsequently, step S3 is executed, receiving the second message from the target intelligent central control unit and parsing it to obtain the serial number and control command within the second message. Next, using the serial number in the second message and the central control unit's identifier, the first association is searched to determine the target scenario identifier corresponding to the second message. Here, the central control unit identifier refers to the identification information of the intelligent central control unit, which can be the International Mobile Equipment Identity (IMEI) or other information that can identify the intelligent central control unit; no specific limitation is made here.

[0062] Finally, in step S4, after determining the target scenario identifier, the service processing device can use the target scenario identifier in conjunction with the second message to perform service processing and obtain the first processing result. Here, the content of the service processing can be pre-configured to correspond to the application scenario. For example, if the target scenario identifier is 00, it means that the application scenario is the location scenario when a bicycle rental user rents a bicycle. In this case, the service processing device can save the current location information of the target shared bicycle to calculate the mileage and usage fee when returning the bicycle.

[0063] After that, the first processing result is sent to the client for feedback. For example, the first processing result can be the location information of the target shared bicycle, or whether the unlocking was successful, whether the locking was successful, or whether the payment was successful.

[0064] The business processing method for control commands of a smart central control unit provided in this embodiment of the invention first receives a control command from a client for a target smart central control unit and determines the scene identifier corresponding to the control command; then, it assembles a first message according to the control command, establishes a first association relationship between the central control unit identifier of the target smart central control unit, the sequence number in the first message, and the scene identifier, and sends the first message to the target smart central control unit; subsequently, it receives a second message from the target smart central control unit, and based on the sequence number in the second message and the central control unit identifier of the target smart central control unit, applies the first association relationship to determine the target scene identifier corresponding to the second message; finally, it performs business processing based on the target scene identifier to obtain a first processing result, and sends the first processing result to the client. This method, by determining the scene identifier corresponding to the control command and establishing a first association relationship, and applying this first association relationship to determine the target scene identifier for business processing after receiving the second message from the target smart central control unit, can quickly and accurately apply the smart central control unit's response to perform business processing in the corresponding application scenario, improving the business processing speed of the cloud platform, increasing the accuracy of business processing results, and enhancing the user experience.

[0065] Based on the above embodiments, sending the first message to the target intelligent central control unit includes:

[0066] Based on the central control identifier of the target intelligent central control, the target long connection with the target intelligent central control is determined by applying the second association relationship between the central control identifier and the long connection identifier and the third association relationship between the long connection identifier and the long connection.

[0067] Based on the target long connection, the first message is sent to the target intelligent central control unit.

[0068] Specifically, during the process of sending the first message to the target intelligent central control unit, it is necessary to first determine the target long-lived connection between the service processing device and the target intelligent central control unit. This target long-lived connection can be determined by using the central control unit's identifier to identify the target long-lived connection identifier in the second association relationship between the central control unit's identifier and the long-lived connection identifier. Furthermore, the target long-lived connection identifier can be used to determine the target long-lived connection in the third association relationship between the long-lived connection identifier and the long-lived connection. Both the second and third association relationships are pre-built and stored. The target long-lived connection identifier is a unique identifier for the target long-lived connection, i.e., the ID of the target long-lived connection.

[0069] Subsequently, the first message is sent to the target intelligent central control system using the target long connection.

[0070] Furthermore, when the target intelligent central control sends the second message to the business processing device, it is also necessary to utilize the target long connection.

[0071] In this embodiment of the invention, the target long connection can be quickly determined by utilizing the second and third association relationships, thereby enabling the timely transmission of the first message.

[0072] Based on the above embodiments, the service processing method for control commands of intelligent central control provided in this embodiment of the invention includes, before sending the first message to the target intelligent central control, the following:

[0073] Receive long connection requests from various intelligent central control units;

[0074] Based on the long connection request, a long connection is created with each of the intelligent central control units, and the third association relationship is established.

[0075] Specifically, when establishing a third association, each intelligent central control unit can first send a long connection request to the business processing device. This long connection request can be a TCP long connection request.

[0076] The business processing device receives the long connection request and uses it to create a long connection with each intelligent central control unit. This long connection can be a TCP long connection.

[0077] Each long connection has a long connection identifier, so a third association relationship can be established between the long connection identifier and the long connection.

[0078] After establishing a long-term connection with each intelligent central control unit, the business processing unit can send back the results to each intelligent central control unit.

[0079] In this embodiment of the invention, by constructing a third association relationship, the efficiency of determining the long connection required for subsequent message transmission can be improved.

[0080] Based on the above embodiments, the business processing method for control commands of intelligent central control provided in this embodiment of the invention includes, after establishing the third association relationship, the following:

[0081] Receive login messages from each of the intelligent central control units;

[0082] Based on the login message, the central control identifier of each intelligent central control unit is determined, and the second association relationship is established.

[0083] Specifically, after establishing the third association, each intelligent central control unit can send a login message to the business processing device through the corresponding long connection after receiving feedback from the business processing device. The login message may contain the central control unit identifier of the corresponding intelligent central control unit.

[0084] The business processing device can receive login messages from each intelligent central control unit, parse the login messages to obtain the central control unit identifier of the corresponding intelligent central control unit, and then associate the central control unit identifier of each intelligent central control unit with the corresponding long connection identifier to obtain the second association relationship.

[0085] After receiving the login message from each intelligent central control unit, the business processing device can send the result back to each intelligent central control unit.

[0086] In this embodiment of the invention, by constructing a second association relationship, the efficiency of determining the long connection required for subsequent message transmission can be improved.

[0087] Based on the above embodiments, the business processing method for control instructions of intelligent central control provided in the embodiments of the present invention stores the second association relationship in a second hash table, wherein the central control identifier is used as the key and the long connection identifier is used as the value in the second hash table;

[0088] The third association is stored in a third hash table, where the long connection identifier is used as the key and the long connection is used as the value.

[0089] Specifically, in this embodiment of the invention, the second association relationship can be constructed and stored through a second hash table, in which the central control identifier in the second association relationship is used as the key and the long connection identifier is used as the value.

[0090] Similarly, third associations can be constructed and stored using a third hash table, where the long connection identifier in the third association is used as the key and the long connection is used as the value.

[0091] In this embodiment of the invention, storing the association relationships using a hash table enables fast retrieval of the association relationships.

[0092] Based on the above embodiments, the first association relationship is stored in a first hash table, where the central control identifier and serial number are used as keys and the scene identifier is used as a value.

[0093] Specifically, in this embodiment of the invention, the first association relationship can be constructed and stored through a first hash table, in which the central control identifier and serial number in the first association relationship are used as keys and the scene identifier is used as a value.

[0094] In this embodiment of the invention, the first association relationship is stored through a first hash table, which enables fast retrieval of the first association relationship.

[0095] Based on the above embodiments, the step of receiving the control command from the client for the target intelligent central control system and determining the scene identifier corresponding to the control command includes:

[0096] Based on the first microservice corresponding to the client, the control command is received and the scene identifier is determined. Based on the control command and the scene identifier, a client request is generated and the client request is sent to the second microservice corresponding to the target intelligent central control.

[0097] Based on the second microservice, the client request is parsed to obtain the control command and the scene identifier.

[0098] Specifically, the business processing device may include a first microservice and a second microservice, the first microservice being connected to the second microservice, the first microservice corresponding to the client, and the second microservice corresponding to the intelligent central control.

[0099] Therefore, when the business processing device interacts with the client, it can be achieved through the first microservice. That is, the first microservice corresponding to the client receives control commands and determines the scene identifier. Based on the control commands and the scene identifier, a client request is generated and sent to the second microservice corresponding to the target intelligent central control.

[0100] Then, by using the second microservice to parse the client request, control commands and scene identifiers can be obtained.

[0101] After that, steps S1-S3 can be performed using the second microservice.

[0102] In this embodiment of the invention, by having the first microservice and the second microservice execute different steps respectively, the pressure of using a single microservice for processing can be reduced, and the execution efficiency can be improved.

[0103] Based on the above embodiments, the step of performing business processing based on the target scene identifier to obtain a first processing result includes:

[0104] Based on the target scenario identifier, the second microservice is used to perform business processing to obtain a second processing result, and the second processing result is sent to the first microservice.

[0105] Based on the second processing result, the first microservice is used for business processing to obtain the first processing result.

[0106] Specifically, when executing step S3, after obtaining the target scenario identifier, the second microservice can perform business processing based on the target scenario identifier and the second message. After that, it can send the obtained second processing result to the first microservice, which will then perform business processing based on the second processing result, and finally obtain the first processing result and feed it back to the client.

[0107] In this embodiment of the invention, by performing different business processes through the first microservice and the second microservice, the pressure of using a single microservice for business processing can be reduced, business processing efficiency can be improved, and the error rate of business processing can be reduced.

[0108] like Figure 2 As shown, based on the above embodiments, in the business processing method for control commands of intelligent central control provided in this embodiment of the invention, the client may include a first client used by bicycle rental users, a second client used by vehicle maintenance personnel, and a third client used by cloud platform technicians. The microservice corresponding to the first client is microservice 1, the microservice corresponding to the second client is microservice 2, the microservice corresponding to the third client is microservice 3, and the microservice corresponding to the target intelligent central control is microservice 4. Microservices 1, 2, and 3 are all first microservices, and microservice 4 is a second microservice. Microservices 1, 2, 3, and 4 are all configured on the cloud platform.

[0109] The interaction process between each microservice, client, and target intelligent central control includes:

[0110] 1) The target intelligent central control initiates a request to microservice 4 to establish a TCP long connection.

[0111] 2) When microservice 4 receives a TCP long connection request, it creates a TCP long connection and saves the TCP long connection ID as the key and the TCP long connection as the value in hash table 1, which is the third hash table.

[0112] 3) After receiving the response from microservice 4, the target intelligent central control sends a login message.

[0113] 4) Microservice 4 parses the login message to obtain the IMEI of the target intelligent central control, and saves it to hash table 2 (the second hash table) with the IMEI as the key and the TCP long connection ID as the value. Then it responds to the login message.

[0114] 5) Client 1 (or Client 2, Client 3) sends a control command to the target intelligent central control (known IMEI), and microservice 1 (or microservice 2, microservice 3) receives the control command.

[0115] 6) Microservice 1 (or microservice 2, microservice 3) determines the scene identifier and generates a client request based on the scene identifier and control instructions, and sends the client request to microservice 4.

[0116] 7) Microservice 4 parses the client request and obtains the IMEI and scene identifier.

[0117] 8) Microservice 4 defines a sequence number and assembles the first message according to the message format based on the sequence number and control instructions.

[0118] 9) Microservice 4 uses IMEI and serial number as keys and scenario identifier as values ​​to store data in hash table 3, which is the first hash table.

[0119] 10) Microservice 4 obtains the TCP long connection ID from the second hash table based on the IMEI, and then obtains the target TCP long connection from the third hash table based on the TCP long connection ID to send the first message.

[0120] 11) The target intelligent central control receives the first message and replies with the second message.

[0121] 12) Microservice 4 parses the second message and obtains the serial number. Based on the IMEI and serial number, it retrieves the target scenario identifier from the first hash table for business processing and obtains the second processing result.

[0122] 13) Microservice 4 returns the second processing result to microservice 1 (or microservice 2, microservice 3).

[0123] 14) Microservice 1 (or microservice 2, microservice 3) performs business processing based on the second processing result to obtain the first processing result.

[0124] 15) Microservice 1 (or microservice 2, microservice 3) returns the first processing result to client 1 (or client 2, client 3).

[0125] like Figure 3As shown, based on the above embodiments, this embodiment of the invention provides a business processing apparatus, including:

[0126] The first receiving module 31 is used to receive control commands from the client for the target intelligent central control system and determine the scene identifier corresponding to the control commands;

[0127] The message sending module 32 is used to assemble a first message according to the control command, establish a first association relationship between the central control identifier of the target intelligent central control, the serial number in the first message and the scene identifier, and send the first message to the target intelligent central control.

[0128] The second receiving module 33 is used to receive the second message of the target intelligent central control, and based on the sequence number in the second message and the central control identifier of the target intelligent central control, apply the first association relationship to determine the target scene identifier corresponding to the second message;

[0129] The business processing module 34 is used to perform business processing based on the target scene identifier, obtain a first processing result, and send the first processing result to the client.

[0130] Based on the above embodiments, the service processing apparatus provided in this embodiment of the invention, wherein the message sending module is specifically used for:

[0131] Based on the central control identifier of the target intelligent central control, the target long connection with the target intelligent central control is determined by applying the second association relationship between the central control identifier and the long connection identifier and the third association relationship between the long connection identifier and the long connection.

[0132] Based on the target long connection, the first message is sent to the target intelligent central control unit.

[0133] Based on the above embodiments, the business processing apparatus provided in this embodiment of the invention further includes a third association relationship establishment module, used for:

[0134] Receive long connection requests from various intelligent central control units;

[0135] Based on the long connection request, a long connection is created with each of the intelligent central control units, and the third association relationship is established.

[0136] Based on the above embodiments, the business processing apparatus provided in this embodiment of the invention further includes a second association relationship establishment module, used for:

[0137] Receive login messages from each of the intelligent central control units;

[0138] Based on the login message, the central control identifier of each intelligent central control unit is determined, and the second association relationship is established.

[0139] Based on the above embodiments, in the business processing device provided in the embodiments of the present invention, the second association relationship is stored in a second hash table, wherein the central control identifier is used as the key and the long connection identifier is used as the value;

[0140] The third association is stored in a third hash table, where the long connection identifier is used as the key and the long connection is used as the value.

[0141] Based on the above embodiments, the service processing apparatus provided in this embodiment of the invention, wherein the first receiving module is specifically used for:

[0142] Based on the first microservice corresponding to the client, the control command is received and the scene identifier is determined. Based on the control command and the scene identifier, a client request is generated and the client request is sent to the second microservice corresponding to the target intelligent central control.

[0143] Based on the second microservice, the client request is parsed to obtain the control command and the scene identifier.

[0144] Based on the above embodiments, the service processing apparatus provided in this embodiment of the invention, wherein the service processing module is specifically used for:

[0145] Based on the target scenario identifier, the second microservice is used to perform business processing to obtain a second processing result, and the second processing result is sent to the first microservice.

[0146] Based on the second processing result, the first microservice is used for business processing to obtain the first processing result.

[0147] Based on the above embodiments, in the business processing device provided in the embodiments of the present invention, the first association relationship is stored in a first hash table, wherein the first hash table uses the central control identifier and the serial number as keys and the scene identifier as values.

[0148] Specifically, the functions of each module in the business processing device provided in this embodiment of the invention correspond one-to-one with the operation flow of each step in the above method-like embodiments, and the achieved effects are also the same. For details, please refer to the above embodiments, and this will not be repeated in this embodiment of the invention.

[0149] Figure 4 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 4As shown, the electronic device may include a processor 410, a communications interface 420, a memory 430, and a communication bus 440. The processor 410, communications interface 420, and memory 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions stored in the memory 430 to execute the business processing methods for control instructions for intelligent central control provided in the above embodiments.

[0150] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0151] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the business processing method for control instructions for intelligent central control provided in the above embodiments.

[0152] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the business processing method for executing control instructions for intelligent central control provided in the above embodiments.

[0153] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0154] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0155] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A business processing method for control commands of an intelligent central control system, characterized in that, include: Receive control commands from the client for the target intelligent central control system, and determine the scene identifier corresponding to the control commands; Assemble a first message according to the control command, establish a first association relationship between the central control identifier of the target intelligent central control, the serial number in the first message and the scene identifier, and send the first message to the target intelligent central control; The system receives a second message from the target intelligent central control unit, the second message including the serial number and the response result obtained by the target intelligent central control unit in response to the control command, and determines the target scene identifier corresponding to the second message based on the serial number in the second message and the central control identifier of the target intelligent central control unit by applying the first association relationship. Based on the target scene identifier, business processing is performed to obtain a first processing result, and the first processing result is sent to the client.

2. The business processing method for control commands of intelligent central control according to claim 1, characterized in that, Sending the first message to the target intelligent central control unit includes: Based on the central control identifier of the target intelligent central control, the target long connection with the target intelligent central control is determined by applying the second association relationship between the central control identifier and the long connection identifier and the third association relationship between the long connection identifier and the long connection. Based on the target long connection, the first message is sent to the target intelligent central control unit.

3. The business processing method for control commands of intelligent central control according to claim 2, characterized in that, The step of sending the first message to the target intelligent central control unit includes: Receive long connection requests from various intelligent central control units; Based on the long connection request, a long connection is created with each of the intelligent central control units, and the third association relationship is established.

4. The business processing method for control commands of intelligent central control according to claim 3, characterized in that, The establishment of the third association relationship then includes: Receive login messages from each of the intelligent central control units; Based on the login message, the central control identifier of each intelligent central control unit is determined, and the second association relationship is established.

5. The business processing method for control commands of intelligent central control according to claim 2, characterized in that, The second association is stored in a second hash table, where the central control identifier is used as the key and the long connection identifier is used as the value. The third association is stored in a third hash table, where the long connection identifier is used as the key and the long connection is used as the value.

6. The business processing method for control commands of intelligent central control according to any one of claims 1-5, characterized in that, The receiving client's control command for the target intelligent central control system, and the determination of the scene identifier corresponding to the control command, include: Based on the first microservice corresponding to the client, the control command is received and the scene identifier is determined. Based on the control command and the scene identifier, a client request is generated and the client request is sent to the second microservice corresponding to the target intelligent central control. Based on the second microservice, the client request is parsed to obtain the control command and the scene identifier.

7. The business processing method for control commands of intelligent central control according to claim 6, characterized in that, The process of performing business processing based on the target scene identifier to obtain a first processing result includes: Based on the target scenario identifier, the second microservice is used to perform business processing to obtain a second processing result, and the second processing result is sent to the first microservice. Based on the second processing result, the first microservice is used for business processing to obtain the first processing result.

8. The business processing method for control commands of intelligent central control according to any one of claims 1-5, characterized in that, The first association relationship is stored in a first hash table, where the central control identifier and serial number are used as keys and the scene identifier is used as a value.

9. A business processing device for control commands of an intelligent central control system, characterized in that, include: The first receiving module is used to receive control commands from the client for the target intelligent central control system and determine the scene identifier corresponding to the control commands; The message sending module is used to assemble a first message according to the control command, establish a first association relationship between the central control identifier of the target intelligent central control, the serial number in the first message and the scene identifier, and send the first message to the target intelligent central control; The second receiving module is used to receive the second message of the target intelligent central control, the second message including the serial number and the response result obtained by the target intelligent central control in response to the control command, and based on the serial number in the second message and the central control identifier of the target intelligent central control, the first association relationship is applied to determine the target scene identifier corresponding to the second message; The business processing module is used to perform business processing based on the target scene identifier, obtain a first processing result, and send the first processing result to the client.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the business processing method for control instructions for intelligent central control as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Business pushing method and device based on artificial intelligence and electronic equipment

    CN110730236A

  • Vehicle remote diagnosis method, device and system

    CN115705044A