Method, apparatus and electronic device for obtaining communication signal
By determining the start and end times of communication signals in the DSI3 communication protocol and utilizing time windows and transition information, the problem of low reliability in master device receiving signals from slave devices is solved, and the accuracy of signal reception is improved.
Patent Information
- Application Number
- CN202511516326.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-23
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2045-10-23
AI Technical Summary
In the DSI3 communication protocol, the low slew rate and clock skew result in low reliability of the master device receiving the RCC signal from the slave device, which can easily lead to misjudgment of chip value.
By determining the starting time position of the first signal value in the communication signal, and utilizing the time window and transition information, the ending time position of the signal can be accurately identified, thereby improving the accuracy of sampling timing and alleviating reliability issues.
It improves the reliability of the master device receiving the slave device's RCC signal, reduces the possibility of chip value misjudgment, and enhances the accuracy of communication signals.
Smart Images

Figure CN121037410B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present disclosure relate to a method and apparatus for acquiring a communication signal, and an electronic device. BACKGROUND
[0002] Current and future vehicles are incorporating an increasing number of on-board sensors and systems to enable or assist key vehicle functions, including adaptive cruise control (ACC), parking assist, forward collision warning (FCW), forward collision and active braking, blind spot warning (BSW), lane keep system (LKS), etc. These key vehicle functions provide direct driver assistance in normal driving and critical situations, and some key vehicle functions can even enhance driver control or provide autonomous control to prevent or mitigate collisions or other negative outcomes.
[0003] To accommodate the development of vehicles, increasingly complex communication networks are implemented in vehicles. For example, the Distributed System Interface Version 3 (DSI3) standard provides one example of a communication network intended for automotive applications. SUMMARY
[0004] At least one embodiment of the present disclosure provides a method for acquiring a communication signal, the communication signal including a first signal value and a second signal value adjacent in time sequence, and the second signal value being earlier than the first signal value, the method comprising: determining a first starting time position of the first signal value in the communication signal based on the second signal value; and sampling the communication signal based on the first starting time position to acquire the first signal value, determining the first starting time position of the first signal value in the communication signal based on the second signal value comprises: determining an ideal ending time position of the second signal value in the communication signal based on a second starting time position of the second signal value; determining a time window based on the ideal ending time position; and determining an actual ending time position of the second signal value in the communication signal based on a transition information of the communication signal within the time window, taking the actual ending time position as the first starting time position.
[0005] For example, in some embodiments of the present disclosure, a plurality of signal values included in the communication signal each lasts for a fixed time length, sampling the communication signal based on the first starting time position to acquire the first signal value comprises: counting from the first starting time position to a count value being half of the fixed time length as a sampling time; sampling the communication signal based on the sampling time to obtain a sampling result; and determining the first signal value based on the sampling result, the first starting time position being a time when the count value is zero.
[0006] For example, in some embodiments of the present disclosure, sampling the communication signal based on the sampling time to obtain the sampling result comprises: sampling the communication signal multiple times to obtain multiple sampling results, starting from the sampling time; determining the first signal value based on the sampling result comprises: counting the sampling result with the largest quantity among the multiple sampling results; and in response to the quantity of the sampling result with the largest quantity being greater than or equal to a preset quantity, taking the sampling result with the largest quantity as the first signal value.
[0007] For example, in some embodiments of the present disclosure, determining the first signal value based on the sampling result further comprises: in response to the quantity of the sampling result with the largest quantity being less than the preset quantity, taking a preset signal value as the first signal value.
[0008] For example, in some embodiments of the present disclosure, each of the multiple signal values included in the communication signal lasts for a fixed time length, and determining the ideal end time position of the second signal value in the communication signal based on the second start time position of the second signal value comprises: determining the ideal end time position of the second signal value in the communication signal based on the second start time position of the second signal and the fixed time length.
[0009] For example, in some embodiments of the present disclosure, the width of the time window is a preset width, and the ideal end time position is located at the middle position of the time window.
[0010] For example, in some embodiments of the present disclosure, each of the multiple signal values included in the communication signal lasts for a fixed time length, and the fixed time length is 2 times the preset width.
[0011] For example, in some embodiments of the present disclosure, determining the actual end time position of the second signal value in the communication signal based on the jump information of the communication signal in the time window comprises: in response to the jump information indicating that the communication signal jumps at least once in the time window, taking the time position of the first jump in the time window as the actual end time position of the second signal in the communication signal; or in response to the jump information indicating that the communication signal does not jump in the time window, taking the ideal end time position as the actual end time position.
[0012] For example, in some embodiments of the present disclosure, the method further comprises: detecting the communication signal, generating a hopping signal, the hopping signal comprising a pulse at a time position where the communication signal hops, the pulse of the hopping signal indicating the hopping information; generating a window detection signal based on the time window and the hopping signal; and determining the time position of the first hop within the time window based on the hopping signal and the window detection signal.
[0013] For example, in some embodiments of the present disclosure, generating the window detection signal based on the time window and the hopping signal comprises: the window detection signal being hopped from a first value to a second value at a start position of the time window; in response to detecting that the hopping signal hops for the first time after the start position within the time window, the window detection signal being hopped from the second value to the first value.
[0014] For example, in some embodiments of the present disclosure, determining the time position of the first hop within the time window based on the hopping signal and the window detection signal comprises: performing a logical operation on the hopping signal and the window detection signal; and determining the time position of the first hop within the time window based on a result of the logical operation.
[0015] For example, in some embodiments of the present disclosure, the second value is 1, the first value is 0, the peak value of the pulse signal is 1, the logical operation comprises an AND operation, and the time position where the result of the AND operation is 1 is taken as the time position of the first hop within the time window.
[0016] For example, in some embodiments of the present disclosure, generating the window detection signal based on the time window and the hopping signal further comprises: in response to detecting that the hopping signal does not hop within the time window, the window detection signal being hopped from the second value to the first value at an end position of the time window.
[0017] For example, in some embodiments of the present disclosure, in response to the hopping information indicating that the communication signal does not hop within the time window, taking the ideal end time position as the actual end time position comprises: in response to the hopping information indicating that the communication signal does not hop within the time window until the ideal end time position, taking the ideal end time position as a pending end time position; in response to the hopping information indicating that the communication signal does not hop within the time window after the ideal end time position, taking the pending end time position as the actual end time position.
[0018] For example, in some embodiments of the present disclosure, in response to the hop information indicating that the communication signal hops at least once within the time window, the time position of the first hop within the time window is taken as the actual end time position of the second signal in the communication signal, including: in response to the hop information indicating that the communication signal hops after the ideal end time position within the time window, the time position of the first hop within the time window is taken as the actual end time position.
[0019] For example, in some embodiments of the present disclosure, the method further includes: receiving a transmission signal; and encoding the transmission signal according to an encoding rule to obtain the communication signal. The encoding rule encodes the transmission signal based on the first signal value and the second signal value.
[0020] For example, in some embodiments of the present disclosure, the encoding rule further encodes the transmission signal based on a third signal value, the third signal value has a size between the first signal value and the second signal value, the communication signal includes the third signal value, the third signal value is earlier than the second signal value, and the method further includes: in the case that the communication signal hops during sampling the communication signal to obtain the third signal value, taking the time position of the communication signal hopping as the second start time position.
[0021] For example, in some embodiments of the present disclosure, the communication signal includes a reply signal provided by a slave device to a master device and an interference signal, the interference signal is generated by the master device providing an instruction signal to the slave device, and the method further includes: during the master device providing the instruction signal to the slave device, shielding the communication signal.
[0022] For example, in some embodiments of the present disclosure, the communication signal includes N signal values as a signal group, the preset signal value is one of the first signal value and the second signal value, N is an integer greater than or equal to 2, and the obtaining method further includes: during not shielding the communication signal, detecting whether a first signal value in the signal group is the preset signal value, in response to the first signal value being the preset signal value, the communication signal transmission ends; in response to the first signal value in the signal group not being the preset signal value, confirming whether the first signal value is valid; in response to the first signal value being valid, receiving N signal values in the signal group; and in response to the first signal value being invalid, waiting for a valid first signal value.
[0023] For example, in some embodiments of the present disclosure, the communication signal is generated based on a distributed system interface protocol.
[0024] At least one embodiment of the present disclosure provides an acquisition device of a communication signal, the communication signal comprising a first signal value and a second signal value adjacent in time sequence, the second signal value being earlier than the first signal value, the device comprising: a first determination unit configured to determine a first starting time position of the first signal value in the communication signal based on the second signal value; and an acquisition unit configured to sample the communication signal based on the first starting time position to acquire the first signal value, the first determination unit comprising: a first determination sub-unit configured to determine an ideal ending time position of the second signal value in the communication signal based on a second starting time position of the second signal value; a second determination sub-unit configured to determine a time window based on the ideal ending time position; and a third determination sub-unit configured to determine an actual ending time position of the second signal value in the communication signal based on transition information of the communication signal within the time window, taking the actual ending time position as the first starting time position.
[0025] At least one embodiment of the present disclosure provides an electronic device, comprising: a processor; a memory comprising one or more computer program instructions stored in the memory and implemented by the processor to realize the acquisition method provided by any embodiment of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly introduced below. Obviously, the drawings in the following description only relate to some embodiments of the present disclosure, but not limit the present disclosure.
[0027] Figure 1 A system architecture diagram of a control system of a vehicle is shown;
[0028] Figure 2 A communication architecture diagram of DSI3 is shown;
[0029] Figure 3A A mapping relationship table of RCC signals and chips in a DSI3 protocol is shown;
[0030] Figure 3B A schematic diagram of chip data corresponding to 16 hexadecimal data 0x217 is shown;
[0031] Figure 4 An example waveform of an RCC signal on a DSI3 bus captured on an oscilloscope is shown;
[0032] Figure 5 A schematic diagram of processing of an RCC signal through a DSI3 bus into a chip is shown;
[0033] Figure 6A and Figure 6B A flow chart of a method for acquiring a communication signal is shown according to at least one embodiment of the present disclosure;
[0034] Figure 6C A timing diagram of a signal is shown according to at least one embodiment of the present disclosure;
[0035] Figure 7 A flow chart of a method for determining a time position of a first hop is shown according to at least one embodiment of the present disclosure;
[0036] Figure 8 A timing diagram of another signal is shown according to at least one embodiment of the present disclosure;
[0037] Figure 9 A flow chart of another acquisition method is shown according to at least one embodiment of the present disclosure;
[0038] Figure 10A A timing diagram of another signal is shown according to at least one embodiment of the present disclosure;
[0039] Figure 10B A timing diagram of another signal is shown according to at least one embodiment of the present disclosure;
[0040] Figure 11 A flow chart of a method for determining a time position of a first hop is shown according to at least one embodiment of the present disclosure; Figure 6A A flow chart of a method for determining a time position of a first hop is shown according to at least one embodiment of the present disclosure;
[0041] Figure 12 A schematic waveform diagram of a transmission signal detected by a current comparator is shown;
[0042] Figure 13 A schematic block diagram of an apparatus for acquiring a communication signal is shown according to at least one embodiment of the present disclosure;
[0043] Figure 14 A block diagram of an electronic device is shown according to at least one embodiment of the present disclosure; and
[0044] Figure 15 A schematic block diagram of another electronic device is shown according to at least one embodiment of the present disclosure. DETAILED DESCRIPTION
[0045] In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure clearer, the following will be used in conjunction with the accompanying drawings of the embodiments of the present disclosure to make a clear and complete description of the technical solutions of the embodiments of the present disclosure. Obviously, the described embodiments are some but not all of the embodiments of the present disclosure. Based on the described embodiments of the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of the present disclosure.
[0046] Unless otherwise defined, technical terms or scientific terms used in the present disclosure shall have the ordinary meanings as understood by those of ordinary skill in the art to which the present disclosure belongs. The terms "first", "second" and similar terms used in the present disclosure do not denote any order, quantity or importance, but are used to distinguish different components. Similarly, the terms "one", "a" or "the" or similar terms do not denote quantity restriction, but denote existence of at least one. The terms "include", "comprise" or similar terms mean that the elements or objects before the terms encompass the elements or objects listed after the terms and their equivalents, and do not exclude other elements or objects. The terms "connect" or "connected" or similar terms are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. The terms "upper", "lower", "left", "right" and the like are only used to represent relative time position relationships, and when the absolute time position of the described object changes, the relative time position relationship can also change accordingly.
[0047] The present disclosure will be described below through several specific embodiments. In order to keep the following description of the embodiments of the present disclosure clear and concise, the present disclosure omits the detailed description of known functions and known components. When any component of the embodiments of the present disclosure appears in more than one figure, the component is denoted by the same or similar reference numeral in each figure.
[0048] Figure 1 A system architecture diagram of a control system of a vehicle is shown.
[0049] As Figure 1As shown, the Electronic Control Unit (ECU) 102 is electronically coupled to a first set of sensors 104 via a main device 103 and to a second set of sensors 106 via a main device 105. The ECU 102 acquires measurements from the first set of sensors 104 and the second set of sensors 106 to determine the spatial relationship between the vehicle and its surrounding environment and any obstacles therein. To provide automatic parking, assisted parking, lane change assist, obstacle and blind spot detection, autonomous driving, and other desired features, the ECU 102 may also be connected to a set of actuators, such as a turn signal actuator 108, a steering actuator 110, a brake actuator 112, and a throttle actuator 114. The ECU 102 may be further coupled to a user interactive interface 116 to accept user input and provide displays of various measurement results and system status.
[0050] Various standards exist to support communication between the ECU 102 and various sensors and actuators. For example, the DSI3 bus provides half-duplex single-ended signal communication between a master device and one or more slave devices (e.g., sensors and actuators). Because the DSI3 bus requires only one signal conductor, it is sometimes referred to as a "single-wire" bus. Of course, other suitable standards can also be used for communication between the ECU 102 and various sensors and actuators, including DS2, PSI5, LIN, and CAN standards, etc.
[0051] DSI3 is a high-speed serial communication protocol specifically designed for automotive electronic control systems. It is primarily used for data exchange in critical systems such as airbags, sensors, and actuators, and features high reliability, fault tolerance, and determinism. For example, the main device 103 and the first group of sensors 104 communicate via the DSI3 bus, as do the main device 105 and the second group of sensors 106. Figure 1 The main device 103 is, for example, an airbag, and the main device 105 is, for example, a smart vehicle. Of course, the main device is not limited to these; the airbag and smart vehicle are merely examples for ease of understanding. The first set of sensors 104 and the second set of sensors 106 can communicate with the main device as slave devices. The first set of sensors is, for example, at least one of an ultrasonic sensor, radar sensor, laser sensor, pressure sensor, acceleration sensor, and imaging sensor; the second set of sensors is, for example, at least one of an ultrasonic sensor, radar sensor, laser sensor, pressure sensor, acceleration sensor, and imaging sensor.
[0052] Figure 2 A schematic diagram of the communication architecture of DSI3 is shown.
[0053] like Figure 2As shown, the communication architecture includes a master device 201 and a slave device 202, which transmit voltage / current hybrid signals via a DSI3 bus. For example, the DSI3 bus is a single-wire bus.
[0054] The master device 201 sends instructions (such as configuration parameters and data requests) to the slave device 202 in the form of voltage, and the slave device 202 provides response data (such as sensor measurement values and execution status) to the master device 201 in the form of current.
[0055] This communication architecture supports multiple communication modes, such as one-to-one interaction between the master and slave devices, or the master device periodically polling multiple slave devices.
[0056] For example, the forward communication channel (FCC) signal sent by the master device 201 to the slave device 202 is a voltage signal, and the reverse communication channel (RCC) signal sent by the slave device 202 back to the master device 201 is a current signal.
[0057] The RCC signal on the slave device 202 side of DSI3 is encoded in 4-bit units and mapped to 3 minimum physical transmission units (chips), also known as "chips". The duration of each chip is a fixed time length, such as 4μs or 3μs. Mapping 4 bits to 3 chips means that 4 bits of data are mapped to 3 current values of fixed time lengths.
[0058] Figure 3A A mapping table between RCC signals and chips in the DSI3 protocol is shown.
[0059] like Figure 3A As shown, for example, the binary value 0000 is mapped to three chips (the first, second, and third chips), with current values of 1, 1, and 0 for each chip. That is, the binary value 0000 is represented by current values 1, 1, and 0, which is hexadecimal 0x0. In some embodiments of this disclosure, the current value can be an offset relative to a reference current. For example, 1 represents a current value offset by one unit relative to the reference current, 0 represents the reference current, and 2 represents a current value offset by two units relative to the reference current.
[0060] Similarly, the binary value 0001, or hexadecimal 0x1, is represented by the current values 2, 1, and 1.
[0061] Figure 3BA diagram showing the chip data corresponding to the hexadecimal data 0x217 is shown.
[0062] By querying the mapping table in Figure 3A , it can be determined that the current value corresponding to "2" in the hexadecimal data 0x217 is 1, 0, 2. Therefore, as shown in Figure 3B , the hexadecimal data 0x217 is represented by the current values of 3 consecutive time durations, for example, 4 μs. For example, in the first 4 μs (1 st ), the current value is 1, in the second 4 μs (2 nd ), the current value is 0, and in the third 4 μs (3r d ), the current value is 2.
[0063] When the device 202 transmits the RCC signal, it transmits the current value corresponding to the chip. For example, in Figure 3B , the current value I DSI,Q is taken as the reference current, i.e., the current value I DSI,Q represents 0. The current value 1 is offset by 1 unit I DSI,RESP relative to the reference current, i.e., the current value 1 is I DSI,Q + I DSI,RESP ; the current value 2 is offset by 2 units 2I DSI,RESP relative to the reference current, i.e., the current value 2 is I DSI,Q + 2I DSI,RESP . The reference current may be greater than 0 mA, for example.
[0064] Similarly, in the next 3 time durations, the current values are 2, 1, and 1 in order to represent "1" in the hexadecimal data 0x217; in the last 3 time durations, the current values are 2, 0, and 1 in order to represent "7" in the hexadecimal data 0x217.
[0065] In the process of transmitting the RCC signal, in order to have good electromagnetic interference (EMI) characteristics, it is necessary to reduce the slew rate. The slew rate is the maximum rate of change of the output voltage or current of an electronic circuit with respect to time. However, if the slew rate is too low, the data cannot be recognized. Therefore, the slew rate of the current value change needs to be within a reasonable range.
[0066] Figure 4 An example waveform of the RCC signal on the DSI3 bus captured on an oscilloscope is shown.
[0067] As shown in Figure 4As shown, the 4-bit data is mapped to 3 chips, each of which has possible current values of I1, I2, and I3, representing the current values 0, 1, and 2 described above, respectively.
[0068] Because of the low slew rate (i.e., the current changes slowly over time), multiple chips reach a predetermined current value and then immediately switch to the next chip value with almost no settling time. For example, after the current reaches current value 2 (point P1), it switches to the next chip's current value 1 (point P2) with almost no settling time. After switching from current value 1 to the next chip's current value 2 (point P3), it again switches to the next chip's current value 1 (point P4) with almost no settling time.
[0069] like Figure 4 As shown, during the transition of the chip's current value from the minimum to the maximum (e.g., from current value 0 to current value 2) or from the maximum to the minimum (e.g., from current value 2 to current value 0), an intermediate value (e.g., current value 1) will inevitably occur. Moreover, as the slew rate decreases, the time proportion of the intermediate value 1 increases, which increases the possibility of misjudging the chip value.
[0070] After the current signal enters the main device 201, it will pass through a current comparator to determine the magnitude of the current value. The output of the current comparator is sent to the RCC data decoding circuit.
[0071] Figure 5 A schematic diagram is shown of an RCC signal entering the chip for post-processing via the DSI3 bus.
[0072] like Figure 5 As shown, RCC signals (e.g., current values 0, 1, and 2 described above) are encoded after entering the master device 201 via the DSI3 bus to convert continuous level signals into discrete signals. For example, thermometer encoding is implemented through current comparator 211, and the communication signal output by current comparator 211 is sent to RCC data decoding circuit 221.
[0073] For example, current comparator 211 has two thresholds, threshold Th1 and threshold Th2. If the current value of the RCC signal is less than threshold Th1, current comparator 211 outputs 0; if the current value of the RCC signal is greater than threshold Th2, current comparator 211 outputs 3; if the current value of the RCC signal is greater than or equal to threshold Th1 and less than or equal to threshold Th2, current comparator 211 outputs 1. Thresholds Th1 and Th2 can be set according to the actual design. For example, combined with... Figure 4 For example, the threshold Th1 is 0 mA, and the threshold Th2 is, for example, 1.5E-02 mA.
[0074] Therefore, the RCC signal (current value 0, 1, 2) is mapped into the encoded RCC signal (0, 1, 3) through the current comparator 211.
[0075] The RCC data decoding circuit 221 is configured to parse, protocol process and data restore the encoded RCC signal provided by the current comparator 211. For the RCC data decoding circuit 222, please refer to the related art, and the present disclosure will not be described in detail.
[0076] The following parts mentioned the RCC signal are all the values in the thermometer code. Combined with the description of the body Figure 4 It can be known from the description of the body that the intermediate value 1 will inevitably appear in the process of the current value of the chip jumping from 0 to 3 or 3 to 0, and as the slew rate becomes smaller, the time proportion of the intermediate value 1 becomes larger, and the stable time of the chip becomes shorter, so that the possibility of misjudgment of the chip value increases.
[0077] In addition, when the DSI3 communication architecture just starts to work, the master device will send a Command Response Mode (CRM) command containing a synchronization event (for example, 5 consecutive rising edges) to the slave device, so that the clock pulses of the master device and the slave device are the same frequency. For example, the master device sends a synchronization event containing 5 consecutive rising edges through the CRM command. For example, the interval between the 1st rising edge and the 5th rising edge in the CRM command is 32μs. After detecting the synchronization event, the slave device adjusts the internal frequency division coefficient to obtain a decimal frequency division coefficient. The slave device system clock divided by this frequency division coefficient can obtain a 1Mhz clock highly synchronized with the master device. With this synchronized 1Mhz clock, the slave device can successfully receive the command and feedback (for example, reply the corresponding data) according to the command. The purpose of synchronization is to make the 1Mhz clock in the master device and the slave device as synchronized as possible, so that the master device and the slave device are not easy to make mistakes in receiving each other's commands or data, and the reliability of various commands and data transmission between the master device and the slave device can be improved. And there is no acknowledgment (ACK) or action to confirm the synchronization completion in the whole process.
[0078] However, as time goes by, the system clock of the master device and the slave device is affected by the environment and deviates, and the frequency of the 1Mhz clock in them also gradually deviates. The clock deviation (also called "frequency deviation") between the master device and the slave device causes chip length error accumulation, resulting in incorrect judgment of the current value of the chip.
[0079] Therefore, the reliability of the master device receiving the RCC signal from the slave device is low due to the low slew rate and the clock skew. To this end, embodiments of the present disclosure provide an acquisition method of a communication signal, which can improve the reliability of the master device receiving the RCC signal from the slave device. The communication signal is, for example, a signal output by the current comparator 211 in the master device Figure 5 The executioner of the method is, for example, the RCC data decoding circuit 221 in the master device. As described above, all possible values of the signal value in the communication signal are 0, 1 and 3. It should be noted that the values of 0, 1 and 3 are only an example, and embodiments of the present disclosure do not limit all possible values of the signal value in the communication signal to be 0, 1 and 3. All possible values of the signal value in the communication signal can include 4, 5, etc., or any value.
[0080] In embodiments of the present disclosure, the signal value of the communication signal can be represented by binary, for example, 0, 1 and 3 are represented as 00, 01 and 11 respectively. For ease of description, 0, 1 and 3 are described below.
[0081] Figure 6A And Figure 6B A flowchart of an acquisition method of a communication signal provided by at least one embodiment of the present disclosure is shown. The communication signal includes a first signal value and a second signal value adjacent in time sequence, and the second signal value is earlier than the first signal value. In some embodiments of the present disclosure, the communication signal can be a signal after the reply data of the slave device passes through the current comparator. In embodiments of the present disclosure, the current signal transmitted on the DSI3 bus detected by the master device is referred to as a transmission signal, and the signal obtained by the current comparator encoding the current signal is referred to as a communication signal.
[0082] As Figure 6A shown, the acquisition method includes steps S10 and S20.
[0083] Step S10: determining a first starting time position of the first signal value in the communication signal based on the second signal value.
[0084] Step S20: sampling the communication signal based on the first starting time position to acquire the first signal value.
[0085] As Figure 6B shown, step S10 includes steps S11-S13.
[0086] Step S11: determining an ideal ending time position of the second signal value in the communication signal based on the second starting time position of the second signal value.
[0087] Step S12: determining a time window based on the ideal ending time position.
[0088] Step S13: determining an actual ending time position of the second signal value in the communication signal based on the jump information of the communication signal in the time window, taking the actual ending time position as the first starting time position.
[0089] The acquisition method can accurately identify the ending time position of the signal, so as to determine the sampling time of the next signal by taking the ending time position of the signal as the starting time position of the next signal, thereby alleviating the problem of low reliability of the acquired signal caused by inaccurate sampling time.
[0090] Figure 6C A timing diagram of a signal is shown. The following embodiments of Figure 6C are described in conjunction with Figure 6A and 6B .
[0091] As shown in Figure 6C , the communication signal RCC' (signal after encoding by the current comparator) includes a plurality of signal values (shaded parts). The plurality of signal values includes a first signal value and a second signal value adjacent in time.
[0092] For example, signal value 3 and signal value 0 are adjacent in time, signal value 3 is earlier than signal value 0, and signal value 3 is taken as an example of the second signal value, and signal value 0 is taken as an example of the first signal value. That is, the device first transmits the current value corresponding to signal value 3, and then transmits the current value corresponding to signal value 0, and the RCC data decoding circuit 221 first receives signal value 3 and then receives signal value 0.
[0093] As described above Figure 4 , in the process of jumping from the minimum value 0 to the maximum value 3 and from the maximum value 3 to the minimum value 0, an intermediate value (for example, 1) must appear. As the slew rate decreases, the time proportion of the intermediate value 1 increases, making the possibility of chip value misjudgment increase. The communication signal RCC' can be represented by binary, for example, 0, 1 and 3 are represented as 00, 01 and 11 respectively. Therefore, in the present disclosure, "jump" can also be referred to as "flip". In addition, in the present disclosure, "time position" can be understood as "time".
[0094] In the process of the communication signal RCC' jumping from signal value 3 to signal value 0, an intermediate value 1 must be passed through. If the sampling time of the RCC data decoding circuit 221 is inaccurate and falls within the time period of the intermediate value 1, the data obtained by the RCC data decoding circuit 221 will be inaccurate.
[0095] For step S10, for example, based on signal value 3, the starting time position P of signal value 0 in the communication signal is determined. The starting time position P is an example of the first starting time position.
[0096] For step S20, the timing of sampling the communication signal RCC’ is determined based on the start time position P, so that the communication signal is sampled to obtain the correct first signal value.
[0097] If the start time position is inaccurate (e.g., the time position P’ is taken as the start time position of the signal value 3), it can result in that the signal value 1 after the signal value 0 in the communication signal RCC’ is sampled, and an incorrect sampling result is obtained. Figure 6C The signal value 1 after the signal value 0 in the communication signal RCC’ shown is sampled, and an incorrect sampling result is obtained. Embodiments of the present disclosure can accurately determine the end time position of the previous signal value in two adjacent signal values (i.e., the start time position of the next signal value) by the method of Figure 6B , so as to improve the reliability of obtaining data.
[0098] For step S11, the start time position of the second signal value is the end time position of the previous signal value of the second signal value, which is determined based on the start time position of the previous signal value, and so on until the first signal value of the communication signal RCC’ is traced back, i.e., the start signal of the communication signal RCC’. For example, in Figure 6C , the signal value 3 is the start signal. In the DSI3 bus protocol, 3 chips form a group to represent a 4-bit data, and the first chip in the signal group in time sequence cannot be 0. Therefore, the signal value of the first chip is 0 to indicate that the communication signal transmission is ended. When the communication signal transmission is ended, if the communication signal jumps from 0 to a non-0 value again, it indicates that the transmission is started, and therefore the time point when the communication signal jumps from 0 to a non-0 value can be detected as the start time position of the start signal. For example, the start time position of the signal value 3 is the time position indicated by the chip start.
[0099] For example, the sum of the second start time position (e.g., the chip start) and the fixed time length (Tchip) of the chip is taken as the ideal end time position. For example, for the signal value 3, the ideal end time position of the signal value 3 is the time position P’.
[0100] For step S12, in some embodiments of the present disclosure, the width of the time window is a preset width, and the ideal end time position is located at the middle position of the time window.
[0101] As shown in Figure 6CThe signal WND_REF in the time window has a window width of WND_WIDTH (an example of a preset width), 50% before the ideal end position P' and 50% after the ideal end position P'. The signal WND_REF is used here only for illustration and is not required in actual design. The time window represents a possible range of the actual end time position of the second signal value, in which the actual end time position is determined.
[0102] In some embodiments of the present disclosure, the window width is WND_WIDTH. In actual design, this width cannot be set too large, which will cause the identification error rate of the actual end position to rise, and the transition state causes the communication signal RCC' jump to be identified as the end of signal value transmission. At the same time, it cannot be set too small, which will cause the communication signal RCC' jump to be invisible in the time window.
[0103] According to the DSI3 protocol, the number of the same signal value is at most 4, and in some embodiments of the present disclosure, the preset width is set to 1 / 2Tchip. That is, the fixed time length Tchip is 2 times the preset width. 1 / 4Tchip before and after the ideal end position, assuming that the frequency offset between the master device and the slave device reaches 5%, after 4 chips, the offset between the master device and the slave device will reach 20%Tchip, which is less than 1 / 4Tchip. Therefore, in theory, the preset width is set to 1 / 2Tchip, so that the master device can resist a frequency offset greater than 5% when receiving RCC. This preset width setting has good effect in actual test. Of course, those skilled in the art can adjust the preset width and the time window according to actual needs.
[0104] For step S13, the jump information includes, for example, whether a jump occurs and the time position at which the jump occurs. In some embodiments of the present disclosure, as shown in Figure 6C , the jump information is indicated by the jump signal RCC_TOG. The jump signal includes a pulse, and the pulse is located at the time position at which the communication signal jumps. The pulse of the jump signal indicates the jump information. For example, whether there is a pulse in the time window, if there is a pulse in the time window, the communication signal RCC' jumps in the time window, and if there is no pulse in the time window, the communication signal RCC' does not jump in the time window. The position of the pulse represents the time position at which the jump of the communication signal RCC' occurs in the time window.
[0105] In some embodiments of the present disclosure, in response to the jump information indicating that the communication signal jumps at least once in the time window, the time position of the first jump in the time window is taken as the actual end time position of the second signal in the communication signal. As shown in Figure 6C , the communication signal RCC' jumps in the time window, and the time position P of the first jump is taken as the actual end time position.
[0106] In some embodiments of the present disclosure, in response to the hop information indicating that the communication signal does not hop within the time window, the ideal end time position is taken as the actual end time position. For example, if the communication signal RCC’ does not hop within the time window, the ideal end time position is taken as the actual end time position.
[0107] Figure 7 A flowchart of a method for determining the time position of the first hop is shown.
[0108] As Figure 7 shown, the method comprises steps S701-S703.
[0109] Step S701: detecting the communication signal to generate a hop signal, the hop signal comprising a pulse at the time position of the hop of the communication signal, the pulse of the hop signal indicating the hop information.
[0110] Step S702: generating a window detection signal based on the time window and the hop signal.
[0111] Step S703: determining the time position of the first hop within the time window based on the hop signal and the window detection signal.
[0112] Steps S701-S702 are performed synchronously with the communication signal, for example. That is, in the process of the current comparator transmitting the communication signal to the RCC data decoding circuit, the RCC data decoding circuit synchronously detects the received communication signal to generate the hop signal and generates the window detection signal. Steps S701-S703 are performed before step S10 and step S20, for example.
[0113] For step S701, the communication signal RCC’ is detected to generate the hop signal RCC_TOG, for example. For example, the RCC data decoding circuit comprises a flip-flop, and the flip-flop is used to detect the hop edge of the communication signal RCC’ to generate the hop signal. For the flip-flop or other structures used for hop edge detection, please refer to the related art, which will not be described in detail herein.
[0114] For step S702, for example, at the start position of the time window, the window detection signal jumps from the first value to the second value; in response to detecting that the hop signal hops for the first time after the start position within the time window [t1, t2], the window detection signal jumps from the second value to the first value. As Figure 6CWND_DET is an example of a window detection signal. At the start position t1 of the time window, the window detection signal WND_DET jumps from a first value (e.g., 0) to a second value (e.g., 1). At the time position P within the time window [t1, t2], the first jump of the jump signal RCC_TOG is detected, and the window detection signal WND_DET jumps from the second value to the first value. That is, within the window [t1, P], the window detection signal WND_DET is high.
[0115] That is, the first jump (e.g., the rising edge of RCC_TOG) of the communication signal RCC’ occurring within the time window WND_REF is judged as a chip end event, and after the chip end is detected, the detection window is closed immediately, as shown by the signal WND_DET in Figure 6C With the end of the current chip, a new chip starts immediately. For example, the sampling of the communication signal RCC’ is always performed at 1 / 2 Tchip after the start of the chip.
[0116] For example, the jump signal and the window detection signal are logically operated; and based on the result of the logical operation, the time position of the first jump within the time window is determined. By logically operating (e.g., AND operation, OR operation, etc.) the jump signal and the window detection signal, the first jump can be correctly identified.
[0117] For example, the second value is 1, the first value is 0, the peak value of the pulse signal is 1, the logical operation includes AND operation, and the time position at which the result of the AND operation is 1 is the time position of the first jump within the time window.
[0118] In some embodiments of the present disclosure, based on the time window and the jump signal, the window detection signal is generated, and further comprising: in response to no jump of the jump signal being detected within the time window, the window detection signal jumps from the second value to the first value at the end position of the time window.
[0119] Figure 8 Another timing diagram of another signal provided by at least one embodiment of the present disclosure is shown.
[0120] As shown in Figure 8 Within the time window [t5, t6], the jump signal RCC_TOG does not include a pulse, that is, within the time window [t5, t6], the communication signal RCC’ does not jump, and then the window detection signal WND_DET jumps from the second value (1) to the first value (0) at t6.
[0121] In some embodiments of the present disclosure, in response to the hop information indicating that the communication signal does not hop within the time window, the ideal end time position is taken as the actual end time position, comprising: in response to the hop information indicating that the communication signal does not hop within the time window until the ideal end time position, taking the ideal end time position as a pending end time position; in response to the hop information indicating that the communication signal does not hop within the time window after the ideal end time position, taking the pending end time position as the actual end time position.
[0122] For example, in the example of Figure 8 , within the time window [t5, t6], the hop signal RCC_TOG does not include a pulse until the ideal end time position M, i.e., the communication signal RCC' does not hop before the ideal end time position M within the time window [t5, t6], then the ideal end time position M is taken as a pending end time position. Within the time window [t5, t6], the hop signal RCC_TOG also does not include a pulse after the ideal end time position M, i.e., the communication signal RCC' does not hop within the time window [M, t6], then the pending end time position M is taken as the actual end time position.
[0123] According to the DSI3 bus protocol, it is possible that multiple adjacent chips are the same value, in which case the pending end event will not be overturned and will be taken as the start time position of the next chip, as shown in the detection result of the first window opening of the WND_DET signal in Figure 8 .
[0124] In some embodiments of the present disclosure, in response to the hop information indicating that the communication signal hops at least once within the time window, the time position of the first hop within the time window is taken as the actual end time position of the second signal in the communication signal, comprising: in response to the hop information indicating that the communication signal hops after the ideal end time position within the time window, the time position of the first hop within the time window is taken as the actual end time.
[0125] The following describes this embodiment with the signal value 1 in Figure 6C as the first signal value and the signal value 0 as the second signal value as an example.
[0126] For example, according to the actual end position P of the signal value 3, the ideal end position Q of the signal value 3 is determined, and based on the ideal end position Q of the signal value 3 and the fixed time length, the time window [t3, t4] is determined. As shown in Figure 6CAs shown, there is no pulse of the toggle signal RCC_TOG before the ideal end position Q of the time window [t3, t4] (i.e., [t3, Q]), i.e., the communication signal RCC' does not toggle until the ideal end time position Q of the time window [t3, t4], and the ideal end time position Q is taken as a pending end time position. There is a pulse of the toggle signal RCC_TOG after the ideal end position Q of the time window [t3, t4] (i.e., [Q, t4]), i.e., the communication signal RCC' toggles after the ideal end time position Q of the time window [t3, t4], and the actual end time position is corrected from the pending end time position Q to the time position Q' of the first toggle within the time window.
[0127] The correct sampling of each chip of the communication signal RCC' relies on the correct determination of the end time position of the previous chip. In the related art, the sampling is usually performed at the ideal center point of the chip at a fixed time interval after the detection of a non-0 value of the communication signal RCC', but this method can easily lead to sampling errors due to the effects of the superposition of the DSI3 on the frequency offset between the master device and the slave device and the longer time proportion of the intermediate value of the communication signal RCC' after passing through the current comparator caused by the lower slew rate of the communication signal RCC'. Therefore, the above-mentioned embodiments of the present disclosure can improve the accuracy of the end time position of the previous chip, thereby improving the success rate of sampling. In the above-mentioned embodiments, the start time position of the first chip is the time when the signal value changes from 0 to 1, and the start time position of the subsequent chip is the end time position of the previous chip. A window is opened after the start of the chip, and the width of the window is WND_WIDTH, of which 50% is before the ideal end position of the chip and 50% is after the ideal end position, as shown by the signal WND_REF in Figure 6C The first toggle (pulse of RCC_TOG) of the communication signal RCC' appearing in the WND_REF window is determined as the end event of the chip, and after the detection of the end of the chip, the detection window is immediately closed, as shown by the signal WND_DET in Figure 6C With the end of the current chip, a new chip starts immediately. The sampling of the communication signal RCC' is always performed at 1 / 2 Tchip after the start of the chip. If no RCC toggle is detected until the ideal end position, a pending end event is generated at the ideal end position, but if an RCC toggle is detected before the WND_REF is closed, a new end event is generated, and the previous pending end event is cancelled, and the new end event is taken as the start time of the next chip.
[0128] Figure 9 A flow chart of another acquisition method provided by at least one embodiment of the present disclosure is shown.
[0129] As shown in FIG. 4, the acquisition method comprises steps S30 and S40 in addition to steps S10 and S20 described above. Figure 9 Figure 6A Steps S30 and S40 are performed, for example, before steps S10 and S20. Steps S30 and S40 are performed, for example, by the current comparator in the RCC data decoding circuit described above.
[0130] Step S30: receiving a transmission signal.
[0131] Step S40: encoding the transmission signal according to an encoding rule to obtain a communication signal.
[0132] In some embodiments of the present disclosure, the communication signal can be a signal obtained after the reply data from the device passes through the current comparator. In embodiments of the present disclosure, the current signal transmitted on the DSI3 bus detected by the host device is referred to as the transmission signal, and the signal obtained by the current comparator encoding the current signal is referred to as the communication signal.
[0133] For step S40, the encoding rule is, for example, the rule of the thermometer encoding described above.
[0134] In some embodiments of the present disclosure, the encoding rule encodes the transmission signal based on a first signal value and a second signal value. For example, the first signal value is 0, the second signal value is 1, and so on.
[0135] In other embodiments of the present disclosure, the encoding rule encodes the transmission signal based on a third signal value in addition to the first signal value and the second signal value, and the third signal value is between the first signal value and the second signal value in size. For example, the current comparator 211 has two threshold values, threshold value Th1 and threshold value Th2, and if the current value of the RCC signal is less than the threshold value Th1, the current comparator 211 outputs 0; if the current value of the RCC signal is greater than the threshold value Th2, the current comparator 211 outputs 3; if the current value of the RCC signal is greater than or equal to the threshold value Th1 and less than or equal to the threshold value Th2, the current comparator 211 outputs 1. The threshold values Th1 and Th2 can be set according to actual design.
[0136] 0 is an example of the first signal value, 3 is an example of the second signal value, and 1 is an example of the third signal value. Alternatively, in another embodiment, 0 is an example of the second signal value, 3 is an example of the first signal value, and 1 is an example of the third signal value.
[0137] Therefore, in the embodiments described above, in the communication signal, if the signal value changes from 0 to 3 or from 3 to 0, then according to... Figure 6A The sampling method described is used. That is, if the transition between two temporally adjacent signal values requires passing through an intermediate value, then it can be based on... Figure 6A The described method is used for sampling. However, embodiments of this disclosure are not limited to situations where a transition between two temporally adjacent signal values requires an intermediate value (e.g., a transition from signal value 0 to signal value 3 or from signal value 3 to signal value 0 both require an intermediate value of 1). Figure 6A The described sampling method can also be used for transitions without intermediate values (e.g., a transition between signal values 0 and 1, or between signal values 3 and 1). It also depends on... Figure 6A The method described is used for sampling.
[0138] Since the communication signal RCC' output by the current comparator has only three possible values: 0, 1, and 3, the communication signal RCC' will inevitably have an intermediate state of 1 during the transition from 0->3 or 3->0. This is why a windowing mechanism is used to detect RCC transitions only before and after the ideal end position of the current chip. However, if the current sampled value of the communication signal RCC' is 1, and the communication signal RCC' undergoes a transition, then this transition will necessarily mark the end of the current chip, because there is no intermediate state during the transition from 1->0 or 1->3. Utilizing this characteristic can further improve the reliability of chip end event detection. Therefore, in some embodiments of this disclosure, if the communication signal includes a third signal value, and the third signal value is earlier than the second signal value, the method further includes: if a transition occurs in the communication signal during the sampling of the communication signal to obtain the third signal value, the time position of the communication signal transition is taken as the second starting time position. This embodiment will be described below with reference to Figure 10.
[0139] Figure 10A A timing diagram of another signal provided by at least one embodiment of the present disclosure is shown.
[0140] like Figure 10A As shown, the signal RCC_sample is the signal obtained by sampling the communication signal RCC'. For example, at sampling time 3, the communication signal RCC' is sampled to obtain the signal value 1 for CHIP 0. Therefore, at sampling time 3, the signal RCC_sample changes to the signal value 1. At sampling time 4, the communication signal RCC' is sampled to obtain the signal value 1 for CHIP 1. Therefore, at sampling time 4, the signal RCC_sample maintains the signal value 1. The signal value 1 is the intermediate value between the signal values 0 and 3, serving as an example of the third signal value.
[0141] When the signal RCC_sample is signal value 1, the signal RCC_TOG generates a jump pulse (i.e., the communication signal RCC' jumps). Regardless of which signal value (0 or 3) the communication signal RCC' jumps to, the time position at which the signal RCC_TOG generates the jump pulse (i.e., the position at which the communication signal RCC' jumps) is taken as the second start time position (i.e., the end time position of the signal value 1). In this example, the signal value 0 or the signal value 3 is an example of the second signal value. Embodiments of the present disclosure do not limit the size relationship between the first signal value and the second signal value.
[0142] In the next sampling process, the end time position of the signal value 1 is taken as the start of the next chip to calculate the sampling time for sampling.
[0143] Figure 10A As can be seen in FIG. 5, the jump of the communication signal RCC' from 1 to 0 falls outside the WND_REF time window, and if the open window mechanism is used to detect the end of the chip, the end time position of CHIP 1 will be determined to be at the middle position W of the second window of WND_REF. Since the current chip sampling value is 1 (i.e., RCC_sample = 1), the jump of the communication signal RCC' from 1 -> 0 is directly determined to be the end of CHIP 1, making the detection of the end of the chip more accurate.
[0144] Figure 10B FIG. 6 shows another timing diagram of a signal provided by at least one embodiment of the present disclosure.
[0145] As Figure 10B can be seen, the total length of CHIP 0 and CHIP 1 in this diagram is relatively long, so that the flip of the communication signal RCC' from 1 to 0 falls to the right side of the WND_REF time window. At this time, the chip sampling value is 1, and the jump of the communication signal RCC' from 1 -> 0 is directly determined to be the end of CHIP 1, making the detection of the end of the chip more accurate.
[0146] Figure 11 FIG. 7 shows a method flowchart of step S20 in Figure 6A
[0147] As Figure 11 can be seen, step S20 includes steps S21-S23.
[0148] Step S21: Counting from the first start time position to a count value that is half of the fixed time length as the sampling time.
[0149] Step S22: Sampling the communication signal based on the sampling time to obtain a sampling result.
[0150] Step S23: determining the first signal value based on the sampling result.
[0151] In this embodiment, the first start time position is the time when the count value is cleared.
[0152] For example, the communication signal is sampled to obtain a signal value 3 at the sampling time 1, which is 1 / 2 Tchip (e.g., 4 μs) counted from the start time position chip start. Then, the communication signal is sampled to obtain a signal value 0 at the sampling time 2, which is 1 / 2 Tchip counted from the start time position P.
[0153] In some other embodiments of the present disclosure, the communication signal is sampled multiple times to obtain multiple sampling results starting from the sampling time. For example, the communication signal is sampled five times consecutively to obtain five sampling results starting from the sampling time 1. Step S23 includes: counting the sampling result with the largest quantity in the multiple sampling results; and in response to the sampling result with the largest quantity being greater than or equal to a preset quantity, taking the sampling result with the largest quantity as the first signal value.
[0154] For example, the preset quantity is greater than, for example, half of the total sampling times. For example, the total sampling times is 5, and the preset quantity can be 3. The five sampling results are 3, 1, 0, 3, and 3, respectively. The quantity of the signal value 3 is 3, the quantity of the signal value 1 is 1, and the quantity of the signal value 0 is 1. The quantity of the sampling result with the largest quantity, i.e., the signal value 3, is 3, which is equal to the preset quantity 3. Therefore, the sampling result with the largest quantity, i.e., the signal value 3, is taken as the first signal value.
[0155] In some embodiments of the present disclosure, step S23 further includes: in response to the quantity of the sampling result with the largest quantity being less than the preset quantity, taking a preset signal value as the first signal value. For example, the five sampling results are 3, 1, 0, 0, and 3, respectively. The quantity of the signal value 3 is 2, the quantity of the signal value 1 is 1, and the quantity of the signal value 0 is 2. The quantity of the sampling result with the largest quantity is 2, which is less than the preset quantity 3. Therefore, the preset signal value is taken as the first signal value. The preset signal value can be one of the first signal value and the second signal value.
[0156] In order to avoid the influence of interference in the sampling process and ensure the reliability of the sampling value, the majority decision principle (i.e., the number of the most numerous sampling results is greater than or equal to a preset number, and the most numerous sampling result is taken as the first signal value) is adopted, that is, 5 points are continuously sampled after counting from the starting point of the chip to the ideal center position of the chip, and if there are greater than or equal to 3 points with the same value, the value is taken as the sampling result. If the majority decision cannot occur (such as 3, 1, 0, 0, 3), it indicates that the interference on the DSI bus is large, and at this time, the chip value can be determined as 1 or 2. If the determination result is 0, and the determination result corresponds to the first chip in the 3 chips, the chip is considered as the end of the current communication signal RCC'. In the reception of the communication signal RCC', unless the value 0 is sampled during the sampling period of the first chip in the 3 chips, the receiving module always hopes to continue receiving, and the correctness of the data is guaranteed by the CRC contained in the data. For the CRC, refer to the related description of the DSI3 bus protocol, and the disclosure will not be repeated here.
[0157] The above method of detecting the end of the chip based on the windowing mechanism combines the majority decision principle, can effectively shield the interference caused by the jump of the communication signal RCC' outside the time window, makes the error caused by the frequency offset unable to accumulate, and greatly improves the chip sampling success rate.
[0158] In some embodiments of the disclosure, the communication signal includes a reply signal provided by the slave device to the master device and an interference signal generated by the master device from the instruction signal provided by the slave device, and the method further includes: shielding the communication signal during the master device providing the instruction signal to the slave device. The embodiment will be described below in combination with Figure 12 .
[0159] Figure 12 A schematic waveform diagram of a transmission signal detected by a current comparator is shown.
[0160] When the master device of the DSI3 sends the FCC signal to the slave device of the DSI3 through the DSI3 bus, a charge-discharge current is generated, and this current is also detected by the current comparator of the master device to generate some disturbances. As Figure 12 shown, the master device provides the FCC signal to the slave device, and the transmission signal detected by the current comparator includes the interference signal 1201 caused by the FCC signal. The right part in the box of the transmission signal is a reply signal (i.e., an RCC signal) 1202 provided by the slave device to the master device, and the reply signal is the data required to be obtained by the master device of the DSI3. The FCC signal is an example of instruction data.
[0161] Therefore, the RCC disturbance caused by the transmission of the FCC signal needs to be eliminated before the communication signal is processed formally, because the bus can only transmit the FCC or RCC signal at the same time, and thus the master device only needs to mask the reception of the transmission signal during the transmission of the FCC signal to avoid the interference.
[0162] Therefore, the RCC data decoding circuit needs to mask the communication signal during the master device provides the instruction signal (i.e., the FCC data) to the slave device after receiving the communication signal provided by the current comparator.
[0163] For example, the communication signal during the master device provides the instruction signal (i.e., the FCC signal) to the slave device is masked by a multiplexer. For example, the current comparator is coupled with the multiplexer, one end of the multiplexer is connected with the output end of the current comparator to receive the communication signal, the other end of the multiplexer is coupled with the control signal, and the output end of the multiplexer is coupled with the back-end circuit in the RCC data decoding circuit to subsequently perform, for example, parsing, protocol processing and data recovery on the output data provided by the multiplexer through the back-end circuit. The back-end circuit of the RCC data decoding circuit 222 is known in the art, and thus will not be described herein.
[0164] The control signal is at a first level (e.g., high level) during the master device provides the instruction signal (i.e., the FCC signal) to the slave device, and the multiplexer outputs signal 0 under the control of the high level; the control signal is at a second level (e.g., low level) during the master device receives the RCC data provided by the slave device, and the multiplexer outputs the communication signal provided by the current comparator under the control of the low level.
[0165] In some embodiments of the present disclosure, the communication signal is a signal group with N signal values, the preset signal value is one of the first signal value and the second signal value, and N is an integer greater than or equal to 2. For example, N is 3, the preset signal value is 0, the first signal value is 0, and the second signal value is 3, or the first signal value is 3 and the second signal value is 0. The obtaining method further includes: during the communication signal is not masked, detecting whether the first signal value in the signal group is the preset signal value, and in response to the first signal value being the preset signal value, ending the transmission of the communication signal; in response to the first signal value in the signal group not being the preset signal value, determining whether the first signal value is valid; in response to the first signal value being valid, receiving the N signal values in the signal group; and in response to the first signal value being invalid, waiting for a valid first signal value.
[0166] For example, during the period when the master device receives the RCC data provided by the slave device (i.e., the control signal is at the second level), it is detected whether the first signal value in the signal group is 0. If the first signal value is 0, the communication signal transmission ends. If the first signal value in the signal group is not 0, it is confirmed whether the first signal value is valid. In response to the first signal value being valid, N signal values in the signal group are received. In response to the first signal value being invalid, the valid first signal value is waited for.
[0167] For example, whether the first signal value is valid is determined according to the majority decision principle described above. For example, the signal value is sampled 5 times continuously. If the signal value 1 or the signal value 3 is collected 3 times, the signal value is valid. If the signal value does not comply with the majority decision principle, the signal value is invalid, which is an interference signal. Then, the valid first signal value complying with the majority decision principle is continuously waited for.
[0168] For example, according to the mapping table of Figure 3A In the mapping table, 4 bits of data correspond to 3 chips of the RCC data. The first chip in the combination of the 3 chips is a non-0 value. The detection of the start chip of the RCC data is based on this. The detection of the start chip of the RCC data is started in the non-masked period. When a non-0 value is detected, it is audited. The auditing manner is that it is assumed that this is a valid chip. Then, a non-0 value is necessarily collected again at the center position of the chip. Otherwise, the non-0 value seen before is only interference. The detection logic continues to wait for the first valid non-0 value chip.
[0169] In some embodiments of the present disclosure, the sampling correctness of the communication signal depends on the correct judgment of the start time position of the chip. Except for the first chip, the start time position of the other chips is the end time position of the previous chip. The detection of the end time position of the chip adopts the method of opening a window to detect the communication signal jump before and after the ideal end position of the chip. The first communication signal jump detected in the time window is the end time position of the current chip. If no communication signal jump is detected in the time window, the ideal end time of the chip is taken as the end time position of the chip. To further improve the success rate of sampling of the communication signal, an additional judgment is added to the above-mentioned method of opening a window to detect the end time position of the chip. If the sampling value of the communication signal currently saved is 1, and the communication signal starts to jump from 1, regardless of whether the jump appears in the time window, the jump is always judged as the end event of the current chip.
[0170] At 1 / 2 Tchip after the beginning of the chip, 5 decision 3 samples are used, and when equal to or greater than 3 sample values are the same, the sample value is taken as the final sample result, and if a majority decision cannot be formed, 1 or 3 is assigned as the sample value, because assigning 0 as the sample value can lead to the end of RCC data reception. In addition, the chip end window width cannot be too large or too small, and the window width of 1 / 2 Tchip has good effect in actual tests.
[0171] Figure 13 A schematic block diagram of an acquisition apparatus 900 for a communication signal is shown, which is provided by at least one embodiment of the present disclosure.
[0172] For example, as shown in Figure 13 The acquisition apparatus 900 includes a determination unit 910 and an acquisition unit 920.
[0173] The determination unit 910 is configured to determine a first starting time position of the first signal value in the communication signal based on the second signal value. The determination unit 910 may, for example, perform the step S10 described above. Figure 6A
[0174] The acquisition unit 920 is configured to sample the communication signal based on the first starting time position to acquire the first signal value. The acquisition unit 920 may, for example, perform the step S20 described above. Figure 6A
[0175] The determination unit 910 includes a first determination sub-unit 911, a second determination sub-unit 912, and a third determination sub-unit 913.
[0176] The first determination sub-unit 911 is configured to determine an ideal ending time position of the second signal value in the communication signal based on a second starting time position of the second signal value; the first determination sub-unit 911 may, for example, perform the step S11 described above. Figure 6B
[0177] The second determination sub-unit 912 is configured to determine a time window based on the ideal ending time position; the second determination sub-unit 912 may, for example, perform the step S12 described above. Figure 6B
[0178] The third determination sub-unit 913 is configured to determine an actual ending time position of the second signal value in the communication signal based on the transition information of the communication signal within the time window, and take the actual ending time position as the first starting time position; the third determination sub-unit 913 may, for example, perform the step S13 described above. Figure 6B
[0179] For example, the determining unit 910 and the obtaining unit 920 can be hardware, software, firmware, and any feasible combination thereof. For example, the determining unit 910 and the obtaining unit 920 can be a special-purpose or general-purpose circuit, chip, or device, or a combination of a processor and a memory. The embodiments of the present disclosure do not limit the specific implementation forms of the above-mentioned units.
[0180] It should be noted that in the embodiments of the present disclosure, the units of the obtaining apparatus 900 correspond to the steps of the above-mentioned obtaining method, and the specific functions of the obtaining apparatus 900 can be referred to the related description of the obtaining method, which will not be repeated here. Figure 13 The components and structures of the obtaining apparatus 900 shown are only exemplary and are not limiting, and the obtaining apparatus 900 can also include other components and structures as needed.
[0181] At least one embodiment of the present disclosure also provides an electronic device, which includes a processor and a memory including one or more computer program modules. The one or more computer program modules are stored in the memory and configured to be executed by the processor, and the one or more computer program modules include instructions for implementing the above-mentioned obtaining method. The electronic device can improve the reliability of communication signal acquisition.
[0182] Figure 14 A schematic block diagram of an electronic device provided by some embodiments of the present disclosure is shown. As shown in the figure, the electronic device 1200 includes a processor 1210 and a memory 1220. The memory 1220 is configured to store non-transitory computer-readable instructions (for example, one or more computer program modules). The processor 1210 is configured to run the non-transitory computer-readable instructions, and the non-transitory computer-readable instructions can perform one or more steps of the above-mentioned obtaining method when executed by the processor 1210. The memory 1220 and the processor 1210 can be interconnected by a bus system and / or other forms of connection mechanism (not shown). Figure 14 For example, the processor 1210 can be a central processing unit (CPU), a graphics processing unit (GPU), or other forms of processing units having data processing capability and / or program execution capability. For example, the central processing unit (CPU) can be X86 or ARM architecture, etc. The processor 1210 can be a general-purpose processor or a special-purpose processor, and can control other components in the electronic device 1200 to perform desired functions.
[0183]
[0184] For example, the memory 1220 can include any combination of one or more computer program products which can include various forms of computer-readable storage media, for example, volatile and / or non-volatile memory. Volatile memory, for example, can include random access memory (RAM), and / or cache memory, etc. Non-volatile memory, for example, can include read-only memory (ROM), hard disk, erasable programmable read-only memory (EPROM), portable compact disc read-only memory (CD-ROM), USB memory, flash memory, etc. One or more computer program modules can be stored on the computer-readable storage media, and the processor 1210 can run the one or more computer program modules to implement various functions of the electronic device 1200. Various application programs and various data used and / or generated by the application programs, etc. can also be stored in the computer-readable storage media.
[0185] It should be noted that, in the embodiments of the present disclosure, the specific functions and technical effects of the electronic device 1200 can refer to the description of the acquisition method above, and will not be described here.
[0186] Figure 15 Another schematic block diagram of an electronic device is provided for some embodiments of the present disclosure. The electronic device 1300 is suitable for implementing the acquisition method provided by the embodiments of the present disclosure, for example. The electronic device 1300 can be a vehicle, etc. It should be noted that, Figure 15 The electronic device 1300 shown is only an example, which does not bring any limitation to the functions and use range of the embodiments of the present disclosure.
[0187] As Figure 15 shown, the electronic device 1300 can include a processing device (for example, a central processor, a graphics processor, etc.) 1310, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 1320 or loaded from a storage device 1380 to a random access memory (RAM) 1330. Various programs and data required for the operation of the electronic device 1300 are also stored in the RAM 1330. The processing device 1310, the ROM 1320, and the RAM 1330 are connected to each other through a bus 1340. An input / output (I / O) interface 1350 is also connected to the bus 1340.
[0188] In general, the following devices can be connected to the I / O interface 1350: input devices 1360 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, and the like; output devices 1370 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, and the like; storage devices 1380 including, for example, a magnetic tape, a hard disk, and the like; and communication devices 1390. The communication devices 1390 can allow the electronic device 1300 to wirelessly or wiredly communicate with other electronic devices to exchange data. While FIG. 10 illustrates the electronic device 1300 having various devices, it is understood that all of the illustrated devices are not required to be implemented or possessed, and the electronic device 1300 can instead implement or possess more or fewer devices.
[0189] For example, according to embodiments of the present disclosure, the above-described acquisition method can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product including a computer program carried on a non-transitory computer readable medium, the computer program including program codes for executing the above-described acquisition method. In such embodiments, the computer program can be downloaded and installed from a network through the communication device 1390, or installed from the storage device 1380, or installed from the ROM 1320. When the computer program is executed by the processing device 1310, the functions defined in the acquisition method provided by embodiments of the present disclosure can be implemented.
[0190] For the present disclosure, the following points need to be explained:
[0191] (1) In the drawings of embodiments of the present disclosure, only structures related to embodiments of the present disclosure are involved, and other structures can be referred to general design.
[0192] (2) In the case of no conflict, the features in the same and different embodiments of the present disclosure can be combined with each other.
[0193] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present disclosure, which should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. A method of acquisition of a communication signal, wherein, The communication signal comprises a first signal value and a second signal value adjacent in time, and the second signal value is earlier than the first signal value, and the method comprises: determining a first starting time position of the first signal value in the communication signal based on the second signal value; and sampling the communication signal based on the first starting time position to obtain the first signal value, wherein determining the first starting time position of the first signal value in the communication signal based on the second signal value comprises: determining an ideal ending time position of the second signal value in the communication signal based on a second starting time position of the second signal value; determining a time window based on the ideal ending time position; and determining an actual ending time position of the second signal value in the communication signal based on a transition information of the communication signal within the time window, taking the actual ending time position as the first starting time position, wherein determining the actual ending time position of the second signal value in the communication signal based on the transition information of the communication signal within the time window comprises: in response to the transition information indicating that the communication signal occurs at least once transition within the time window, taking a time position of the first transition within the time window as the actual ending time position of the second signal in the communication signal; or in response to the transition information indicating that the communication signal does not occur transition within the time window, taking the ideal ending time position as the actual ending time position.
2. The acquisition method of claim 1, wherein, The plurality of signal values included in the communication signal each lasts a fixed time length, sampling the communication signal based on the first starting time position to obtain the first signal value comprises: counting from the first starting time position to a count value being half of the fixed time length as a sampling time; sampling the communication signal based on the sampling time to obtain a sampling result; and determining the first signal value based on the sampling result, wherein the first starting time position is a time when a count value is zero. sampling the communication signal based on the sampling time to obtain the sampling result comprises:
3. The acquisition method of claim 2, wherein, sampling the communication signal multiple times from the sampling time to obtain a plurality of sampling results; determining the first signal value based on the sampling result comprises: counting a number of the plurality of sampling results; in response to the number of the plurality of sampling results being greater than or equal to a preset number, taking the plurality of sampling results as the first signal value. determining the first signal value based on the sampling result further comprises:
4. The acquisition method of claim 3, wherein, in response to the number of the plurality of sampling results being less than the preset number, taking a preset signal value as the first signal value. The plurality of signal values included in the communication signal each lasts a fixed time length, 5. The acquisition method of claim 1, wherein, determining the ideal ending time position of the second signal value in the communication signal based on the second starting time position of the second signal value comprises: determining the ideal end time position of the second signal value in the communication signal based on a second start time position of the second signal and the fixed time length.
6. The acquisition method of claim 1, wherein, The time window has a preset width, and the ideal end time position is located at a middle position of the time window.
7. The acquisition method of claim 6, wherein, Each of a plurality of signal values included in the communication signal lasts a fixed time length, and the fixed time length is 2 times of the preset width.
8. The acquisition method of claim 1, wherein, The method further comprises: detecting the communication signal to generate a jump signal, wherein the jump signal includes pulses located at time positions at which the communication signal jumps, and the pulses of the jump signal indicate the jump information; generating a window detection signal based on the time window and the jump signal; and determining a time position of a first jump within the time window based on the jump signal and the window detection signal.
9. The acquisition method of claim 8, wherein, The method further comprises: at a start position of the time window, the window detection signal jumps from a first value to a second value; in response to detecting that the jump signal jumps for the first time after the start position within the time window, the window detection signal jumps from the second value to the first value.
10. The acquisition method of claim 9, wherein, The method further comprises: performing a logical operation on the jump signal and the window detection signal; and determining the time position of the first jump within the time window based on a result of the logical operation.
11. The acquisition method of claim 10, wherein, The second value is 1, the first value is 0, a peak value of a pulse signal is 1, the logical operation includes an AND operation, a time position at which a result of the AND operation is 1 is taken as the time position of the first jump within the time window.
12. The acquisition method of claim 9, wherein, The method further comprises: in response to detecting that the jump signal does not jump within the time window, the window detection signal jumps from the second value to the first value at an end position of the time window.
13. The acquisition method of claim 1, wherein, in response to the jump information indicating that the communication signal does not jump within the time window, taking the ideal end time position as the actual end time position, comprises: in response to the jump information indicating that the communication signal does not jump within the time window until the ideal end time position, taking the ideal end time position as a pending end time position; in response to the jump information indicating that the communication signal does not jump after the ideal end time position within the time window, taking the pending end time position as the actual end time position.
14. The acquisition method of claim 13, wherein, in response to the jump information indicating that the communication signal jumps at least once within the time window, taking a time position of a first jump within the time window as an actual end time position of the second signal in the communication signal, comprises: in response to the hop information indicating that the communication signal hops after the ideal end time position in the time window, taking a time position of a first hop in the time window as the actual end time position.
15. The acquisition method of claim 1, wherein, The method further includes: receiving a transmission signal; and encoding the transmission signal according to an encoding rule to obtain the communication signal, wherein the encoding rule encodes the transmission signal based on the first signal value and the second signal value.
16. The acquisition method of claim 15, wherein, The encoding rule further encodes the transmission signal based on a third signal value, a size of the third signal value being between the first signal value and the second signal value, the communication signal including the third signal value, the third signal value being earlier than the second signal value, The method further includes: in a case where the communication signal hops during sampling of the communication signal to obtain the third signal value, taking a time position at which the communication signal hops as the second start time position.
17. The acquisition method of claim 15, wherein, The communication signal includes a reply signal provided by a slave device to a master device and an interference signal, the interference signal being generated by the master device providing an instruction signal to the slave device, The method further includes: masking the communication signal during the master device providing the instruction signal to the slave device.
18. The acquisition method of claim 17, wherein, The communication signal takes N signal values as a signal group, a preset signal value being one of the first signal value and the second signal value, wherein N is an integer greater than or equal to 2, The method further includes: detecting whether a first signal value in the signal group is the preset signal value during the communication signal not being masked, in response to the first signal value being the preset signal value, the communication signal being transmitted; in response to the first signal value in the signal group not being the preset signal value, confirming whether the first signal value is valid, in response to the first signal value being valid, receiving N signal values in the signal group, or in response to the first signal value being invalid, waiting for a valid first signal value.
19. The acquisition method of claim 1, wherein, The communication signal is generated based on a distributed system interface protocol.
20. An apparatus for acquiring a communication signal, wherein, The communication signal includes a first signal value and a second signal value adjacent in time sequence, the second signal value being earlier than the first signal value, and the apparatus includes: a determination unit configured to determine a first start time position of the first signal value in the communication signal based on the second signal value; and an acquisition unit configured to sample the communication signal based on the first start time position to acquire the first signal value, wherein the determination unit includes: a first determination sub-unit configured to determine an ideal end time position of the second signal value in the communication signal based on a second start time position of the second signal value; a second determination sub-unit configured to determine a time window based on the ideal end time position; and a third determination sub-unit configured to determine an actual end time position of the second signal value in the communication signal based on hop information of the communication signal in the time window, and take the actual end time position as the first start time position. The determining of the actual ending time position of the second signal value in the communication signal based on the hopping information of the communication signal in the time window comprises: in response to the hopping information indicating that the communication signal hops at least once in the time window, taking the time position of the first hopping in the time window as the actual ending time position of the second signal in the communication signal; or in response to the hopping information indicating that the communication signal does not hop in the time window, taking the ideal ending time position as the actual ending time position. 21.An electronic device comprising: a processor; a memory including one or more computer program instructions, wherein the one or more computer program instructions are stored in the memory and, when executed by the processor, implement the acquisition method of any one of claims 1-19.
Citation Information
Patent Citations
DSSS signal identification method, apparatus and device, and computer readable storage medium
CN112234955A