Vehicle lock control method and device, electronic equipment and storage medium
By establishing a Bluetooth LAN on the user side and using the connection between surrounding vehicles and servers, the network disconnection problem caused by limited number of base station connections is solved, communication between the user side and server is realized, and normal unlocking and locking operations of shared bicycles are ensured. Improved the car experience.
Patent Information
- Application Number
- CN202310738823.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-20
- Publication Date
- 2024-12-27
AI Technical Summary
When the number of base station connections is limited, when the number of users and shared bicycles is large, the network connection will be disconnected, and users cannot control the unlocking and locking of shared bicycles, affecting the car use experience.
By establishing a Bluetooth LAN on the user side, using the network connection between the surrounding vehicles and the server, the vehicle lock control request is indirectly sent to the server, thereby realizing the vehicle's unlocking or locking operation.
It alleviates the communication pressure of base stations, ensures smooth communication between the user's end and the server, avoids the obstacles to vehicle use caused by users' inability to connect to the Internet, and improves the experience of vehicle use.
Smart Images

Figure CN119206907A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet technology, and in particular to a vehicle lock control method, device, electronic device and storage medium. Background Art
[0002] Different devices mainly communicate with each other through base stations. For example, when a user uses a shared bicycle, the communication between the user's mobile device, the server, and the shared bicycle is mainly realized through the base station, so that the user can control the unlocking and locking of the shared bicycle. That is, both the mobile device and the shared bicycle can communicate with the server through the base station.
[0003] However, the number of devices that can be connected to a base station is limited. Therefore, if there are a large number of users and / or shared bicycles in the area where the current base station is located, the base station connection will easily be full, resulting in some users' mobile devices being unable to connect to the network, and the user being unable to control the unlocking and locking of the shared bicycle, affecting the user's experience of using the bicycle. Summary of the invention
[0004] The embodiments of the present disclosure at least provide a vehicle lock control method, device, electronic device and storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a vehicle lock control method, the method comprising:
[0006] In response to a vehicle lock control request from a user terminal to a first vehicle, determining a network connection state between the user terminal and a server; the vehicle lock control request includes an unlocking request or a locking request;
[0007] When it is determined that the network connection state is disconnected, establishing a Bluetooth local area network for the user terminal, wherein the devices connected to the Bluetooth local area network include the user terminal, the first vehicle, and at least one second vehicle having a network connection with the server;
[0008] The vehicle lock control request is sent to the server via the Bluetooth local area network, so that the server controls the first vehicle to unlock or lock through the second vehicle.
[0009] In a possible implementation manner, when determining that the network connection state is a disconnected state, establishing a Bluetooth local area network for the user terminal includes:
[0010] Scanning Bluetooth signals of vehicles around the user terminal;
[0011] Based on the scanned Bluetooth signal, establish a Bluetooth connection with the surrounding vehicles, and determine whether the second vehicle exists among the surrounding vehicles;
[0012] When it is determined that the second vehicle exists, the Bluetooth local area network is established with the second vehicle as an access point.
[0013] In a possible implementation manner, after determining whether the second vehicle exists among the surrounding vehicles, the method further includes:
[0014] In a case where it is determined that the second vehicle does not exist among the surrounding vehicles, determining a third vehicle from among the surrounding vehicles; the third vehicle being able to communicate with the second vehicle that is not one of the surrounding vehicles;
[0015] A Bluetooth local area network is established with the third vehicle and a second vehicle communicating with the third vehicle as access points.
[0016] In a possible implementation manner, sending the vehicle lock control request to the server via the Bluetooth local area network includes:
[0017] The vehicle lock control request is sent to the second vehicle through the Bluetooth connection established with the second vehicle, and is then sent to the server through the second vehicle.
[0018] In a possible implementation manner, sending the vehicle lock control request to the server via the Bluetooth local area network includes:
[0019] The vehicle lock control request is sent to the third vehicle through a Bluetooth connection established with the third vehicle, the vehicle lock control request is sent to the second vehicle through the third vehicle, and the vehicle lock control request is sent to the server through the second vehicle.
[0020] In a possible implementation manner, after establishing a Bluetooth local area network for the user terminal and before sending the vehicle lock control request to the server through the Bluetooth local area network, the method further includes:
[0021] The vehicle lock control request is converted from a Hypertext Transfer Protocol (HTTP) protocol format to a Bluetooth protocol format.
[0022] In a possible implementation manner, the method further includes:
[0023] After the server controls the first vehicle to be unlocked or locked through the second vehicle, receiving order update information sent by the server through the Bluetooth local area network;
[0024] Based on the order update information, the order status of the vehicle order associated with the first vehicle in the user terminal is updated.
[0025] In a second aspect, the embodiment of the present disclosure further provides a vehicle lock control device, comprising:
[0026] A response unit, configured to determine a network connection state between the user terminal and the server in response to a vehicle lock control request from the user terminal to the first vehicle; the vehicle lock control request includes an unlock request or a lock request;
[0027] a determining unit, configured to establish a Bluetooth local area network for the user terminal when determining that the network connection state is a disconnected state, wherein the devices connected to the Bluetooth local area network include the user terminal, the first vehicle, and at least one second vehicle having a network connection established with the server;
[0028] A control unit is used to send the vehicle lock control request to the server through the Bluetooth local area network, so that the server controls the first vehicle to unlock or lock through the second vehicle.
[0029] In a possible implementation manner, the determining unit is further configured to:
[0030] Scanning Bluetooth signals of vehicles around the user terminal;
[0031] Based on the scanned Bluetooth signal, establish a Bluetooth connection with the surrounding vehicles, and determine whether the second vehicle exists among the surrounding vehicles;
[0032] When it is determined that the second vehicle exists, the Bluetooth local area network is established with the second vehicle as an access point.
[0033] In a possible implementation manner, after determining whether the second vehicle exists among the surrounding vehicles, the determining unit is further configured to:
[0034] In a case where it is determined that the second vehicle does not exist among the surrounding vehicles, determining a third vehicle from among the surrounding vehicles; the third vehicle being able to communicate with the second vehicle that is not one of the surrounding vehicles;
[0035] A Bluetooth local area network is established with the third vehicle and a second vehicle communicating with the third vehicle as access points.
[0036] In a possible implementation manner, the control unit is further configured to:
[0037] The vehicle lock control request is sent to the second vehicle through the Bluetooth connection established with the second vehicle, and is then sent to the server through the second vehicle.
[0038] In a possible implementation manner, the control unit is further configured to:
[0039] The vehicle lock control request is sent to the third vehicle through a Bluetooth connection established with the third vehicle, the vehicle lock control request is sent to the second vehicle through the third vehicle, and the vehicle lock control request is sent to the server through the second vehicle.
[0040] In a possible implementation manner, after establishing a Bluetooth local area network for the user terminal and before sending the vehicle lock control request to the server through the Bluetooth local area network, the device is further used to:
[0041] The vehicle lock control request is converted from a Hypertext Transfer Protocol (HTTP) protocol format to a Bluetooth protocol format.
[0042] In a possible implementation manner, the device is also used for:
[0043] After the server controls the first vehicle to be unlocked or locked through the second vehicle, receiving order update information sent by the server through the Bluetooth local area network;
[0044] Based on the order update information, the order status of the vehicle order associated with the first vehicle in the user terminal is updated.
[0045] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are performed.
[0046] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect or any possible implementation of the first aspect are executed.
[0047] The disclosed embodiment can determine the network connection status between the user terminal and the server after detecting the user terminal's request for controlling the lock of the first vehicle (here, the lock control request includes an unlocking request or a locking request), and establish a Bluetooth local area network for the user terminal when it is determined that the network connection status is disconnected, so that the lock control request can be sent to the server through the Bluetooth local area network, that is, the lock control request for the first vehicle is sent to the second vehicle that can communicate with the server through the Bluetooth connection, and the lock control request is sent to the server through the second vehicle, so that the server can control the unlocking or locking of the first vehicle through the second vehicle. This implementation method can alleviate the communication pressure of the base station by establishing a Bluetooth local area network, and can also realize the communication between the user terminal and the server through the second vehicle that has a network connection with the server in the Bluetooth local area network when the base station is full and the user terminal cannot connect to the Internet, thereby realizing barrier-free use of the vehicle by the user, avoiding the phenomenon that the user cannot use the vehicle due to the user terminal being unable to connect to the Internet, and improving the user's car experience.
[0048] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0050] Figure 1 A flow chart of a vehicle lock control method provided by an embodiment of the present disclosure is shown;
[0051] Figure 2 A flowchart of a method for establishing a Bluetooth local area network for a user terminal when determining that the network connection state is a disconnected state in a vehicle lock control method provided by an embodiment of the present disclosure is shown;
[0052] Figure 3 A schematic diagram showing various modules required in an application scenario of a vehicle lock control method provided by an embodiment of the present disclosure;
[0053] Figure 4 A schematic diagram of a communication process between a user terminal and a server provided in an embodiment of the present disclosure is shown;
[0054] Figure 5 A schematic diagram of a vehicle lock control device provided by an embodiment of the present disclosure is shown;
[0055] Figure 6 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0057] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0058] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0059] Research has found that different devices mainly communicate through base stations. For example, when a user uses a shared bicycle, the communication between the user's mobile device, the server, and the shared bicycle is mainly achieved through the base station, so that the user can control the unlocking and locking of the shared bicycle. In other words, both the mobile device and the shared bicycle can communicate with the server through the base station.
[0060] However, the number of connectable devices corresponding to the base station is limited. Therefore, when there are a large number of users and / or shared bicycles in the area where the current base station is located, some users and vehicles will be able to connect to the base station for communication, but some users and / or shared bicycles that exceed the number of connectable devices of the base station will not be able to connect to the base station (that is, they cannot connect to the network), which will result in these users being unable to use the bicycles.
[0061] Based on the above research, the embodiments of the present disclosure provide a vehicle lock control method, device, electronic device and storage medium. The embodiments of the present disclosure can determine the network connection status between the user terminal and the server after detecting the vehicle lock control request of the user terminal to the first vehicle (here, the vehicle lock control request includes an unlocking request or a locking request), and establish a Bluetooth local area network for the user terminal when it is determined that the network connection status is disconnected, so that the vehicle lock control request can be sent to the server through the Bluetooth local area network, so that the server can control the unlocking of the first vehicle through the second vehicle. This implementation method can alleviate the communication pressure of the base station by establishing a Bluetooth local area network, and can also achieve communication between the user terminal and the server through a second vehicle with a network connection established between the Bluetooth local area network and the server when the base station is full and the user terminal cannot connect to the Internet, thereby realizing barrier-free use of the vehicle by the user, avoiding the phenomenon that the user cannot use the vehicle due to the user terminal being unable to connect to the Internet, and improving the user's car experience.
[0062] To facilitate understanding of this embodiment, a vehicle lock control method disclosed in the embodiment of the present disclosure is first introduced in detail. The executor of the vehicle lock control method provided in the embodiment of the present disclosure is generally an electronic device with certain computing capabilities.
[0063] See also Figure 1 FIG. 1 is a flow chart of a vehicle lock control method provided by an embodiment of the present disclosure, wherein the method includes steps S101 to S105, wherein:
[0064] S101: In response to a vehicle lock control request from a user terminal to a first vehicle, determining a network connection status between the user terminal and a server.
[0065] Here, the first vehicle can be understood as a vehicle that can only be used after communicating with the user end (that is, the user's mobile device end). For example, the first vehicle can be a shared vehicle that has not been unlocked / used (for example, the shared vehicle can be a shared bicycle, shared tram, shared car, etc.).
[0066] Here, the network connection status may be a connected state or a disconnected state. When the network connection status is a connected state, it means that the user terminal can communicate with the server (that is, it can access the base station to achieve network connection). When the network connection status is a disconnected state, it means that the user terminal cannot communicate with the server.
[0067] In the disclosed embodiment, the client terminal may send a vehicle lock control request to the server, and determine the network connection status between the client terminal and the server based on feedback information received by the client terminal.
[0068] For example, when the vehicle lock control request is an unlocking request, the feedback information may be information indicating that the first vehicle is unlocked, for example, the feedback information may be unlocking success information or unlocking failure information. At this time, it can be determined that the network connection state between the user terminal and the server is connected.
[0069] Alternatively, the feedback information may also indicate information that the user terminal network connection fails, for example, the feedback information may be connection failure information, or no network information, etc. At this time, it may be determined that the network connection state between the user terminal and the server is disconnected.
[0070] In the embodiment of the present disclosure, when it is determined that the network connection status between the user terminal and the server is in a connected state, it means that the user terminal, the server, and the first vehicle can communicate normally. At this time, the user corresponding to the user terminal can use the first vehicle normally.
[0071] When it is determined that the network connection state between the client and the server is disconnected, the steps described in the following S103 may be performed.
[0072] S103: When it is determined that the network connection state is disconnected, establish a Bluetooth local area network for the user terminal, wherein devices connected to the Bluetooth local area network include the user terminal, the first vehicle, and at least one second vehicle having a network connection with the server.
[0073] Here, the devices in the Bluetooth LAN can communicate directly or indirectly via a Bluetooth connection, that is, a Bluetooth connection can be established directly between any devices in the Bluetooth LAN, or the connection can be achieved through a switching intermediate device. For example, device 1 communicates with device 2 via a Bluetooth connection, and device 2 communicates with device 3 via a Bluetooth connection, then indirect communication is achieved between device 1 and device 3.
[0074] The Bluetooth LAN in this solution can be understood as: a vehicle that can access the base station is used as an access point, and other vehicles directly or indirectly access the network of the access point through Bluetooth.
[0075] At this time, since the second vehicle has established a network connection with the server, the established Bluetooth local area network can use the second vehicle as an access point, so that the first vehicle and the user end are respectively connected to the second vehicle, so that the user end and the first vehicle can establish a network connection with the server and communicate.
[0076] It should be noted here that, in the case where a network connection is established between the first vehicle and the server, the first vehicle can also be directly used as the second vehicle.
[0077] In the embodiment of the present disclosure, after the Bluetooth local area network is established, the steps described in the following S105 may be executed.
[0078] S105: Sending the vehicle lock control request to the server via the Bluetooth local area network, so that the server controls the first vehicle to unlock or lock via the second vehicle.
[0079] In the disclosed embodiment, after the Bluetooth local area network is established, the vehicle lock control request of the user terminal for the first vehicle can be sent to the server through the Bluetooth local area network.
[0080] For example, in the case where the vehicle lock control request is an unlocking request, the server can issue a corresponding unlocking instruction based on the unlocking request after receiving the unlocking request, and send the unlocking instruction to the second vehicle. After that, the second vehicle sends the unlocking instruction to the first vehicle through the Bluetooth local area network to control the unlocking of the first vehicle.
[0081] For example, in the case where the vehicle lock control request is a lock request, the server can issue a corresponding lock instruction based on the lock request after receiving the lock request, and send the lock instruction to the second vehicle. After that, the second vehicle sends the lock instruction to the first vehicle through the Bluetooth local area network to control the lock of the first vehicle.
[0082] From the above description, it can be seen that the embodiment of the present disclosure can determine the network connection status between the user terminal and the server after detecting the user terminal's request for controlling the vehicle lock of the first vehicle, and when it is determined that the network connection status is disconnected, establish a Bluetooth local area network for the user terminal, so that the vehicle lock control request can be sent to the server via the Bluetooth local area network, so that the server can control the unlocking or locking of the first vehicle through the second vehicle.
[0083] This implementation method can alleviate the communication pressure of the base station by establishing a Bluetooth local area network. In addition, when the base station is full and the user end cannot connect to the Internet, communication between the user end and the server can be achieved through a second vehicle with a network connection established within the Bluetooth local area network and between the vehicle and the server. This can achieve barrier-free use of the car for users, avoid the phenomenon that users cannot use the car due to the user end being unable to connect to the Internet, and improve the user's car experience.
[0084] In an optional embodiment, if Figure 2 As shown, for the above S103: when it is determined that the network connection state is disconnected, establishing a Bluetooth local area network for the user terminal specifically includes the following steps:
[0085] Step S21: Scanning Bluetooth signals of vehicles around the user terminal;
[0086] Step S22: establishing a Bluetooth connection with the surrounding vehicles based on the scanned Bluetooth signal, and determining whether the second vehicle exists among the surrounding vehicles;
[0087] Step S23: when it is determined that the second vehicle exists, establishing the Bluetooth local area network with the second vehicle as an access point.
[0088] In the disclosed embodiment, the vehicles around the user terminal may refer to vehicles within a range formed by a Bluetooth signal transmission distance with the user terminal as the center, wherein the Bluetooth signal transmission distance is based on the actual Bluetooth communication distance and is not specifically limited here.
[0089] Alternatively, the vehicles around the user terminal may also indicate vehicles within a range formed by a preset distance with the user terminal as the center, wherein the preset distance may be 5 meters, 10 meters, etc., and the present disclosure does not limit the preset distance, and is subject to actual needs.
[0090] In an embodiment of the present disclosure, when it is determined that the network connection status between the user terminal and the server is disconnected, the user terminal can be prompted to turn on Bluetooth (for example, a prompt message to turn on Bluetooth is generated and displayed in the display interface of the user terminal), and after it is determined that the user terminal turns on Bluetooth, the Bluetooth signals of vehicles around the user terminal are scanned.
[0091] Afterwards, a Bluetooth connection can be established with the vehicles around the user end based on the scanned Bluetooth signal. At this time, the user end can receive the broadcast information of the successful Bluetooth connection and display the vehicle information of the surrounding vehicles that have been successfully connected. For example, the vehicle information can indicate the vehicle name, vehicle Bluetooth address, etc. of the surrounding vehicles.
[0092] Then, it can be determined whether there is a second vehicle among the surrounding vehicles connected to the user terminal that has established a network connection with the server.
[0093] In specific implementation, Bluetooth communication can be performed through the Bluetooth connection established between the user end and the surrounding vehicles. The user end can inquire the surrounding vehicles that have established Bluetooth connections with the user end whether a network connection has been established between the vehicle and the server (or whether the network connection is normal). After receiving feedback information from the surrounding vehicles (0 is used to indicate that the network connection is normal, and 1 is used to indicate that the network connection is disconnected), it can be determined based on the feedback information whether there is a second vehicle in the surrounding vehicles. For example, when the received feedback information indicates that a network connection has been established between the vehicle and the server, the vehicle is determined to be the second vehicle. At this time, the number of second vehicles determined from the surrounding vehicles can be one or more.
[0094] In another possible implementation, each vehicle may also carry indication information of whether a network connection is established with the server (or whether the network connection is normal) in the broadcast Bluetooth signal. Specifically, an indication bit may be added to the Bluetooth signal, such as 0 indicating a normal network connection and 1 indicating a disconnected network connection. When the user terminal determines that there is a second vehicle among the surrounding vehicles that has established a network connection with the server based on the scanned Bluetooth signal, the user terminal may establish a Bluetooth connection with the second vehicle.
[0095] In an optional implementation, when it is determined that there is a second vehicle, a Bluetooth local area network with the second vehicle as an access point can be established. That is, the second vehicle can be connected to the user terminal and the first vehicle respectively, thereby obtaining a Bluetooth local area network.
[0096] In this case, in the process of sending the vehicle lock control request to the server through the Bluetooth local area network, the vehicle lock control request can be sent to the second vehicle through the Bluetooth connection established with the second vehicle, and then sent to the server through the second vehicle.
[0097] Afterwards, the server may issue an unlocking instruction (or locking instruction) based on the received vehicle lock control request. At this time, the server may first send the unlocking instruction (or locking instruction) to the second vehicle, and then send the unlocking instruction (or locking instruction) received by the second vehicle to the first vehicle through the Bluetooth local area network where the first vehicle and the second vehicle are located, so that the first vehicle can be unlocked based on the unlocking instruction (or the first vehicle can be locked based on the locking instruction), thereby realizing the server controlling the first vehicle to unlock (or lock).
[0098] This implementation method can realize communication between the user terminal and the second vehicle and between the first vehicle and the second vehicle based on Bluetooth technology, thereby avoiding the problem of heavy communication pressure on the base station due to a large number of communication devices. At the same time, the data communication efficiency can be improved through Bluetooth connection, thereby improving the efficiency of vehicle use.
[0099] In another optional embodiment, when it is determined that the second vehicle does not exist among the surrounding vehicles, a third vehicle can be determined from the surrounding vehicles, where the third vehicle is a vehicle that can communicate with the second vehicle, and a Bluetooth local area network is established with the third vehicle and the second vehicle communicating with the third vehicle as access points.
[0100] That is, if there is no second vehicle that can communicate with the server within the Bluetooth connection range of the user side, at this time, a third vehicle that can indirectly communicate with the server can be determined from the surrounding vehicles. The third vehicle here communicates with the second vehicle via Bluetooth connection, and then communicates with the server through the second vehicle.
[0101] In the embodiment of the present disclosure, the Bluetooth local area network established with the third vehicle and the second vehicle communicating with the third vehicle as access points can be understood as: the user end can access the third vehicle through the Bluetooth local area network, the third vehicle can access the second vehicle through the Bluetooth local area network; the second vehicle is connected to the server through the base station. The devices accessing the Bluetooth local area network include: the user end, the first vehicle, the third vehicle and the second vehicle.
[0102] In this case, the user end can send a vehicle lock control request to the third vehicle through the Bluetooth connection established with the third vehicle, and send the vehicle lock control request to the second vehicle through the third vehicle. After the second vehicle sends it to the server, the server authenticates the user end and sends an unlocking command or locking command for the first vehicle to the second vehicle. The second vehicle sends the unlocking command or locking command to the third vehicle via the Bluetooth local area network, and the third vehicle sends the unlocking command or locking command to the first vehicle via the Bluetooth local area network, thereby controlling the first vehicle to unlock or lock.
[0103] This implementation method can expand the coverage of the Bluetooth local area network through the Bluetooth connection between vehicles, thereby improving the probability of successful communication between the user end and the server, thereby further ensuring the timeliness and effectiveness of vehicle unlocking or locking.
[0104] In an embodiment of the present disclosure, the vehicle lock control request initiated by the user terminal may be a vehicle lock control request in a HyperText Transfer Protocol (HTTP) format. In this case, after a Bluetooth local area network is established for the user terminal, the vehicle lock control request may be converted from a Hypertext Transfer Protocol HTTP protocol format to a Bluetooth protocol format before the vehicle lock control request is sent to the server through the Bluetooth local area network.
[0105] In the embodiment of the present disclosure, the server may also include an order service module, so that order update information can be generated based on the vehicle status of the first vehicle, so as to update the order status of the vehicle order associated with the first vehicle in the user terminal through the order update information.
[0106] For example, after the server receives the unlocking request for the first vehicle from the user, it can be determined that the vehicle status of the first vehicle is ready for use. At this time, the order service module can generate order update information as "start" based on the vehicle status. At this time, the order update information can be sent to the user via the Bluetooth local area network to update the order status of the vehicle order associated with the first vehicle in the user to start.
[0107] After that, after the server generates a corresponding unlocking instruction based on the unlocking request to control the first vehicle to unlock, the server can receive a prompt message of successful unlocking sent by the first vehicle via the Bluetooth local area network. At this time, it can be determined that the vehicle status of the first vehicle is in use. At this time, the order service module can generate order update information as "riding" based on the determination of the vehicle status of the first vehicle. After that, the order update information can be sent to the user end via the Bluetooth local area network to update the order status of the vehicle order associated with the first vehicle in the user end to riding.
[0108] After receiving the lock request for the first vehicle from the user end, it can be determined that the vehicle status of the first vehicle is used. At this time, the order service module can generate order update information as "pending payment" based on the vehicle status. At this time, the order update information can be sent to the user end via the Bluetooth local area network to update the order status of the vehicle order associated with the first vehicle in the user end to pending payment.
[0109] At this time, the user can initiate a payment request on the user side, and after the payment is successful, a payment success prompt message is generated and sent to the server. At this time, after receiving the prompt message of successful payment of the first vehicle by the user side, the server can determine that the vehicle status of the first vehicle is paid. At this time, the order service module can generate order update information as "paid" based on the vehicle status. At this time, the order update information can be sent to the user side via the Bluetooth local area network to update the order status of the vehicle order associated with the first vehicle in the user side to paid.
[0110] In the above implementation, the order update information sent by the server can be received through the established Bluetooth local area network to timely update the order status of the vehicle order associated with the first vehicle in the user terminal, thereby avoiding the problem of untimely update of the vehicle order due to network connection failure. At the same time, receiving information through the Bluetooth local area network can increase the speed of information reception and shorten the update time of the vehicle order, thereby saving the user's time and making the user's vehicle use process smoother.
[0111] An implementation step of the vehicle lock control method provided by the embodiment of the present disclosure will be introduced below in conjunction with a specific application scenario.
[0112] Assuming that the user sends a request for controlling the lock of the first vehicle to the server through an application (Application, APP) in a mobile device, and controls the unlocking of the first vehicle according to the lock control method described in the above embodiment, the modules required in this application scenario can be as follows: Figure 3 shown.
[0113] in, Figure 3The user end (ie, Figure 3 , an application in the second vehicle, a first vehicle, and a server.
[0114] The user end (application) may include at least a service module, an HTTP request module, a Bluetooth LAN networking module and a Bluetooth communication module.
[0115] Here, the business module can be used to process the business logic of unlocking / locking the vehicle.
[0116] The HTTP request module can be used to: (1) determine whether the network connection between the user end (application) and the server is abnormal; (2) select whether the current communication line is a normal HTTP network request or a Bluetooth LAN request; (3) convert the request in the Hypertext Transfer Protocol (HTTP) format initiated by the business module into a Bluetooth data packet and send it to the Bluetooth communication module; (4) receive the data returned by Bluetooth and return it to the business module.
[0117] The Bluetooth LAN networking module can be used to form a Bluetooth LAN between a mobile device (such as a mobile phone) and surrounding vehicles in a user terminal (application).
[0118] The Bluetooth communication module can be used to perform Bluetooth communication with the vehicle, send the request information from the HTTP request module to the vehicle, and return the information returned by the vehicle to the HTTP request module.
[0119] In the embodiment of the present disclosure, the server may include at least a device service module and an order service module.
[0120] Among them, the device service module can be used to: (1) connect and communicate with the second vehicle; (2) communicate with the service device, send the vehicle status of the first vehicle to the order service module, and send the order update information to the first vehicle.
[0121] The order service module is used to create a car order and manage the order status of the car order. The order status may include: start, riding, waiting for payment, paid, etc.
[0122] Assuming that the vehicle lock control request is an unlocking request, the communication flow chart between the user terminal and the server based on the above modules can be as follows: Figure 4 shown.
[0123] First, after detecting that the user terminal initiates an unlocking request for the first vehicle, the network connection status between the user terminal and the server can be determined through the HTTP request module of the user terminal (that is, Figure 4 (Determine whether the network is abnormal).
[0124] When the network connection between the user terminal and the server is disconnected, it is determined that the network is abnormal. At this time, a networking request can be sent to the Bluetooth LAN networking module through the HTTP request module, and the Bluetooth LAN networking module starts networking.
[0125] After receiving the networking success notification sent by the Bluetooth LAN networking module, it can be determined that the networking is successful.
[0126] After that, the HTTP request module can determine that the current communication line is a Bluetooth LAN request, that is, switch to Bluetooth LAN communication. The HTTP request module can convert the unlocking request from the Hypertext Transfer Protocol HTTP protocol format to the Bluetooth protocol format to obtain a Bluetooth data packet.
[0127] Afterwards, the HTTP request module sends the unlocking request in the form of a Bluetooth data packet to the Bluetooth communication module, so that the Bluetooth communication module sends the unlocking request to the second vehicle.
[0128] Then, the second vehicle may send an unlocking request to the device service via a network connection with the device service in the server.
[0129] At this time, the device service can determine the vehicle status of the first vehicle based on the unlocking request, and send the vehicle status to the order service, so that the order service generates order update information. At this time, the order update information returned by the order service to the device service can be sent to the business module through the second vehicle, so that the business module can update the order status of the vehicle order associated with the first vehicle in the user terminal based on the order update information.
[0130] When the server (ie, the device service module) initiates an unlocking instruction based on the unlocking request, the unlocking instruction can be sent to the first vehicle via the second vehicle to control the unlocking of the first vehicle.
[0131] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0132] Based on the same inventive concept, a vehicle lock control device corresponding to the vehicle lock control method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned vehicle lock control method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0133] Reference Figure 5FIG. 1 is a schematic diagram of a vehicle lock control device provided by an embodiment of the present disclosure, wherein the device comprises: a response unit 51, a determination unit 52, and a control unit 53; wherein:
[0134] A response unit 51 is used to determine the network connection state between the user terminal and the server in response to a vehicle lock control request from the user terminal to the first vehicle; the vehicle lock control request includes an unlock request or a lock request;
[0135] A determining unit 52 is configured to establish a Bluetooth local area network for the user terminal when it is determined that the network connection state is a disconnected state, wherein the devices connected to the Bluetooth local area network include the user terminal, the first vehicle, and at least one second vehicle having a network connection established with the server;
[0136] The control unit 53 is used to send the vehicle lock control request to the server through the Bluetooth local area network, so that the server controls the first vehicle to unlock or lock through the second vehicle.
[0137] The disclosed embodiment can determine the network connection status between the user terminal and the server after detecting the user terminal's request for controlling the lock of the first vehicle (here, the lock control request includes an unlocking request or a locking request), and establish a Bluetooth local area network for the user terminal when it is determined that the network connection status is disconnected, so that the lock control request can be sent to the server through the Bluetooth local area network, that is, the lock control request for the first vehicle is sent to the second vehicle that can communicate with the server through the Bluetooth connection, and the lock control request is sent to the server through the second vehicle, so that the server can control the unlocking or locking of the first vehicle through the second vehicle. This implementation method can alleviate the communication pressure of the base station by establishing a Bluetooth local area network, and can also realize the communication between the user terminal and the server through the second vehicle that has a network connection with the server in the Bluetooth local area network when the base station is full and the user terminal cannot connect to the Internet, thereby realizing barrier-free use of the vehicle by the user, avoiding the phenomenon that the user cannot use the vehicle due to the user terminal being unable to connect to the Internet, and improving the user's car experience.
[0138] In a possible implementation manner, the determining unit 52 is further configured to:
[0139] Scanning Bluetooth signals of vehicles around the user terminal;
[0140] Based on the scanned Bluetooth signal, establish a Bluetooth connection with the surrounding vehicles, and determine whether the second vehicle exists among the surrounding vehicles;
[0141] When it is determined that the second vehicle exists, the Bluetooth local area network is established with the second vehicle as an access point.
[0142] In a possible implementation manner, after determining whether the second vehicle exists among the surrounding vehicles, the determining unit 52 is further configured to:
[0143] In a case where it is determined that the second vehicle does not exist among the surrounding vehicles, determining a third vehicle from among the surrounding vehicles; the third vehicle being able to communicate with the second vehicle that is not one of the surrounding vehicles;
[0144] A Bluetooth local area network is established with the third vehicle and a second vehicle communicating with the third vehicle as access points.
[0145] In a possible implementation manner, the control unit 53 is further configured to:
[0146] The vehicle lock control request is sent to the second vehicle through the Bluetooth connection established with the second vehicle, and is then sent to the server through the second vehicle.
[0147] In a possible implementation manner, the control unit 53 is further configured to:
[0148] The vehicle lock control request is sent to the third vehicle through a Bluetooth connection established with the third vehicle, the vehicle lock control request is sent to the second vehicle through the third vehicle, and the vehicle lock control request is sent to the server through the second vehicle.
[0149] In a possible implementation manner, after establishing a Bluetooth local area network for the user terminal and before sending the vehicle lock control request to the server through the Bluetooth local area network, the device is further used to:
[0150] The vehicle lock control request is converted from a Hypertext Transfer Protocol (HTTP) protocol format to a Bluetooth protocol format.
[0151] In a possible implementation manner, the device is also used for:
[0152] After the server controls the first vehicle to be unlocked or locked through the second vehicle, receiving order update information sent by the server through the Bluetooth local area network;
[0153] Based on the order update information, the order status of the vehicle order associated with the first vehicle in the user terminal is updated.
[0154] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0155] Corresponds to Figure 1 The vehicle lock control method in the present disclosure also provides an electronic device 600, such as Figure 6 FIG. 6 is a schematic diagram of the structure of an electronic device 600 provided in an embodiment of the present disclosure, including:
[0156] Processor 61, memory 62, and bus 63; memory 62 is used to store execution instructions, including internal memory 621 and external memory 622; the internal memory 621 is also called internal memory, which is used to temporarily store the operation data in the processor 61 and the data exchanged with the external memory 622 such as a hard disk. The processor 61 exchanges data with the external memory 622 through the internal memory 621. When the electronic device 600 is running, the processor 61 communicates with the memory 62 through the bus 63, so that the processor 61 executes the following instructions:
[0157] In response to a vehicle lock control request from a user terminal to a first vehicle, determining a network connection state between the user terminal and a server; the vehicle lock control request includes an unlocking request or a locking request;
[0158] When it is determined that the network connection state is disconnected, establishing a Bluetooth local area network for the user terminal, wherein the devices connected to the Bluetooth local area network include the user terminal, the first vehicle, and at least one second vehicle having a network connection with the server;
[0159] The vehicle lock control request is sent to the server via the Bluetooth local area network, so that the server controls the first vehicle to unlock or lock through the second vehicle.
[0160] In a possible implementation manner, the instructions executed by the processor 61, when determining that the network connection state is a disconnected state, establishing a Bluetooth local area network for the user terminal, include:
[0161] Scanning Bluetooth signals of vehicles around the user terminal;
[0162] Based on the scanned Bluetooth signal, establish a Bluetooth connection with the surrounding vehicles, and determine whether the second vehicle exists among the surrounding vehicles;
[0163] When it is determined that the second vehicle exists, the Bluetooth local area network is established with the second vehicle as an access point.
[0164] In a possible implementation manner, in the instructions executed by the processor 61, after determining whether the second vehicle exists among the surrounding vehicles, the method further includes:
[0165] In a case where it is determined that the second vehicle does not exist among the surrounding vehicles, determining a third vehicle from among the surrounding vehicles; the third vehicle being able to communicate with the second vehicle that is not one of the surrounding vehicles;
[0166] A Bluetooth local area network is established with the third vehicle and a second vehicle communicating with the third vehicle as access points.
[0167] In a possible implementation manner, in the instructions executed by the processor 61, sending the vehicle lock control request to the server via the Bluetooth local area network includes:
[0168] The vehicle lock control request is sent to the second vehicle through the Bluetooth connection established with the second vehicle, and is then sent to the server through the second vehicle.
[0169] In a possible implementation manner, in the instructions executed by the processor 61, sending the vehicle lock control request to the server via the Bluetooth local area network includes:
[0170] The vehicle lock control request is sent to the third vehicle through a Bluetooth connection established with the third vehicle, the vehicle lock control request is sent to the second vehicle through the third vehicle, and the vehicle lock control request is sent to the server through the second vehicle.
[0171] In a possible implementation, the instructions executed by the processor 61 also include: after establishing a Bluetooth local area network for the user terminal, before sending the vehicle lock control request to the server through the Bluetooth local area network, converting the vehicle lock control request from a hypertext transfer protocol HTTP protocol format to a Bluetooth protocol format.
[0172] In a possible implementation manner, in the instruction executed by the processor 61, the method further includes:
[0173] After the server controls the first vehicle to be unlocked or locked through the second vehicle, receiving order update information sent by the server through the Bluetooth local area network;
[0174] Based on the order update information, the order status of the vehicle order associated with the first vehicle in the user terminal is updated.
[0175] The embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the vehicle lock control method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0176] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0177] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0178] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0179] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0180] The solutions described in this specification and in the examples, if they involve the processing of personal information, will be processed on the premise of having a legal basis (such as obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and will only be processed within the scope of regulations or agreements. If a user refuses to process personal information other than the necessary information for basic functions, it will not affect the user's use of basic functions.
[0181] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A vehicle lock control method, characterized in that: include: In response to a vehicle lock control request from a user terminal to a first vehicle, determining a network connection status between the user terminal and a server; The vehicle lock control request includes an unlock request or a lock request; When it is determined that the network connection state is disconnected, establishing a Bluetooth local area network for the user terminal, wherein the devices connected to the Bluetooth local area network include the user terminal, the first vehicle, and at least one second vehicle having a network connection with the server; The vehicle lock control request is sent to the server via the Bluetooth local area network, so that the server controls the first vehicle to unlock or lock through the second vehicle.
2. The method according to claim 1, characterized in that When determining that the network connection state is a disconnected state, establishing a Bluetooth local area network for the user terminal includes: Scanning Bluetooth signals of vehicles around the user terminal; Based on the scanned Bluetooth signal, establish a Bluetooth connection with the surrounding vehicles, and determine whether the second vehicle exists among the surrounding vehicles; When it is determined that the second vehicle exists, the Bluetooth local area network is established with the second vehicle as an access point.
3. The method according to claim 2, characterized in that After determining whether the second vehicle exists among the surrounding vehicles, the method further includes: In a case where it is determined that the second vehicle does not exist among the surrounding vehicles, determining a third vehicle from among the surrounding vehicles; the third vehicle being able to communicate with the second vehicle that is not one of the surrounding vehicles; A Bluetooth local area network is established with the third vehicle and a second vehicle communicating with the third vehicle as access points.
4. The method according to claim 2, characterized in that: The step of sending the vehicle lock control request to the server via the Bluetooth local area network includes: The vehicle lock control request is sent to the second vehicle through the Bluetooth connection established with the second vehicle, and is then sent to the server through the second vehicle.
5. The method according to claim 3, characterized in that: The step of sending the vehicle lock control request to the server via the Bluetooth local area network includes: The vehicle lock control request is sent to the third vehicle through a Bluetooth connection established with the third vehicle, the vehicle lock control request is sent to the second vehicle through the third vehicle, and the vehicle lock control request is sent to the server through the second vehicle.
6. The method according to any one of claims 1 to 5, characterized in that: After establishing a Bluetooth local area network for the user terminal and before sending the vehicle lock control request to the server via the Bluetooth local area network, the method further includes: The vehicle lock control request is converted from a Hypertext Transfer Protocol (HTTP) protocol format to a Bluetooth protocol format.
7. The method according to claim 1, characterized in that The method further comprises: After the server controls the first vehicle to be unlocked or locked through the second vehicle, receiving order update information sent by the server through the Bluetooth local area network; Based on the order update information, the order status of the vehicle order associated with the first vehicle in the user terminal is updated.
8. A vehicle lock control device, characterized in that: include: a response unit, configured to determine a network connection state between the user terminal and the server in response to a vehicle lock control request of the user terminal for the first vehicle; The vehicle lock control request includes an unlock request or a lock request; a determining unit, configured to establish a Bluetooth local area network for the user terminal when determining that the network connection state is a disconnected state, wherein the devices connected to the Bluetooth local area network include the user terminal, the first vehicle, and at least one second vehicle having a network connection established with the server; A control unit is used to send the vehicle lock control request to the server through the Bluetooth local area network, so that the server controls the first vehicle to unlock or lock through the second vehicle.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the vehicle lock control method as described in any one of claims 1 to 7 are performed.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the vehicle lock control method according to any one of claims 1 to 7 are executed.
