Early warning system, early warning method and electronic equipment
By receiving Bluetooth Low Energy broadcast messages from vehicle terminals via portable devices, driving parameters are determined and warning signals are issued, solving the problem that pedestrians cannot actively avoid vehicles and improving traffic safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2026-03-24
AI Technical Summary
Current technology cannot proactively determine the presence of traffic accident hazards from a pedestrian's perspective, resulting in an inability to effectively avoid vehicles and increasing the probability of traffic accidents.
By receiving Bluetooth Low Energy broadcast messages from the vehicle terminal via a portable device, the vehicle's driving parameters, such as position, orientation, and speed, are determined to assess the potential for collision and issue a warning signal when danger is present.
It enables pedestrians to actively avoid vehicles from their perspective, effectively preventing traffic accidents and improving pedestrian safety.
Smart Images

Figure CN121728433A_ABST
Abstract
Description
Technical Field
[0001] This application relates to electronic device technology, and more specifically, particularly to an early warning system, early warning method, and electronic device. Background Technology
[0002] With the development of science and technology, users are becoming increasingly reliant on electronic devices, frequently using mobile phones and other electronic devices on the road, thus increasing the probability of traffic accidents. Currently, drivers can be reminded to pay attention to driving safety. However, from the perspective of pedestrians around the vehicle, they are unaware of potential dangers and therefore unable to proactively avoid surrounding vehicles.
[0003] Therefore, how to remind users to actively avoid vehicles in order to effectively prevent traffic accidents is an urgent problem to be solved. Summary of the Invention
[0004] This application provides a warning system, a warning method, and an electronic device. The method can remind users to actively avoid vehicles, effectively preventing traffic accidents.
[0005] In a first aspect, a warning method is provided, which is applied to a portable device. The method includes: receiving a broadcast message; determining the driving parameters of the mobile vehicle based on the broadcast message; and issuing a warning signal when it is determined, based on the driving parameters of the mobile vehicle, that there is a risk of collision between the mobile vehicle and the user.
[0006] For example, a broadcast message can be a Bluetooth Low Energy (BLE) broadcast message. The mobile carrier can be a vehicle terminal, motorcycle, electric vehicle, or other similar device. A portable device can be a device carried by a pedestrian. The vehicle terminal's infotainment system, or other electronic devices located within the vehicle terminal, can serve as the beacon for the BLE broadcast message.
[0007] It should be noted that the mobile device can send broadcast messages in real time; or, under preset conditions, it can send broadcast messages. These preset conditions include at least one of the following: the mobile device is in a powered-on state, the mobile device is parked, the mobile device is idling, the user is operating the vehicle-mounted terminal within the mobile device, or the user is operating a mobile phone terminal within the mobile device. In other words, the mobile device can send BLE broadcast messages in real time; to save power, it can also send BLE broadcast messages under preset conditions. Understandably, these preset conditions may present potential dangers; therefore, the mobile device can send broadcast messages to remind pedestrians or cyclists to be aware of safety.
[0008] Based on the above scheme, the portable device acquires the broadcast messages sent by the mobile carrier, determines the driving parameters of the mobile carrier based on the broadcast messages, and issues a warning signal when it determines that there is a risk of collision between the mobile carrier and the user (pedestrian) based on the driving parameters of the mobile carrier. This can remind the user to actively avoid the vehicle from the perspective of the pedestrian or cyclist, effectively avoiding traffic accidents.
[0009] In conjunction with the first aspect, in some implementations of the first aspect, the broadcast message includes a first field and a second field, the first field indicating the location information of the mobile carrier and the second field indicating the travel speed of the mobile carrier; wherein determining the travel parameters of the mobile carrier based on the broadcast message includes determining the distance between the mobile carrier and the portable device based on the location information; wherein issuing a warning signal when it is determined based on the travel parameters of the mobile carrier that there is a collision risk between the mobile carrier and the user includes issuing the warning signal when it is determined based on the location information and the travel speed that there is a collision risk between the mobile carrier and the user.
[0010] It should be noted that the travel speed of a mobile carrier can be understood as the radial velocity of the mobile carrier, which is used to represent the magnitude and direction of the travel speed of the mobile carrier.
[0011] Based on the above scheme, the broadcast message may include fields that directly indicate the driving parameters of the mobile vehicle, so that the portable device can directly determine the driving parameters of the mobile vehicle based on the fields in the broadcast message.
[0012] In conjunction with the first aspect, in some implementations of the first aspect, the second field includes a first subfield and a second subfield, the first subfield being used to indicate the orientation information of the mobile carrier, and the second subfield being used to indicate the travel speed of the mobile carrier; wherein, determining the travel parameters of the mobile carrier according to the broadcast message includes: determining the distance between the mobile carrier and the portable device according to the location information; determining the travel speed of the mobile carrier according to the orientation information and the travel speed; issuing the warning signal when it is determined that there is a collision risk between the mobile carrier and the user according to the location information and the travel speed includes: issuing the warning signal when it is determined that there is a collision risk between the mobile carrier and the user according to the distance and the travel speed.
[0013] It is easy to understand that the speed of travel cannot reflect the direction of travel of the mobile vehicle. Therefore, it is necessary to combine the orientation information of the mobile vehicle (i.e., the direction in which the vehicle is facing) to determine the speed of the mobile vehicle.
[0014] In conjunction with the first aspect, in some implementations of the first aspect, the broadcast message includes a first field indicating the location information of the mobile carrier. Determining the travel parameters of the mobile carrier based on the broadcast message includes: determining the distance between the mobile carrier and the portable device based on the first field in the broadcast message at at least N time points, where N is a positive integer greater than or equal to 2; determining the travel speed of the mobile carrier based on the distance between the mobile carrier and the portable device; and issuing a warning signal when a collision risk is determined between the mobile carrier and the user based on the travel parameters of the mobile carrier includes: issuing the warning signal when a collision risk is determined between the mobile carrier and the user based on the distance and the travel speed.
[0015] Based on the above scheme, the portable device can acquire multiple broadcast messages and determine the distance between the mobile carrier and the portable device according to the location information of multiple mobile carriers, thereby determining the travel speed of the mobile carrier based on the distance between the mobile carrier and the portable device.
[0016] In conjunction with the first aspect, in certain implementations of the first aspect, determining the driving parameters of the mobile vehicle based on the broadcast message includes: determining N distances between the mobile vehicle and the portable device based on the RSSI of the broadcast message at least N times; determining M driving speeds of the mobile vehicle based on the N distances between the mobile vehicle and the portable device, where M is a positive integer greater than or equal to 1 and less than N; determining the average distance between the mobile vehicle and the portable device based on the N distances between the mobile vehicle and the portable device; and determining the average driving speed of the mobile vehicle based on the M driving speeds. Wherein, issuing a warning signal when a collision risk is determined between the mobile vehicle and the user based on the driving parameters of the mobile vehicle includes: issuing the warning signal when the average distance is less than or equal to a distance threshold and the average driving speed is greater than or equal to a speed threshold.
[0017] Based on the above scheme, the portable device can determine the average distance between the mobile carrier and the portable device, as well as the average speed of the mobile carrier, based on the RSSI of multiple broadcast messages, and determine whether to issue a warning based on the average distance and average speed. This makes the travel parameters of the mobile carrier determined by the portable device more accurate, enabling it to remind the user at a more appropriate time.
[0018] In conjunction with the first aspect, in some implementations of the first aspect, the broadcast message includes a first field, a first subfield, and a second subfield. The first field is used to indicate the location information of the mobile vehicle, the first subfield is used to indicate the orientation information of the mobile vehicle, and the second subfield is used to indicate the travel speed of the mobile vehicle. The determination of the travel parameters of the mobile vehicle based on the broadcast message includes: determining the travel parameters of the mobile vehicle based on the location information, the orientation information, the travel speed, and the RSSI of the broadcast message at least N times.
[0019] Based on the above scheme, if the broadcast message includes fields for indicating the driving parameters of the mobile vehicle, the portable device can combine these fields with the RSSI of the broadcast message to more accurately determine the driving parameters of the mobile vehicle.
[0020] In conjunction with the first aspect, in some implementations of the first aspect, the issuance of the warning signal includes: issuing the warning signal by at least one of the following methods: displaying a prompt message, issuing a warning sound, or vibrating.
[0021] For example, a prompt message can be displayed on the screen of a portable device. A warning signal can be issued by emitting a warning tone while the user is listening to music. A warning signal can be issued by vibration while the user is holding the phone during a call.
[0022] In conjunction with the first aspect, in some implementations of the first aspect, the first field includes a third subfield and a fourth subfield, wherein the third subfield is used to indicate the longitude information of the mobile carrier and the fourth subfield is used to indicate the latitude information of the mobile carrier.
[0023] Secondly, a warning system is provided, comprising a portable device and a mobile carrier, the mobile carrier being used to send a broadcast message; the portable device being used to receive the broadcast message; and further being used to determine the driving parameters of the mobile carrier based on the broadcast message; and further being used to issue a warning signal when it is determined, based on the driving parameters of the mobile carrier, that there is a risk of collision between the mobile carrier and the user.
[0024] In conjunction with the second aspect, in some implementations of the second aspect, the broadcast message includes a first field and a second field, the first field indicating the location information of the mobile carrier and the second field indicating the speed of the mobile carrier; the portable device is specifically used to determine the distance between the mobile carrier and the portable device based on the location information; and is also used to issue the warning signal when it is determined, based on the location information and the speed, that there is a risk of collision between the mobile carrier and the user.
[0025] In conjunction with the second aspect, in some implementations of the second aspect, the second field includes a first subfield and a second subfield, wherein the first subfield is used to indicate the orientation information of the mobile carrier, and the second subfield is used to indicate the travel speed of the mobile carrier; the portable device is specifically used to determine the distance between the mobile carrier and the portable device based on the location information; to determine the travel speed of the mobile carrier based on the orientation information and the travel speed; and to issue the warning signal when it is determined based on the distance and the travel speed that there is a collision risk between the mobile carrier and the user.
[0026] In conjunction with the second aspect, in some implementations of the second aspect, the broadcast message includes a first field indicating the location information of the mobile carrier. Specifically, the portable device is used to determine the distance between the mobile carrier and the portable device based on the first field in the broadcast message at at least N times, where N is a positive integer greater than or equal to 2; it is also used to determine the travel speed of the mobile carrier based on the distance between the mobile carrier and the portable device; and it is further used to issue the warning signal when it is determined, based on the distance and the travel speed, that there is a risk of collision between the mobile carrier and the user.
[0027] In conjunction with the second aspect, in some implementations of the second aspect, the portable device is specifically configured to: determine the distances between the N mobile carriers and the portable device based on the RSSI of the broadcast messages at at least N times; determine the travel speeds of M mobile carriers based on the distances between the N mobile carriers and the portable device, where M is a positive integer greater than or equal to 1 and less than N; determine the average distance between the mobile carriers and the portable device based on the distances between the N mobile carriers and the portable device; determine the average travel speed of the mobile carrier based on the travel speeds of the M mobile carriers; and issue the warning signal when the average distance is less than or equal to a distance threshold and the average travel speed is greater than or equal to a speed threshold.
[0028] In conjunction with the second aspect, in some implementations of the second aspect, the broadcast message includes a first field, a first subfield, and a second subfield. The first field is used to indicate the location information of the mobile vehicle, the first subfield is used to indicate the orientation information of the mobile vehicle, and the second subfield is used to indicate the travel speed of the mobile vehicle. The portable device is specifically used to determine the travel parameters of the mobile vehicle based on the location information, the orientation information, the travel speed, and the RSSI of the broadcast message at least N times.
[0029] In conjunction with the second aspect, in some implementations of the second aspect, the portable device is specifically used to issue the warning signal by at least one of the following methods: displaying a prompt message, emitting a warning sound, or vibrating.
[0030] In conjunction with the second aspect, in some implementations of the second aspect, the first field includes a third subfield and a fourth subfield, wherein the third subfield is used to indicate the longitude information of the mobile carrier and the fourth subfield is used to indicate the latitude information of the mobile carrier.
[0031] Thirdly, an electronic device is provided, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform the methods described in the first aspect and any possible implementation thereof.
[0032] Fourthly, an early warning device is provided, comprising: a processor coupled to a memory for storing a computer program, the processor for running the computer program, such that the early warning device performs the methods described in the first aspect and any possible implementation thereof.
[0033] In conjunction with the fourth aspect, some implementations of the fourth aspect also include one or more of the memory and the transceiver, the transceiver being used to receive and / or transmit signals.
[0034] Fifthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a computer, causes the computer to implement the methods described in the first aspect and any possible implementation thereof.
[0035] In a sixth aspect, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to perform the methods described in the first aspect and any possible implementation thereof.
[0036] In a seventh aspect, a chip is provided, the chip including a processor and a data interface, the processor reading instructions stored in a memory through the data interface to execute the methods described in the first aspect and any possible implementation thereof.
[0037] In conjunction with the seventh aspect, in one possible implementation, the processor is coupled to the memory via an interface.
[0038] In conjunction with the seventh aspect, in one possible implementation, the chip system further includes a memory in which computer programs or computer instructions are stored. Attached Figure Description
[0039] Figure 1 This is a functional block diagram of the vehicle 100 provided in an embodiment of this application.
[0040] Figure 2 This is a schematic diagram of a scenario provided in an embodiment of this application.
[0041] Figure 3 This is a schematic flowchart of an early warning method provided in an embodiment of this application.
[0042] Figure 4 This is a schematic diagram of a VAP field structure provided in an embodiment of this application.
[0043] Figure 5 This is a schematic diagram illustrating the variation of radial velocity with distance, provided in an embodiment of this application.
[0044] Figure 6 This is a radial schematic diagram provided in an embodiment of this application.
[0045] Figure 7 This is a schematic diagram illustrating the issuance of a warning signal according to an embodiment of this application.
[0046] Figure 8 This is a schematic flowchart of an early warning method provided in an embodiment of this application.
[0047] Figure 9 This is a schematic block diagram of a device provided in an embodiment of this application.
[0048] Figure 10 This is a schematic block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0049] The technical solutions in this application will now be described with reference to the accompanying drawings.
[0050] Figure 1 This is a functional block diagram of a vehicle provided in an embodiment of this application. For example... Figure 1 As shown, the vehicle 100 may include a sensing system 120, a display device 130, a communication system 140, and a computing platform 150. The sensing system 120 may include several sensors for sensing information about the environment surrounding the vehicle 100. For example, the sensing system 120 may include a positioning system, which may be a Global Positioning System (GPS), a BeiDou system, or another positioning system. As another example, the sensing system 120 may also include one or more of the following: an inertial measurement unit (IMU), lidar, millimeter-wave radar, ultrasonic radar, and a camera device.
[0051] The display devices 130 within the vehicle's cabin 100 are mainly divided into two categories: the first is in-vehicle displays; the second is projection displays, such as head-up displays (HUDs). In-vehicle displays are physical displays and an important component of the in-vehicle infotainment system. Multiple displays can be installed in the cabin, such as digital instrument cluster displays and central control screens. In some possible implementations, one or more of the aforementioned in-vehicle displays can be human-machine interfaces (HMIs); for example, the central control screen can be an HMI. Head-up displays are also known as head-up display systems.
[0052] The communication system 140 of vehicle 100 may be one or more devices integrating at least one communication processing module. The communication system 140 can transmit and receive electromagnetic waves through an antenna, enabling vehicle 100 to communicate with other electronic devices (such as electronic devices associated with vehicle 100), cloud servers, etc., via wireless communication technology. The wireless communication technology may include mobile communication technologies such as Global System for Mobile Communication (GSM), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), General Packet Radio Service (GPRS), or Long Term Evolution (LTE), etc. Alternatively, the wireless communication technology may also include short-range wireless communication technologies such as Bluetooth (BT) communication technology, radio frequency identification (RFID) communication technology, etc.
[0053] Some or all of the functions of vehicle 100 can be controlled by computing platform 150. Computing platform 150 may include processors 151 to 15n, which are circuits with signal processing capabilities. In one implementation, the processor may be a circuit with instruction read and execute capabilities, such as a central processing unit (CPU), a microprocessor, a graphics processing unit (GPU) (which can be understood as a type of microprocessor), or a digital signal processor (DSP), etc.
[0054] Vehicle 100 may include an advanced driving assistance system (ADAS). ADAS utilizes various sensors on the vehicle (including but not limited to: lidar, millimeter-wave radar, camera devices, ultrasonic sensors, global positioning system, inertial measurement unit) to acquire information from the vehicle's surroundings, and analyzes and processes the acquired information to achieve functions such as obstacle perception, target recognition, vehicle positioning, path planning, and driver monitoring / alerts, thereby improving the safety, automation, and comfort of driving the vehicle.
[0055] Logically, an ADAS system generally includes three main functional modules: a perception module, a decision-making module, and an execution module. The perception module senses the environment around the vehicle through sensors and inputs corresponding real-time data to the decision-making processing center. The perception module mainly includes vehicle cameras, ultrasonic radar, millimeter-wave radar, and lidar. The decision-making module makes corresponding decisions based on the information obtained by the perception module using computing devices and algorithms. After receiving the decision signal from the decision-making module, the execution module takes corresponding actions, such as driving, changing lanes, steering, braking, and issuing warnings.
[0056] In this embodiment, the sensing system 120 can be used to determine the current driving state of the vehicle terminal, including starting, stopping, idling, etc. The communication system 140 can be used to send Bluetooth Low Energy (BLE) broadcast messages.
[0057] With the widespread use of electronic devices, it is common for pedestrians and cyclists (including those on bicycles, electric bikes, and motorcycles) to be looking down at their devices, which greatly increases the probability of traffic accidents. Therefore, there are currently various early warning systems in place to prevent traffic accidents.
[0058] In one implementation, the vehicle terminal can wirelessly acquire real-time information such as latitude and longitude, speed, ground heading angle, and altitude of electronic devices carried by pedestrians or cyclists. The vehicle terminal can then combine this information with vehicle positioning and motion status information to determine the positional relationship between itself and the pedestrian or cyclist, thereby assessing the presence of danger. If the vehicle terminal determines that a traffic accident is possible, it will issue a warning signal to alert the pedestrian or cyclist.
[0059] In this implementation, the vehicle terminal and the electronic devices carried by pedestrians or cyclists need to establish a wireless connection, which has a relatively large latency. Furthermore, the vehicle terminal and the electronic devices carried by pedestrians or cyclists are usually unfamiliar devices to each other; without confirming security, an unfamiliar device cannot establish a connection. Additionally, this implementation requires both the vehicle terminal and the electronic devices carried by the pedestrian or cyclist to obtain data from the Global Positioning System (GPS). GPS has significant power consumption and error, and is not accurate enough in certain urban, canyon, or indoor scenarios.
[0060] In another implementation approach, vehicle-to-everything (V2X) technology can be employed. Vehicle terminals, electronic devices carried by pedestrians or cyclists can report location information in real time, along with identification and location information derived from target detection and coordinate transformation modules. This information is then optimized using a fusion positioning module to achieve comprehensive target identification and location.
[0061] This implementation involves vehicle-to-infrastructure (V2I) communication and requires the deployment of infrastructure, roadside units (RSUs), and other hardware or software. There are also specific requirements for the hardware configuration of the RSUs. For example, RSUs need to be equipped with aerial cameras and devices supporting roadside communication capabilities. Furthermore, this implementation is only applicable to road sections with deployed RSUs and relies on GPS.
[0062] It is evident that most current early warning systems rely on vehicle terminals to determine the potential for a traffic accident and issue warning signals to alert drivers, pedestrians, cyclists, etc. However, from the perspective of pedestrians or cyclists, they typically cannot proactively assess the risk of a traffic accident.
[0063] Therefore, this application provides an early warning system, an early warning method, and an electronic device. The electronic device carried by a pedestrian or cyclist can acquire broadcast messages sent by surrounding vehicle terminals. These broadcast messages can carry information such as the vehicle terminal's location and speed, and determine the vehicle terminal's driving parameters. When a potential hazard is determined based on the vehicle terminal's driving parameters, the user's electronic device can issue an early warning signal, thus providing a warning signal from the pedestrian's or cyclist's perspective.
[0064] like Figure 2 The diagram illustrates a scenario provided by an embodiment of this application. It includes a vehicle in motion and pedestrians walking. Pedestrians may be carrying electronic devices such as mobile phones, tablets, and smartwatches. The vehicle and pedestrian will... Figure 2The danger zone shown indicates a high risk of encounter. Before the vehicle and pedestrian meet in the danger zone, the pedestrian's electronic devices can warn the pedestrian by displaying prompts, emitting sounds, or vibrating to alert the user to safety.
[0065] As can be seen, the early warning system provided in this application involves vehicle terminals and electronic devices (e.g., portable devices) carried by pedestrians and cyclists. The early warning method provided in this application will be specifically described below, taking an early warning system including vehicle terminals and portable devices as an example.
[0066] like Figure 3 The diagram shown illustrates a schematic flowchart of an early warning method provided in an embodiment of this application. This method can be applied to, for example... Figure 2 In the scenario shown, the method will be described in detail below.
[0067] S301, Get broadcast message.
[0068] For example, a portable device receives broadcast messages from a vehicle terminal.
[0069] It should be noted that the broadcast messages sent by the vehicle terminal can be BLE broadcast messages. The vehicle terminal's infotainment system, or other electronic devices within the vehicle terminal, can act as beacons for BLE broadcast messages, supporting BLE technology and capable of sending BLE broadcast messages.
[0070] In one implementation, the vehicle terminal (including the vehicle terminal's infotainment system and electronic devices located inside the vehicle terminal) can send BLE broadcast messages in real time.
[0071] In another implementation, to save power, the vehicle terminal (including the vehicle terminal's infotainment system and electronic devices inside the vehicle terminal) can send BLE broadcast messages under preset conditions.
[0072] For example, the preset conditions for a vehicle terminal to send a BLE message include one of the following:
[0073] Condition A: If the Beacon of the BLE broadcast message is an electronic device other than the vehicle terminal, the electronic device is located inside the vehicle terminal; and the user (e.g., the driver) is operating an electronic device such as a mobile phone terminal or a vehicle terminal.
[0074] Condition B: If the Beacon of the BLE broadcast message is an electronic device other than the vehicle terminal, the electronic device is located inside the vehicle terminal and determines the vehicle terminal's driving parameters such as start, stop, and idle through the adaptive cruise control (ACC) module.
[0075] Condition C: If the Beacon of the BLE broadcast message is an electronic device other than the vehicle terminal, the electronic device is located inside the vehicle terminal and imports the driving parameters of the vehicle terminal through the ADAS system or the on-board unit (OBU) module to determine whether the vehicle terminal is in driving parameters such as starting, stopping, or idling.
[0076] Condition D: If the Beacon of the BLE broadcast message is an electronic device other than the vehicle terminal, and the electronic device is inside the vehicle terminal and has a preset broadcast period, it will send the broadcast at the preset period.
[0077] It should be noted that electronic devices located inside the vehicle terminal can send BLE broadcast messages when at least one of the above preset conditions is met.
[0078] It is evident that the preset conditions for sending BLE broadcast messages are mainly related to the BLE broadcast message beacon and the vehicle terminal's driving parameters. This can be understood as the BLE broadcast message beacon being able to send BLE broadcast messages when there is a potential driving hazard.
[0079] It is easy to understand that conditions A through D above are all illustrated using the example of an electronic device other than the vehicle terminal as the Beacon of the BLE broadcast message. If the Beacon of the BLE broadcast message is the vehicle terminal's infotainment system, then the default condition for sending the BLE broadcast message does not include the Beacon of the BLE broadcast message being located inside the vehicle terminal.
[0080] It is easy to see that BLE broadcast messages can be sent in real time or when preset conditions are triggered. When preset conditions are met, it indicates that there is a possibility of danger.
[0081] It should be noted that BLE broadcast messages may include information representing the vehicle terminal's driving parameters.
[0082] For example, the information used to represent the driving parameters of a vehicle terminal can be a field.
[0083] In one implementation, the BLE broadcast message includes a vehicle alert packet (VAP) field, which may include fields representing driving parameters of the vehicle terminal.
[0084] For example, such as Figure 4 The diagram shows a schematic of the field structure of the VAP field in a BLE broadcast message.
[0085] Figure 4The VAP field structure shown includes a universally unique identifier (UUID) field, an advertising length (ADV Len.) field, an advertising data type (ADV Type) field, a Flag field, a Time field, a global positioning system latitude (GPS Lat.) field, a global positioning system longitude (GPS Lon.) field, an Azimuth field, a Speed field, and a Reserved field.
[0086] The broadcast message includes the following data types: UUID (occupying 2 bytes) identifies a specific Bluetooth service, determining the service type provided by the broadcast message; ADV Len. (occupying 2 bytes) indicates the length of the following "Len" bytes of valid data; ADV Type (occupying 2 bytes) indicates the type of broadcast data; Flag (occupying 1 byte) identifies the device's Low Energy Physical Connectivity (PHPT) function, a type of broadcast data; Time (occupying 8 bytes) represents the timestamp of the message occurrence; GPSLat. (occupying 4 bytes) represents the device's latitude; GPSLon. (occupying 4 bytes) represents the device's longitude, allowing location information to be determined; Azimuth (occupying 4 bytes) represents the device's orientation, such as the angle of a vehicle's direction of travel; and Speed (occupying 4 bytes) represents the device's speed, such as the vehicle's travel speed.
[0087] As can be seen, the GPS Lat. and GPS Lon. fields in a BLE broadcast message represent the vehicle terminal's location information; the Azimuth field represents the vehicle terminal's orientation; and the Speed field represents the vehicle terminal's speed. The vehicle terminal's location, orientation, and speed can be understood as its driving parameters. The vehicle terminal periodically or in real-time sends BLE broadcast messages, transmitting these driving parameters to peripheral devices (e.g., portable devices). This allows the peripheral devices to determine the vehicle terminal's driving parameters based on the BLE broadcast messages, thereby assessing the potential for danger.
[0088] It should be noted that the location information of the vehicle terminal can be understood as the coordinate position of the vehicle terminal relative to the portable device, and the orientation of the vehicle terminal can be understood as the current orientation of the vehicle terminal.
[0089] It should be noted that BLE broadcast messages may not include information indicating the vehicle's driving parameters.
[0090] In another implementation, the BLE broadcast message includes a VAP field, but the VAP field may not include, for example, Figure 4 The GPS Lat. field, GPS Lon. field, Azimuth field, and Speed field shown, or the bits occupied by the above fields are 0.
[0091] As can be seen, in this embodiment of the application, the portable device can acquire the two types of BLE broadcast messages and process them to obtain the driving parameters of the vehicle terminal.
[0092] S302 determines the vehicle terminal's driving parameters based on broadcast messages.
[0093] In one implementation, BLE broadcast messages include, for example: Figure 4 The VAP field shown is hereinafter referred to as Broadcast Message A.
[0094] It's easy to understand that the VAP field of broadcast message A includes fields representing the vehicle terminal's driving parameters. Therefore, when a portable device receives broadcast message A, it can determine the vehicle terminal's location information, orientation, and speed based on the GPS Lat., GPS Lon., Azimuth, and Speed fields in the VAP field.
[0095] For example, the portable device can acquire multiple broadcast messages A and determine the distance between the vehicle terminal and the portable device, as well as the vehicle terminal's speed, based on the vehicle terminal's location information in the multiple broadcast messages A.
[0096] For example, a portable device can determine the vehicle terminal's driving parameters based on the vehicle terminal's location information, orientation, and speed. These driving parameters can reflect whether there is a possibility of danger.
[0097] It is easy to understand that a portable device can determine the vehicle terminal's speed based on its location and travel rate. The vehicle terminal's speed includes both its magnitude and direction.
[0098] Optionally, if the broadcast message carries a field that directly indicates the vehicle terminal's speed, the portable device can directly determine the vehicle terminal's speed based on that field, without needing to combine the vehicle terminal's speed and location information to determine the vehicle terminal's speed.
[0099] It should be noted that in the method by which portable devices determine the driving parameters of the vehicle terminal through broadcast message A, GPS technology is used to provide the location information of the vehicle terminal.
[0100] Of course, GPS consumes a lot of power and is not accurate enough in some urban, canyon, and indoor scenarios. Therefore, using BLE wireless signal detection is more accurate in certain scenarios.
[0101] In another implementation, the BLE broadcast message includes a VAP field, but the VAP field may not include, for example, Figure 4 The GPS Lat. field, GPS Lon. field, Azimuth field, and Speed field shown, or the bits occupied by the above fields are 0, are hereinafter referred to as broadcast message B.
[0102] As can be seen, the VAP field of broadcast message B does not include a field for representing the driving parameters of the vehicle terminal, or the field for representing the driving parameters of the vehicle terminal occupies 0 bits. Therefore, the portable device cannot directly determine the location information, orientation, and speed of the vehicle terminal based on the VAP field in broadcast message B.
[0103] When a portable device receives multiple broadcast messages B, it can determine the vehicle terminal's driving parameters based on the received signal strength indicator (RSSI) of the multiple broadcast messages B.
[0104] The following describes the specific method for determining the vehicle terminal's driving parameters based on RSSI.
[0105] Step 1: Determine the distance between n consecutive vehicle terminals and the portable device within a certain period of time.
[0106] For example, the time period can be 2s-5s. The distances between n consecutive vehicle terminals and the portable device within this time period are determined by the RSSI of multiple broadcast messages, denoted as r0, r1, r2, ..., r... n-1 .
[0107] It's easy to understand that the distance between the vehicle terminal and the portable device can change continuously during the vehicle's operation. The distances between n consecutive vehicle terminals and the portable device can be n discrete values.
[0108] Step 2: Fit the distances between n vehicle terminals and the portable device to obtain the distance fitting results.
[0109] For example, the fit can be performed based on the standard transmit power of the BLE module of the portable device or the fitting formula for the measured signal change.
[0110] For example, the following formula (1) represents the distance fitting result f(rssi) i ).
[0111] f(rssi i ) = r i Formula (1)
[0112] In other words, the distance between n consecutive vehicle terminals and portable devices in Step 1 is fitted, and the value of i in formula (1) can be any value from 0 to n-1.
[0113] Step 3: Determine the radial velocity based on the fitting results.
[0114] For example, based on the fitting results, the radial velocity of each detection point is calculated. Here, a detection point can be understood as a vehicle terminal, and the current radial velocity of the vehicle terminal is calculated.
[0115] It should be noted that radial velocity can indicate whether the vehicle terminal is approaching or moving away from the portable device.
[0116] For example, the radial velocity v can be calculated using the following formula (2). i .
[0117] v i =(f(rss) i-1 )-f(rssii Formula (2)
[0118] Wherein, f(rssi) i-1 ) is f(rssi i The previous distance fitting result. If the vehicle terminal is approaching the portable device, f(rssi) i -1) is greater than f(rssi) i The calculated radial velocity v i It is a positive number; if the vehicle terminal is moving away from the portable device, f(rssi) i-1 ) is less than f(rssi i The calculated radial velocity v i It is a negative number.
[0119] As can be seen, the radial velocity of the vehicle terminal calculated based on the fitting results determines whether the vehicle terminal is approaching or moving away from the portable device. If the vehicle terminal is approaching the portable device, it indicates a potential hazard.
[0120] Step 4: Smooth the radial velocity to obtain the velocity smoothing result.
[0121] It should be noted that while multiple radial velocities can be calculated using Step 3 above, the results may be abrupt. However, in reality, the vehicle's actual speed does not change abruptly; even with significant acceleration, the speed changes continuously. Therefore, it is necessary to smooth these radial velocities based on the continuity of the vehicle's movement to obtain a smoothed speed result.
[0122] For example, the speed smoothing result can be obtained by the following formula (3).
[0123]
[0124] For ease of understanding, such as Figure 5 The diagram shows a schematic representation of radial velocity varying with distance.
[0125] Specifically, Figure 5 The radial velocity of the vehicle end before smoothing and the radial velocity of the vehicle end after smoothing are shown. Figure 5 In the schematic diagram shown, the x-coordinate represents the distance between the vehicle terminal and the portable device, and the y-coordinate represents the radial velocity of the vehicle terminal. Figure 5 In the example shown, where the vehicle terminal is moving away from the portable device, it is easy to see that as the distance between the vehicle terminal and the portable device increases, the radial velocity of the vehicle terminal becomes negative and decreases further.
[0126] The radial velocity before smoothing can be understood as the radial velocity v obtained in Step 3 above. i Each radial velocity before smoothing corresponds to the distance between the vehicle terminal and the portable device. The radial velocity before smoothing can be a series of abrupt changes; for example, the radial velocity before smoothing for distance 5 is -60, and the radial velocity before smoothing for distance 10 is -55. From distance 5 to distance 10, the radial velocity before smoothing changes abruptly.
[0127] Based on the continuity of vehicle terminal travel, the radial velocity is smoothed as described in Step 4 above to obtain the smoothed radial velocity, which is continuously changing.
[0128] Step 5: Determine the distance between the vehicle terminal and the portable device over a certain period of time, as well as the speed of the vehicle terminal over that period of time.
[0129] For example, the average distance between the vehicle terminal and the portable device over a period of time can be obtained according to the following formula (4); the average driving speed of the vehicle terminal over a period of time can be obtained according to the following formula (5).
[0130]
[0131] In formula (4), the average distance d between the vehicle terminal and the portable device is calculated based on the distances obtained n times consecutively over a period of time as determined in Step 1 above. In formula (5), the average driving speed v of the vehicle terminal is calculated based on the smoothed radial speeds obtained n-1 times consecutively over a period of time as determined in Step 4 above.
[0132] It should be noted that when the average distance *d* between the vehicle terminal and the portable device is less than or equal to a distance threshold within the aforementioned time period, it indicates a potential danger; similarly, when the average speed *v* of the vehicle terminal is greater than or equal to a speed threshold within the aforementioned time period, it also indicates a potential danger. When both parameters are met, the portable device can issue a warning signal to alert the user of a potential hazard.
[0133] As can be seen, after the portable device receives the broadcast message, it determines the vehicle terminal's driving parameters through the processing steps Step 1 to Step 5 described above.
[0134] It should be noted that the driving parameters of the vehicle terminal determined through the above steps Step 1 to Step 5 include the average distance d between the vehicle terminal and the portable device over a period of time, and the average driving speed v of the vehicle terminal over a period of time.
[0135] As described above, two specific methods for determining the vehicle terminal's driving parameters have been introduced. In the first scenario, when a portable device receives the aforementioned broadcast message A, it can directly determine the vehicle terminal's driving parameters based on the GPS Lat., GPS Lon., Azimuth, and Speed fields in the VAP field of broadcast message A. In the second scenario, when a portable device receives the aforementioned broadcast message B, it can determine the vehicle terminal's driving parameters based on the RSSI of broadcast message B.
[0136] In reality, broadcast message A, in addition to carrying information such as... Figure 4 In addition to the VAP field shown, RSSI is also carried. Therefore, in the first case, the portable device can not only directly determine the vehicle terminal's location information, orientation, and speed based on the VAP field in message A, but also further determine the average distance d between the vehicle terminal and the portable device over a period of time, and the average speed v of the vehicle terminal over a period of time, based on the RSSI. The accuracy of the vehicle terminal's driving parameters determined by combining the above two methods will be more precise.
[0137] S303 issues a warning signal based on the vehicle terminal's driving parameters.
[0138] In one implementation, the portable device determines the potential danger based on the vehicle terminal's location information, the vehicle terminal's orientation, and the vehicle terminal's speed, and then issues a warning signal.
[0139] For example, if a vehicle is directly in front of a pedestrian, with its front end facing the pedestrian and traveling at a certain speed, it indicates that the vehicle may collide with the pedestrian at some point in the future. In this situation, the portable device can issue a warning signal to alert the user to be careful.
[0140] In another implementation, the portable device determines the potential danger based on the average distance between the vehicle terminal and the portable device over a period of time, as well as the average speed of the vehicle terminal over a period of time, and issues a warning signal.
[0141] For example, if the average distance between the vehicle terminal and the portable device is less than a distance threshold and the average speed of the vehicle terminal is greater than a speed threshold within the last 5 seconds, it indicates that the vehicle terminal may collide with a pedestrian at some point in the future. In this case, the portable device can issue a warning signal to remind the user to pay attention to safety. Another example is using time-to-collision (TTC) technology, where the portable device calculates the time of impending collision with the vehicle terminal based on the average distance between them and the average speed of the vehicle terminal, thus providing timely warnings to pedestrians.
[0142] For ease of understanding, such as Figure 6 As shown, a radial schematic diagram is presented. Figure 6 The image shows the relative positions of the moving vehicle terminal and surrounding pedestrians.
[0143] For example, Figure 6 The diagram illustrates three relative positions of the vehicle terminal and surrounding pedestrians during its operation. It's clear that as time progresses, the distance between the vehicle terminal and the pedestrian changes from d1 to d2, and then further to d3, indicating that the distance between them is decreasing, and the vehicle is traveling towards the pedestrian. Pedestrians carrying portable devices can use the methods described above to determine the distance between the vehicle terminal and their portable devices, as well as the vehicle terminal's speed and other driving parameters, to assess the potential for danger.
[0144] It should be noted that the portable device may issue warning signals in ways including but not limited to displaying warning information, emitting warning sounds, or vibrating, and this application embodiment does not limit these methods.
[0145] For example, taking a portable device as a mobile phone terminal, Figure 7 This diagram illustrates a portable device issuing a warning signal. Figure 7 The image shows a mobile phone displaying a video, illustrating a scenario where a user is watching a video on their phone. When the mobile phone determines that a potential hazard exists, a warning message 701 is displayed on the video display screen to alert the user to the vehicle. Furthermore, the warning message 701 may also display the vehicle's driving parameters, such as the vehicle being 10 meters away from the mobile phone and approaching at a speed of 30 km / h.
[0146] In other scenarios, portable devices may issue warning signals in different ways.
[0147] For example, when a user is listening to music using Bluetooth headphones, the Bluetooth headphones are connected to a mobile terminal, and the mobile terminal sends out a warning signal by emitting a warning sound through the Bluetooth headphones. The content of the warning sound can be similar to the content displayed in the prompt message 701.
[0148] For example, when a user is holding a mobile phone and making a call, the mobile terminal can send a warning signal by vibrating.
[0149] For example, when a user is running, the smartwatch the user is wearing can send a warning signal by emitting a warning sound and vibration.
[0150] It should be noted that the above-mentioned methods of issuing warning signals can be used individually or in combination, and this application embodiment does not limit this.
[0151] As described above, the early warning method provided in this application embodiment is applicable to an early warning system. The early warning system includes a mobile carrier and portable devices, wherein the mobile carrier can be a vehicle terminal, motorcycle, electric vehicle, or other similar devices. The following is a combination of... Figure 8 The early warning method provided in the embodiments of this application will be described in detail.
[0152] S801, the mobile carrier sends a broadcast message, and correspondingly, the portable device receives the broadcast message.
[0153] For example, a broadcast message can be a BLE broadcast message. The vehicle's infotainment system or other electronic devices located within the vehicle can serve as the beacon for a BLE broadcast message.
[0154] It should be noted that the mobile device can send broadcast messages in real time; or send broadcast messages under preset conditions, which include at least one of the following: the mobile device is in a startup state, the mobile device is in a parked state, the mobile device is in an idling state, the user is operating the vehicle terminal of the mobile device, or the user is operating a mobile terminal inside the mobile device.
[0155] In other words, the mobile carrier can send BLE broadcast messages in real time; to save power consumption, it can also send BLE broadcast messages under preset conditions.
[0156] Understandably, there may be dangers under the above-mentioned pre-set conditions. Therefore, mobile devices can send broadcast messages to remind pedestrians or cyclists to pay attention to safety.
[0157] S802, the portable device determines the driving parameters of the mobile vehicle based on broadcast messages.
[0158] It should be noted that the driving parameters of the mobile carrier include the distance between the mobile carrier and the portable device, as well as the driving speed of the mobile carrier.
[0159] The distance between the mobile carrier and the portable device can be understood as the distance between the vehicle terminal and the pedestrian; the closer the distance, the greater the possibility of danger. The speed of the mobile carrier can be understood as the radial velocity of the vehicle terminal; when the radial velocity is positive, it indicates that the vehicle terminal is approaching the pedestrian.
[0160] It should be noted that broadcast messages can include multiple fields, and different fields can be used to represent different information.
[0161] In one implementation, the broadcast message may include fields representing the driving parameters of the mobile vehicle. The portable device can determine the driving parameters of the mobile vehicle based on these fields.
[0162] Optionally, the broadcast message includes a first field and a second field, wherein the first field is used to indicate the location information of the mobile vehicle and the second field is used to indicate the speed of the mobile vehicle.
[0163] It is easy to understand that if the broadcast message includes fields that directly indicate the location information of the mobile carrier and the travel speed of the mobile carrier, the portable device can determine the distance between the mobile carrier and the portable device based on the location information of the mobile carrier indicated by the first field, and directly determine the travel speed of the mobile carrier based on the travel speed of the mobile carrier indicated by the second field. The travel speed of the mobile carrier indicated by the second field is the radial speed of the mobile carrier, including the direction of travel.
[0164] Optionally, the broadcast message includes a first field and a second field. The first field is used to indicate the location information of the mobile carrier, and the second field includes a first subfield and a second subfield. The first subfield is used to indicate the orientation information of the mobile carrier, and the second subfield is used to indicate the travel speed of the mobile carrier.
[0165] The portable device can determine the distance between the mobile carrier and the portable device based on the location information of the mobile carrier indicated by the first field; and determine the travel speed of the mobile carrier based on the orientation information of the mobile carrier indicated by the first subfield and the travel speed of the mobile carrier indicated by the second subfield.
[0166] The first field mentioned above includes a third subfield and a fourth subfield. The third subfield is used to indicate the longitude information of the mobile carrier, and the fourth subfield is used to indicate the latitude information of the mobile carrier.
[0167] It is easy to understand that the speed of travel cannot reflect the direction of travel of the mobile vehicle. Therefore, it is necessary to combine the orientation information of the mobile vehicle (i.e., the direction the vehicle is facing) to determine the speed of the mobile vehicle.
[0168] For example, in the VAP field of a BLE broadcast message, the third subfield can be the GPS Lon. field, the fourth subfield can be the GPS Lat. field, the first subfield can be the Azimuth field, and the second subfield can be the Speed field.
[0169] Optionally, the broadcast message includes a first field, which indicates the location information of the mobile carrier. The portable device can receive broadcast messages at N time points, and these N broadcast messages include N first fields.
[0170] The portable device determines the distance between the mobile carrier and the portable device based on the first field of the broadcast messages at N times; and determines the speed of the mobile carrier based on the distance between the mobile carrier and the portable device, where N is a positive integer greater than or equal to 2.
[0171] It is easy to see that portable devices can determine the distance between a mobile carrier and the portable device based on the location information of multiple mobile carriers, and thus determine the travel speed of the mobile carrier based on the distance between the mobile carrier and the portable device.
[0172] In another implementation, the broadcast message does not include fields for indicating the driving parameters of the mobile vehicle.
[0173] The portable device determines the distance between the mobile carrier and the portable device based on the RSSI of broadcast messages at least N times; and determines the travel speed of the mobile carrier based on the distance between the mobile carrier and the portable device.
[0174] Specifically, the portable device determines the distances between N mobile carriers and the portable device based on the RSSI of broadcast messages at least N times; determines the travel speeds of M mobile carriers based on the distances between the N mobile carriers and the portable device, where M is a positive integer greater than or equal to 1 and less than N; determines the average distance between the mobile carriers and the portable device based on the distances between the N mobile carriers and the portable device; and determines the average travel speed of the mobile carriers based on the travel speeds of the M mobile carriers.
[0175] For example, the portable device determines the distances between N mobile carriers and the portable device based on broadcast messages RSSI at least N times; fits the distances between the N mobile carriers and the portable device to obtain N fitting results; determines the travel speeds of M mobile carriers based on the N fitting results; smooths the travel speeds of the M mobile carriers to obtain M smoothing results; determines the average distance between the mobile carriers and the portable device based on the distances between the N mobile carriers and the portable device; and determines the average travel speed of the mobile carriers based on the M smoothing results.
[0176] For example, the portable device determines the distances between N vehicle terminals and the portable device as r0, r1, r2, ..., r based on the RSSI of N broadcast messages over a period of time (2-5s). n-1 The distances between N consecutive mobile carriers and the portable device are fitted using a fitting formula based on the standard transmit power or measured signal variation of the portable device's BLE module, resulting in N fitting results. Based on these N fitting results, the radial velocities of M mobile carriers are calculated. To make the radial velocities of the mobile carriers more closely approximate reality, the radial velocities of the M mobile carriers are smoothed, resulting in M smoothed results. The average distance between the N mobile carriers and the portable device is calculated to obtain the average distance between the mobile carriers and the portable device over a given period; the average of the M smoothed results is then calculated to obtain the average speed of the mobile carriers over a given period.
[0177] It is easy to see that, based on whether the broadcast message includes fields for indicating the travel parameters of the mobile carrier, the above describes several specific methods for determining the distance between the mobile carrier and the portable device, as well as the specific methods for determining the travel speed of the mobile carrier.
[0178] In broadcast messages that include fields indicating the travel parameters of the mobile vehicle, GPS technology is involved. In broadcast messages that do not include fields indicating travel parameters, BLE wireless signal detection technology is primarily used. To make the determination of the mobile vehicle's travel parameters more accurate, GPS technology and BLE wireless signal detection technology can be combined.
[0179] Optionally, the broadcast message includes a first field, a first subfield, and a second subfield. The first field is used to indicate the location information of the mobile carrier, the first subfield is used to indicate the orientation information of the mobile carrier, and the second subfield is used to indicate the travel speed of the mobile carrier.
[0180] The portable device can determine the travel parameters of the mobile vehicle based on the location information of the mobile vehicle indicated by the first field, the orientation information of the mobile vehicle indicated by the first subfield, the travel speed of the mobile vehicle indicated by the second subfield, and the RSSI of the broadcast messages at least N times.
[0181] S803 issues a warning signal when it is determined, based on the vehicle's driving parameters, that there is a risk of collision between the vehicle and the user.
[0182] Specifically, when a collision risk is determined between the mobile carrier and the user based on the distance between the mobile carrier and the portable device, and the speed of the mobile carrier, a warning signal is issued.
[0183] In one implementation, a warning signal is issued when the average distance between the mobile carrier and the portable device is less than or equal to a distance threshold, and the average speed of the mobile carrier is greater than or equal to a speed threshold.
[0184] For example, when the average distance between the mobile carrier and the portable device is less than or equal to 10m, and the average speed of the mobile carrier is greater than or equal to 30km / h, the portable device issues a warning signal.
[0185] It's easy to understand that when the distance between the mobile carrier and the portable device is close enough, and the mobile carrier is moving towards the portable device at a certain speed, it indicates that there may be a danger, and the portable device can issue a warning signal to alert the user.
[0186] Specifically, portable devices can issue warning signals in at least one of the following ways: displaying prompt information, emitting warning sounds, vibrating, etc.
[0187] For example, a prompt message can be displayed on the display interface of a portable device, such as... Figure 7 The displayed prompt message 701 can issue a warning signal by emitting a warning tone while the user is listening to music, or by vibrating while the user is holding the phone during a call.
[0188] It should be noted that the above-mentioned methods of issuing warning signals can be used individually or in combination, and this application embodiment does not limit this.
[0189] This application provides a warning method in which a portable device carried by a pedestrian or cyclist can acquire broadcast messages sent by surrounding mobile vehicles. The portable device can determine the driving parameters of the mobile vehicle based on the broadcast messages, and when the driving parameters of the mobile vehicle meet certain conditions, the portable device issues a warning signal, so as to obtain the warning signal from the perspective of the pedestrian or cyclist, reminding the user to actively avoid vehicles and effectively avoid traffic accidents.
[0190] The above text combines Figures 1 to 8 The warning method provided in the embodiments of this application is described in detail. In the various embodiments of this application, unless otherwise specified or logically conflicting, the terminology and / or descriptions between the various embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0191] The following will combine Figure 9 and Figure 10This application provides a detailed description of the early warning device and electronic device provided in the embodiments. It should be understood that the descriptions of the early warning device and electronic device embodiments correspond to the descriptions of the method embodiments; therefore, any content not described in detail can be found in the above method embodiments, and for the sake of brevity, will not be repeated here.
[0192] Figure 9 The diagram shows a schematic block diagram of a warning device 900 provided in an embodiment of this application. The warning device 900 may include functions for performing... Figure 9 The unit of the early warning method.
[0193] Specifically, the early warning device 900 includes a processing unit 910 and a display unit 920.
[0194] The early warning device 900 can be used to perform the actions performed by the mobile carrier in the various method embodiments described above. In this case, the early warning device 900 can be a component of the mobile carrier; for example, the early warning device 900 can be a chip or integrated circuit within the mobile carrier. The processing unit 910 can perform processing-related operations of the mobile carrier in the method embodiments described above. The early warning device 900 may also include a transceiver unit for performing the operation of the mobile carrier sending broadcast messages in the above method embodiments.
[0195] The warning device 900 can be used to perform the actions performed by the portable device in the various method embodiments described above. In this case, the warning device 900 can be a component of the portable device; for example, the warning device 900 can be a chip or integrated circuit within the portable device. The processing unit 910 can perform processing-related operations of the portable device in the method embodiments described above. The display unit 920 can be used to perform operations related to displaying prompt information on the portable device in the method embodiments described above. The warning device 900 may also include a transceiver unit for performing operations related to receiving broadcast messages from a mobile carrier in the method embodiments described above.
[0196] In a specific implementation, the actions performed by the processing unit 910 and the display unit 920 can be implemented by one processor or by multiple processors.
[0197] Figure 10 This is a schematic block diagram of the electronic device 1000 provided in the embodiments of this application. Figure 10The illustrated electronic device 1000 may include a processor 1010, a transceiver 1020, and a memory 1030. The processor 1010, transceiver 1020, and memory 1030 are connected via internal interconnection paths. The memory 1030 stores instructions, and the processor 1010 executes the instructions stored in the memory 1030 to implement the methods described in the above embodiments. Optionally, the memory 1030 may be coupled to the processor 1010 via an interface or integrated with the processor 1010.
[0198] It should be noted that the transceiver 1020 mentioned above may include, but is not limited to, transceiver devices such as input / output interfaces, to realize communication between electronic device 1000 and other devices or communication networks.
[0199] The memory 1030 can be volatile memory and / or non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM). For example, RAM can be used as an external cache. By way of example and not limitation, RAM includes various forms such as: static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0200] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, the memory (storage module) can be integrated into the processor.
[0201] It should also be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0202] Transceiver 1020 uses transceiver devices, such as but not limited to transceivers, to enable communication between electronic device 1000 and other devices or communication networks, in order to receive / send data / information for implementing the methods in the above embodiments.
[0203] The electronic device 1000 can be used to perform the actions performed by the mobile carrier in the above method embodiments, and can also be used to perform the actions performed by the portable device in the above method embodiments.
[0204] This application provides a computer program product that, when run on a device, causes the device to execute the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar to those of the related embodiments described above, and will not be repeated here.
[0205] This application provides a readable storage medium containing instructions that, when executed on a device, cause the device to perform the technical solutions described in the above embodiments. The implementation principle and technical effects are similar and will not be repeated here.
[0206] This application provides a chip for executing instructions. When the chip is running, it executes the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0207] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.
[0208] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the above-described apparatus and unit (module) can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0209] In the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0210] The units described above 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 units can be selected to achieve the purpose of this embodiment according to actual needs.
[0211] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0212] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or a portion 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 this application. 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.
[0213] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An early warning method, characterized in that, The method is applied to a portable device, and the method includes: Receive broadcast messages; Based on the broadcast message, determine the driving parameters of the mobile vehicle; When it is determined, based on the vehicle's driving parameters, that there is a risk of collision between the vehicle and the user, a warning signal is issued.
2. The method according to claim 1, characterized in that, The broadcast message includes a first field and a second field, wherein the first field is used to indicate the location information of the mobile carrier and the second field is used to indicate the travel speed of the mobile carrier; The step of determining the driving parameters of the mobile carrier based on the broadcast message includes: The distance between the mobile carrier and the portable device is determined based on the location information; The step of issuing a warning signal when it is determined, based on the driving parameters of the mobile vehicle, that there is a risk of collision between the mobile vehicle and the user includes: When it is determined, based on the location information and the driving speed, that there is a risk of collision between the mobile vehicle and the user, the warning signal is issued.
3. The method according to claim 2, characterized in that, The second field includes a first subfield and a second subfield. The first subfield is used to indicate the orientation information of the mobile carrier, and the second subfield is used to indicate the travel speed of the mobile carrier. The step of determining the driving parameters of the mobile carrier based on the broadcast message includes: The distance between the mobile carrier and the portable device is determined based on the location information; The travel speed of the mobile carrier is determined based on the location information and the travel rate. When it is determined, based on the location information and the driving speed, that there is a risk of collision between the mobile vehicle and the user, the warning signal is issued, including: When it is determined, based on the distance and the travel speed, that there is a risk of collision between the mobile vehicle and the user, the warning signal is issued.
4. The method according to claim 1, characterized in that, The broadcast message includes a first field, which indicates the location information of the mobile carrier. The step of determining the driving parameters of the mobile carrier based on the broadcast message includes: The distance between the mobile carrier and the portable device is determined based on the first field in the broadcast messages at at least N times, where N is a positive integer greater than or equal to 2; The travel speed of the mobile carrier is determined based on the distance between the mobile carrier and the portable device; When it is determined, based on the driving parameters of the mobile vehicle, that there is a risk of collision between the mobile vehicle and the user, a warning signal is issued, including: When it is determined, based on the distance and the travel speed, that there is a risk of collision between the mobile vehicle and the user, the warning signal is issued.
5. The method according to claim 1, characterized in that, Determining the driving parameters of the mobile vehicle based on the broadcast message includes: Based on the RSSI of the broadcast messages at at least N times, determine the distances between the N mobile carriers and the portable device; Based on the distances between the N mobile carriers and the portable device, the travel speeds of the M mobile carriers are determined, where M is a positive integer greater than or equal to 1 and less than N; The average distance between the mobile carrier and the portable device is determined based on the distances between the N mobile carriers and the portable device; The average speed of the mobile carrier is determined based on the travel speeds of the M mobile carriers. Specifically, when a collision risk is determined between the mobile vehicle and the user based on the vehicle's driving parameters, a warning signal is issued, including: The warning signal is issued when the average distance is less than or equal to the distance threshold and the average driving speed is greater than or equal to the speed threshold.
6. The method according to claim 1, characterized in that, The broadcast message includes a first field, a first subfield, and a second subfield. The first field indicates the location information of the mobile carrier, the first subfield indicates the orientation information of the mobile carrier, and the second subfield indicates the travel speed of the mobile carrier. The step of determining the driving parameters of the mobile carrier based on the broadcast message includes: The driving parameters of the mobile vehicle are determined based on the location information, the orientation information, the driving speed, and the RSSI of broadcast messages at least N times.
7. The method according to any one of claims 1 to 6, characterized in that, The issuance of the warning signal includes: The warning signal may be issued in at least one of the following ways: Display prompts, emit warning sounds, and vibrate.
8. The method according to any one of claims 2-4 and 6, characterized in that, The first field includes a third subfield and a fourth subfield. The third subfield is used to indicate the longitude information of the mobile carrier, and the fourth subfield is used to indicate the latitude information of the mobile carrier.
9. An early warning system, characterized in that, The early warning system includes a portable device and a mobile carrier as described in any one of claims 1 to 8.
10. An electronic device, characterized in that, The electronic device includes: One or more processors; One or more memory units; The one or more memories store one or more computer programs, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 1 to 8.
11. An early warning device, characterized in that, include: A processor coupled to a memory for storing a computer program, the processor for running the computer program such that the warning device performs the method as described in any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a computer, causes the computer to perform the method as described in any one of claims 1 to 8.
13. A computer program product containing instructions, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 8.
14. A chip, characterized in that, The chip includes a processor and a data interface, wherein the processor reads instructions stored in the memory through the data interface to execute the method as described in any one of claims 1 to 8.