CN115733504A - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN115733504A
CN115733504A CN202110991812.7A CN202110991812A CN115733504A CN 115733504 A CN115733504 A CN 115733504A CN 202110991812 A CN202110991812 A CN 202110991812A CN 115733504 A CN115733504 A CN 115733504A
Authority
CN
China
Prior art keywords
circuit
attenuation
distance
signal
detection signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110991812.7A
Other languages
Chinese (zh)
Inventor
张英炉
虞靖靓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110991812.7A priority Critical patent/CN115733504A/en
Priority to PCT/CN2022/111183 priority patent/WO2023024899A1/en
Publication of CN115733504A publication Critical patent/CN115733504A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R25/00Fittings or systems for preventing or indicating unauthorised use or theft of vehicles
    • B60R25/01Fittings or systems for preventing or indicating unauthorised use or theft of vehicles operating on vehicle systems or fittings, e.g. on doors, seats or windscreens
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B49/00Electric permutation locks; Circuits therefor ; Mechanical aspects of electronic locks; Mechanical keys therefor
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/09Arrangements for giving variable traffic instructions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/06Receivers
    • H04B1/16Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mechanical Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Transmitters (AREA)
  • Lock And Its Accessories (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

The application discloses a communication method and a communication device, which can carry out accurate distance range detection on the basis of realizing communication. The communication device comprises a first attenuation circuit, a switching circuit and a processing circuit; the first attenuation circuit is used for reducing the power of a distance detection signal received by the antenna to obtain a first attenuation signal, and the distance detection signal is sent by the terminal equipment; the first end of the switch circuit is connected with the processing circuit; under the condition that the second end of the switch circuit is connected with the antenna, the processing circuit is used for processing the communication signal received by the antenna; under the condition that the second end of the switch circuit is connected with the first attenuation circuit, the processing circuit is used for processing the first attenuation signal to obtain a first error rate of the first attenuation signal, and the processing circuit is also used for processing a first communication signal received by the antenna, wherein the first communication signal is sent by the terminal equipment; the processing circuit is further configured to determine a range of distances from the terminal device based on the first error rate.

Description

Communication method and device
Technical Field
The present application relates to the field of communications, and in particular, to a communication method and apparatus.
Background
Along with the vehicle is more and more intelligent, mobile terminal also can possess the car key function. By judging the distance between the vehicle key and the vehicle, the automatic unlocking and locking of the vehicle door of the vehicle owner can be realized within a safe range, and the risk of potential safety hazards is reduced.
Bluetooth technology can be used for distance measurement between a vehicle and a vehicle key. The vehicle can receive a bluetooth signal transmitted by a Bluetooth (BT) vehicle key, and determine a distance between the vehicle and the bluetooth key according to a Received Signal Strength Indication (RSSI) of the bluetooth signal and a corresponding relationship between different RSSI values and positive distance correlations. The accuracy of the distance determined using RSSI is low.
Disclosure of Invention
The application provides a communication method and a communication device, which can realize accurate measurement of a distance range on the basis of realizing communication.
In a first aspect, a communication apparatus is provided, the apparatus including: the first attenuation circuit, the switch circuit and the processing circuit; the first attenuation circuit is used for reducing the power of a distance detection signal received by an antenna to obtain a first attenuation signal, and the distance detection signal is sent by terminal equipment; the first end of the switch circuit is connected with the processing circuit; the processing circuit is used for processing the communication signal received by the antenna under the condition that the second end of the switch circuit is connected with the antenna; under the condition that the second end of the switch circuit is connected with the first attenuation circuit, the processing circuit is used for processing the first attenuation signal to obtain a first bit error rate of the first attenuation signal; the processing circuit is further configured to determine a first range of distances from the terminal device based on the first bit error rate.
In a communication device, a processing circuit is used for processing a communication signal received by an antenna. In the communication apparatus, a first attenuation circuit and a switch circuit are added, so that an accurate distance range can be determined in the case where the switch circuit connects the first attenuation circuit to the processing circuit. In the communication device, the original antenna is used for receiving the distance detection signal, the original processing circuit is used for processing the attenuation signal, the attenuation circuit and the switch circuit are added, the distance detection can be realized, and the cost of the communication device for accurate distance detection is reduced.
With reference to the first aspect, in some possible implementation manners, the processing circuit is further configured to send first indication information when a maximum value of the first distance range is smaller than a first preset distance.
The maximum value of the first distance range is smaller than a first preset distance, namely the distance between the communication device and the terminal equipment is smaller than the first preset distance, and the distance between the communication device and the terminal equipment is smaller. The receiving end of the first indication information may perform specific operations according to the first indication information.
For example, the communication device may be located in the vehicle, upon determining to unlock the doors. In the process of unlocking the vehicle door, the distance between a vehicle user and the vehicle needs to be accurately judged. In the case where the distance between the user and the vehicle is less than the first preset value, it may be determined to unlock the door.
With reference to the first aspect, in some possible implementations, the apparatus further includes a second attenuation circuit, where the second attenuation circuit is configured to reduce the power of the distance detection signal to obtain a second attenuation signal, and a second attenuation amount of the power of the distance detection signal by the second attenuation circuit is different from a first attenuation amount of the power of the distance detection signal by the first attenuation circuit; under the condition that the second end of the switch circuit is connected with the second attenuation circuit, the processing circuit is further used for processing the second attenuation signal to obtain a second bit error rate of the second attenuation signal; the processing circuit is further configured to determine a second range of distances to the terminal device based on the second bit error rate.
The signal is transmitted in the space, and the attenuation of the signal strength in the space is positively correlated with the transmission distance. The signal strength of the distance detection signals transmitted by the terminal devices may be the same. The range interval of the determined distance range can be made smaller by arranging a plurality of attenuation circuits with different attenuation amounts.
With reference to the first aspect, in some possible implementation manners, the second attenuation amount is smaller than the first attenuation amount, and the processing circuit is further configured to send second indication information when a minimum value of the second distance range is greater than or equal to a second preset distance.
The minimum value of the second distance range is greater than or equal to a second preset distance, namely the distance between the communication device and the terminal equipment is greater than the second preset distance, and the distance between the communication device and the terminal equipment is greater. The receiving end of the second indication information can perform specific operations according to the second indication information.
For example, during the process of unlocking the vehicle door, the distance between the vehicle user and the vehicle needs to be accurately determined. In the case where the distance between the user and the vehicle is greater than or equal to the second preset value, it may be determined to unlock the vehicle door. Therefore, when a vehicle user leaves the vehicle, the vehicle door can be locked in time, and property loss possibly caused by the fact that the user forgets to lock the vehicle door is avoided.
With reference to the first aspect, in some possible implementation manners, the processing circuit is further configured to, when the first error rate is within a preset range, determine the first distance range according to the first error rate and first relationship information corresponding to the first attenuation circuit, where the first relationship information is used to represent a corresponding relationship between an error rate and a distance, and a maximum value of the preset range is smaller than 1 and a minimum value of the preset range is larger than 0.
Using the relationship information, the determined distance range may be a distance value. And under the condition that the first error rate is within a preset range, an accurate distance value between the terminal equipment and the terminal equipment can be determined according to the first relation information.
The communication device may include a plurality of attenuation circuits. Different attenuation circuits have different power attenuation amounts for the distance detection signal. The range over which an accurate distance value can be determined can be increased by increasing the number of attenuation circuits.
With reference to the first aspect, in some possible implementation manners, the processing circuit is further configured to, when the second error rate is within a preset range, determine the second distance range according to the first error rate and second relationship information corresponding to the second attenuation circuit, where the second relationship information is used to represent a corresponding relationship between an error rate and a distance, and a maximum value of the preset range is less than 1 and a minimum value of the preset range is greater than 0.
With reference to the first aspect, in some possible implementations, the antenna is a vehicle wireless communication V2X antenna.
The power of the V2X signal is high, and the transmission distance is long. The V2X antenna is used for realizing transmission of V2X signals. The V2X antenna is used as an antenna for receiving the distance detection signal, and the attenuation of the first attenuation circuit is reasonably set, so that the communication device can be applied to the detection of the distance in a larger range, and the application universality of the communication device is improved.
With reference to the first aspect, in some possible implementation manners, the antenna is a diversity in the V2X antenna, the V2X antenna further includes a primary set, the distance detection signal is received by the diversity in a preset time period, and the preset time period is a time period used by the primary set to send a signal.
When the communication device is used to process signals received by the V2X antenna, the diversity may continue to receive V2X signals without stopping the detection signal during the time period when the main set transmits V2X signals. The terminal device may transmit the distance detection signal in a period in which the primary set transmits the V2X signal. Thus, the detection of the distance has a low influence on the transmission of the V2X signal.
With reference to the first aspect, in some possible implementations, the apparatus further includes a control circuit, where the control circuit is configured to control one of the antenna or at least one attenuation circuit connected to the second terminal of the switch circuit, and the at least one attenuation circuit includes the first attenuation circuit.
The control circuit adjusts the object connected with the second end of the switch circuit, so that the communication device can realize flexible switching of the communication function and the distance detection function.
It should be understood that the control circuit, the switching circuit, the attenuation circuit, the processing circuit may be implemented by one or more chips. That is, the control circuit, the switching circuit, the attenuation circuit, and the processing circuit may be provided on different chips, respectively, or a plurality of the control circuit, the switching circuit, the attenuation circuit, and the processing circuit may be integrated on one chip. The embodiments of the present application do not limit this.
In a second aspect, a mobile device is provided, which includes the communication device in any one of the implementation manners in the first aspect, and the mobile device is a vehicle.
The space in the vehicle is large, and the volume requirement on the vehicle-mounted equipment is low. The communication device is provided in the vehicle, facilitating the provision of the first damping circuit.
With reference to the second aspect, in some possible implementation manners, the mobile device further includes a vehicle door and an electronic control unit ECU, the processing circuit is further configured to send first indication information to the ECU when a maximum value of the first distance range is smaller than a first preset distance, and the electronic control unit ECU is configured to unlock the vehicle door according to the first indication information.
The processing circuit sends unlocking instruction information to the ECU, which may be understood as the processing circuit determining to unlock the vehicle door.
With reference to the second aspect, in some possible implementations, the processing circuit is further configured to send second indication information to the ECU when the minimum value of the second distance range is greater than or equal to a second preset distance, and the ECU is configured to lock the vehicle door according to the second indication information.
Specifically, the communication device further comprises a second attenuation circuit, wherein the second attenuation circuit is used for reducing the power of the distance detection signal to obtain a second attenuation signal, and a second attenuation amount of the power of the distance detection signal by the second attenuation circuit is different from a first attenuation amount of the power of the distance detection signal by the first attenuation circuit; under the condition that the second end of the switch circuit is connected with the second attenuation circuit, the processing circuit is further configured to process the second attenuation signal to obtain a second bit error rate of the second attenuation signal; the processing circuit is further configured to determine a second distance range from the terminal device according to the second bit error rate; the processing circuit is further configured to send second indication information to the ECU when the minimum value of the second distance range is greater than or equal to a second preset distance.
The processing circuit sends second indication information to the ECU, which may be understood as the processing circuit determining that the locking of the vehicle door is to be performed.
In a third aspect, a communication apparatus is provided, which includes a signal generation circuit for generating an initial detection signal and a communication signal, a switching circuit, and a first attenuation circuit; a first end of the switch circuit is connected with the signal generating circuit, and the communication signal is transmitted through an antenna under the condition that a second end of the switch circuit is connected with the antenna; under the condition that the second end of the switch circuit is connected with a first attenuation circuit, the first attenuation circuit is used for reducing the power of the initial detection signal to obtain a first distance detection signal, the first distance detection signal is sent to the terminal device through the antenna, and the first distance detection signal is used for the terminal device to determine a first error rate of the first distance detection signal and determine a first distance range between the terminal device and the terminal device according to the first error rate.
In a communication apparatus, a signal generation circuit generates a communication signal, and the communication signal is transmitted via an antenna. In the communication apparatus, a first attenuation circuit and a switch circuit are added, so that the terminal device can determine an accurate distance range in the case where the switch circuit connects the first attenuation circuit to the signal generation circuit. In the communication device, an original signal generating circuit is used for generating an initial distance detection signal, the initial distance detection signal is attenuated by the additionally arranged first attenuation circuit, and the attenuated signal is transmitted to the terminal equipment through the antenna, so that the terminal equipment can realize the distance detection, and the cost of the communication device for accurate distance detection is reduced.
With reference to the third aspect, in some possible implementations, the apparatus further includes: a processing circuit; the processing circuit is configured to send first indication information according to a received first indication signal, where sending the first indication signal is sent when the terminal device determines that a maximum value of the first distance range is smaller than a first preset distance.
The first instruction information may be, for example, unlock instruction information sent to the ECU. The ECU may unlock the vehicle door according to the unlock instruction information. The communication device, the ECU and the vehicle door may be located in the same vehicle.
With reference to the third aspect, in some possible implementations, the apparatus further includes a second attenuation circuit, where in a case that the second end of the switch circuit is connected to the second attenuation circuit, the second attenuation circuit is configured to reduce the power of the initial detection signal to obtain a second distance detection signal, and a second attenuation amount of the power of the initial detection signal by the second attenuation circuit is different from a first attenuation amount of the power of the initial detection signal by the first attenuation circuit; and the second distance detection signal is sent to the terminal equipment through the antenna, and the second distance detection signal is used for the terminal equipment to determine a second distance range with the terminal equipment.
With reference to the third aspect, in some possible implementations, the second attenuation amount is smaller than the first attenuation amount, and the apparatus further includes: a processing circuit; the processing circuit is configured to send second indication information according to a received second indication signal, where the second indication signal is sent when the terminal device determines that the minimum value of the second distance range is greater than or equal to a second preset distance.
With reference to the third aspect, in some possible implementation manners, the second distance range is determined by the terminal device according to a second error rate and second relationship information corresponding to the second attenuation circuit, where the second error rate is within a preset range, a maximum value of the preset range is smaller than 1, and a minimum value of the preset range is larger than 0, and the first relationship information is used to represent a correspondence between an error rate and a distance.
With reference to the third aspect, in some possible implementation manners, the first distance range is determined by the terminal device according to a first error rate and first relation information corresponding to the first attenuation circuit, where the first error rate is within a preset range, a maximum value of the preset range is smaller than 1, and a minimum value of the preset range is larger than 0, and the first relation information is used to indicate a correspondence between an error rate and a distance.
With reference to the third aspect, in some possible implementations, the antenna is a vehicle wireless communication V2X antenna.
With reference to the third aspect, in some possible implementation manners, diversity in the V2X antenna of the terminal device is used to receive the first distance detection signal, the V2X antenna of the terminal device further includes a primary set, the first distance detection signal is sent by the communication device in a first preset time period, and the first preset time period is a time period used by the primary set to send a signal.
With reference to the third aspect, in some possible implementations, the apparatus further includes a control circuit, where the control circuit is configured to control the first end of the switch circuit to be connected to one of the signal generation circuit or at least one attenuation circuit, and the at least one attenuation circuit includes the first attenuation circuit.
In a fourth aspect, a mobile device is provided, the mobile device comprising the communication device in any implementation manner of the second aspect, and the mobile device is a vehicle.
With reference to the fourth aspect, in some possible implementations, the mobile device further includes an electronic control unit ECU and a vehicle door, and the communication device further includes a processing circuit, where the processing circuit is configured to send first indication information to the ECU according to a received first indication signal, and the unlocking signal is sent when the terminal device determines that a maximum value of the first distance range is smaller than a first preset distance; and the ECU is used for unlocking the vehicle door according to the first indication message.
With reference to the fourth aspect, in some possible implementations, the processing circuit is further configured to send, to the ECU, second indication information according to the received second indication signal, where the locking indication information is used to instruct the ECU to control locking of the vehicle door, and the locking signal is sent when the terminal device determines that a minimum value of a second distance range from the communication device is greater than or equal to a second preset distance; and the ECU is used for locking the vehicle door according to the second indication information.
Specifically, the communication apparatus may further include a second attenuation circuit configured to reduce the power of the initial detection signal to obtain a second distance detection signal when the antenna is connected to the second terminal of the switch circuit, wherein a second attenuation amount of the power of the initial detection signal by the second attenuation circuit is different from a first attenuation amount of the power of the initial detection signal by the first attenuation circuit; the second distance detection signal is sent to the terminal equipment through the antenna, and the second distance detection signal is used for the terminal equipment to determine a second distance range with the communication device; the communication device further comprises a processing circuit, wherein the processing circuit is used for sending second indication information to the ECU according to the received second indication signal, the second indication information is used for indicating the ECU to control the locking of the vehicle door, and the second indication signal is sent when the terminal equipment determines that the minimum value of the second distance range is larger than or equal to a second preset distance.
In a fifth aspect, a communication method is provided, which is applied to a processing circuit in a communication device, where the communication device includes a switch circuit and a first attenuation circuit, a first end of the switch circuit is connected to the processing circuit, and a second end of the switch circuit is connected to the antenna by default;
the method comprises the following steps: receiving a trigger signal sent by terminal equipment; according to the trigger signal, controlling a second end of the switch circuit to be connected with the first attenuation circuit, wherein the first attenuation circuit is used for reducing the power of a distance detection signal received by the antenna to obtain a first attenuation signal, and the distance detection signal is sent by the terminal equipment; processing the first attenuation signal to obtain a first bit error rate of the first attenuation signal; and determining a first distance range between the terminal equipment and the terminal equipment according to the first error rate.
With reference to the fifth aspect, in some possible implementations, the method further includes: and sending first indication information under the condition that the maximum value of the first distance range is smaller than a first preset distance.
With reference to the fifth aspect, in some possible implementations, the communication apparatus further includes a second attenuation circuit, and the method further includes:
if the communication device meets a preset condition, controlling a second end of the switch circuit to be connected with a second attenuation circuit, wherein the second attenuation circuit is used for reducing the power of the distance detection signal to obtain a second attenuation signal, and a first attenuation amount of the second attenuation circuit to the power of the distance detection signal is different from a first attenuation amount of the first attenuation circuit to the power of the distance detection signal; processing the second attenuation signal to obtain a second bit error rate of the second attenuation signal; and determining a second distance range between the terminal equipment and the terminal equipment according to the second error rate.
With reference to the fifth aspect, in some possible implementations, the second attenuation amount is smaller than the first attenuation amount, and the method further includes: and sending second indication information under the condition that the minimum value of the second distance range is greater than or equal to a second preset distance.
With reference to the fifth aspect, in some possible implementation manners, the determining, according to the first error rate, a first distance range from the terminal device includes: and under the condition that the first error rate is within a preset range, determining the first distance range according to the first error rate and first relation information corresponding to the first attenuation circuit, wherein the first relation information is used for representing the corresponding relation between the error rate and the distance, and the maximum value of the preset range is less than 1 and the minimum value is greater than 0.
With reference to the fifth aspect, in some possible implementations, the antenna is a vehicle wireless communication V2X antenna.
With reference to the fifth aspect, in some possible implementation manners, the antenna is a diversity of a V2X antenna, the V2X antenna further includes a primary set, the distance detection signal is received by the diversity in a preset time period, and the preset time period is a time period used by the primary set to send a signal.
With reference to the fifth aspect, in some possible implementations, the communication apparatus further includes a control circuit, where the control circuit is configured to control one of the antenna or at least one attenuation circuit connected to the second terminal of the switch circuit, and the at least one attenuation circuit includes the first attenuation circuit.
In a sixth aspect, a method of communication is provided, the method comprising: receiving a first distance detection signal transmitted by the communication apparatus through an antenna, the communication apparatus including a signal generation circuit, a switch circuit, and a first attenuation circuit, a first end of the switch circuit being connected to the signal generation circuit, the first distance detection signal being obtained by the first attenuation circuit reducing a power of an initial detection signal generated by the signal generation circuit when a second end of the switch circuit is connected to the first attenuation circuit, the signal generation circuit being further configured to generate a communication signal, the communication signal being transmitted through the antenna when the second end of the switch circuit is connected to the antenna; a first range of distances to the first communication device is determined based on a first bit error rate of the first range detection signal.
With reference to the sixth aspect, in some possible implementations, the method further includes: and sending first indication information under the condition that the maximum value of the first distance range is smaller than a first preset distance.
With reference to the sixth aspect, in some possible implementations, the method further includes: receiving a second distance detection signal transmitted from the communication apparatus via the antenna, the communication apparatus further including a second attenuation circuit that reduces power of an initial detection signal when a second end of the switch circuit is connected to the second attenuation circuit, a second amount of attenuation of the power of the initial detection signal by the second attenuation circuit being different from a first amount of attenuation of the power of the initial detection signal by the first attenuation circuit; determining a second range of distances to the first communication device based on a second bit error rate of the second range detection signal.
With reference to the sixth aspect, in some possible implementations, the second attenuation amount is smaller than the first attenuation amount, and the method further includes: and sending second indication information under the condition that the minimum value of the distance range is greater than or equal to a second preset distance.
With reference to the sixth aspect, in some possible implementation manners, the second error rate is within a preset range, a maximum value of the preset range is smaller than 1, and a minimum value of the preset range is larger than 0, and determining a second distance range from the first communication device according to the second error rate of the second distance detection signal includes: and determining the second distance range according to the second error rate and second relation information corresponding to the second attenuation circuit, wherein the second relation information is used for representing the corresponding relation between the error rate and the distance.
With reference to the sixth aspect, in some possible implementation manners, the determining the distance range according to the first error rate of the first distance detection signal includes: and determining the distance range according to the first bit error rate and first relation information corresponding to the first attenuation circuit, wherein the first relation information is used for representing the corresponding relation between the bit error rate and the distance.
With reference to the sixth aspect, in some possible implementations, the first distance detection signal is received using a vehicle wireless communication V2X antenna.
With reference to the sixth aspect, in some possible implementations, the first distance detection signal is received by using diversity in the V2X antenna, the V2X antenna further includes a main set, the first distance detection signal is received by the diversity in a preset time period, and the preset time period is a time period for the main set to transmit a signal.
With reference to the sixth aspect, in some possible implementations, the first communication device is located in a vehicle.
With reference to the sixth aspect, in some possible implementations, the communication apparatus further includes a control circuit, where the control circuit is configured to control the first end of the switch circuit to be connected to one of the signal generation circuit or at least one attenuation circuit, and the at least one attenuation circuit includes the first attenuation circuit.
In a seventh aspect, a communication device is provided, which includes various means for implementing the method of any one of the fifth aspect or the sixth aspect.
In an eighth aspect, an electronic device is provided, which includes a processor and a communication interface, where the communication interface is used for information interaction between the electronic device and other devices, and when program instructions are executed in the at least one processor, the electronic device is enabled to implement the method in any one of the implementation manners of the fifth aspect or the sixth aspect.
The communication device may also include a memory for storing program instructions; when the program instructions are executed in the processor, the processor is configured to perform the method of any one of the implementations of the fifth aspect or the sixth aspect.
A ninth aspect provides a computer readable medium storing program code for execution by a device, the program code comprising instructions for performing the method of any one of the implementations of the fifth aspect or the sixth aspect.
A tenth aspect provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any one of the implementations of the fifth or sixth aspect.
In an eleventh aspect, a chip is provided, where the chip includes a processor and a data interface, and the processor reads instructions stored in a memory through the data interface to perform the method in any one implementation manner of the fifth aspect or the sixth aspect.
Optionally, as an implementation manner, the chip may further include a memory, where the memory stores instructions, and the processor is configured to execute the instructions stored on the memory, and when the instructions are executed, the processor is configured to execute the method in any one implementation manner of the fifth aspect or the sixth aspect.
The chip may be a field-programmable gate array (FPGA) or an application-specific integrated circuit (ASIC).
In a twelfth aspect, a communication system is provided, which includes a terminal device and the communication apparatus of any one of the first aspect or the third aspect.
Drawings
Fig. 1 is a functional block diagram of a vehicle to which an embodiment of the present application is applied.
Fig. 2 is a schematic view of a V2X scene of a vehicle provided in an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a communication device according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of another communication device provided in an embodiment of the present application.
Fig. 5 is a schematic flowchart of a vehicle door unlocking method provided in an embodiment of the present application.
Fig. 6 is a schematic structural diagram of another communication apparatus provided in the embodiment of the present application.
Fig. 7 is a schematic structural diagram of a communication device according to an embodiment of the present application in a case of performing communication.
Fig. 8 and 9 are schematic structural diagrams of a communication device according to an embodiment of the present application in a case of performing distance detection.
Fig. 10 is a graph of signal mildness versus bit error rate.
Fig. 11 is a schematic flowchart of a distance detection method according to an embodiment of the present application.
FIG. 12 is a schematic flow chart of another vehicle door unlocking method provided by the embodiment of the application.
Fig. 13 is a schematic structural diagram of another communication apparatus provided in the embodiment of the present application.
Fig. 14 is a schematic structural diagram of a communication device according to an embodiment of the present application in a case of performing communication.
Fig. 15 and 16 are schematic structural diagrams of a communication device according to an embodiment of the present application in a case of performing distance detection.
Fig. 17 is a schematic flow chart of another distance detection method provided in the embodiment of the present application.
Fig. 18 is a schematic structural diagram of an attenuation circuit provided in an embodiment of the present application.
Fig. 19 is a schematic structural diagram of another electronic device provided in the embodiment of the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a functional block diagram of a vehicle to which an embodiment of the present application is applied. Where the vehicle 100 may be a manually driven vehicle, or the vehicle 100 may be configured to be in a fully or partially autonomous driving mode.
In one example, the vehicle 100 may control the own vehicle while in the autonomous driving mode, and may determine a current state of the vehicle and its surroundings through human operation, determine a possible behavior of at least one other vehicle in the surroundings, and determine a confidence level corresponding to a likelihood of the other vehicle performing the possible behavior, control the vehicle 100 based on the determined information. While the vehicle 100 is in the autonomous driving mode, the vehicle 100 may be placed into operation without human interaction.
Various subsystems may be included in the vehicle 100, such as a travel system 110, a sensing system 120, a control system 130, one or more peripheral devices 140, as well as a power supply 160, a computer system 150.
Alternatively, vehicle 100 may include more or fewer subsystems, and each subsystem may include multiple elements. In addition, each of the sub-systems and elements of the vehicle 100 may be interconnected by wire or wirelessly.
Illustratively, the travel system 110 may include components for providing powered motion to the vehicle 100.
For example, the sensing system 120 may include several sensors that sense information about the environment surrounding the vehicle 100.
Illustratively, the control system 130 is a system that controls the operation of the vehicle 100 and its components.
As shown in fig. 1, vehicle 100 may interact with external sensors, other vehicles, other computer systems, or users through peripherals 140; among other things, peripheral devices 140 may include a wireless communication system 141.
As depicted in fig. 1, wireless communication system 141 may wirelessly communicate with one or more devices, either directly or via a communication network. For example, wireless communication system 141 may use 3G cellular communication; for example, code Division Multiple Access (CDMA), EVD0, global system for mobile communications (GSM)/General Packet Radio Service (GPRS), or 4G cellular communication such as Long Term Evolution (LTE); or, 5G cellular communication. The wireless communication system 141 may communicate with a Wireless Local Area Network (WLAN) using wireless fidelity (WiFi).
In some embodiments, the wireless communication system 141 may communicate directly with the devices using an infrared link, bluetooth, or ZigBee protocols (ZigBee); other wireless protocols, such as various vehicle communication systems, for example, wireless communication system 141 may include one or more Dedicated Short Range Communications (DSRC) devices that may include public and/or private data communications between vehicles and/or roadside stations.
As shown in fig. 1, a power supply 160 may provide power to various components of the vehicle 100. In one embodiment, power source 160 may be a rechargeable lithium ion battery or a lead acid battery. One or more battery packs of such batteries may be configured as a power source to provide power to various components of the vehicle 100.
In embodiments of the present application, the computer system 150 may control functions of the vehicle 100 based on inputs received from various subsystems (e.g., the travel system 110, the sensing system 120, and the control system 130). For example, the computer system 150 may utilize inputs from the control system 130 in order to control the brake unit 133 to avoid obstacles detected by the sensing system 120 and the obstacle avoidance system 136. In some embodiments, the computer system 150 is operable to provide control over many aspects of the vehicle 100 and its subsystems.
Alternatively, one or more of these components described above may be mounted or associated separately from the vehicle 100. For example, the memory 152 may exist partially or completely separate from the vehicle 100. The aforementioned components may be communicatively coupled together in a wired and/or wireless manner.
Optionally, the above components are only an example, in an actual application, components in the above modules may be added or deleted according to an actual need, and fig. 1 should not be construed as limiting the embodiment of the present application.
Alternatively, the vehicle 100 may be an autonomous automobile traveling on a road, and objects within its surrounding environment may be identified to determine an adjustment to the current speed. The object may be another vehicle, a traffic control device, or another type of object. In some examples, each identified object may be considered independently, and based on the respective characteristics of the object, such as its current speed, acceleration, separation from the vehicle, etc., may be used to determine the speed at which the autonomous vehicle is to be adjusted.
Optionally, the vehicle 100 or a computing device associated with the vehicle 100 (e.g., the computer system 150, memory 152 of fig. 1) may predict behavior of the identified objects based on characteristics of the identified objects and the state of the surrounding environment (e.g., traffic, rain, ice on the road, etc.).
Optionally, each identified object is dependent on the behavior of each other, and therefore, it is also possible to consider all identified objects together to predict the behavior of a single identified object. The vehicle 100 is able to adjust its speed based on the predicted behaviour of said identified object. In other words, the autonomous vehicle is able to determine that the vehicle will need to adjust (e.g., accelerate, decelerate, or stop) to a steady state based on the predicted behavior of the object. In this process, other factors may also be considered to determine the speed of the vehicle 100, such as the lateral position of the vehicle 100 in the road on which it is traveling, the curvature of the road, the proximity of static and dynamic objects, and so forth.
In addition to providing instructions to adjust the speed of the autonomous vehicle, the computing device may also provide instructions to modify the steering angle of the vehicle 100 to cause the autonomous vehicle to follow a given trajectory and/or to maintain a safe lateral and longitudinal distance from objects in the vicinity of the autonomous vehicle (e.g., cars in adjacent lanes on the road).
The vehicle 100 may be a car, a truck, a motorcycle, a bus, a boat, an airplane, a helicopter, a lawn mower, an amusement car, a playground vehicle, construction equipment, a trolley, a golf cart, a train, a trolley, etc., and the embodiment of the present invention is not particularly limited.
With the development of communication technology, the number of antennas required to be installed on a vehicle is increasing, and in the era of fifth generation mobile communication technology (5G), a fourth mobile communication technology (4G)/5G antenna, a Global Navigation Satellite System (GNSS) antenna, a vehicle networking (V2X) antenna, a Bluetooth Low Energy (BLE) antenna (or a Bluetooth (BT) antenna), a wireless fidelity (WiFi) antenna, a Remote Keyless Entry (RKE) antenna, and the like are required to be included in a vehicle-mounted antenna.
The 4G/5G antenna may be used in a vehicle to communicate with a cellular network, for example, to make a voice call. The GNSS antenna may be used for communicating with a positioning satellite for obtaining current position information of the vehicle. The WiFi antenna can be used for communication between a vehicle and a terminal device in the same WiFi environment so as to interact data. The BLE antenna can be used for communication between the vehicle and a terminal device using Bluetooth so as to interact data. The RKE antenna and the BT antenna can be used for short-distance data exchange between the vehicle and other devices by using a key through Bluetooth technology. The V2X antenna may be used for the vehicle to communicate with other devices.
FIG. 2 is a schematic diagram of a V2X scene of a vehicle.
The V2X technology is a basic and key technology for realizing intelligent automobiles, automatic driving and intelligent transportation systems. V2X may include Vehicle to internet (V2N), vehicle to Vehicle (V2V), vehicle to infrastructure (V2I), vehicle to pedestrian (V2P), and the like. The V2N communication is the most widely applied form of vehicle networking at present, and the main functions of the V2N communication are that a vehicle is connected to a cloud server through a mobile network, and the application functions of navigation, entertainment, theft prevention and the like provided by the cloud server are used. V2V communication may be used for inter-vehicle information interaction and alerting, the most typical application being for inter-vehicle collision avoidance safety systems. Through V2I communication, the vehicle can communicate with roads and even other infrastructures, such as traffic lights, roadblocks and the like, and acquire road management information such as traffic light signal time sequences and the like. V2P communication can be used for safety warning of pedestrians or non-motor vehicles on the road. In a V2P scenario, pedestrians are used as traffic participants, and mobile terminals are often used as V2X message transceivers.
Along with the vehicle is more and more intelligent, mobile terminal also can possess the car key function. The distance between the vehicle key and the vehicle is judged, so that the vehicle owner can realize automatic unlocking and locking of the vehicle door in a safe range, and the risk of potential safety hazards is reduced.
Bluetooth technology can be used for distance measurement between a vehicle and a vehicle key. The Bluetooth technology is a technology for wireless communication among devices, can realize short-distance (generally within 10 meters) data exchange among fixed devices, mobile devices and a building personal area network, can be connected with a plurality of devices, and overcomes the difficulty of data synchronization. Bluetooth communicates via the ISM band of 2.4 to 2.485GHz using Ultra High Frequency (UHF) radio waves.
The vehicle can receive a bluetooth signal sent by a Bluetooth (BT) vehicle key, and determine a distance between the vehicle and the bluetooth key according to a Received Signal Strength Indication (RSSI) of the bluetooth signal and a corresponding relationship between different RSSI values and positive distance correlations.
The positive correlation between the RSSI value and the distance is determined according to empirical parameters such as environment attenuation factors, and the distance determined by the RSSI value has low accuracy.
In order to solve the above problem, an embodiment of the present application provides a communication apparatus.
Fig. 3 is a schematic flowchart of a communication apparatus according to an embodiment of the present application.
Wireless communication system 141 may include an antenna and communication device 300. The communication apparatus 300 may be, for example, a communication Box (T-Box).
Wireless communication system 141 may also include a gateway. The gateway is a central node of in-vehicle communication, is connected with most of electric control units in the whole vehicle, supports various bus systems, can realize cross-domain function integration, basic routing communication and protocol translation, extraction and integration of in-vehicle data, safe deployment and provision of diagnosis communication service and internet service, and enables vehicle interconnection service to become practical.
A communication Box (T-Box), also called a vehicle information Box, is mainly used to provide interaction between a gateway and other traffic participants.
The communication device 300 includes a first attenuation circuit 311, a processing circuit 320, and a switching circuit 330.
The first attenuation circuit 311 is configured to reduce the power of a distance detection signal received by the antenna to obtain a first attenuated signal, where the distance detection signal is sent by the terminal device.
A first terminal of the switching circuit 330 is connected to the processing circuit 320.
The processing circuit 320 is configured to process the communication signal received by the antenna when the antenna is connected to the second terminal of the switch circuit 330. The communication signal may be transmitted by the terminal device used for transmitting the distance detection signal, or may be transmitted by other traffic participants in the V2X scene.
In a case that the second terminal of the switch circuit 330 is connected to the first attenuating circuit 311, the processing circuit 320 is further configured to process the first attenuated signal to obtain a first bit error rate of the first attenuated signal.
The processing circuit 320 is further configured to determine a distance range between the antenna and the terminal device according to the first error rate.
The communication apparatus 300 may communicate with the terminal device using an antenna. The processing circuit 320 is configured to process a communication signal received by the antenna. In the communication apparatus 300, the first attenuation circuit 311 and the switch circuit 330 are added, so that the communication apparatus 300 can calculate a first attenuation signal error rate obtained by attenuating the distance detection signal transmitted from the terminal device by the first attenuation circuit 311 when the switch circuit 330 is connected to the first attenuation circuit 311, and can determine the distance range to the terminal device based on the error rate.
The original processing circuit is used for processing the attenuation signal, the attenuation circuit and the switch circuit are added, the distance can be detected, and the cost of accurate distance detection of the communication device is reduced.
The distance range may be a distance value or a distance interval.
Specifically, when the first error rate is equal to the preset error rate, the distance range between the communication apparatus 300 and the terminal device may be determined to be a first preset distance; when the first error rate is smaller than the preset error rate, it may be determined that the distance range between the communication apparatus 300 and the terminal device is greater than a first preset distance; when the first error rate is greater than the preset error rate, it may be determined that the distance range between the communication apparatus 300 and the terminal device is less than the first preset distance.
The processing circuit 320 may be further configured to determine the distance range according to the first error rate and first relation information corresponding to the first attenuation circuit when the first error rate is within a preset range, where the first relation information is used to indicate a correspondence between an error rate and a distance, and a maximum value of the preset range is smaller than 1 and a minimum value of the preset range is larger than 0.
In the first relation information, the bit error rate and the distance may correspond one to one. The predetermined bit error rate may be within a predetermined range. The predetermined bit error rate may be a bit error rate corresponding to the first predetermined distance.
The bit error rate within a predetermined range is very sensitive to distance variations. Therefore, the distance range determined by the bit error rate has higher accuracy.
In the case that the first error rate is greater than the maximum value of the preset range, the processing circuit 320 may determine that the distance range with the communication device is greater than the maximum value of the distance in the first relationship information. In the case where the first error rate is smaller than the minimum value of the preset range, the processing circuit 320 may determine that the range of the distance to the communication device is smaller than the minimum value of the distance in the first relationship information.
It should be understood that the distance detection signal, the communication signal, may be received by the communication device 300 using an antenna. In some embodiments, the communication device 300 may include an antenna.
It should be understood that the distance range determined by the apparatus 300 is the distance range between the antenna receiving the distance detection signal and the antenna transmitting the distance detection signal. The antenna transmitting the distance detection signal is typically located on the terminal device, and the distance range determined by the apparatus 300 may also be understood as the distance range between the antenna receiving the distance detection signal and the terminal device. If the apparatus 300 is located closer to the antenna receiving the distance detection signal, for example, the apparatus 300 is located in the same device as the antenna receiving the distance detection signal, such as a mobile phone, a vehicle, etc., the distance range determined by the apparatus 300 can be understood as the distance range between the apparatus 300 or the device in which the apparatus 300 is located and the terminal device. The following description will take the distance between the apparatus 300 and the terminal device as an example.
The distance between the apparatus 300 and the terminal device may also be understood as the distance between an antenna for receiving the distance detection signal and the terminal device.
According to the distance range determined by the device 300, the vehicle can be operated to unlock the door, lock the door and the like. The device 300 may be located in a vehicle key or in a vehicle. The apparatus 300 is located in a vehicle, and the vehicle key may be a terminal device for transmitting the distance detection signal. The communication device 300 may be one or more of a vehicle, an in-vehicle device, a chip, etc.
The first attenuator circuit 311 is added to the device 300, and the volume of the communication device 300 increases. The space in the vehicle is large and the communication device 300 is disposed in the vehicle, facilitating the disposition of the first attenuation circuit 311. The device 300 may be located in a vehicle or other mobile device.
The processing circuit 320 is further configured to send the first indication information if the maximum value of the distance range is smaller than a first preset distance.
The first instruction information may be transmitted to an Electronic Control Unit (ECU). The processing circuit 320 may send the same or different first indication information for different ECUs.
The ECU may be located in the control system 130.
The ECU includes a processor (e.g., a Micro Controller Unit (MCU), etc.), a memory, and an input/output (I/O) interface. The ECU may also include one or more of an analog to digital converter (a/D), a shaping integrated circuit, a driver integrated circuit, and the like.
The first indication information can be used for indicating that the vehicle door and/or the vehicle window are unlocked and can also be used for indicating that an air conditioner or a vehicle is started. And the control vehicle door and window ECU can unlock the vehicle door and the vehicle window according to the received first indication information. The vehicle user can directly open the vehicle door and the vehicle window when approaching the vehicle, other operations are not needed, and convenience is improved.
And the ECU for controlling the air conditioner can control the air conditioner to be started after receiving the first indication information. Therefore, the air conditioner is started in advance before the user enters the vehicle, so that the temperature in the vehicle cabin can be adjusted to be suitable before the user enters the vehicle, and the user experience is improved.
The ECU that controls the start of the vehicle may control the start of the engine of the vehicle after receiving the first instruction information. In general, a vehicle using combustion of fuel such as natural gas, diesel oil, or gasoline as an energy source cannot be started immediately after an engine of the vehicle is started. When the distance between the user and the vehicle is shorter than the first preset distance, the engine of the vehicle is started, so that the waiting time of the user after entering the cabin can be reduced.
It should be understood that the first preset distances corresponding to door unlock, window unlock, air conditioner open, vehicle open may be the same or different.
The terminal device may also send the identity of the terminal device to the communication apparatus 300. May be carried in the first range detection signal, communication signal, or other signal. The processing circuit 320 may also send the identification of the terminal device to the ECU. In general, terminal devices used by different vehicle users are different. Different terminal device identifications may correspond to different control strategies of the ECU. Thereby allowing the environmental conditions in the cabin to be adjusted to the preferences or habits of the user prior to entering the vehicle cabin.
For example, an ECU for controlling the turning on of an air conditioner may set different target temperatures for the identities of different terminal devices. After receiving the first indication information and the identifier of the terminal device sent by the processing circuit 320, the ECU may turn on the air conditioner and set the air conditioner to the target temperature corresponding to the identifier of the terminal device.
The first indication may also be used to instruct the ECU to adjust the seat. Different seat shapes and positions can be set for different identifications of different terminal devices. After receiving the first indication information and the identifier of the terminal device, the ECU for controlling the seat in the vehicle cabin may adjust the seat to a shape and a position corresponding to the identifier of the terminal device.
The apparatus 300 may include a second attenuation circuit. The second attenuation circuit may be configured to reduce the power of the distance detection signal to obtain a second attenuated signal. The first attenuation amount of the power of the distance detection signal by the second attenuation circuit is different from the reduction amount of the power of the distance detection signal by the first attenuation circuit.
In a case that the second terminal of the switch circuit 330 is connected to the second attenuation circuit, the processing circuit 320 is further configured to process the second attenuated signal to obtain a second bit error rate of the second attenuated signal. The processing circuit 320 is further configured to determine the range based on the second bit error rate.
Specifically, the processing circuit 320 may be configured to determine the distance range according to the second error rate and second relation information corresponding to the second attenuation circuit when the second error rate is within a preset range, where the second relation information is used to indicate a correspondence between the error rate and the distance, and a maximum value of the preset range is smaller than 1 and a minimum value of the preset range is larger than 0.
In the case where the second error rate is greater than the maximum value of the preset range, the terminal device may determine that the range of the distance to the communication apparatus is greater than the maximum value of the distance in the second relationship information. In the case where the second error rate is smaller than the minimum value of the preset range, the terminal device may determine that the range of the distance to the communication apparatus is smaller than the minimum value of the distance in the second relationship information.
The processing circuit 320 may be further configured to send a second indication message if the minimum value of the distance range is greater than or equal to a second preset distance.
The processing circuit 320 may also send the identity of the terminal device.
The second indication may be sent to the ECU. The ECU may perform one or more of the following operations according to the second indication information: locking a vehicle door, locking a vehicle window, closing an air conditioner, extinguishing a vehicle, parking braking, and the like.
The operations on the same object may be performed by the same ECU or different ECUs. For example, an ECU may be used to control the unlocking and locking of the vehicle door. The operations for different objects may also be performed by the same ECU or by different ECUs.
Different operations may correspond to the same or different second indication information. The different operations may correspond to the same or different second preset distances.
For the operation of the same object, the second preset distance may be greater than the first preset distance. For example, the first preset distance corresponding to unlocking the door may be greater than the second preset distance corresponding to locking the door.
Next, the unlocking and locking of the door will be described as an example.
The second preset distance can be larger than the first preset distance, so that hysteresis control is formed, and repeated operation of unlocking and locking of the vehicle door caused by distance measurement errors is reduced.
The apparatus 300 may include a plurality of attenuation circuits, each attenuation circuit may be configured to reduce the power of the distance detection signal to obtain an attenuation signal corresponding to the attenuation circuit. The second terminal of the switching circuit 330 may be connected to the plurality of attenuation circuits in sequence. The processing circuit 320 may process the attenuation signal output by the attenuation circuit connected to the second end of the switch circuit 330 to obtain the error rate of the attenuation signal.
The order in which the second terminal of the switch circuit 330 is connected to the plurality of attenuation circuits may be predetermined or random.
The processing circuit 320 may determine, from the obtained plurality of error rates, an error rate with a size that falls within a preset range, and determine a distance range between the terminal device and the processing circuit according to the relationship information corresponding to the attenuation circuit connected to the second end of the switch circuit 330.
Different attenuation circuits correspond to different relationship information for representing a correspondence between the distance and the bit error rate.
When there are a plurality of error rates, the processing circuit 320 may determine the distance range according to any one of the error rates. Alternatively, the processing circuit 320 may also determine the distance corresponding to each of the error rates with the size falling within the preset range by using the error rate with each size falling within the preset range and the relationship information corresponding to the attenuation circuit connected to the second end of the switch circuit 320 when determining the error rate. The processing circuit 320 may calculate an average value for each distance corresponding to the bit error rate with a size falling within a preset range, and use the average value as the distance range.
The preset range may be, for example, 5% to 95%.
The different attenuation circuits have different reduction amounts of the power of the distance detection signal, so that the ranges of the distance detection signal which can be accurately detected by the different attenuation circuits are different. The apparatus 300 includes a plurality of attenuation circuits, thereby enabling accurate distance measurements over a wide range of distances. In particular, reference may be made to the description of fig. 6.
As shown in fig. 10, when the signal strength is large and is greater than P1, the bit error rate is 0; when the signal strength is between P1 and P2, the error rate decreases along with the increase of the signal strength; the signal intensity is small and is less than P2, and the error rate is 100%. The signal strength P1 is greater than P2. The signal strength range corresponding to the preset range of the bit error rate belongs to [ P1, P2].
The signal is transmitted in the space, and the attenuation of the signal strength in the space is positively correlated with the transmission distance. The signal strength of the distance detection signals transmitted by the terminal devices may be the same. Therefore, when the error rate of the attenuated signal attenuated by each attenuation circuit is within a preset range, the distance between the terminal device and the apparatus 300 may be different.
For example, when the distance between the terminal device and the apparatus 300 is in the range of [ Y0, Y1], the error rate of the attenuated signal obtained after the distance detection signal received by the antenna passes through the attenuation circuit 1 is in the preset range; when the distance between the terminal device and the apparatus 300 is in the range of [ Y2, Y3], the error rate of the attenuated signal obtained by the distance detection signal received by the antenna after passing through the attenuation circuit 2 is in the preset range.
In some embodiments, Y1 is less than Y2. When the apparatus 300 includes only one attenuation circuit, which is the attenuation circuit 1, if the error rate of the attenuated signal obtained through the attenuation circuit 1 is 0, it can be determined that the distance between the terminal device and the apparatus 300 is greater than Y1.
When the apparatus 300 only includes the attenuation circuit 1 and the attenuation circuit 2, the processing circuit 320 may determine the distance range between the terminal device and the apparatus 300 according to the error rate of the attenuation signal obtained through the attenuation circuit 1 and the error rate of the attenuation signal obtained through the attenuation circuit 2, so that the determined distance range is smaller, that is, the distance detection result is more accurate. For example, if the error rate of the attenuated signal obtained by the attenuation circuit 1 is 0 and the error rate of the attenuated signal obtained by the attenuation circuit 2 is 100%, it can be determined that the distance between the terminal device and the apparatus 300 is greater than Y1 and less than Y2. For another example, if the error rate of the attenuated signal obtained by the attenuation circuit 1 is 0 and the error rate of the attenuated signal obtained by the attenuation circuit 2 is 0, it can be determined that the distance between the terminal device and the apparatus 300 is greater than Y2.
In addition, when the error rate of the attenuated signal obtained by the attenuation circuit 1 is within the preset range, the processing circuit 320 may determine the distance value between the terminal device and the apparatus 300 according to the relationship information corresponding to the attenuation circuit 1. When the error rate of the attenuated signal obtained through the attenuation circuit 2 is within the preset range, the processing circuit 320 may determine the distance value between the terminal device and the apparatus 300 according to the relationship information corresponding to the attenuation circuit 2. Thus, by providing multiple attenuation circuits in the device 300, a greater range of precise distance values may be determined, improving the versatility of the device 300.
The number of distance detection signals received by the antenna may be plural. The distance detection signal may be transmitted periodically by the terminal device.
The time required for each attenuation circuit to reduce the power of the distance detection signal is very short and almost negligible. If each attenuation circuit performs a power reduction on the same distance detection to obtain each attenuation signal, the attenuation signals arrive at the processing circuit 320 at almost the same time, which poses a higher challenge to the processing capability of the processing circuit 320.
In the case where the respective distance detection signals are transmitted by the terminal device at different times, the processing of the respective attenuation signals by the processing circuit 320 may be performed at different times. Thus, the requirement for the processing capability of the processing circuit 320 is reduced, enabling cost savings.
The apparatus 300 may further include a control circuit for controlling an antenna or an attenuation circuit connected to the second terminal of the switching circuit 330.
When communication with other devices is required, the control circuit controls the second terminal of the switch circuit 330 to be connected to the antenna, and the communication signal received by the antenna is transmitted to the processing circuit 320. Processing circuit 320 processes communication signals received by the antenna.
The second terminal of the switching circuit may be connected to the antenna by default.
When the distance detection with the terminal device is required, the control circuit controls the second end of the switch circuit 330 to be connected with the first attenuation circuit 311, and the distance detection signal received by the antenna is attenuated by the attenuation circuit and then processed by the processing circuit 320. The processing circuit 320 calculates the error rate of the attenuated signal output by the attenuation circuit and determines the distance range to the terminal device according to the error rate.
When the processing circuit 320 determines that the communication signal received by the antenna is a trigger signal, the control circuit may control the second terminal of the switching circuit 320 to be connected to the first attenuation circuit 311. For example, when the processing circuit 320 determines that the communication signal received by the antenna is a trigger signal, the processing circuit 320 may send indication information to the control circuit to instruct the control circuit to control the second terminal of the switch circuit 320.
The trigger signal may be used to indicate a target in the control vehicle, for example, the trigger signal may be a control signal indicating door unlock, window unlock, air conditioner open, vehicle open, etc. Alternatively, the trigger signal may be a signal sent by the terminal device during the connection establishment between the terminal device and the apparatus 300.
The control circuit adjusts the object connected to the second terminal of the switch circuit 330, so that the communication device can flexibly switch the communication function and the distance detection function.
The processing circuit 320 may control the second terminal of the switch circuit 330 to connect to the second attenuator circuit via the control circuit if the communication device satisfies the predetermined condition.
Optionally, the preset condition of the communication device may be that when the vehicle door is in an unlocked state (i.e., a state after the vehicle door is unlocked), the vehicle window is in an unlocked state, the air conditioner is in an open state, and the parking brake is in a released state, and when the vehicle engine is in a starting state, the control circuit may control the second end of the switch circuit 330 to be connected to the second attenuation circuit.
It should be understood that the control circuit, switching circuit 330, attenuation circuit, and processing circuit 320 may be implemented by one or more chips. That is, the control circuit, the switch circuit 330, the attenuation circuits, and the processing circuit 320 may be provided on different chips, respectively, or a plurality of the control circuit, the switch circuit 330, the attenuation circuits, and the processing circuit 320 may be integrated on one chip. The embodiments of the present application do not limit this.
The switching circuit 330 may be a radio frequency switch, also referred to as a microwave switch.
The switching circuit 330 may include an electromechanical switch. An electromechanical switch is a switch based on electromagnetic induction. Electromechanical switches rely on mechanical contact as the switching mechanism.
The switching circuit 330 may also include solid state switches. Solid state switches, also referred to as contactless switches, include switches based on semiconductor technology electronic switching devices, such as metal-oxide-semiconductor field-effect transistors (MOSFETs) devices, diodes (diodes), bipolar transistors, etc.
The switch circuit 330 may be a single-pole-multiple-throw switch, and may transmit an output of any one of the at least one attenuation circuit or an output of the antenna to the processing circuit 320.
The antenna for receiving the distance detection signal may be a V2X antenna. That is, the distance detection signal may be a V2X signal. The power of the V2X signal is high, and can be applied to distance detection over a large distance range. V2X antennas can enable communication over a longer range (about 300 meters (m)). Through setting up reasonable decay circuit, can detect by the distance within 300 meters.
Using a V2X antenna as the antenna for receiving the distance detection signal allows the device 300 to be used over a wide range of distances.
The V2X antennas include a primary set and diversity. The primary set may be used to transmit or receive V2X signals and diversity may be used to receive V2X signals at the same time that the primary set receives V2X signals. Specifically, during a time period when the main set to which the apparatus 300 is connected transmits a V2X signal, the terminal device may transmit a distance detection signal, and the diversity to which the apparatus 300 is connected may receive the distance detection signal.
Thus, the influence of the distance detection on the transmission of the V2X signal can be reduced.
Fig. 4 is a schematic structural diagram of a communication device according to an embodiment of the present application.
Wireless communication system 141 may include an antenna and communication device 300. The communication device 300 may be, for example, a T-Box.
The communication device 400 includes a signal generation circuit 410, a switch circuit 430, and a first attenuation circuit 421.
The signal generation circuit 410 is configured to generate an initial detection signal and a communication signal.
A first terminal of the switch circuit 430 is connected to the signal generation circuit, and when a second terminal of the switch circuit is connected to an antenna, a communication signal is transmitted through the antenna.
The first attenuator circuit 421 is configured to, when the second terminal of the switch circuit is connected to the antenna, reduce the power of the initial detection signal to obtain a first distance detection signal.
The first distance detection signal is sent to the terminal equipment through the antenna, and the first distance detection signal is used for the terminal equipment to determine a first error rate of the first distance detection signal and determine a distance range between the antenna and the terminal equipment according to the first error rate.
In contrast to apparatus 300, apparatus 400 is disposed at the transmitting end of the distance detection signal. That is, the transmitting end attenuates the generated initial detection signal using an attenuation circuit. Therefore, the receiving end can detect the distance according to the error rate of the attenuated signal.
The first communication signal generated by the signal generation circuit 410 may be transmitted by using an antenna. The apparatus 400 is additionally provided with a first attenuation circuit 421 and a switch circuit 430, and the initial detection signal generated by the signal generation circuit 410 can be attenuated by the first attenuation circuit 421 to obtain a first distance detection signal. The first distance detection signal is sent to the terminal device through the antenna, so that the terminal device can determine the distance range between the antenna and the terminal device according to the error rate of the first distance detection signal.
The original signal generating circuit 410 for generating the communication signal is used to generate an initial detection signal, the attenuation circuit is added to attenuate the initial detection signal to obtain a first distance detection signal, and the original antenna for transmitting the communication signal is used to transmit the first distance detection signal, so that the receiving end of the first distance detection signal can perform accurate distance detection according to the error rate of the first distance detection signal. The attenuation circuit and the switch circuit are simple in structure, and the attenuation circuit and the switch circuit are additionally arranged, so that the cost influence on the communication device is small.
The distance range may be a distance value or a distance interval.
It should be appreciated that the first distance detection signal, the communication signal, may be transmitted to the terminal device using an antenna. The communication device 400 may include an antenna. Alternatively, the antenna may be located outside the communication apparatus 400, and the signal output by the communication apparatus 400 may be transmitted to the antenna. The distance range between the antenna and the terminal device may also be understood as the distance range between the apparatus 400 and the terminal device.
It should be understood that the first distance detection signal, the communication signal, may be received by the communication device 400 using an antenna. In some embodiments, the communication device 400 may include an antenna.
The apparatus 400 may be located in a vehicle or other terminal device. According to the distance range determined by the device 400, the vehicle can be operated to unlock the door, lock the door and the like. The device 400 may be located in a vehicle key or in a vehicle. The apparatus 300 is located in a vehicle, and the vehicle key may be a terminal device for receiving the first distance detection signal. The communication device 400 may be one or more of a vehicle, an in-vehicle device, a chip, etc.
The addition of the first attenuator circuit 421 to the device 400 increases the size of the communication device 400. The space in the vehicle is large and the communication device 400 is provided in the vehicle, facilitating the provision of the first damping circuit 421.
The apparatus 400 may also include processing circuitry. And the processing circuit is used for determining to unlock the vehicle door according to the received unlocking signal. The unlocking signal is sent by the terminal equipment under the condition that the maximum value of the distance range between the terminal equipment and the communication device is smaller than a first preset distance.
The terminal device may transmit a first indication signal to the communication apparatus 400 in a case where a distance from the communication apparatus 400 is less than a first preset value.
The apparatus 400 may receive the first indication signal using an antenna or other antenna to which the first attenuation circuit 421 is connected.
The communication device 400 may be located in a vehicle. The first indication signal may be, for example, an unlock signal. The terminal device may send an unlock signal to the communicator to instruct unlocking of the vehicle door. The unlock signal and the first distance detection signal may be transmitted using the same or different communication technologies. For example, the terminal device may transmit an unlock signal using bluetooth technology.
The communication device 400 may also include processing circuitry. The processing circuit may transmit the first indication information in accordance with the first indication signal. The first indication signal may carry the first indication information, or the processing circuitry may determine the first indication information from the first indication signal.
For example, the processing circuit may send the first instruction information to the plurality of ECUs according to the first instruction information. The first instruction information sent to the door control ECU may be used to instruct the door control ECU to control the unlocking of the door. The first instruction information sent to the air conditioner control ECU may be used to instruct the door control ECU to control the air conditioner to be turned on.
Fig. 4 illustrates that the apparatus 400 is located in a vehicle, and in some embodiments, the apparatus 400 may also be located in other terminal devices, and a terminal device that receives the first distance detection signal transmitted by the apparatus 400 may be located in the vehicle. In this case, the terminal device that receives the first distance detection signal transmitted by 400 transmits the first indication information to the plurality of ECUs in a case where it is determined that the distance to the communication apparatus 400 can be smaller than the first preset value.
When the first error rate is within the preset range, the distance range may be determined by the terminal device according to the first error rate and the first relation information corresponding to the first attenuation circuit. The maximum value of the preset range is smaller than 1, the minimum value of the preset range is larger than 0, and the first relation information is used for representing the corresponding relation between the error rate and the distance.
The bit error rate within a predetermined range is very sensitive to distance variations. Therefore, the distance range determined by the bit error rate has higher accuracy.
The apparatus 400 may also include a second attenuation circuit. The second attenuation circuit is used to reduce the power of the initial detection signal to obtain a second distance detection signal in case the second terminal of the switch circuit 430 is connected to the antenna. The second attenuation amount of the power of the initial detection signal by the second attenuation circuit is different from the first attenuation amount of the power of the initial detection signal by the first attenuation circuit 421.
And the second distance detection signal is sent to the terminal equipment through the antenna. The second distance detection signal is used for the terminal device to determine the distance range between the terminal device and the apparatus 400.
Specifically, in the case that the second error rate is within the preset range, the terminal device may determine the distance range according to the second error rate and the second relationship information corresponding to the second attenuation circuit. The second relation information is used for representing the corresponding relation between the error rate and the distance. In the case where the second error rate is greater than the maximum value of the preset range, the terminal device may determine that the range of the distance to the communication apparatus is greater than the maximum value of the distance in the second relationship information. In the case where the second error rate is smaller than the minimum value of the preset range, the terminal device may determine that the range of the distance to the communication apparatus is smaller than the minimum value of the distance in the second relationship information.
Typically, the second attenuation is less than the first attenuation. The apparatus 400 may also include processing circuitry. The processing circuit is configured to send second indication information according to a received second indication signal, where the second indication signal is sent when the terminal device determines that the minimum value of the distance range is greater than or equal to a second preset distance.
The second preset distance may be greater than the first preset distance, thereby forming hysteresis control and reducing repetitive operations caused by distance measurement errors.
The apparatus 400 may include a plurality of attenuation circuits, and the attenuation circuit connected to the second terminal of the switching circuit 430 may be configured to reduce the power of the initial detection signal. The second terminal of the switch circuit 430 may be sequentially connected to the plurality of attenuation circuits to obtain the distance detection signal output by each attenuation circuit. The different attenuation circuits reduce the power of the initial detection signal by different amounts. That is, the power of each distance detection signal is different.
Each distance detection signal is transmitted to the terminal device through the antenna. These distance detection signals may be used by the terminal device to determine the range of distances from the antenna.
The terminal device may calculate the bit error rate of each attenuated signal and determine the bit error rate of which the magnitude falls within a predetermined range. The order in which the second terminals of the switching circuits 430 are connected to the plurality of attenuation circuits may be predetermined. The terminal device may determine the attenuation circuit corresponding to the bit error rate with a size within a preset range in a preset order in which the second end is connected to the plurality of attenuation circuits. The terminal device may determine the distance range between the terminal device and the apparatus 400 according to the relationship information corresponding to the attenuation circuit and the bit error rate of the predetermined range.
Different attenuation circuits correspond to different relationship information for representing the correspondence between the distance and the error rate.
The different attenuation circuits have different reduction amounts of the power of the distance detection signal, so that the ranges of the distance detection signal which can be accurately detected by the different attenuation circuits are different. The apparatus 400 includes a plurality of attenuation circuits so that accurate distance measurements can be made over a wide range of distances. In particular, reference may be made to the description of fig. 12.
The plurality of range detection signals may be transmitted at different times. The distance detection signals are respectively sent at different times, so that the terminal device can receive and process the distance detection signals at different times, the requirement on the processing capacity of the terminal device is reduced, and the application universality of the device 400 is improved.
The apparatus 400 may also include control circuitry. The control circuit is used to control the first terminal of the switch circuit 430 to connect with the signal generating circuit 410 or an attenuation circuit.
When communication with another device is performed, the control circuit controls the first terminal of the switch circuit 430 to be connected to the signal generation circuit 410, and the signal generation circuit 410 generates a communication signal. Thus, the communication signal is transmitted via the antenna to other devices.
When the distance detection from the terminal device is required, the control circuit controls the first end of the switch circuit 430 to be connected to the attenuation circuit, and the signal generation circuit 410 generates an initial detection signal. Therefore, the initial detection signal is attenuated by the attenuation circuit, the distance detection signal obtained after attenuation is sent by the antenna and transmitted to the terminal equipment, and the terminal equipment determines the distance range.
The control circuit adjusts the object connected to the first end of the switch circuit 430, so that the communication apparatus 400 can flexibly switch the communication function and the distance detection function.
The control circuit controls the first terminal of the switching circuit 430 to be connected to the signal generating circuit 410 by default.
In some embodiments, in the case that the apparatus 400 receives the trigger signal transmitted by the terminal device, the control circuit may control the first terminal of the switch circuit 430 to be connected to the first attenuation circuit 421.
For example, the trigger signal may be a request signal. The apparatus 400 may receive a door unlock request sent by a terminal device. According to the door unlocking request, the control circuit controls the first end of the switch circuit 430 to be connected with the first attenuation circuit 421. Alternatively, the trigger signal may be a signal sent by the terminal device during the connection establishment between the apparatus 400 and the terminal device.
The control circuit may also acquire the status of the target. When the state of the target satisfies the preset condition, the control circuit may control the first terminal of the switch circuit 430 to be connected to the second attenuation circuit.
For example, the control circuit may acquire the state of the vehicle door. When the door is in the unlocked state, the control circuit may control the first terminal of the switch circuit 430 to be connected to the second attenuator circuit.
The switching circuit 430 may be a radio frequency switch, for example, an electromechanical switch or a solid state switch, etc.
It is to be understood that the control circuitry, switching circuitry 430, signal generation circuitry 410, attenuation circuitry, processing circuitry may be implemented by one or more chips. That is, the control circuit, the switch circuit 330, the signal generation circuit 410, the attenuation circuits, and the processing circuit may be provided on different chips, or a plurality of the control circuit, the switch circuit 430, the signal generation circuit 410, the attenuation circuits, and the processing circuit may be integrated on one chip. The embodiments of the present application do not limit this.
The antenna for transmitting the first distance detection signal may be a V2X antenna. That is, the first distance detection signal may be a V2X signal. The power of the V2X signal is high, and the first distance detection signal is transmitted by using the V2X antenna, which can be applied to a large distance range. In general, V2X antennas can enable communication over a long distance (about 300 meters (m)). Through setting up reasonable decay circuit, can detect the distance within 300 meters.
The V2X antennas include a primary set and diversity. The primary set may be used to transmit or receive V2X signals and diversity may be used to receive V2X signals. In general, in a time period when the primary set transmits the V2X signal, the diversity may stop detecting the signal and no longer receive the V2X signal.
To reduce the impact of range detection on other data transmissions, the terminal device may receive the first range detection signal while the second V2X primary set is transmitting communication signals, using the diversity of the V2X antennas in the terminal device. That is, the first distance detection signal may be received by the diversity of the V2X antennas in the terminal device for a preset time period, which may be a time period during which the main set of V2X antennas in the terminal device is used to transmit signals.
Fig. 5 is a schematic flowchart of a vehicle door unlocking method provided in an embodiment of the present application.
The door unlocking method 500 includes steps S501 to S511.
The terminal device and the vehicle may have been bluetooth paired. The terminal device and the vehicle which are paired through the Bluetooth have the secret key, and information can be encrypted and transmitted through the Bluetooth. For example, a user may bluetooth pair a vehicle and a terminal device after purchasing the vehicle or the terminal device.
In S501, the vehicle performs V2X broadcasting.
The vehicle may periodically transmit signals via the V2X antenna. The vehicle may turn on the V2X broadcast at start up. When the V2X broadcast is on, the vehicle may periodically transmit a V2X signal.
At S502, the terminal device receives a V2X signal transmitted by the vehicle.
Thereafter, the terminal device can perform V2X communication with the vehicle.
It should be appreciated that the V2X signal may carry an identification of the vehicle, such that the terminal device may identify the vehicle and perform V2X communication with the vehicle based on the identification of the vehicle.
In the case where the terminal device is within the coverage of the V2X signal of the vehicle, the terminal device can receive the V2X signal of the vehicle. It should be understood that terminal devices located within the coverage of the vehicle's V2X signal may each be in V2X communication with the vehicle.
At S503, the terminal device establishes a bluetooth connection with the vehicle.
When the terminal device is located in the Bluetooth signal coverage range of the vehicle, the vehicle can establish Bluetooth connection with the paired terminal device. The vehicle and the terminal device can then use this key to transmit information encrypted via bluetooth.
Typically, the coverage area of V2X signals is larger than that of bluetooth signals. The distance between the terminal equipment and the vehicle is gradually reduced, and the terminal equipment can receive the V2X signal sent by the waves when entering the coverage range of the V2X signal and performs V2X communication with the vehicle. Then, when the terminal device enters the coverage range of the Bluetooth signal of the vehicle, the terminal device can establish Bluetooth connection with the vehicle.
At S504, the terminal device performs user identity authentication.
For example, the terminal device may perform user identity authentication according to password authentication, face recognition, fingerprint recognition, and the like. If the user identity authentication is passed, S505 and S506 may be performed.
In some embodiments, the user of the terminal device may perform the user identity authentication by unlocking the screen of the terminal device. And under the condition that the screen of the terminal equipment is not locked, the user identity authentication can be not performed any more.
In step S504, the door can be unlocked without any person holding the terminal device approaching the vehicle, thereby improving the security.
In some embodiments, after S503, the terminal device may obtain a user indication indicating whether the door needs to be unlocked. For example, the terminal device may issue inquiry information to the user to unlock the door of the vehicle, and the inquiry information may be an image or sound. The user can send user indication to the terminal device according to the inquiry information. The user indication may be, for example, a user input at the terminal device, or may be a voice input.
Under the condition that the user indication is voice input, the terminal equipment can recognize the voice input in a voiceprint recognition mode and the like so as to perform user identity authentication.
In some embodiments, S504 may not be performed, and S505 and S506 may be performed after the bluetooth connection is established between the vehicle and the terminal device.
At S505, the terminal device broadcasts a distance detection signal by V2X.
That is, the distance detection signal is a V2X signal.
S505 may be performed multiple times. For example, the terminal device may periodically broadcast the distance detection signal over V2X.
At S506, the terminal device broadcasts an unlock signal through bluetooth.
The unlock signal is used to instruct the vehicle to unlock the door. The unlocking signal is transmitted to the vehicle through Bluetooth encryption.
It should be understood that the unlocking signal can only be broadcast by bluetooth after the terminal device has established a bluetooth connection with the vehicle. Therefore, the terminal device may proceed to S505 after S503. The vehicle may proceed to S507 after S503.
In S507, the vehicle performs distance detection based on the received distance detection signal.
The terminal device may perform S507 using the communication apparatus shown in fig. 6.
In the case where the vehicle determines that the distance from the terminal device is not less than or equal to X11, S505 and S507 may be performed again according to the distance detection signal received next time. That is, the vehicle may receive the distance detection signal again and perform distance detection based on the distance detection signal received again.
The distance detection result obtained through S507 may indicate whether the distance of the vehicle from the terminal device is less than or equal to X11.
If the distance between the vehicle and the terminal device is less than or equal to X11, S508 is performed.
At S508, the vehicle unlocks the doors according to the received unlock signal.
After the vehicle unlocks the vehicle door, the distance detection signal broadcasted by the terminal device through V2X is received again.
In S509, the vehicle performs distance detection based on the received distance detection signal.
The distance detection result obtained through S509 may indicate whether the distance between the vehicle and the terminal device is greater than X12.
The terminal device may perform S510 using the communication means shown in fig. 6. In general, X12 is greater than or equal to X11, so that hysteresis control can be realized, and repeated unlocking and locking of the vehicle door due to a distance detection error can be avoided.
If the vehicle determines that the distance from the terminal device is less than or equal to X12, S505 and S509 are performed again, and it is determined whether the distance from the terminal device is greater than X12 again based on the distance detection signal received again.
If the vehicle determines that the distance from the terminal device is greater than X12, S511 is performed.
At S510, the vehicle locks the door.
When the user is far away from the vehicle, the vehicle door is automatically closed, and safety can be provided.
The terminal device proceeds to S505 and S506 after establishing the bluetooth connection with the vehicle. Therefore, X11 will generally be set to be smaller than the signal transmission distance of bluetooth communication.
It should be understood that the distance X12 may be less than or equal to the signal transmission distance of the bluetooth communication, and the distance X12 may also be greater than the signal transmission distance of the bluetooth communication. That is, when the distance between the vehicle and the terminal device is X12, the vehicle may be located within the bluetooth coverage of the terminal device or may be located outside the bluetooth coverage of the terminal device.
In order to save energy, the distance between the vehicle and the terminal arrangement may no longer be detected during the travel of the vehicle.
The vehicle may transmit instruction information to the terminal device through bluetooth or V2X technology when starting or increasing the speed to the first preset speed to instruct the terminal device to stop transmitting the distance detection signal, S505 is not performed any more, and the vehicle stops performing S507, S509. The vehicle may transmit instruction information to the terminal device through bluetooth or V2X technology to instruct the terminal device to continue transmitting the distance detection signal when the vehicle stops or the speed decreases to the second preset speed, and the vehicle starts to proceed with S507, S509.
To achieve hysteresis control, the first preset speed may be greater than the second preset speed.
The terminal device may also detect the speed of the terminal device. And when the moving speed of the terminal equipment is greater than the first preset speed, stopping S505. When the moving speed of the terminal device is less than or equal to the second preset speed, S505 is started.
The vehicle may latch the doors when starting or increasing in speed to a first preset speed. After the car door is unlocked, the car door can be locked after a certain time. In the case of a locked door, the distance detection can no longer be carried out.
The vehicle may process the distance detection signal transmitted by the terminal device by using the communication apparatus shown in fig. 6, thereby determining the distance between the vehicle and the terminal device.
Fig. 6 is a schematic structural diagram of a communication device according to an embodiment of the present application.
The communication device 600 includes an attenuation circuit 611, an attenuation circuit 612, a direct connection circuit 613, a switch circuit 620, a processing device 630, and a control device 640.
A first end of the attenuation circuit 611 is connected to the V2X receiving wire for attenuating B1 the power of the signal received by the V2X receiving antenna. The attenuation of the signal power is the attenuation of the signal strength.
A first terminal of the attenuator circuit 612 is connected to the V2X receiving wire for attenuating B2 the power of the signal received by the V2X receiving antenna.
A first end of the direct connection circuit 613 is connected to the V2X receiving line, and is configured to transmit a signal received by the V2X receiving antenna. That is, the direct connection circuit 613 does not attenuate the signal received by the V2X receiving antenna.
A first terminal of the switch circuit 620 is connected to one of a second terminal of the attenuator circuit 611, a second terminal of the attenuator circuit 612, and a second terminal of the direct connection circuit 613. A second terminal of the switching circuit 620 is connected to a processing means 630.
The processing means 630 is used to process the received signal to determine the error rate of the information carried in the signal. The error rate of the information carried in a signal may also be understood as the error rate of the signal.
The control device 640 is used for controlling the first terminal of the switch circuit 620 to control the port to which the first terminal of the switch circuit 620 is connected.
The processing device 630 may also be referred to as a processing circuit. The processing device 630 may include a Surface Acoustic Wave (SAW), a Low Noise Amplifier (LNA), a Radio Frequency Integrated Circuit (RFIC), a processor, and the like.
The signal input to the processing means 630 is an analog signal. The SAW is used to filter the input signal. The LNA is used to power amplify an input signal and reduce the proportion of noise. The RFIC is used to convert an input analog signal into a digital signal. The processor is used for processing the digital signal, and the processor may be a digital signal processor (digital signal processor), for example.
When the first terminal of the switch circuit 620 is connected to the second terminal of the direct connection circuit 613, the V2X signal received by the V2X receiving antenna is directly transmitted to the processing device 630 without being attenuated. The processing device 630 may determine whether the V2X signal is abnormally transmitted according to an error rate of information carried by the V2X signal that is not attenuated. Sending a confirmation instruction to the terminal equipment under the condition that the error rate of information carried by the V2X signal which is not attenuated is smaller than or equal to a preset value; when the error rate is higher and greater than the preset value, the vehicle may send a retransmission instruction to the terminal device, or no longer send a confirmation instruction, so as to instruct the terminal device to send the information carried in the V2X signal again.
As shown in fig. 7, when V2X communication is performed, the control device 640 controls the first terminal of the switch circuit 620 to be connected to the second terminal of the direct connection circuit 613. The processing device 630 may process the V2X signal without attenuation by the attenuation circuit.
In order to perform S507 and S509, the control device 640 controls the first end of the switch circuit 620 to be connected to the attenuation circuit 611 or the attenuation circuit 612 in a period in which the terminal device broadcasts the distance detection signal by V2X.
When the first terminal of the switch circuit 620 is connected to the second terminal of the attenuator circuit 611, the V2X signal received by the V2X receiving antenna is attenuated by B1 and then transmitted to the processing device 630. The processing device 630 may determine the bit error rate of the V2X signal after attenuation B1.
When the first terminal of the switch circuit 620 is connected to the second terminal of the attenuator circuit 612, the V2X signal received by the V2X receiving antenna is attenuated by B2 and then transmitted to the processing device 630. The processing device 630 may determine the bit error rate of the V2X signal after attenuation B2.
In the case where the first terminal of the switch circuit 620 is connected to the second terminal of any one of the attenuation circuits 611 and 612, the signal strength PR1 of the V2X signal transmitted to the processing device 630 can be expressed as:
PR1=A1-Bn-C1
wherein, A1 is the received signal strength of the V2X receiving antenna, bn is the attenuation of the attenuation circuit, bn may be B1 or B2, and C1 is the remaining path loss. The fluctuation of the remaining path loss C1 is small and can be regarded as a constant value. Ideally C1 is 0.
The bit error rate, which may also be referred to as a Bit Error Rate (BER), is used to indicate the ratio of the number of error bits to the total number of bits transmitted over a period of time, and is an indicator of the accuracy of data transmission.
The processing device processes the signal to obtain the error rate of the information carried in the signal. As shown in fig. 10, when the signal strength is large and is greater than P1, the error rate is 0; when the signal strength is between P1 and P2, the error rate is reduced along with the increase of the signal strength; the signal intensity is small and is less than P2, and the error rate is 100%. The signal strength P1 is greater than P2.
That is, if the signal strength is between P1 and P2, the signal strength is inversely related to the bit error rate.
In general, a terminal device transmits a V2X signal at a constant signal strength. The signal is transmitted in the space, and the attenuation of the signal strength in the space is positively correlated with the transmission distance.
Therefore, the vehicle, as a receiving end of the V2X signal, attenuates the V2X signal received by the V2X antenna by using the attenuation circuit so that the error rate of the attenuated V2X signal is within a preset range. The signal strength of the attenuated V2X signal may be determined using a negative correlation between the signal strength and the bit error rate. The minimum value of the preset range is greater than 0, and the maximum value of the preset range is less than 100%. The minimum value of the preset range may be 2%, 3%, 5%, 10%, etc. The maximum value of the preset range may be 98%, 97%, 95%, 90%, etc.
According to the signal intensity PR1 of the attenuated V2X signal, the attenuation value Bn of the signal intensity by the attenuation circuit and the emission signal intensity PT of the V2X signal, the attenuation value P3 of the V2X signal transmitted in the space can be determined. The attenuation P3 of the V2X signal transmitted in space can be expressed as:
P3=PT-(PR1+Bn+C1)
according to the positive correlation relationship between the attenuation of the signal strength in the space and the transmission distance, the transmission distance corresponding to the attenuation size P3 of the V2X signal transmitted in the space, that is, the distance between the terminal device and the vehicle can be determined.
Compared with the mode of determining the distance according to the RSSI of the signal sent by the terminal equipment, the distance between the terminal equipment and the vehicle is determined by utilizing the error rate of the signal, and the distance accuracy is higher.
The corresponding relation information of each attenuation circuit can be established according to the empirical value, and the corresponding relation information of each attenuation circuit is used for representing the corresponding relation between the error rate and the distance under the condition of adopting the attenuation circuit.
The terminal equipment transmits the V2X signal at different distances. For each distance, the communication device 600 of the vehicle attenuates the received V2X signal using the respective attenuation circuit and determines the error rate of the attenuated V2X signal. And in the error rate meeting the preset range, recording the distance corresponding to different error rates for each attenuation circuit, thereby establishing the corresponding relation information of each attenuation circuit condition. In order to reduce the difficulty of subsequent processing, in general, when the relationship information is established, the preset ranges of the error rates corresponding to each attenuation circuit may be the same.
The remaining path loss C1 affects the actually measured error rate. That is, the relationship information corresponding to each attenuation circuit established according to the empirical value covers the influence of the rest of the path loss C1 on the bit error rate.
By utilizing the corresponding relation between the error rate and the distance under the condition of different attenuation circuits, distance detection can be carried out, and the distance between the vehicle and the terminal equipment can be determined.
In order to increase the range of distance detection, the number of attenuation circuits may be increased. Different attenuation circuits are used for attenuating the V2X signal with different signal strength magnitudes.
It should be understood that different attenuation circuits correspond to different distance detection ranges. For example, the attenuation circuit 611 detects a distance in a range [ Y0, Y1], and Y0 is smaller than Y1. When the distance between the terminal device and the vehicle is between Y0 and Y1, the V2X receiving antenna in the vehicle receives the V2X signal sent by the terminal device, the attenuation circuit 611 is used for attenuating the V2X signal sent by the terminal device, and the error rate of the attenuated V2X signal is in a preset range. Therefore, the vehicle can detect the distance between the vehicle and the terminal equipment according to the V2X signal sent by the terminal equipment by using the corresponding relation between the error rate and the distance under the attenuation circuit 611. The distance corresponding to the maximum value of the preset range of the error rate is Y1, and the distance corresponding to the minimum value of the preset range of the error rate is Y0.
The attenuation circuit 611 detects a distance in the range [ Y0, Y1], and the attenuation circuit 612 detects a distance in the range [ Y2, Y3], and Y2 is smaller than Y3. It should be appreciated that the amount of reduction in signal strength by attenuation circuit 612 is less than the amount of reduction in signal strength by attenuation circuit 611, i.e., B2 is less than B1.
Y2 may be equal to Y1, the vehicle is able to make a distance determination for terminal devices that are between Y0 and Y3. Y2 may also be slightly less than Y1.
In the case where Y2 is greater than Y1, if the vehicle attenuates the V2X signal transmitted by the terminal device by using the attenuation circuit 612, the error rate of the attenuated V2X signal is smaller than the minimum value of the preset range, and in the case where the vehicle attenuates the V2X signal transmitted by the terminal device by using the attenuation circuit 611, the error rate of the attenuated V2X signal is greater than the maximum value of the preset range, it can be determined that the distance between the terminal device and the vehicle belongs to (Y1, Y2). If the bit error rates of the attenuated V2X signals obtained by the attenuation circuit 612 and the attenuation circuit 611 are both smaller than the minimum value of the preset range, it may be determined that the distance between the terminal device and the vehicle is smaller than Y0. If the bit error rate of the attenuated V2X signal obtained by the attenuation circuit 612 is greater than the maximum value of the preset range, it may be determined that the distance between the terminal device and the vehicle is less than Y3.
The communications apparatus 600 may be configured to perform S507 and S509 of the method 500. The distance detection range [ Y0, Y1] corresponding to the attenuation circuit 611 may include X11, or [ Y0, Y1] may include X11 and X12.
S507 may be performed using the attenuation circuit 611 if the distance detection range [ Y0, Y1] corresponding to the attenuation circuit 611 includes only X11. In a period in which the terminal device broadcasts the distance detection signal by V2X after performing S503 or S504, that is, in a period in which S505 is performed before performing S507, the control means 640 may control the first terminal of the switch circuit 620 to be connected to the second terminal of the attenuation circuit 611, as shown in fig. 8. For example, after receiving the bluetooth broadcast unlock signal of the terminal device at S506, the control device 640 may control the first terminal of the switch circuit 620 to be connected to the second terminal of the attenuator circuit 612.
Fig. 11 is a schematic flowchart of a distance detection method according to an embodiment of the present application.
S507 may specifically include S5071 and S5072.
When the first terminal of the switch circuit 620 is connected to the second terminal of the attenuation circuit 611, the attenuation circuit 611 is configured to attenuate the distance detection signal received by the V2X antenna to obtain a first attenuated signal.
When the attenuation circuit 611 is used, the error rate corresponding to the distance X11 is E11.
At S5071, the processing device 630 checks the first attenuated signal to determine the bit error rate of the first attenuated signal.
The information carried in the distance detection signal sent by the terminal device may be preset information. The processing circuit 630 may compare information in the first attenuated signal with preset information to determine the bit error rate of the first attenuated signal.
Or, the first distance detection signal sent by the terminal device carries a check code. The processing circuit 630 may check information in the received first attenuated signal based on the check code to determine the bit error rate of the first attenuated signal.
At S5072, processing device 630 determines a distance range to the terminal device according to a magnitude relationship between the error rate of the first attenuated signal and the error rate E11 corresponding to the distance X11.
When the error rate is greater than E11, it may be determined that the distance between the terminal device and the vehicle is greater than X11; when the error rate is less than or equal to E11, it may be determined that the distance between the terminal device and the vehicle is less than or equal to X11.
The distance detection range Y2, Y3 for attenuation circuit 612 may include X12. S509 may be performed using the attenuator circuit 612 in a similar manner as S507.
After the vehicle unlocks the doors at S508, the vehicle may begin distance detection using the attenuation circuit 612. I.e., the time period before S509 in which the terminal device broadcasts the distance detection signal by V2X, i.e., the time period after S508 and S505, the control means 640 may control the first terminal of the switch circuit 620 to be connected to the second terminal of the attenuator circuit 612, as shown in fig. 9.
The vehicle may latch the doors when starting or increasing in speed to a first preset speed. After the door is unlocked, the door can be locked after a certain period of time. In the event of a vehicle door closure, the distance detection can no longer be carried out.
The control device 640 may control the first terminal of the switch circuit 620 to be connected to the second terminal of the attenuator circuit 612 when the door is in the unlocked state. The control device 640 may acquire the state of the door. Alternatively, the processing device 630 may obtain the state of the vehicle door and instruct the control device 640 to control the first terminal of the switch circuit 620 to be connected to the second terminal of the attenuator circuit 612 when the vehicle door is in the unlocked state.
When the first terminal of the switch circuit 620 is connected to the second terminal of the attenuation circuit 612, the attenuation circuit 612 is configured to attenuate the distance detection signal received by the V2X antenna to obtain a second attenuated signal.
When the attenuation circuit 611 is used, the error rate corresponding to the distance X12 is E12.
The processing means 630 may check the second attenuated signal to determine the bit error rate of the second attenuated signal. The processing device 630 may determine the distance range to the terminal device according to the magnitude relationship between the error rate of the second attenuated signal and the error rate E12 corresponding to the distance X12.
If the distance detection range [ Y0, Y1] to which the attenuation circuit 611 corresponds includes X11 and X12, the attenuation circuit of the communication apparatus 600 may include only the attenuation circuit 611, without including the attenuation circuit 612. From the correspondence between the error rate and the distance of the attenuation circuit 611, it can be determined that the error rate for the distance X11 is E11 and the error rate for the distance X12 is E12 when the attenuation circuit 611 is used. In S507 or S510, the control device 640 may control the first terminal of the switch circuit 620 to be connected to the second terminal of the attenuation circuit 611.
In proceeding to S507, the processing device 630 may determine whether the error rate of the input signal is less than or equal to E11, thereby determining whether the distance between the terminal device and the vehicle is less than or equal to X11. If the processing device 630 determines that the distance between the terminal device and the vehicle is less than or equal to X11, the processing device 630 may send an unlock instruction to an Electronic Control Unit (ECU) to instruct the ECU to unlock the vehicle door.
In S510, the processing device 630 may determine whether the error rate of the input signal is greater than E12, thereby determining whether the distance between the terminal device and the vehicle is greater than X12. If the processing means 630 determines that the distance between the terminal device and the vehicle is greater than X12, the processing means 630 may send a lock instruction to the ECU instructing the ECU to lock the vehicle door.
In order to avoid an erroneous operation, in the case where the first end of the switch circuit 620 is connected to the direct-connection circuit 613, that is, the signal received by the V2X reception antenna is transmitted to the processing device 630 via the direct-connection circuit 613, no information may be transmitted to the ECU.
The control device 640 may control the first end of the switch circuit 620 to be connected to the attenuation circuit 611 and the attenuation circuit 612 only when the vehicle detects the distance to the terminal device, that is, only when S507 and S510 are performed.
V2X antennas in vehicles may include main set (main) and diversity (division). The main set is used for receiving and transmitting V2X signals, and the diversity is used for receiving V2X signals. In general, diversity is in an idle state during a time period when the primary set transmits V2X signals. Normally, when the primary set transmits V2X signals, diversity is turned off. An example of the resource allocation for V2X antennas in a vehicle is shown in table 1.
TABLE 1
Figure BDA0003232590210000251
Different sub-frames (subframes) are used to represent different time domain resources and different sub-bands are used to represent different frequency domain resources. RX denotes an antenna for receiving signals and TX denotes an antenna for transmitting signals. It should be understood that table 1 is merely an example of the V2X antenna resource allocation of a vehicle, and the number and location of the sub-frames specifically used for transmitting signals may be specifically allocated according to the application environment.
When the V2X antenna in the vehicle is used to receive the distance detection signal and the vehicle processes the received distance detection signal, the V2X antenna in the vehicle may employ the resource allocation as shown in table 2.
TABLE 2
Figure BDA0003232590210000252
Figure BDA0003232590210000261
Diversity can be used as a V2X receive antenna in the case of distance detection. In the subframe in which the main set performs signal transmission, the diversity is used to receive the distance detection signal. Thus, the impact of distance detection on resource allocation is reduced.
The sub-band used by the main set for signal transmission and the sub-band used by the diversity for receiving the distance detection signal may be different, so as to avoid affecting the transmission of other V2X signals. That is, the frequency division method can be used to avoid the interference between the distance detection signal received in diversity and the signal transmitted by the main set. For example, subframe 2 is a subframe in which the primary set is used for signal transmission. In sub-frame 2, the primary set transmits signals in sub-band 3, and diversity receives range detection signals in one or more of sub-bands 1, 2, 4, 5. That is, in subframe 2, the terminal device may transmit the range detection signal through one or more of subbands 1, 2, 4, 5.
In sub-frame 2, the control device 640 may control the first terminal of the switch circuit 620 to be connected to the second terminal of the attenuator circuit 611 or the second terminal of the attenuator circuit 612. The control device 640 may control the first terminal of the switch circuit 620 to be connected to the second terminal of the direct connection circuit 613 in the sub-frame 0, the sub-frame 1, and the sub-frames 3 to 9.
The communication device 600 may further include more attenuation circuits, and the control device 640 may control the switch circuit 620 to be sequentially connected to each attenuation circuit, so that the V2X signal attenuated by the attenuation circuit is transmitted to the processing device 630 to calculate the error rate of the attenuated V2X signal.
Thus, the distances X11, X12 can be set flexibly. It should be appreciated that in the method 500, the distances X11, X12 may be preset. The user can adjust the distances X11, X12. When the user adjusts the distances X11 and X12, the user can select the distances X11 and X12 within the accurate distance detection range of the communication device 600.
The accurate distance detection range of the communication apparatus 600 may include the distance value in the relationship information corresponding to each attenuation circuit. That is, the accurate distance detection range of the communication apparatus 600 may include the distance section in the relationship information corresponding to each attenuation circuit.
In some embodiments, direct connection circuitry 613 may also be used to determine distance detection. When the first end of the switch circuit 620 is connected to the direct connection circuit 613, the processing device 630 processes the V2X signal to determine the error rate of the V2X signal. The distance detection may be optimized according to the error rate of the V2X signal and the corresponding relationship between the error rate and the distance corresponding to the direct connection circuit 613.
The terminal device transmits distance detection signals at positions located at distances L1, L2, L3, and L4 from the vehicle, respectively. The vehicle attenuates the received distance detection signals sequentially by using the respective attenuation circuits, and determines the error rate of the attenuated distance detection signals, as shown in table 3. The attenuation amounts of the respective attenuation circuits to the distance detection signals are B1 to Bn, and B1 to Bn are sequentially increased.
TABLE 3
Figure BDA0003232590210000262
When the distance between the terminal equipment and the vehicle is L1, and the vehicle attenuates the received distance detection signals by utilizing attenuation circuits with attenuation amounts from B1 to Bn-2, the error rates of the attenuated distance detection signals are all 0; when the vehicle attenuates the distance detection signal by using an attenuation circuit with the attenuation quantity Bn, the error rate of the attenuated distance detection signal is 100%; when the distance detection signal is attenuated by the attenuation circuit with the attenuation quantity Bn-1, the error rate of the attenuated distance detection signal is N1. N1 may be within a preset range. The minimum value of the preset range is greater than 0, and the maximum value of the preset range is less than 100%. The vehicle can determine the distance L1 between the terminal device and the vehicle by utilizing the corresponding relation between the error rate and the distance in the preset range under the attenuation circuit of the attenuation Bn-1.
The error rates N2, N3 and N4 are all larger than 0 and less than or equal to 100 percent and all belong to preset ranges. The distances L1 to L4 increase in sequence, and as shown in table 3, L1 to L4 may belong to distance detection ranges corresponding to different attenuation circuits, respectively. As the distance between the terminal device and the vehicle increases, the attenuation amount of the attenuation circuit in which the error rate of the attenuated distance detection signal is within the preset range increases. The minimum value of the preset range may be 2%, 3%, 5%, 10%, etc. The maximum value of the preset range may be 98%, 97%, 95%, 90%, etc.
Fig. 12 is a schematic flowchart of a vehicle door unlocking method provided in an embodiment of the present application.
In contrast to method 500, in door unlock method 800, the vehicle transmits an attenuated signal and the terminal device performs distance detection based on the attenuated signal. The attenuation signal vehicle attenuates the V2X signal and then sends the signal.
See description of method 500 for S501-S504.
After S504, S805 is performed.
At S805a, the vehicle broadcasts a distance detection signal 1 by V2X.
Unlike the distance detection signal transmitted from the terminal device in S505 of method 500, the distance detection signal 1 transmitted from the vehicle in S805 is attenuated. The distance detection signal is a V2X signal. The vehicle can generate the distance detection signal 1 using the communication device 900 shown in fig. 12.
The vehicle may broadcast the distance detection signal 1 periodically. That is, S805a may be performed periodically.
At S806, the terminal device performs distance detection based on the distance detection signal 1.
The distance detection result is used to indicate whether the distance of the terminal device from the vehicle is less than or equal to X21.
In the case where the distance from the terminal device to the vehicle is greater than X21, S805 and S806 may be performed again, and the terminal device newly determines whether the distance from the vehicle is less than or equal to X21 using the distance detection signal 1 received again.
If the distance between the terminal device and the terminal device is less than or equal to X21, S506 is performed.
At S506, the terminal device broadcasts an unlock signal through bluetooth.
After the vehicle receives the unlock signal through bluetooth, S508 is performed.
At S508, the vehicle unlocks the doors.
After the door is unlocked, the vehicle proceeds to S809.
At S805b, the vehicle broadcasts the distance detection signal 2 by V2X.
Similarly to the distance detection signal 1 transmitted by the vehicle in S805a, the distance detection signal 2 transmitted by the vehicle in S809 is also attenuated.
At S809, the terminal device performs distance detection from the received distance detection signal 2.
The distance detection result may indicate whether the distance of the terminal device from the vehicle is greater than X22.
If the distance between the terminal device and the vehicle is less than or equal to X22, S805b and S809 are executed again, and distance detection is performed according to the attenuation signal received again.
If the distance between the terminal device and the vehicle is greater than X22, S811 is performed.
At S811, the terminal device broadcasts the blocking signal through bluetooth.
The vehicle receives the lock signal transmitted from the terminal device, and then proceeds to S511.
At S510, the vehicle locks the doors according to the received lock signal.
To achieve hysteresis control, the distance X21 is less than X22.
The unlocking signal and the locking signal are both sent by Bluetooth, so that the required distances X21 and X22 are both smaller than the signal transmission distance of Bluetooth communication. That is, when the vehicle is at a distance X22 from the terminal device, the vehicle may be located within the bluetooth coverage of the terminal device.
Fig. 13 is a schematic structural diagram of a communication apparatus according to an embodiment of the present application.
The communication device 900 may be located in a vehicle. The communication device 900 includes an attenuation circuit 911, an attenuation circuit 912, a direct connection circuit 913, a switch circuit 920, a signal generation device 930, and a control device 940.
The signal generating means 930 is used to generate an initial detection signal.
A second terminal of the switch circuit 920 is connected to the signal generating device 930, and a first terminal of the switch circuit 920 is connected to a second terminal of the attenuation circuit 911, a second terminal of the attenuation circuit 912, or a second terminal of the direct connection circuit 913, for transmitting the initial detection signal to at least one of the attenuation circuit 911, the attenuation circuit 912, or the direct connection circuit 913.
A first terminal of the attenuator circuit 911, a first terminal of the attenuator circuit 912, and a first terminal of the direct connection circuit 913 are all connected to the V2X transmitting antenna. The attenuation circuit 911 is used to attenuate the power of the initial detection signal by B1. The attenuation circuit 912 is used to attenuate the power of the initial detection signal by B2. The direct connection circuit 913 does not attenuate the initial detection signal.
The V2X transmitting antenna transmits an initial detection signal through the attenuation circuit 911, the attenuation circuit 912, or the direct connection circuit 913.
The signal generating means 930 may also be referred to as a signal generating circuit. The signal generating device 930 may include a Surface Acoustic Wave (SAW), a Power Amplifier (PA), a Radio Frequency Integrated Circuit (RFIC), a processor, and the like.
The processor is used for generating a digital signal. RFICs are used to convert digital signals to analog signals. The PA is used to power amplify an input signal. SAW is used for filtering.
The control device 640 is used for controlling the first end of the switch circuit 620 to control the port connected with the first end.
In the case where the first terminal of the switch circuit 920 is connected to the second terminal of the direct connection circuit 913, the V2X signal generated by the signal generation device 930 is directly transmitted to the V2X transmitting antenna without being attenuated.
When transmitting the communication signal, the first terminal of the switch circuit 920 is connected to the second terminal of the direct connection circuit 913, as shown in fig. 14. A first terminal of the switch circuit 920 may default to a second terminal of the direct connection circuit 913.
When the apparatus 900 performs V2X communication with other devices, the signal generating apparatus 930 may generate a communication signal, and the communication signal is transmitted to the V2X transmitting antenna through the direct connection circuit 913. The transmitting antenna transmits the communication signal.
In order to perform S805a and S805b, the control device 640 controls the first terminal of the switch circuit 620 to be connected to the attenuator circuit 611 or the attenuator circuit 612. The signal generating means 930 generates an initial detection signal.
When the control device 940 controls the first terminal of the switch circuit 920 to be connected to the second terminal of the attenuation circuit 911, the initial detection signal generated by the signal generation device 930 is attenuated by D1, transmitted to the V2X transmitting antenna, and transmitted through the V2X transmitting antenna.
After the control device 940 controls the first terminal of the switch circuit 920 to be connected to the second terminal of the attenuation circuit 912, the initial detection signal generated by the signal generation device 930 is transmitted to the V2X transmitting antenna after being attenuated by D2, and is transmitted through the V2X transmitting antenna.
And the terminal equipment receives and processes the initial detection signal, and calculates the error rate so as to determine the distance between the terminal equipment and the vehicle.
In a case where the first terminal of the switch circuit 920 is connected to the second terminal of either one of the attenuation circuits 911 and 912, the signal strength PR2 of the V2X signal received by the terminal device may be expressed as:
PR2=A2-Dn-C2
where A2 is the signal strength of the V2X signal generated by the signal generator 930, dn is the attenuation of the attenuation circuit, dn may be D1 or D2, and C2 is the sum of the path loss and the signal space loss. Ideally, the path loss is 0.
For each attenuation circuit, the loss C2 has a positive correlation with the transmission distance of the signal in space.
In the case where the communication apparatus 600 of the vehicle attenuates the V2X signal with each attenuation circuit, the terminal device receives the attenuated V2X signal at respectively different distances. Recording the error rate of the attenuated V2X signal received by the terminal device under the condition that each attenuation circuit is adopted by the communication apparatus 600, thereby establishing the corresponding relation between the error rate and the distance within the preset range under each attenuation circuit. Different attenuation circuits correspond to different distance detection ranges.
Therefore, the terminal device can determine the distance between the vehicle and the terminal device according to the corresponding relation between the error rate and the distance under the attenuation circuit, the error rate of the attenuation circuit used by the vehicle for attenuating the V2X signal and the error rate of the attenuated V2X signal received by the terminal device.
The distance detection range of the attenuation circuit 911 may include a distance X21, and the error rate corresponding to the distance X21 under the attenuation circuit 911 is E21. The distance detection range of the attenuation circuit 912 may include the distance X22, and the error rate corresponding to the distance X22 under the attenuation circuit 912 is E22.
In the method 800, in step S805a, the first terminal of the switch circuit 920 of the communication device 900 is connected to the second terminal of the attenuator circuit 911. As shown in fig. 15, the initial detection signal generated by the signal generation unit 930 is attenuated by the attenuation circuit 911 to form a distance detection signal 1. The distance detection signal 1 is transmitted to a V2X transmitting antenna, transmitted by the V2X transmitting antenna and transmitted to the terminal equipment.
In some embodiments, in the case that the vehicle receives the trigger signal transmitted by the terminal device, the control device 940 controls the first terminal of the switch circuit 920 to be connected to the second terminal of the attenuation circuit 911.
For example, before proceeding to S805a, the vehicle may also receive an unlocking request signal transmitted by the terminal device. According to the unlock request signal, the control device 940 controls the first terminal of the switch circuit 920 to be connected to the second terminal of the damping circuit 911.
Alternatively, the trigger signal may be a signal sent by the terminal device during the process of the terminal device establishing the bluetooth connection with the apparatus 600.
Fig. 17 is a schematic flowchart of a distance detection method according to an embodiment of the present application.
The error rate corresponding to the distance X21 under the attenuation circuit 911 is E21.
Step S806 includes S8061 and S8062.
At S8061, the terminal device verifies the distance detection signal 1 to determine the error rate of the distance detection signal 1.
At S8062, the terminal device determines the distance range between the terminal device and the vehicle according to the relationship between the error rate of the distance detection signal 1 and the size of E21.
That is, at S8062, the terminal apparatus determines whether the distance between the terminal apparatus and the vehicle is less than or equal to X21.
When the error rate of the distance detection signal 1 is less than or equal to E21, determining that the distance between the terminal device and the vehicle is less than or equal to X21; when the error rate of the distance detection signal 1 is larger than E21, it is determined that the distance between the terminal device and the vehicle is larger than X21.
In the method 800, at S805b, the first terminal of the switch circuit 920 of the communication device 900 is connected to the second terminal of the attenuator circuit 912. As shown in fig. 16, the initial detection signal generated by the signal generation device 930 is attenuated by the attenuation circuit 912 to form a distance detection signal 2. And the distance detection signal 2 is transmitted to a V2X transmitting antenna, transmitted by the V2X transmitting antenna and transmitted to the terminal equipment.
The vehicle may latch the doors when starting or increasing in speed to a first preset speed. After the door is unlocked, the door can be locked after a certain period of time. In the case of a locked door, the distance detection can no longer be carried out.
When the door is unlocked, the control device 940 may control the first terminal of the switch circuit 920 to be connected to the second terminal of the damping circuit 912. The control device 940 may acquire the state of the vehicle door.
The error rate corresponding to the distance X22 under the attenuation circuit 912 is E22. At S809, the terminal device determines whether the distance between the terminal device and the vehicle is less than or equal to X22, based on the relationship between the error rate of the distance detection signal 2 and the magnitude of E22. When the error rate of the distance detection signal 2 is less than or equal to E22, determining that the distance between the terminal device and the vehicle is less than or equal to X22; when the error rate of the distance detection signal 2 is larger than E22, it is determined that the distance between the terminal device and the vehicle is larger than X22.
After S503, the control device 940 may control the first terminal of the switch circuit 920 to be connected to the second terminal of the attenuation circuit 911. After the vehicle unlocks the door at S508, the control device 940 may control the first terminal of the switch circuit 920 to be connected to the second terminal of the damping circuit 912.
The V2X antennas in the terminal device may include main set (main) and diversity (division). The main set is used for receiving and transmitting V2X signals, and the diversity is used for receiving V2X signals. In general, diversity is in an idle state during a time period when the primary set transmits V2X signals. Normally, when the primary set transmits V2X signals, diversity is turned off. An example of resource allocation for V2X antennas in the terminal device is shown in table 4.
TABLE 4
Figure BDA0003232590210000301
Different sub-frames (subframes) are used to represent different time domain resources and different sub-bands are used to represent different frequency domain resources. RX denotes an antenna for receiving signals and TX denotes an antenna for transmitting signals.
Illustratively, subframe 2 is a transmission subframe. Subframes 0 to 1 and subframes 3 to 9 are all reception subframes. Table 1 is merely an example of the V2X antenna resource allocation of the terminal device, and the number and position of the subframes specifically used for transmitting signals may be specifically allocated according to the application environment.
When the V2X antenna in the vehicle is used to send a distance detection signal and the terminal performs distance detection according to the received distance detection signal, the V2X antenna in the terminal may adopt a resource allocation manner as shown in table 5.
TABLE 5
Figure BDA0003232590210000302
Figure BDA0003232590210000311
Diversity can be used as a V2X receive antenna in the case of distance detection. That is, the diversity can receive the distance detection signal transmitted by the vehicle. In the sub-frame of the main set for signal transmission, the diversity is used for receiving the distance detection signal, thereby avoiding the influence on the transmission of other V2X signals.
In sub-frame 2, the control device 940 can control the first terminal of the switch circuit 920 to be connected to the second terminal of the attenuation circuit 911 or the second terminal of the attenuation circuit 912. The control device 940 may control the first terminal of the switch circuit 920 to be connected to the second terminal of the direct connection circuit 913 at sub-frame 0, sub-frame 1, and sub-frame 3 to sub-frame 9.
The communication device 900 may further include more attenuation circuits, and the control device 940 may control the switch circuit 920 to be sequentially connected to each attenuation circuit according to a preset sequence, so that the distance detection signal generated by the signal generating device 930 passes through the attenuation circuits to form the distance detection signal. The distance detection signal is transmitted to the V2X transmitting antenna, and the V2X transmitting antenna transmits the distance detection signal.
And the terminal equipment calculates the error rate of the received distance detection signal. And determining the distance between the terminal equipment and the vehicle according to the corresponding relation between the error rate and the distance under each attenuation circuit and the error rate of the distance detection signal under each attenuation circuit. The attenuation amounts of the attenuation circuits to the distance detection signals are respectively D1 to Dn, and D1 to Dn increase in sequence. The terminal device receives the distance detection signals at positions located at distances L1, L2, L3, and L4 from the vehicle, respectively, and the error rates of the distance detection signals calculated by the terminal device for the vehicle using the respective attenuation circuits are shown in table 6.
TABLE 6
Figure BDA0003232590210000312
When the distance between the terminal device and the vehicle is L1, the error rates of the distance detection signals corresponding to the attenuation circuits with the attenuation amounts of D1 to Dn-2 are all 0, the error rates of the distance detection signals corresponding to the attenuation circuits with the attenuation amount of Dn-1 are all N1, and the error rates of the distance detection signals corresponding to the attenuation circuits with the attenuation amount of Dn are all 100%. N1 is greater than 0 and not more than 100%. N1 may be within a preset range. The minimum value of the preset range is greater than 0, and the maximum value of the preset range is less than 100%. Therefore, the terminal device can determine the distance L1 between the terminal device and the vehicle by utilizing the corresponding relation between the error rate and the distance in the preset range under the attenuation circuit of the attenuation Dn-1.
The error rates N2, N3, N4 all belong to a preset range. The distances L1 to L4 increase in sequence, and as shown in table 6, L1 to L4 may belong to distance detection ranges corresponding to different attenuation circuits, respectively. As the distance between the terminal device and the vehicle increases, the attenuation amount of the attenuation circuit that causes the error rate of the distance detection signal to be in the preset range increases.
Fig. 18 is a schematic structural diagram of an attenuation circuit provided in an embodiment of the present application.
The attenuation circuit 611 may be a pi-type attenuator. The attenuation circuit 611 includes resistors R1, R2, R3. A node at which the first end of the resistor R1 is connected to the first end of the resistor R3 is a port of the attenuator circuit 1000, a node at which the second end of the resistor R2 is connected to the second end of the resistor R3 is another port of the attenuator circuit 611, and the second ends of the resistor R1 and the resistor R2 are grounded.
The attenuation n (unit: dB) is realized by the attenuation circuit 611, and the resistances R1, R2, and R3 (unit: ohm (Ω)) are set as follows:
Figure BDA0003232590210000321
wherein, A =10 -n/20 And Z is the characteristic impedance. Example (b)For example, in the case of Z =50 Ω, in order to achieve the attenuation n =10dB, the respective resistances may be set to: r1=96 Ω, R2=96 Ω, R3=71 Ω.
The attenuation circuits 612, 911, 912 may have the same or different circuit configuration as the attenuation circuit 611. For example, the attenuation circuit 612 may have the same circuit structure as the attenuation circuit 611, that is, the resistors R1, R2, and R3 in the attenuation circuit 612 are connected in the same manner as the attenuation circuit 611, and only the resistance values of R1, R2, and R3 are different from the attenuation circuit 611.
Fig. 19 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Electronic device 4000 includes memory 4001, processor 4002, communication interface 4003, and bus 4004. The memory 4001, the processor 4002 and the communication interface 4003 are communicatively connected to each other via a bus 4004.
Memory 4001 may be a ROM, a static storage device, and a RAM. Memory 4001 may store programs that, when executed by processor 4002, processor 4002 and communication interface 4003 are configured to perform the methods, steps, and logic blocks disclosed in embodiments of the present application.
The processor 4002 may be a general-purpose, CPU, microprocessor, ASIC, GPU or one or more integrated circuits, and is configured to execute the relevant programs to implement the functions that the units in the data processing apparatus according to the embodiments of the present application need to execute, or execute the methods, steps and logic blocks disclosed in the embodiments of the present application.
The processor 4002 may also be an integrated circuit chip having signal processing capabilities, e.g., a chip. In implementation, the steps of the data processing method according to the embodiment of the present application may be implemented by integrated logic circuits of hardware in the processor 4002 or instructions in the form of software.
The processor 4002 may also be a general purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The memory medium is located in the memory 4001, and the processor 4002 reads information in the memory 4001, and completes functions required to be executed by units included in the data processing apparatus according to the embodiment of the present application, or executes the data processing method according to the embodiment of the present application, in combination with hardware thereof.
Communication interface 4003 enables communication between apparatus 4000 and other devices or a communication network using transceiver means such as, but not limited to, a transceiver. For example, the image to be processed may be acquired through the communication interface 4003.
Bus 4004 may include a pathway to transfer information between various components of apparatus 4000 (e.g., memory 4001, processor 4002, communication interface 4003).
It should be noted that although the apparatus 4000 described above shows only a memory, a processor, and a communication interface, in a specific implementation, those skilled in the art will appreciate that the apparatus 4000 may also include other devices necessary for normal operation. Also, those skilled in the art will appreciate that apparatus 4000 may also include hardware components for performing other additional functions, according to particular needs. Further, those skilled in the art will appreciate that apparatus 4000 may also include only those components necessary to implement embodiments of the present application, and need not include all of the components shown in fig. 19.
In some embodiments, the apparatus 4000 may implement the functionality of the processing circuit 320 or the processing apparatus 630.
The communication device further comprises a device 4000, a switching circuit and a first attenuation circuit, wherein a first end of the switching circuit is connected with the processing circuit; the processor 4002 is configured to process a communication signal received by the antenna when the second terminal of the switch circuit is connected to the antenna; the first attenuation circuit is used for reducing the power of a distance detection signal received by the antenna to obtain a first attenuation signal, and the distance detection signal is sent by a terminal device.
The processor 4002 is configured to process the first attenuated signal to obtain a first bit error rate of the first attenuated signal when the second end of the switch circuit is connected to the first attenuating circuit.
The processor 4002 is further configured to determine a first range of distances to the terminal device according to the first error rate.
Optionally, the apparatus 4000 is configured to send the first indication information if a maximum value of the first distance range is smaller than a first preset distance.
Optionally, the communication device further includes a second attenuation circuit, configured to reduce the power of the distance detection signal to obtain a second attenuation signal, where a first attenuation amount of the power of the distance detection signal by the second attenuation circuit is different from a first attenuation amount of the power of the distance detection signal by the first attenuation circuit.
Optionally, the processor 4002 is further configured to, in a case that the second end of the switch circuit is connected to the second attenuation circuit, process the second attenuated signal to obtain a second bit error rate of the second attenuated signal.
The processor 4002 is further configured to determine a second range of distances to the terminal device according to the second error rate.
Optionally, the second attenuation amount is less than the first attenuation amount.
The processor 4002 is further configured to send second indication information when the minimum value of the second distance range is greater than or equal to a second preset distance.
Optionally, the processor 4002 is further configured to determine the first distance range according to the first error rate and first relationship information corresponding to the first attenuation circuit when the first error rate is within a preset range, where the first relationship information is used to represent a correspondence between an error rate and a distance, and a maximum value of the preset range is smaller than 1 and a minimum value of the preset range is larger than 0.
Optionally, the antenna is a vehicle wireless communication V2X antenna.
Optionally, the antenna is a diversity of a V2X antenna, the V2X antenna further includes a main set, the distance detection signal is received by the diversity in a preset time period, and the preset time period is a time period in which the main set is used to send a signal.
Optionally, the communication device further comprises a control circuit for controlling one of the antenna or at least one attenuation circuit connected to the second end of the switch circuit, the at least one attenuation circuit comprising the first attenuation circuit.
In other embodiments, the processing device 4000 may implement the functionality of the terminal device in the method 800.
The communication interface 4003 is configured to receive a first distance detection signal transmitted by the communication apparatus through an antenna, the communication apparatus includes a signal generation circuit, a switch circuit, and a first attenuation circuit, a first end of the switch circuit is connected to the signal generation circuit, the first distance detection signal is obtained by the first attenuation circuit reducing power of an initial detection signal generated by the signal generation circuit when a second end of the switch circuit is connected to the first attenuation circuit, the signal generation circuit is further configured to generate a communication signal, and the communication signal is transmitted through the antenna when the second end of the switch circuit is connected to the antenna.
The processor 4002 is configured to determine a first range of distances to the first communication device based on a first error rate of the first distance detection signal.
Optionally, the processor 4002 is further configured to send the first indication information when a maximum value of the first distance range is smaller than a first preset distance.
Optionally, the communication interface 4003 is further configured to receive a second distance detection signal transmitted by the communication apparatus through the antenna, and the communication apparatus further includes a second attenuation circuit, where the second distance detection signal is obtained by reducing, by the second attenuation circuit, power of an initial detection signal when a second end of the switch circuit is connected to the second attenuation circuit, and a second attenuation amount of the power of the initial detection signal by the second attenuation circuit is different from a first attenuation amount of the power of the initial detection signal by the first attenuation circuit.
The processor 4002 is further configured to determine a second range of distances from the first communication device based on a second bit error rate of the second range detection signal.
Optionally, the processor 4002 is further configured to send second indication information if the minimum value of the second distance range is greater than or equal to a second preset distance.
Optionally, the first bit error rate is within a preset range, and a maximum value of the preset range is smaller than 1 and a minimum value of the preset range is larger than 0.
The processor 4002 is further configured to determine the first distance range according to the first error rate and first relation information corresponding to the first attenuation circuit, where the first relation information is used to indicate a correspondence between an error rate and a distance.
Optionally, the second bit error rate is within a preset range, and a maximum value of the preset range is smaller than 1 and a minimum value of the preset range is larger than 0.
The processor 4002 is further configured to determine the second distance range according to the second error rate and second relationship information corresponding to the second attenuation circuit, where the second relationship information is used to indicate a correspondence between the error rate and the distance.
Optionally, the first distance detection signal is received using a vehicle wireless communication V2X antenna.
Optionally, the first distance detection signal is received by using diversity in the V2X antenna, the V2X antenna further includes a main set, the first distance detection signal is received by the diversity in a preset time period, and the preset time period is a time period for the main set to send a signal.
Optionally, the communication device further includes a control circuit, the control circuit is configured to control the first end of the switch circuit to be connected to one of the signal generation circuit or at least one attenuation circuit, and the at least one attenuation circuit includes the first attenuation circuit.
The embodiment of the present application further provides a mobile device, which includes an antenna and the communication device 300 or the communication device 400 described above.
The mobile device may be a vehicle.
Optionally, the mobile device further comprises a vehicle door and an electronic control unit ECU. The communication device further comprises a processing circuit used for sending first indication information to the ECU under the condition that the maximum value of the first distance range is smaller than a first preset distance, and the electronic control unit ECU is used for unlocking the vehicle door according to the first indication information.
Optionally, the processing circuit is further configured to send second indication information to the ECU when the minimum value of the second distance range is greater than or equal to a second preset distance, and the ECU is configured to lock the vehicle door according to the second indication information.
The embodiment of the application further provides a communication method, which is applied to a processing circuit in a communication device, wherein the communication device further comprises a switching circuit and a first attenuation circuit, and a first end of the switching circuit is connected with the processing circuit; the processing circuit is used for processing the communication signal received by the antenna under the condition that the second end of the switch circuit is connected with the antenna; the first attenuation circuit is used for reducing the power of a distance detection signal received by the antenna to obtain a first attenuation signal, and the distance detection signal is sent by a terminal device.
The method comprises the following steps: under the condition that the second end of the switch circuit is connected with the first attenuation circuit, processing the first attenuation signal to obtain a first bit error rate of the first attenuation signal; and determining a first distance range between the terminal equipment and the terminal equipment according to the first error rate.
Optionally, the second terminal of the switch circuit is connected to the antenna by default, and the method further includes: processing a trigger signal received by an antenna, wherein the trigger signal is sent by terminal equipment; and controlling the second end of the switch circuit to be connected with the first attenuation circuit according to the trigger signal.
Optionally, the method further comprises: and sending first indication information under the condition that the maximum value of the first distance range is smaller than a first preset distance.
Optionally, the communication apparatus further comprises a second attenuation circuit for reducing the power of the distance detection signal to obtain a second attenuation signal, a first attenuation amount of the power of the distance detection signal by the second attenuation circuit being different from a first attenuation amount of the power of the distance detection signal by the first attenuation circuit,
the method further comprises the following steps: under the condition that the second end of the switch circuit is connected with the second attenuation circuit, processing the second attenuation signal to obtain a second error rate of the second attenuation signal; and determining a second distance range between the terminal equipment and the terminal equipment according to the second error rate.
Optionally, the second attenuation amount is less than the first attenuation amount.
The method further comprises the following steps: and sending second indication information under the condition that the minimum value of the second distance range is greater than or equal to a second preset distance.
Optionally, the determining, according to the first error rate, a first distance range to the terminal device includes: and under the condition that the first error rate is within a preset range, determining the first distance range according to the first error rate and first relation information corresponding to the first attenuation circuit, wherein the first relation information is used for representing the corresponding relation between the error rate and the distance, and the maximum value of the preset range is less than 1 and the minimum value of the preset range is greater than 0.
Optionally, the antenna is a vehicle wireless communication V2X antenna.
Optionally, the antenna is a diversity of a V2X antenna, the V2X antenna further includes a main set, the distance detection signal is received by the diversity in a preset time period, and the preset time period is a time period in which the main set is used to send a signal.
Optionally, the communication device further comprises a control circuit for controlling one of the antenna or at least one attenuation circuit connected to the second end of the switch circuit, the at least one attenuation circuit comprising the first attenuation circuit.
The embodiment of the present application further provides a communication method, where the method includes: receiving a first distance detection signal transmitted by the communication apparatus through an antenna, wherein the communication apparatus includes a signal generation circuit, a switch circuit, and a first attenuation circuit, a first end of the switch circuit is connected to the signal generation circuit, the first distance detection signal is obtained by the first attenuation circuit reducing power of an initial detection signal generated by the signal generation circuit when a second end of the switch circuit is connected to the first attenuation circuit, the signal generation circuit is further configured to generate a communication signal, and the communication signal is transmitted through the antenna when the second end of the switch circuit is connected to the antenna; a first range of distances to the first communication device is determined based on a first bit error rate of the first range detection signal.
Optionally, the method further comprises: and sending first indication information under the condition that the maximum value of the first distance range is smaller than a first preset distance.
Optionally, the method further comprises: receiving a second distance detection signal transmitted by the communication apparatus via the antenna, the communication apparatus further including a second attenuation circuit, the second distance detection signal being obtained by the second attenuation circuit reducing power of an initial detection signal when a second terminal of the switch circuit is connected to the second attenuation circuit, a second attenuation amount of the power of the initial detection signal by the second attenuation circuit being different from a first attenuation amount of the power of the initial detection signal by the first attenuation circuit; determining a second range of distances to the first communication device based on a second bit error rate of the second range detection signal.
Optionally, the second attenuation amount is smaller than the first attenuation amount, the method further comprising: and sending second indication information under the condition that the minimum value of the second distance range is greater than or equal to a second preset distance.
Optionally, the determining, according to the second error rate of the second distance detection signal, a second distance range with the first communication device includes: and determining the second distance range according to the second bit error rate and second relation information corresponding to the second attenuation circuit, wherein the second relation information is used for representing the corresponding relation between the bit error rate and the distance.
Optionally, the first distance detection signal is received using a vehicle wireless communication V2X antenna.
Optionally, the first distance detection signal is received by using diversity in the V2X antenna, the V2X antenna further includes a main set, the first distance detection signal is received by the diversity in a preset time period, and the preset time period is a time period for the main set to transmit a signal.
Optionally, the communication device further includes a control circuit, where the control circuit is configured to control the first end of the switch circuit to be connected to one of the signal generation circuit and the at least one attenuation circuit, and the at least one attenuation circuit includes the first attenuation circuit.
The embodiment of the application also provides a processing device which comprises all the functional modules of the communication method.
Embodiments of the present application further provide a computer program storage medium, which is characterized by having program instructions, when executed, cause the method in the foregoing to be performed.
An embodiment of the present application further provides a chip system, where the chip system includes at least one processor, and when the program instructions are executed in the at least one processor, the method in the foregoing is performed.
The embodiment of the present application further provides a communication system, which includes any one of the communication apparatuses 300, 400, 600, and 900, and a terminal device.
It should be understood that the processor in the embodiments of the present application may be a Central Processing Unit (CPU), and the processor may also be other general-purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will also be appreciated that the memory in the embodiments of the subject application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, but not limitation, many forms of Random Access Memory (RAM) are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct bus RAM (DR RAM).
The above-described embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. The procedures or functions described in accordance with the embodiments of the present application are produced in whole or in part when the computer instructions or the computer program are loaded or executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, data center, etc., that contains one or more collections of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
It should be understood that the term "and/or" herein is merely one type of association relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists singly, A and B exist simultaneously, and B exists singly, wherein A and B can be singular or plural. In addition, the "/" in this document generally indicates that the former and latter associated objects are in an "or" relationship, but may also indicate an "and/or" relationship, and may be understood with particular reference to the former and latter contexts.
In this application, "at least one" means one or more, "a plurality" means two or more. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not imply any order of execution, and the order of execution of the processes should be determined by their functions and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (39)

1. A communications apparatus, comprising: a first attenuation circuit, a switching circuit and a processing circuit;
the first attenuation circuit is used for reducing the power of a distance detection signal received by an antenna to obtain a first attenuation signal, and the distance detection signal is sent by terminal equipment;
the first end of the switch circuit is connected with the processing circuit;
the processing circuit is used for processing the communication signal received by the antenna under the condition that the second end of the switch circuit is connected with the antenna;
under the condition that the second end of the switch circuit is connected with the first attenuation circuit, the processing circuit is used for processing the first attenuation signal to obtain a first bit error rate of the first attenuation signal;
the processing circuit is further configured to determine a first range of distances from the terminal device based on the first bit error rate.
2. The apparatus of claim 1, wherein the processing circuit is further configured to send a first indication if a maximum value of the first distance range is less than a first preset distance.
3. The apparatus of claim 1 or 2, further comprising a second attenuation circuit,
the second attenuation circuit is used for reducing the power of the distance detection signal to obtain a second attenuation signal, and a second attenuation amount of the second attenuation circuit to the power of the distance detection signal is different from a first attenuation amount of the first attenuation circuit to the power of the distance detection signal;
under the condition that the second end of the switch circuit is connected with the second attenuation circuit, the processing circuit is further configured to process the second attenuation signal to obtain a second bit error rate of the second attenuation signal;
the processing circuit is further configured to determine a second range of distances to the terminal device based on the second bit error rate.
4. The apparatus of claim 3, wherein the second attenuation amount is less than the first attenuation amount,
the processing circuit is further configured to send second indication information when the minimum value of the second distance range is greater than or equal to a second preset distance.
5. The apparatus according to any one of claims 1-4,
the processing circuit is further configured to determine the first distance range according to the first error rate and first relationship information corresponding to the first attenuation circuit when the first error rate is within a preset range, where the first relationship information is used to indicate a correspondence between the error rate and a distance, and a maximum value of the preset range is less than 1 and a minimum value of the preset range is greater than 0.
6. The device according to any one of claims 1-5, wherein the antenna is a vehicle wireless communication V2X antenna.
7. The apparatus of claim 6, wherein the antenna is a diversity of the V2X antenna, wherein the V2X antenna further comprises a primary set, wherein the distance detection signal is received by the diversity for a preset time period, and wherein the preset time period is a time period for which the primary set is used to transmit signals.
8. The apparatus of any of claims 1-7, further comprising a control circuit for controlling one of the antenna or at least one attenuation circuit connected to the second end of the switching circuit, the at least one attenuation circuit including the first attenuation circuit.
9. A mobile device comprising a device according to any of claims 1-8, said mobile device being a vehicle.
10. The mobile device according to claim 9, further comprising a vehicle door and an Electronic Control Unit (ECU),
the processing circuit is specifically configured to send first indication information to the ECU when a maximum value of the first distance range is smaller than a first preset distance;
and the electronic control unit ECU is used for unlocking the vehicle door according to the first indication information.
11. Mobile device according to claim 10,
the processing circuit is specifically configured to send second indication information to the ECU when the minimum value of the second distance range is greater than or equal to a second preset distance;
and the ECU is also used for indicating the ECU to control the locking of the vehicle door according to the second indication information.
12. A communication apparatus comprising a signal generating circuit, a switching circuit, and a first attenuating circuit,
the signal generating circuit is used for generating an initial detection signal and a communication signal;
a first end of the switch circuit is connected with the signal generating circuit, and the communication signal is transmitted through an antenna under the condition that a second end of the switch circuit is connected with the antenna;
under the condition that the second end of the switch circuit is connected with a first attenuation circuit, the first attenuation circuit is used for reducing the power of the initial detection signal to obtain a first distance detection signal, the first distance detection signal is sent to the terminal equipment through the antenna, and the first distance detection signal is used for the terminal equipment to determine a first error rate of the first distance detection signal and determine a first distance range between the terminal equipment and the communication device according to the first error rate.
13. The apparatus of claim 12, further comprising: a processing circuit;
the processing circuit is configured to send first indication information according to a received first indication signal, where the first indication signal is sent when the terminal device determines that a maximum value of the first distance range is smaller than a first preset distance.
14. The apparatus of claim 12 or 13, further comprising a second attenuation circuit,
when the second end of the switch circuit is connected to the second attenuation circuit, the second attenuation circuit is configured to reduce the power of the initial detection signal to obtain a second distance detection signal, and a second attenuation amount of the power of the initial detection signal by the second attenuation circuit is different from a first attenuation amount of the power of the initial detection signal by the first attenuation circuit;
and the second distance detection signal is sent to the terminal equipment through the antenna, and the second distance detection signal is used for determining a second distance range between the terminal equipment and the communication device.
15. The apparatus of claim 14, wherein the second attenuation amount is less than the first attenuation amount, the apparatus further comprising: a processing circuit;
the processing circuit is configured to send second indication information according to a received second indication signal, where the second indication signal is sent when the terminal device determines that a minimum value of the second distance range is greater than or equal to a second preset distance.
16. The apparatus according to claim 14 or 15, wherein the second distance range is determined by the terminal device according to a second error rate and second relation information corresponding to the second attenuation circuit, the second error rate is within a preset range, a maximum value of the preset range is smaller than 1, and a minimum value of the preset range is larger than 0, and the second relation information is used for representing a correspondence between an error rate and a distance.
17. The apparatus of any of claims 12-16, wherein the antenna is a vehicle wireless communication V2X antenna.
18. The apparatus of any one of claims 12-17, further comprising a control circuit for controlling the first end of the switching circuit to be connected to one of the signal generating circuit or at least one attenuation circuit, the at least one attenuation circuit including the first attenuation circuit.
19. A mobile device comprising a communication device according to any of claims 12-18, wherein the mobile device is a vehicle.
20. The mobile device according to claim 19, further comprising an Electronic Control Unit (ECU) and a vehicle door,
the communication device further comprises a processing circuit, wherein the processing circuit is used for sending first indication information to the ECU according to a received first indication signal, and the first indication signal is sent when the terminal equipment determines that the maximum value of a first distance range between the terminal equipment and the communication device is smaller than a first preset distance;
and the ECU is used for unlocking the vehicle door according to the first indication message.
21. Mobile device according to claim 20,
the processing circuit is further used for sending second indication information to the ECU according to the received second indication signal, the locking indication information is used for indicating the ECU to control the locking of the vehicle door, and the locking signal is sent when the terminal equipment determines that the minimum value of a second distance range between the terminal equipment and the communication device is larger than or equal to a second preset distance;
and the ECU is used for locking the vehicle door according to the second indication information.
22. A communication method, applied to a processing circuit in a communication device, wherein the communication device comprises a switching circuit and a first attenuation circuit, and a first end of the switching circuit is connected to the processing circuit; a second terminal of the switching circuit is connected to the antenna by default,
the method comprises the following steps:
receiving a trigger signal sent by terminal equipment;
according to the trigger signal, controlling a second end of the switch circuit to be connected with the first attenuation circuit, wherein the first attenuation circuit is used for reducing the power of a distance detection signal received by the antenna to obtain a first attenuation signal, and the distance detection signal is sent by the terminal equipment;
processing the first attenuation signal to obtain a first bit error rate of the first attenuation signal;
and determining a first distance range between the terminal equipment and the terminal equipment according to the first error rate.
23. The method of claim 22, further comprising:
and sending first indication information under the condition that the maximum value of the first distance range is smaller than a first preset distance.
24. The method of claim 22 or 23, wherein the communication device further comprises a second attenuation circuit,
the method further comprises the following steps:
if the communication device meets a preset condition, controlling a second end of the switch circuit to be connected with a second attenuation circuit, wherein the second attenuation circuit is used for reducing the power of the distance detection signal to obtain a second attenuation signal, and a first attenuation amount of the second attenuation circuit to the power of the distance detection signal is different from a first attenuation amount of the first attenuation circuit to the power of the distance detection signal;
processing the second attenuation signal to obtain a second bit error rate of the second attenuation signal;
and determining a second distance range between the terminal equipment and the terminal equipment according to the second error rate.
25. The method of claim 24, wherein the second attenuation amount is less than the first attenuation amount, the method further comprising:
and sending second indication information under the condition that the minimum value of the second distance range is greater than or equal to a second preset distance.
26. The method according to any of claims 22-25, wherein said determining a first range of distances to said terminal device based on said first error rate comprises:
and under the condition that the first error rate is within a preset range, determining the first distance range according to the first error rate and first relation information corresponding to the first attenuation circuit, wherein the first relation information is used for representing the corresponding relation between the error rate and the distance, and the maximum value of the preset range is less than 1 and the minimum value is greater than 0.
27. The method of any one of claims 22-26, wherein the antenna is a vehicle wireless communication V2X antenna.
28. The method of claim 27, wherein the antennas are diversity of V2X antennas, wherein the V2X antennas further comprise a primary set, wherein the distance detection signal is received by the diversity for a preset time period, and wherein the preset time period is a time period for which the primary set is used to transmit signals.
29. A method of communication, the method comprising:
receiving a first distance detection signal transmitted by the communication apparatus through an antenna, the communication apparatus including a signal generation circuit, a switch circuit, and a first attenuation circuit, a first end of the switch circuit being connected to the signal generation circuit, the first distance detection signal being obtained by the first attenuation circuit reducing a power of an initial detection signal generated by the signal generation circuit when a second end of the switch circuit is connected to the first attenuation circuit, the signal generation circuit being further configured to generate a communication signal, the communication signal being transmitted through the antenna when the second end of the switch circuit is connected to the antenna;
a first range of distances to the first communication device is determined based on a first bit error rate of the first range detection signal.
30. The method of claim 29, further comprising:
and sending first indication information under the condition that the maximum value of the first distance range is smaller than a first preset distance.
31. The method of claim 29 or 30, further comprising:
receiving a second distance detection signal transmitted by the communication apparatus via the antenna, the communication apparatus further including a second attenuation circuit, the second distance detection signal being obtained by the second attenuation circuit reducing power of an initial detection signal when a second terminal of the switch circuit is connected to the second attenuation circuit, a second attenuation amount of the power of the initial detection signal by the second attenuation circuit being different from a first attenuation amount of the power of the initial detection signal by the first attenuation circuit;
determining a second range of distances to the first communication device based on a second bit error rate of the second range detection signal.
32. The method of claim 31, wherein the second attenuation is less than the first attenuation, the method further comprising:
and sending second indication information under the condition that the minimum value of the second distance range is greater than or equal to a second preset distance.
33. The method of claim 31 or 32, wherein the second error rate is within a predetermined range, a maximum value of the predetermined range is less than 1 and a minimum value of the predetermined range is greater than 0, and wherein determining the second range of distances from the first communication device based on the second error rate of the second distance detection signal comprises:
and determining the second distance range according to the second error rate and second relation information corresponding to the second attenuation circuit, wherein the second relation information is used for representing the corresponding relation between the error rate and the distance.
34. The method of any one of claims 29-33, wherein the first distance detection signal is received using a vehicle wireless communication V2X antenna.
35. The method of claim 34, wherein the first distance-detection signal is received using diversity in the V2X antenna, wherein the V2X antenna further comprises a primary set, wherein the first distance-detection signal is received by the diversity for a preset time period, and wherein the preset time period is a time period used by the primary set for transmitting signals.
36. The method of any of claims 29-35, wherein the communications device further comprises a control circuit configured to control the first end of the switching circuit to be connected to one of the signal generating circuit or at least one attenuation circuit, the at least one attenuation circuit comprising the first attenuation circuit.
37. An electronic device, wherein the apparatus comprises a communication interface for the electronic device to perform information interaction with other devices, and a processor for executing program instructions to implement the method according to any one of claims 22 to 36.
38. A computer-readable storage medium, characterized in that the computer-readable medium stores program code for execution by a device, the program code comprising instructions for performing the method of any of claims 22-36.
39. A chip comprising a processor and a data interface, the processor reading instructions stored on a memory through the data interface to perform the method of any one of claims 22-36.
CN202110991812.7A 2021-08-27 2021-08-27 Communication method and device Pending CN115733504A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110991812.7A CN115733504A (en) 2021-08-27 2021-08-27 Communication method and device
PCT/CN2022/111183 WO2023024899A1 (en) 2021-08-27 2022-08-09 Communication method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110991812.7A CN115733504A (en) 2021-08-27 2021-08-27 Communication method and device

Publications (1)

Publication Number Publication Date
CN115733504A true CN115733504A (en) 2023-03-03

Family

ID=85290059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110991812.7A Pending CN115733504A (en) 2021-08-27 2021-08-27 Communication method and device

Country Status (2)

Country Link
CN (1) CN115733504A (en)
WO (1) WO2023024899A1 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1079683A (en) * 1996-09-03 1998-03-24 Anritsu Corp Radio equipment with gain changeover antenna
DE19801885A1 (en) * 1998-01-20 1999-07-22 Mannesmann Vdo Ag Receiving device of a remote control system and method for operating a remote control system
US6298306B1 (en) * 1999-07-28 2001-10-02 Motorola, Inc. Vehicle locating system utilizing global positioning
US7071813B2 (en) * 2003-05-29 2006-07-04 The Chamberlain Group, Inc. Status signal method and apparatus for movable barrier operator and corresponding wireless remote control
JP2006298027A (en) * 2005-04-18 2006-11-02 Matsushita Electric Ind Co Ltd Communication control system for vehicle and its program
JP2008133643A (en) * 2006-11-28 2008-06-12 Matsushita Electric Ind Co Ltd Communication system and program therefor
CN101764624A (en) * 2008-12-25 2010-06-30 华为技术有限公司 Method, unit, device and system for signal attenuation

Also Published As

Publication number Publication date
WO2023024899A1 (en) 2023-03-02

Similar Documents

Publication Publication Date Title
CN106355685B (en) Vehicle PEPS system using directional sensors
US10101433B2 (en) Methods for locating a vehicle key fob
RU2704769C2 (en) Method of determining location of telephone as key based on object detection, corresponding vehicle and machine-readable medium
US9767655B2 (en) Methods, systems and apparatus for providing notification that a wireless communication device has been left inside a vehicle
US9501875B2 (en) Methods, systems and apparatus for determining whether any vehicle events specified in notification preferences have occurred
US10089869B1 (en) Tracking hit and run perpetrators using V2X communication
US20210011143A1 (en) Distance measurement system
CN110796853A (en) Intermediate vehicle transponder for out-of-range vehicles
US9402164B2 (en) Configurable traffic zone control system
JP2021179381A (en) Position estimation system, position estimation method, vehicular communication device
US20220135002A1 (en) Remote vehicle motive control with optimized mobile device localization
CN113212371A (en) Time-of-flight based security for multiple key fobs
JP2018093331A (en) Device, method, and program for detection
CN114450211A (en) Traffic control system, traffic control method, and control device
CN113173140A (en) Relay attack mitigation and prevention
CN103158672B (en) A kind of automotive theft proof system based on wireless signal
CN115733504A (en) Communication method and device
US11505161B2 (en) Authenticating privilege elevation on a transportation service
JP6861568B2 (en) In-vehicle device
US11641571B2 (en) Communication device, communication method, non-transitory computer-readable storage medium storing communication program, and vehicle
US20230069605A1 (en) Controlling a Motor Vehicle Using a Vehicle-External Mobile Terminal
WO2021090773A1 (en) Vehicle system
JP2003124863A (en) On-vehicle communication device
US20230090051A1 (en) Remote vehicle motive control with optimized mobile device localization
WO2024113152A1 (en) Communication method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination