Emergency alarm method, electronic equipment and storage medium
By sending emergency alarm notifications through the vehicle's built-in low-power Bluetooth chip, and utilizing multiple Bluetooth chips and a dynamic channel allocation strategy, the problem of low utilization of low-power Bluetooth chips is solved, and the effect of emergency alarms is improved, especially in blind spot scenarios, where the success rate of notifications is increased.
Patent Information
- Application Number
- CN202511549279.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-28
- Publication Date
- 2026-01-13
AI Technical Summary
How to improve the utilization rate of vehicle-built low-power Bluetooth chips, especially in blind spot scenarios such as intersections, to enhance the emergency warning effect, as traditional methods such as honking the horn and flashing the lights are insufficient.
Emergency alarm notifications are sent to the outside world through the vehicle's built-in low-power Bluetooth chip. Multiple Bluetooth chips are used to send notification messages, and a dynamic communication channel allocation strategy is adopted to ensure the successful transmission of notification messages.
It significantly improves the effectiveness of emergency alarms and increases the utilization rate of low-power Bluetooth chips, especially enhancing the effectiveness of emergency alarms in blind spot scenarios.
Smart Images

Figure CN121334641A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle communication technology, specifically to an emergency alarm method, electronic device, and storage medium. Background Technology
[0002] With continuous technological advancements, digital keys have become widespread. A digital key is a digital tool that enables the functions of a traditional physical key. Using smartphones, smartwatches, and other smart devices as carriers, it connects to the vehicle via wireless communication technologies such as Bluetooth, NFC (Near Field Communication), and UWB (Ultra-Wideband) to achieve functions like unlocking, starting, and controlling the vehicle. Bluetooth Low Energy (BLE) is an indispensable module for enabling communication and interconnection between smart devices and vehicles. Therefore, most vehicles are currently equipped with multiple BLE chips, which allow communication between the vehicle and smart devices with Bluetooth chips, such as smartphones and smartwatches.
[0003] Therefore, improving the utilization rate of multiple low-power Bluetooth chips built into vehicles has become a current research hotspot.
[0004] In view of the above, this application is hereby submitted. Summary of the Invention
[0005] This application aims to provide an emergency alarm method, electronic device, and storage medium. By sending emergency alarm notifications to the outside world based on the vehicle's built-in low-power Bluetooth chip, the application achieves the reuse of the vehicle's built-in low-power Bluetooth chip, improves the utilization rate of the low-power Bluetooth chip, and enhances the emergency alarm effect. Especially in scenarios with blind spots such as intersections, compared with traditional emergency alarm methods such as honking the horn and flashing the lights, this application significantly improves the emergency alarm effect by sending emergency alarm notifications to the outside world through the vehicle's built-in low-power Bluetooth chip.
[0006] In a first aspect, embodiments of this application provide an emergency alarm method, including: receiving emergency information; A notification message is generated based on the emergency information; The notification message is sent via the vehicle's Bluetooth chip so that other devices with Bluetooth chips within a preset range of the current vehicle can receive the notification message.
[0007] According to the technical solution provided in the embodiments of this application, optionally, the number of the vehicle-mounted Bluetooth chips is multiple, and before sending the notification message through the vehicle-mounted Bluetooth chips, the method further includes: A communication channel is allocated to each of the vehicle Bluetooth chips so that each of the vehicle Bluetooth chips can send the notification message according to the allocated communication channel. According to the technical solution provided in the embodiments of this application, optionally, the allocation of communication channels for each of the vehicle-mounted Bluetooth chips includes: Based on the interference strength of each communication channel and / or the installation location of each vehicle Bluetooth chip in the vehicle, a communication channel is assigned to each vehicle Bluetooth chip. According to the technical solution provided in the embodiments of this application, optionally, the step of allocating communication channels for each vehicle Bluetooth chip based on the interference strength of each communication channel and / or the installation location of each vehicle Bluetooth chip in the vehicle includes: Determine the interference intensity of the communication channel; The communication channels are sorted in order of increasing interference intensity; A predetermined number of communication channels are allocated to the target vehicle Bluetooth chip, which is a Bluetooth chip installed on the roof of the vehicle. The remaining communication channels are allocated to other vehicle Bluetooth chips besides the target vehicle Bluetooth chip. Alternatively, communication channels can be assigned to each of the vehicle Bluetooth chips according to the sorted communication channels. According to the technical solution provided in the embodiments of this application, optionally, determining the interference intensity of the communication channel includes: Determine the received signal strength of the communication channel, the number of connected WIFI devices, and the current location information; The interference intensity of the communication channel is determined based on the received signal strength of the communication channel, the number of connected WIFI devices, and the current location information. According to the technical solution provided in the embodiments of this application, optionally, the step of allocating communication channels to each of the vehicle-mounted Bluetooth chips according to the sorted communication channels includes: The sorted communication channels are sampled at equal intervals for the first time to obtain the first sampling channel, and the first sampling channel is assigned to the vehicle Bluetooth chip. The remaining communication channels after sampling are sampled a second time at equal intervals to obtain the second sampling channel. The second sampling channel is then assigned to the vehicle Bluetooth chips that have not been assigned a communication channel until all vehicle Bluetooth chips have been assigned a communication channel. According to the technical solution provided in the embodiments of this application, optionally, the step of generating a notification message based on the emergency information includes: Determine the identification code corresponding to the emergency information; The identification code and the associated information of the current vehicle are encapsulated according to a preset format to generate the notification message.
[0008] Optionally, receiving emergency information includes: Receive emergency information input by users through the central control screen or user terminal; Alternatively, it can receive emergency information input by the user via voice. Secondly, embodiments of this application also provide an emergency alarm device, including: The receiving module is used to receive emergency information; The generation module is used to generate a notification message based on the emergency information; The sending module is used to send the notification message via the vehicle-mounted Bluetooth chip so that other devices with Bluetooth chips within a preset range of the current vehicle can receive the notification message.
[0009] Thirdly, embodiments of this application also provide an electronic device, the electronic device comprising: Processor and memory; The processor executes the steps of the emergency alarm method as described in any embodiment by invoking programs or instructions stored in the memory.
[0010] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a program or instructions that cause a computer to perform the steps of the emergency alarm method as described in any embodiment.
[0011] In summary, this application proposes an emergency alarm method, comprising: receiving emergency information; generating a notification message based on the emergency information; and sending the notification message via an in-vehicle Bluetooth chip, so that other devices with Bluetooth chips within a preset range of the current vehicle can receive the notification message. By sending emergency alarm notifications to the outside world based on the vehicle's built-in low-power Bluetooth chip, the utilization rate of the built-in low-power Bluetooth chip is improved, and the emergency alarm effect is enhanced. Especially in scenarios with blind spots, such as intersections, compared with traditional emergency alarm methods such as honking the horn or flashing lights, this application significantly improves the emergency alarm effect by sending emergency alarm notifications to the outside world via the vehicle's built-in low-power Bluetooth chip. Attached Figure Description
[0012] Figure 1 This is a flowchart of an emergency alarm method provided in an embodiment of this application; Figure 2 This is a schematic diagram of an emergency alarm provided in an embodiment of this application; Figure 3 This is a schematic diagram of a communication channel allocation provided in an embodiment of this application; Figure 4This is a schematic diagram of a dynamically allocated communication channel provided in an embodiment of this application; Figure 5 This is a schematic diagram of an emergency alarm device provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0013] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.
[0014] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0015] Figure 1 This is a flowchart illustrating an emergency alarm method provided in an embodiment of this application. This emergency alarm method can be executed by an emergency alarm device, which can be implemented in software and / or hardware and integrated into the vehicle, for example, a digital key controller or a vehicle-mounted terminal (TBOX). See also... Figure 1 The emergency alarm method specifically includes the following steps: S110, Receive emergency information.
[0016] For example, receiving emergency information includes: It can receive emergency information input by users through the central control screen or user terminals (such as smartphones, smartwatches, and other terminals that communicate with the vehicle); or it can receive emergency information input by users through voice.
[0017] It supports both voice input and text input of emergency information.
[0018] In some implementations, emergency information types can be preset. When a user encounters an emergency, they can directly select the corresponding emergency information type, such as "sudden illness", "vehicle malfunction", or "a patient in the vehicle urgently needs to go to the hospital". Users can directly select the corresponding emergency information type according to the emergency situation they encounter through the menu items displayed on the central control screen, thereby simplifying user operation, reducing the difficulty of use, and improving the user experience.
[0019] S120. Generate a notification message based on the emergency information.
[0020] For example, generating a notification message based on the emergency information includes: Determine the identification code corresponding to the emergency information; encapsulate the identification code and the current vehicle's associated information according to a preset format to generate the notification message.
[0021] The identification code is a digital representation of the emergency information. Converting emergency information into a digital representation facilitates its communication and transmission. For example, the identification code for the emergency information type "sudden illness" is 01, the identification code for the emergency information type "vehicle breakdown" is 02, and the identification code for the emergency information type "a patient in the vehicle urgently needs to go to the hospital" is 03, etc.
[0022] The associated information of the current vehicle includes, but is not limited to: the current location of the vehicle, license plate number, vehicle color, vehicle model, and other information that is easily identifiable by surrounding vehicles and pedestrians.
[0023] Encapsulating the identification code and the current vehicle's associated information according to a preset format essentially means processing the identification code and the current vehicle's associated information into a data packet that can be sent via the Bluetooth channel, in accordance with the requirements of the Bluetooth communication protocol.
[0024] S130. The notification message is sent via the vehicle's Bluetooth chip so that other devices with Bluetooth chips within a preset range of the current vehicle can receive the notification message.
[0025] Specifically, the in-vehicle Bluetooth chip can be a Bluetooth Low Energy (BLE) chip.
[0026] The preset range is determined by the Bluetooth communication distance. Bluetooth communication distance is affected by various factors, typically ranging from 10 to 100 meters. Transmission power is the core factor affecting communication distance, usually measured in dBm. Higher transmission power indicates stronger power and a longer communication distance. For example, low power (-20dBm to -40dBm) generally has a communication distance of 1-10 meters, suitable for devices such as headphones and smart bracelets; medium power (0dBm to -10dBm) generally has a communication distance of 10-50 meters, commonly found in smart home devices; and high power (5dBm to 20dBm) generally has a communication distance of 50-100 meters, often used in industrial IoT gateways. Environmental interference affects communication distance; for example, walls, metal, and people can weaken the signal, leading to a shorter communication distance. Electromagnetic interference, due to frequency band overlap, causes signal attenuation, further reducing the effective communication distance.
[0027] For example, see references to Figure 2The diagram illustrates an emergency alarm system where the vehicle 210 sends a notification message to the outside world via its onboard Bluetooth chip. Other devices with Bluetooth chips within a preset range of the vehicle receive the notification message, enabling recipients to take actions such as giving way or providing assistance based on the message's content. In emergency situations, such as hospitals or emergency vehicles (ambulances, police cars), Bluetooth devices receiving the notification message can prepare for rescue in advance, improving rescue efficiency.
[0028] Other devices with Bluetooth chips within a preset range of the vehicle can broadcast or display the notification message upon receiving it, thereby reminding the user that they have received the notification. Specifically, the notification message can be displayed on the vehicle's central control screen or broadcast via the in-vehicle voice device. If the receiving device is a smartphone, the notification can also be displayed in two ways: by displaying a text notification or by broadcasting the notification via voice.
[0029] The emergency alarm method provided in this application includes: receiving emergency information; generating a notification message based on the emergency information; and sending the notification message via an in-vehicle Bluetooth chip so that other devices with Bluetooth chips within a preset range of the current vehicle can receive the notification message. By sending emergency alarm notifications to the outside world based on the vehicle's built-in low-power Bluetooth chip, the utilization rate of the built-in low-power Bluetooth chip is improved, and the emergency alarm effect is enhanced. Especially in scenarios with blind spots such as intersections, compared with traditional emergency alarm methods such as honking the horn and flashing lights, this application significantly improves the emergency alarm effect by sending emergency alarm notifications to the outside world via the vehicle's built-in low-power Bluetooth chip.
[0030] In some implementations, a dynamic communication channel allocation strategy is incorporated to further improve the success rate of notification message transmission, ensuring that notification messages are transmitted using channels with better communication quality, thereby improving the success rate of notification message transmission.
[0031] Specifically, there are multiple vehicle-mounted Bluetooth chips. Before sending the notification message through the vehicle-mounted Bluetooth chips, the method further includes: allocating a communication channel for each vehicle-mounted Bluetooth chip so that each vehicle-mounted Bluetooth chip can send the notification message according to the allocated communication channel.
[0032] For example, communication channels are allocated to each vehicle Bluetooth chip based on the interference strength of each communication channel and / or the installation location of each vehicle Bluetooth chip in the vehicle. For instance, a communication channel with lower interference strength is assigned to the vehicle Bluetooth chip with the optimal installation location in the vehicle, thereby enabling the vehicle Bluetooth chip with the optimal installation location to use the communication channel with the best communication quality to send notification messages, thus improving the success rate of notification message transmission through dual guarantees. Here, the vehicle Bluetooth chip with the optimal installation location in the vehicle refers to the Bluetooth chip with the least obstruction around its installation location; less obstruction results in better communication quality. For example, a Bluetooth chip installed on the vehicle roof can be considered the Bluetooth chip with the optimal location in the vehicle.
[0033] After allocating communication channels to each vehicle Bluetooth chip, each chip can monitor its own communication channel. If a high packet loss rate is detected on a particular channel, it can immediately switch to another channel for message transmission. For example, each Bluetooth chip polls and sends detection data packets (each channel is paused for 100ms) according to the allocation matrix (which records the communication channels allocated to each Bluetooth chip). When the packet loss rate of the current channel is detected to be greater than 30%, it immediately switches to a backup channel in the same group to ensure the success rate of notification message transmission.
[0034] In some embodiments, allocating communication channels for each of the vehicle-mounted Bluetooth chips based on the interference strength of each communication channel and / or the installation location of each of the vehicle-mounted Bluetooth chips in the vehicle includes: Determine the interference intensity of the communication channels; sort the communication channels in ascending order of interference intensity; allocate a predetermined number of the top-ranked communication channels to the target vehicle Bluetooth chip, which is a Bluetooth chip installed on the roof of the vehicle; allocate the remaining communication channels to other vehicle Bluetooth chips besides the target vehicle Bluetooth chip; or, allocate communication channels to each vehicle Bluetooth chip according to the sorted communication channels.
[0035] In this process, a predetermined number of communication channels are allocated to the target vehicle Bluetooth chip, which is a Bluetooth chip installed on the roof of the vehicle. Essentially, the communication channel with the best communication quality is allocated to the vehicle Bluetooth chip with the best installation location. The purpose is to ensure that the notification message is successfully sent through double protection.
[0036] In another embodiment, allocating communication channels to each of the vehicle Bluetooth chips according to the sorted communication channels includes: sequentially allocating communication channels to each vehicle Bluetooth chip according to equally spaced sampling. Specifically, the sorted communication channels are sampled at equal intervals for the first time to obtain a first sampling channel, and the first sampling channel is allocated to one of the vehicle Bluetooth chips; the remaining communication channels after sampling are sampled at equal intervals for the second time to obtain a second sampling channel, and the second sampling channel is allocated to the vehicle Bluetooth chips that have not been allocated a communication channel, until all vehicle Bluetooth chips have been allocated a communication channel.
[0037] like Figure 3 As shown, assuming there are 5 in-vehicle Bluetooth chips and the Bluetooth Low Energy chip typically has 40 communication channels, each in-vehicle Bluetooth chip can be allocated 8 communication channels. Further assuming the sorted communication channels are represented by numbers 1-40, and each vehicle Bluetooth chip is assigned a communication channel according to equal interval sampling, the communication channels assigned to the first vehicle Bluetooth chip are those represented by numbers 1, 6, 11, 16, 21, 26, 31, and 36; the communication channels assigned to the second vehicle Bluetooth chip are those represented by numbers 2, 7, 12, 17, 22, 27, 32, and 37; the communication channels assigned to the third vehicle Bluetooth chip are those represented by numbers 3, 8, 13, 18, 23, 28, 33, and 38; the communication channels assigned to the fourth vehicle Bluetooth chip are those represented by numbers 4, 9, 14, 19, 24, 29, 34, and 39; and the communication channels assigned to the fifth vehicle Bluetooth chip are those represented by numbers 5, 10, 15, 20, 25, 30, 35, and 40. The process involves first sampling the sorted communication channels at equal intervals to obtain first sampling channels (1, 6, 11, 16, 21, 26, 31, 36), and then assigning these first sampling channels to one of the vehicle-mounted Bluetooth chips. Next, the remaining communication channels are sampled at equal intervals a second time to obtain second sampling channels (2, 7, 12, 17, 22, 27, 32, 37), and these second sampling channels are assigned to any vehicle-mounted Bluetooth chips that have not yet been assigned a communication channel. This process continues until all vehicle-mounted Bluetooth chips have been assigned a communication channel. This configuration aims to allocate communication channels of comparable quality to different vehicle-mounted Bluetooth chips, ensuring that each Bluetooth chip receives a high-quality communication channel and thus guaranteeing stable transmission of notification messages.
[0038] Furthermore, in some embodiments, determining the interference intensity of the communication channel includes: Determine the received signal strength of the communication channel, the number of connected WIFI devices, and the current location information; determine the interference intensity of the communication channel based on the received signal strength of the communication channel, the number of connected WIFI devices, and the current location information.
[0039] The received signal strength of a communication channel can be determined as follows: Each Bluetooth chip takes turns switching to listening mode, scans the RSSI (Signal Strength Indicator) of channels 0-39, and outputs a 40-dimensional RSSI vector [rssi0, rssi1, ..., rssi39]. Specifically, if the RSSI of a channel is consistently greater than -65dBm (-65dBm is an adjustable threshold), the channel is marked as "high interference," and a list of interfering channels is output.
[0040] To reduce the impact of short-term interference, the received signal strength can be measured multiple times for each channel, and the average value can be used to determine the final received signal strength for that channel, thereby improving the accuracy of the received signal strength measurement. For example, the received signal strength of communication channel 1 can be measured 10 times, and the average value of these 10 measurements can be used to determine the final received signal strength of communication channel 1.
[0041] The interference strength of the communication channel can be determined based on the received signal strength, the number of connected Wi-Fi devices, and the current location information, which can be achieved in the following way:
[0042] in, Indicates communication channel ch The intensity of interference, , , The weighting factor can be set based on experience. Indicates communication channel ch The received signal strength, Indicates communication channel ch The number of connected Wi-Fi devices This represents the location correction factor determined based on the current location information, such as in a tunnel. The value is greater than that on the ground The value, in an open location The value is greater than that in locations surrounded by tall buildings. The value.
[0043] Correspondingly, see reference as follows Figure 4 As shown, the dynamic channel allocation engine allocates a communication channel to each Bluetooth chip based on the interference strength of the communication channel calculated by the TBOX calculation unit. The TBOX calculation unit determines the interference strength of the communication channel based on the current location information, received signal strength, and Wi-Fi overlap.
[0044] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides an emergency alarm device.
[0045] refer to Figure 5 The emergency alarm device includes: a receiving module 510 for receiving emergency information; a generating module 520 for generating a notification message based on the emergency information; and a sending module 530 for sending the notification message via an in-vehicle Bluetooth chip, so that other devices with Bluetooth chips within a preset range of the current vehicle can receive the notification message.
[0046] Furthermore, the number of the vehicle-mounted Bluetooth chips is multiple, and the emergency alarm device further includes: an allocation module, used to allocate a communication channel to each of the vehicle-mounted Bluetooth chips before sending the notification message through the vehicle-mounted Bluetooth chips, so that each of the vehicle-mounted Bluetooth chips sends the notification message according to the allocated communication channel.
[0047] Furthermore, the allocation module is specifically used to: allocate communication channels to each of the vehicle Bluetooth chips according to the interference strength of each communication channel and / or the installation location of each vehicle Bluetooth chip in the vehicle.
[0048] Furthermore, the allocation module includes: a determining unit for determining the interference intensity of the communication channels; a sorting unit for sorting the communication channels in ascending order of interference intensity; and an allocation unit for allocating a preset number of the top-ranked communication channels to a target vehicle Bluetooth chip, wherein the target vehicle Bluetooth chip is a Bluetooth chip installed on the roof of the vehicle, and allocating the remaining communication channels to other vehicle Bluetooth chips besides the target vehicle Bluetooth chip; or, allocating communication channels to each of the vehicle Bluetooth chips according to the sorted communication channels.
[0049] Furthermore, the determining unit is specifically used to determine the received signal strength of the communication channel, the number of connected WIFI devices, and the current location information; and to determine the interference intensity of the communication channel based on the received signal strength of the communication channel, the number of connected WIFI devices, and the current location information.
[0050] The allocation unit is specifically used for: performing a first equally spaced sampling on the sorted communication channels to obtain a first sampling channel, and allocating the first sampling channel to one of the vehicle Bluetooth chips; performing a second equally spaced sampling on the remaining communication channels after sampling to obtain a second sampling channel, and allocating the second sampling channel to the vehicle Bluetooth chips that have not been allocated a communication channel, until all vehicle Bluetooth chips are allocated a communication channel.
[0051] Furthermore, the generation module 520 is specifically used to: determine the identification code corresponding to the emergency information; and encapsulate the identification code and the current vehicle's associated information according to a preset format to generate the notification message.
[0052] Furthermore, the receiving module 510 is specifically used to: receive emergency information input by the user through the central control screen or user terminal; or, receive emergency information input by the user through voice.
[0053] The emergency alarm device provided in this application includes: a receiving module for receiving emergency information; a generating module for generating a notification message based on the emergency information; and a sending module for sending the notification message via an in-vehicle Bluetooth chip, so that other devices with Bluetooth chips within a preset range of the current vehicle can receive the notification message. By sending emergency alarm notifications to the outside world based on the vehicle's built-in low-power Bluetooth chip, the utilization rate of the vehicle's built-in low-power Bluetooth chip is improved, and the emergency alarm effect is enhanced. Especially in scenarios with blind spots such as intersections, compared with traditional emergency alarm methods such as honking the horn and flashing lights, this application significantly improves the emergency alarm effect by sending emergency alarm notifications to the outside world via the vehicle's built-in low-power Bluetooth chip.
[0054] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.
[0055] The apparatus described above is used to implement the corresponding emergency alarm method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0056] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. For example... Figure 6 As shown, the electronic device 500 includes one or more processors 501 and memory 502.
[0057] The processor 501 may be a central processing unit (CPU) or other form of processing unit with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 500 to perform desired functions.
[0058] The memory 502 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 501 may execute the program instructions to implement the emergency alarm method of any embodiment of this application described above and / or other desired functions. Various contents such as initial external parameters and thresholds may also be stored in the computer-readable storage medium.
[0059] In one example, the electronic device 500 may further include an input device 503 and an output device 504, these components being interconnected via a bus system and / or other forms of connection mechanisms (not shown). The input device 503 may include, for example, a keyboard, a mouse, etc. The output device 504 may output various information to the outside, including warning messages, braking force, etc. The output device 504 may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.
[0060] Of course, for the sake of simplicity, Figure 6 Only some of the components of the electronic device 500 relevant to this application are shown in this illustration; components such as buses, input / output interfaces, etc., are omitted. In addition, the electronic device 500 may include any other suitable components depending on the specific application.
[0061] In addition to the methods and devices described above, embodiments of this application may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the steps of the emergency alarm method provided in any embodiment of this application.
[0062] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of this application. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0063] Furthermore, embodiments of this application may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps of the emergency alarm method provided in any embodiment of this application.
[0064] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.
[0065] It should be noted that the terminology used in this application is for the purpose of describing specific embodiments only and is not intended to limit the scope of this application. As shown in the specification and claims of this application, unless the context clearly indicates otherwise, words such as "a," "an," "an," and / or "the" do not specifically refer to the singular and may also include the plural. The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, or apparatus. Without further limitations, an element defined by the phrase "comprising an..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes said element.
[0066] It should also be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation on this application. Unless otherwise expressly specified and limited, the terms "installed," "connected," "linked," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication between two elements. For those skilled in the art, the specific meaning of the above terms in this application can be understood according to the specific circumstances.
[0067] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. The above descriptions are only preferred embodiments of this application. It should be noted that due to the limitations of written expression, while there are objectively infinite specific structures, those skilled in the art can make several improvements, modifications, or changes without departing from the principles of this invention, and can also combine the above technical features in an appropriate manner. These improvements, modifications, changes, or combinations, or the direct application of the inventive concept and technical solution to other situations without modification, should all be considered within the scope of protection of this application.
Claims
1. An emergency alarm method, characterized in that, include: Receive emergency information; A notification message is generated based on the emergency information; The notification message is sent via the vehicle's Bluetooth chip so that other devices with Bluetooth chips within a preset range of the current vehicle can receive the notification message.
2. The emergency alarm method according to claim 1, characterized in that, The number of the in-vehicle Bluetooth chips is multiple, and before sending the notification message through the in-vehicle Bluetooth chips, the method further includes: A communication channel is assigned to each of the vehicle Bluetooth chips so that each of the vehicle Bluetooth chips can send the notification message according to the assigned communication channel.
3. The emergency alarm method according to claim 2, characterized in that, The allocation of communication channels for each of the vehicle-mounted Bluetooth chips includes: Based on the interference strength of each communication channel and / or the installation location of each vehicle Bluetooth chip in the vehicle, a communication channel is assigned to each vehicle Bluetooth chip.
4. The emergency alarm method according to claim 3, characterized in that, The step of allocating communication channels for each vehicle-mounted Bluetooth chip based on the interference strength of each communication channel and / or the installation location of each vehicle-mounted Bluetooth chip in the vehicle includes: Determine the interference intensity of the communication channel; The communication channels are sorted in order of increasing interference intensity; A predetermined number of communication channels are allocated to the target vehicle Bluetooth chip, which is a Bluetooth chip installed on the roof of the vehicle. The remaining communication channels are allocated to other vehicle Bluetooth chips besides the target vehicle Bluetooth chip. Alternatively, communication channels can be assigned to each of the vehicle Bluetooth chips according to the sorted communication channels.
5. The emergency alarm method according to claim 4, characterized in that, Determining the interference intensity of the communication channel includes: Determine the received signal strength of the communication channel, the number of connected WIFI devices, and the current location information; The interference intensity of the communication channel is determined based on the received signal strength of the communication channel, the number of connected WIFI devices, and the current location information.
6. The emergency alarm method according to claim 4, characterized in that, The step of allocating communication channels to each of the vehicle-mounted Bluetooth chips according to the sorted communication channels includes: The sorted communication channels are sampled at equal intervals for the first time to obtain the first sampling channel, and the first sampling channel is assigned to the vehicle Bluetooth chip. The remaining communication channels after sampling are sampled a second time at equal intervals to obtain the second sampling channel. The second sampling channel is then assigned to the vehicle Bluetooth chips that have not been assigned a communication channel until all vehicle Bluetooth chips have been assigned a communication channel.
7. The emergency alarm method according to claim 1, characterized in that, The step of generating a notification message based on the emergency information includes: Determine the identification code corresponding to the emergency information; The identification code and the associated information of the current vehicle are encapsulated according to a preset format to generate the notification message.
8. The emergency alarm method according to claim 1, characterized in that, Receiving emergency information includes: Receive emergency information input by users through the central control screen or user terminal; Alternatively, it can receive emergency information input by the user via voice.
9. An electronic device, characterized in that, The electronic device includes: Processor and memory; The processor executes the steps of the emergency alarm method as described in any one of claims 1 to 8 by invoking the program or instructions stored in the memory.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program or instructions that cause a computer to perform the steps of the emergency alarm method as described in any one of claims 1 to 8.