Asynchronous task execution module based on message queue
By adopting an asynchronous task execution module based on message queue in shared electric vehicles, the problem that the task execution module in the prior art cannot process multiple sets of user orders asynchronously, achieving a more fair and efficient user vehicle allocation and use management.
Patent Information
- Application Number
- CN202421090452.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2034-05-20
AI Technical Summary
The task execution module of existing shared electric vehicles cannot perform asynchronous tasks, and cannot review and identify orders placed by multiple groups of customers, resulting in unfair situations caused by signal differences when scanning the code, and the task execution components are not easy to install and disassemble. .
Using a message queue-based asynchronous task execution module, including execution modules and order processors, the orders of multiple groups of users are processed asynchronously through the message queue execution module, the user's location, scanning time and payment time are compared, and the right to use is determined. , and remotely control the vehicle's power system through a feedback transmitter.
Asynchronous processing of multiple sets of user orders is realized, unfair situations caused by signal differences are avoided, the installation and disassembly of task execution components is simplified, and the efficiency and user experience of the system are improved.
Smart Images

Figure CN222529770U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of task execution of shared electric vehicles, and in particular to an asynchronous task execution module based on a message queue. Background Art
[0002] The task execution module is a software module used to track, organize and execute tasks. It can help users manage task lists, set task priorities, assign tasks to specific people, and monitor the progress of tasks. Existing shared electric vehicles are generally equipped with task execution modules. Users enter the program by scanning the code, and then place an order and start the vehicle from within the program. The usage process is relatively convenient, providing great convenience to users.
[0003] However, when the existing shared electric vehicles are in use, the execution module cannot perform asynchronous task execution and cannot review and identify orders placed by multiple groups of customers. If two people scan the code at a similar time, the person who scans the code first will enter the program more slowly due to poor signal, which will give the user an unfair feeling. At the same time, the existing task execution components are not easy to install and disassemble, so an asynchronous task execution module based on a message queue is needed to solve the above problems. Utility Model Content
[0004] The purpose of the utility model is to solve the problem that when the existing shared electric vehicles are in use, the execution module cannot perform asynchronous tasks and cannot review and identify orders placed by multiple groups of customers. If two people scan the code at a similar time, the person who scans the code first will enter the program more slowly due to poor signal, which will give the user an unfair feeling. At the same time, the existing task execution components are not easy to install and disassemble. Therefore, an asynchronous task execution module based on a message queue is proposed.
[0005] In order to achieve the above-mentioned purpose, the utility model adopts the following technical scheme: an asynchronous task execution module based on a message queue, including an execution module and an order processor, a barcode scanner is embedded in the top of the execution module, the top of the barcode scanner is transparent, a QR code is printed inside the top of the barcode scanner, a mounting welding block is welded to the bottom of the execution module, a ferrule is embedded in the bottom of the mounting welding block, and the ferrule is arc-shaped.
[0006] Preferably, a telescopic arc piece is slidably connected inside the hoop, a limiting sliding opening is provided on one side of the hoop, and a handle is connected to the limiting sliding opening.
[0007] Preferably, a socket is provided on the side of the bottom end of the hoop, a matching hole is provided on the front of the hoop, an insert block is welded on one side of the bottom end of the telescopic arc piece, a hole is provided on the front of the insert block, the insert block and the socket are adapted to each other, the positions of the opening and the matching hole are adapted, and the apertures are the same.
[0008] Preferably, the bottom of the barcode scanner is electrically connected to a control terminal, the bottom of the control terminal is electrically connected to a summary module, one side of the bottom of the summary module is electrically connected to a positioning monitoring module, the middle of the bottom of the summary module is electrically connected to a time monitoring module, and the other side of the bottom of the summary module is electrically connected to a payment sequence recording module.
[0009] Preferably, one side of the control terminal is electrically connected to a group storage module, and one end of the group storage module is electrically connected to a transmission module.
[0010] Preferably, a message queue execution module is installed inside the order processor, the bottom of the message queue execution module is electrically connected to a comparison identification terminal, and the bottom of the comparison identification terminal is electrically connected to a feedback transmitter.
[0011] Preferably, one end of the message queue execution module is electrically connected to a receiving module, a receiving chip is implanted inside the control terminal, and the feedback transmitter and the transmission chip in the control terminal are compatible with each other.
[0012] Beneficial Effects
[0013] In the utility model, the execution module in the device is wearable and can be put on the shared electric vehicle. When the user needs to scan the car, he directly scans the QR code in the top scanner, and then he can proceed to the next step. During installation, first put the hoop on the appropriate position of the car body, and then pull the handle to slide the telescopic arc piece down to adjust the size of the restraint. It should be noted that the handle is foldable. After the execution module is put on, the telescopic arc piece is pulled down by the handle so that the plug at the bottom of the telescopic arc piece is directly inserted into the socket at the bottom of the hoop, and then a special bolt is selected to penetrate the opening and the matching hole at the same time to fix it. The special bolt here can only be tightened and loosened by a special screwdriver, which can play an anti-theft role to a certain extent.
[0014] In the utility model, the control terminal is a small computer. The control terminal can obtain the information of multiple users at the same time, and determine which user to grant the right of use according to the user's location information, scanning time and payment time, so as to prevent unnecessary competition among users. After obtaining the user information, the control terminal will store the information of each scanned user separately through the grouping storage module, and then transmit it to the nearest Bluetooth transmission base station through the transmission module Bluetooth, and then transmit it to the order processor.
[0015] In the utility model, after multiple groups of user information are transmitted to the order processor, they will be directly fed back to the message queue execution module. The message queue execution module will asynchronously process the orders of multiple groups of users. The comparison and identification end is the execution end of the message queue execution module with a built-in merchant-specific system, which will compare the multiple groups of user information. The comparison will be done through the merchant's special system. The main comparison is the distance from the vehicle, the order of scanning time and the order of payment time. When the location of a user is close, the scanning time and the payment time are advanced, it will be determined that the customer can use the vehicle, and then the comparison result will be transmitted to the feedback transmitter. The feedback transmitter here transmits a start signal instruction, which will directly remotely control the power system of the vehicle used by the customer, and control it to unlock, and then the user can use it. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is the overall structure diagram of the utility model;
[0017] Figure 2 This is the internal structure diagram of the execution module of the utility model;
[0018] Figure 3 This is the internal structure diagram of the order processor of the utility model;
[0019] Figure 4 It is a protocol processing flow chart of the utility model;
[0020] Figure 5 This is a circuit diagram of a message queue execution module of the utility model;
[0021] Figure 6 This is a control structure diagram of the barcode scanner of the present utility model.
[0022] Legend:
[0023] 1. Execution module; 2. Barcode scanner; 3. Installation welding block; 4. Hoop; 5. Telescopic arc piece; 6. Insert block; 7. Opening hole; 8. Socket; 9. Matching hole; 10. Transmission module; 11. Group storage module; 12. Summary module; 13. Positioning picket module; 14. Time picket module; 15. Payment sequence recording module; 16. Control terminal; 17. Order processor; 18. Receiving module; 19. Message queue execution module; 20. Comparison and identification terminal; 21. Feedback transmitter; 22. Limiting slide; 23. Pull handle. DETAILED DESCRIPTION
[0024] In order to make the technical means, creative features, objectives and effects of the present invention easy to understand, the present invention is further described below in conjunction with specific embodiments and drawings, but the following embodiments are only preferred embodiments of the present invention, not all. Based on the embodiments in the implementation mode, other embodiments obtained by those skilled in the art without creative work are all within the protection scope of the present invention.
[0025] The specific embodiments of the present utility model are described below in conjunction with the accompanying drawings. Specific embodiment one:
[0027] Reference Figure 1-4 The asynchronous task execution module based on the message queue includes an execution module 1 and an order processor 17. A barcode scanner 2 is embedded on the top of the execution module 1. The top of the barcode scanner 2 is transparent. A QR code is printed inside the top of the barcode scanner 2. A mounting welding block 3 is welded on the bottom of the execution module 1. A ferrule 4 is embedded on the bottom of the mounting welding block 3. The ferrule 4 is in an arc shape.
[0028] A telescopic arc piece 5 is slidably connected inside the hoop 4 , and a limit sliding opening 22 is provided on one side of the hoop 4 , and a pull handle 23 is connected to the limit sliding opening 22 .
[0029] A socket 8 is provided on the side of the bottom end of the ferrule 4, a matching hole 9 is provided on the front of the ferrule 4, an insert block 6 is welded to one side of the bottom end of the telescopic arc piece 5, and an opening 7 is provided on the front of the insert block 6. The insert block 6 and the socket 8 are adapted to each other, and the positions of the opening 7 and the matching hole 9 are adapted, and the apertures are the same.
[0030] In this device, the execution module 1 is wearable and can be put on a shared electric vehicle. When the user needs to scan the car, he directly scans the QR code in the top barcode scanner 2, and then he can proceed to the next step. During installation, first put the hoop 4 on the appropriate position of the car body, and then slide the telescopic arc piece 5 down through the pull handle 23 to adjust the size of the restraint. It should be noted that the pull handle 23 is foldable. After the execution module 1 is put on, the telescopic arc piece 5 is pulled down through the pull handle 23, so that the plug 6 at the bottom of the telescopic arc piece 5 is directly inserted into the socket 8 at the bottom of the hoop 4, and then a special bolt is selected to penetrate the opening 7 and the matching hole 9 at the same time to fix it. It should be noted that the special bolt here can only be tightened and loosened by a special screwdriver, which can play an anti-theft role to a certain extent. Specific embodiment 2:
[0032] Reference Figure 1-4The bottom of the barcode scanner 2 is electrically connected to a control terminal 16, the bottom of the control terminal 16 is electrically connected to a summary module 12, one side of the bottom of the summary module 12 is electrically connected to a positioning picket module 13, the middle of the bottom of the summary module 12 is electrically connected to a time picket module 14, and the other side of the bottom of the summary module 12 is electrically connected to a payment sequence recording module 15.
[0033] One side of the control terminal 16 is electrically connected to the packet storage module 11 , and one end of the packet storage module 11 is electrically connected to the transmission module 10 .
[0034] A message queue execution module 19 is installed inside the order processor 17 . A comparison and identification terminal 20 is electrically connected to the bottom of the message queue execution module 19 . A feedback transmitter 21 is electrically connected to the bottom of the comparison and identification terminal 20 .
[0035] One end of the message queue execution module 19 is electrically connected to the receiving module 18 , a receiving chip is implanted inside the control terminal 16 , and the feedback transmitter 21 and the transmission chip inside the control terminal 16 are adapted to each other.
[0036] When the user scans the code on the barcode scanner 2, the built-in program of the control terminal 16 will be directly entered, and the required information will be obtained through the summary module 12. The summary module 12 will determine the user's location from the positioning picket module 13 at the bottom, and will obtain the user's scanning time from the time picket module 14 at the bottom, and obtain the user's scanning payment time from the payment sequence recording module 15 at the bottom. It should be noted that the control terminal 16 here is also a small computer. The control terminal 16 can obtain the information of multiple users at the same time, and determine which user to give the right to use according to the user's positioning information, scanning time and payment time, so as to prevent unnecessary competition between users. After obtaining the user information, the control terminal 16 will store the user information of each scanned code separately through the grouping storage module 11, and then transmit it to the nearest Bluetooth transmission base station through the transmission module 10 via Bluetooth, and then transmit it to the order processor 17. The order processor 17 here is also the merchant end, and remotely receives it through the receiving module 18. Transmission through the Bluetooth transmission base station can prevent the time for users to scan the code to log in and enter information and the transmission time from being slowed down due to poor signal quality.
[0037] After multiple groups of user information are transmitted to the order processor 17, they will be directly fed back to the message queue execution module 19. The message queue execution module 19 will asynchronously process the orders of multiple groups of users. The comparison identification end 20 is the execution end of the message queue execution module 19 with a built-in merchant-specific system. It will compare multiple groups of user information. The comparison will be done through the merchant's special system. The main comparison is the distance from the vehicle, the order of scanning time and the order of payment time. When the location of a user is close, the scanning time and the payment time are advanced, it will be determined that the customer can use the vehicle, and then the comparison result will be transmitted to the feedback transmitter 21. The feedback transmitter 21 here transmits a start signal instruction, which will directly remotely control the power system of the vehicle used by the customer, control it to unlock, and then the user can use it, and the feedback to other users is the reminder message "Dear customer, please change to the next one".
[0038] In summary:
[0039] 1. In this device, the execution module 1 is wearable and can be put on a shared electric vehicle. When the user needs to scan the vehicle, he directly scans the QR code in the top barcode scanner 2, and then proceeds to the next step. During installation, first put the hoop 4 on the appropriate position of the vehicle body, and then slide the telescopic arc piece 5 down through the pull handle 23 to adjust the size of the restraint. It should be noted that the pull handle 23 is foldable. After the execution module 1 is put on, the telescopic arc piece 5 is pulled down through the pull handle 23, so that the plug 6 at the bottom of the telescopic arc piece 5 is directly inserted into the socket 8 at the bottom of the hoop 4, and then a special bolt is selected to penetrate the opening 7 and the matching hole 9 at the same time to fix it. It should be noted that the special bolt here can only be tightened and loosened by a special screwdriver, which can play an anti-theft role to a certain extent.
[0040] 2. After multiple groups of user information are transmitted to the order processor 17, they will be directly fed back to the message queue execution module 19. The message queue execution module 19 will asynchronously process the orders of multiple groups of users. The comparison identification end 20 is the execution end of the message queue execution module 19 with a built-in merchant-specific system. It will compare multiple groups of user information. The comparison will be done through the merchant's special system. The main comparison is the distance from the vehicle, the order of scanning time and the order of payment time. When a user's location is close, the scanning time and the payment time are advanced, it will be determined that the customer can use the vehicle, and then the comparison result will be transmitted to the feedback transmitter 21. The feedback transmitter 21 here transmits a start signal instruction, which will directly remotely control the power system of the vehicle used by the customer and control its unlocking.
[0041] In the present utility model, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.
[0042] The above shows and describes the basic principle, main features and advantages of the utility model. Those skilled in the art should understand that the utility model is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the utility model and are not used to limit the utility model. Without departing from the spirit and scope of the utility model, the utility model may have various changes and improvements, which fall within the scope of the utility model to be protected. The scope of protection of the utility model is defined by the attached claims and their equivalents.
Claims
1. An asynchronous task execution module based on a message queue, comprising an execution module (1) and an order processor (17), characterized in that: A barcode scanner (2) is embedded on the top of the execution module (1), the top of the barcode scanner (2) is transparent, a two-dimensional code is printed inside the top of the barcode scanner (2), a mounting welding block (3) is welded on the bottom of the execution module (1), a ferrule (4) is embedded on the bottom of the mounting welding block (3), and the ferrule (4) is in an arc shape.
2. The asynchronous task execution module based on message queue according to claim 1, characterized in that: The inside of the sleeve hoop (4) is slidably connected with a telescopic arc piece (5), and a limiting sliding opening (22) is provided on one side of the sleeve hoop (4), and a pull handle (23) is connected to the limiting sliding opening (22).
3. The asynchronous task execution module based on message queue according to claim 2, characterized in that: The side surface of the bottom end of the sleeve hoop (4) is provided with a socket (8), the front surface of the sleeve hoop (4) is provided with a matching hole (9), an insert block (6) is welded to one side of the bottom end of the telescopic arc piece (5), the front surface of the insert block (6) is provided with an opening (7), the insert block (6) and the socket (8) are mutually adapted, the positions of the opening (7) and the matching hole (9) are adapted, and the hole diameters are the same.
4. The asynchronous task execution module based on message queue according to claim 1, characterized in that: The bottom of the barcode scanner (2) is electrically connected to a control terminal (16), the bottom of the control terminal (16) is electrically connected to a summary module (12), one side of the bottom of the summary module (12) is electrically connected to a positioning picket module (13), the middle of the bottom of the summary module (12) is electrically connected to a time picket module (14), the other side of the bottom of the summary module (12) is electrically connected to a payment sequence recording module (15), one side of the control terminal (16) is electrically connected to a grouping storage module (11), one side of the grouping storage module (11) is electrically connected to a positioning picket module (13), the middle of the bottom of the summary module (12) is electrically connected to a time picket module (14), the other side of the bottom of the summary module (12) is electrically connected to a payment sequence recording module (15), The end is electrically connected to a transmission module (10), a message queue execution module (19) is installed inside the order processor (17), the bottom of the message queue execution module (19) is electrically connected to a comparison and identification end (20), the bottom of the comparison and identification end (20) is electrically connected to a feedback transmitter (21), one end of the message queue execution module (19) is electrically connected to a receiving module (18), a receiving chip is implanted inside the control terminal (16), and the feedback transmitter (21) and the transmission chip in the control terminal (16) are mutually compatible.