CN113376454A - Electronic device and electronic product - Google Patents

Electronic device and electronic product Download PDF

Info

Publication number
CN113376454A
CN113376454A CN202110062306.XA CN202110062306A CN113376454A CN 113376454 A CN113376454 A CN 113376454A CN 202110062306 A CN202110062306 A CN 202110062306A CN 113376454 A CN113376454 A CN 113376454A
Authority
CN
China
Prior art keywords
count value
packet
electronic device
counter
original signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110062306.XA
Other languages
Chinese (zh)
Inventor
洪佳君
何致纬
王景文
李亮辉
陈奕铮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Publication of CN113376454A publication Critical patent/CN113376454A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/02Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage
    • G01R23/10Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage by converting frequency into a train of pulses, which are then counted, i.e. converting the signal into a square wave
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an electronic device and an electronic product. The wireless communication module receives a first packet and a second packet from another electronic device, wherein the first packet comprises a first count value, the second packet comprises a second count value, and the first count value and the second count value respectively correspond to two adjacent edges of an original signal of the another electronic device; and the processing circuit obtains a third count value from the counter when receiving the first packet and obtains a fourth count value from the counter when receiving the second packet; and the processing circuit also generates an output signal substantially identical to the original signal according to the first count value, the second count value, the third count value and the fourth count value.

Description

Electronic device and electronic product
Technical Field
The invention relates to an electronic device with a wireless communication function and an electronic product.
Background
A typical electronic product is tested in a factory before shipment to ensure that its function and operation are normal. However, for some electronic products that cannot be physically connected for testing, such as a wireless electric meter, it is necessary to test whether signals in the electronic products are normal and accurate enough by means of wireless transmission. Specifically, the electronic product needs to transmit the related information of one or more internal signals to the measuring device through wireless transmission during the testing stage, so that the measuring device can determine the correctness and accuracy of the internal signals of the electronic product, however, since the frequency of the frequency signal in the electronic system is easily affected by environmental factors (e.g., environmental temperature), the testing process may cause measurement errors due to the difference between the frequency signals of the electronic product and the measuring device, and the signal delay of the wireless transmission may also be affected by the environmental factors, which may cause the measuring device to fail to receive the related information of the signal from the electronic product in real time, thereby causing errors in signal measurement.
Disclosure of Invention
Therefore, one of the objectives of the present invention is to provide an electronic device, which can be used in a measuring device to accurately generate an output signal identical to an internal signal of an electronic product for signal measurement and determination, so as to solve the problems described in the prior art.
In one embodiment of the present invention, an electronic device is disclosed, which includes a wireless communication module, a counter and a processing circuit. The wireless communication module is used for receiving a first packet and a second packet from another electronic device, wherein the first packet comprises a first counting value, the second packet comprises a second counting value, and the first counting value and the second counting value respectively correspond to two adjacent edges of an original signal of the another electronic device; the counter is used for continuously counting according to a frequency signal; and the processing circuit is used for obtaining a third counting value from the counter when receiving the first packet and obtaining a fourth counting value from the counter when receiving the second packet; and the processing circuit also generates an output signal substantially identical to the original signal according to the first count value, the second count value, the third count value and the fourth count value.
In another embodiment of the present invention, an electronic product is disclosed, which includes a counter, a detection circuit and a wireless communication module. The counter is used for continuously counting according to a frequency signal; the detection circuit is used for detecting an original signal in real time, acquiring a first count value from the counter when the upper edge of the original signal appears, and acquiring a second count value from the counter when the lower edge of the original signal appears; and the wireless communication module is used for transmitting the first count value to an electronic device through a first packet after the detection circuit obtains the first count value, and transmitting the second count value to the electronic device through a second packet after the detection circuit obtains the first count value.
In another embodiment of the present invention, an electronic device is disclosed, which includes a wireless communication module, a counter and a processing circuit. The wireless communication module is used for receiving a first packet, a second packet, a third packet and a fourth packet from another electronic device, wherein the first packet at least comprises a first counting value, the second packet at least comprises a second counting value, the third packet at least comprises a third counting value, the fourth packet at least comprises a fourth counting value, the first counting value and the second counting value respectively correspond to two adjacent edges of an original signal of the another electronic device, and the third counting value and the fourth counting value are respectively generated according to two packets transmitted to the another electronic device by the wireless communication module. The counter is used for continuously counting according to a frequency signal. The processing circuit is coupled to the wireless communication module and the counter, and is configured to generate an output signal substantially identical to the original signal according to the first count value, the second count value, the third count value and the fourth count value.
Drawings
Fig. 1 is a schematic diagram of an electronic product and an electronic device according to an embodiment of the invention.
FIG. 2 is a diagram illustrating an electronic product generating a packet including a first count value and a second count value.
Fig. 3 is a schematic diagram illustrating an electronic device generating a third count value and a fourth count value according to which an output signal is generated.
Fig. 4 is a schematic diagram of an electronic product and an electronic device according to another embodiment of the invention.
FIG. 5 is a diagram illustrating the electronic product of FIG. 4 generating a packet including a first count value and a second count value.
Fig. 6 is a schematic diagram illustrating that the electronic device in fig. 4 generates a third count value and a fourth count value according to which an output signal is generated.
Fig. 7 is a schematic diagram of an electronic product and an electronic device according to another embodiment of the invention.
Fig. 8 is a schematic diagram illustrating an electronic product generating a first count value, a second count value, a third count value and a fourth count value.
FIG. 9 is a diagram illustrating an output signal generated by an electronic device.
Detailed Description
Fig. 1 is a schematic diagram of an electronic product 110 and an electronic device 120 according to an embodiment of the invention, wherein the electronic device 120 may be disposed in a measuring device for determining a signal status of an original signal Din in the electronic product 110. As shown in fig. 1, the electronic product 110 includes a wireless communication module 112, a detection circuit 114 and a counter 116, and the electronic device 120 includes a wireless communication module 122, a processing circuit 124 and a counter 126. In this embodiment, the electronic product 110 may be a wireless meter (Watt hour meter) that can be installed in any environment using power and records the power consumption of the environment, and the raw signal Din is the power consumption for representing the environment; the electronic device 120 is used to internally reconstruct an output signal Dout substantially identical to the original signal Din for determining the quality of the original signal Din.
When the electronic product 110 is in a testing stage, the electronic product 110 receives an original signal Din from the outside, wherein the original signal Din is a digital signal generated by simulating the electronic product 110 in actual application, and the original signal Din can come from a measuring device (e.g., transmitted through other interfaces) including the electronic device 120. Furthermore, the counter 116 may be a free-running counter (free-run counter) that continuously generates the count value CV1 according to the clock signal CLK 1. Then, the detecting circuit 114 continuously detects the original signal Din to determine whether the original signal Din has a level change, that is, whether an edge of the original signal Din appears on the waveform, so as to generate a detecting result D _ res. In detail, when the detecting circuit 114 detects that the original signal Din changes from the low level to the high level, the detecting circuit 114 obtains a current count value CV1 from the counter 116 to obtain a first count value for generating a detection result D _ res and transmitting the detection result D _ res to the electronic device 120 through the wireless communication module 112, wherein the detection result D _ res at this time includes the first count value corresponding to an upper edge (rising edge) of the original signal Din. On the other hand, when the detecting circuit 114 detects that the original signal Din changes from the high level to the low level, the detecting circuit 114 obtains the current count value CV1 from the counter 116 to obtain a second count value for generating a detection result D _ res and transmitting the detection result D _ res to the electronic device 120 through the wireless communication module 112, wherein the detection result D _ res at this time includes the second count value corresponding to a falling edge (falling edge) of the original signal Din. In summary, each time the detecting circuit 114 detects that the original signal Din has an upper edge or a lower edge, the counting value CV1 of the counter 116 is obtained in real time, and the detecting result D _ res is generated to transmit the upper edge or the lower edge information and the corresponding counting value to the electronic device 120. In the embodiment, since the detection circuit 114 immediately transmits the corresponding detection result D _ res to the electronic device 120 when detecting that the original signal Din has an upper edge or a lower edge, no matter how close the upper edge and the lower edge of the original signal Din are, one packet only includes the count value of one edge of the original signal Din, however, the invention is not limited thereto.
In operation of the electronic device 120, the wireless communication module 122 continuously receives a plurality of packets from the electronic product 110, wherein some of the plurality of packets include the detection result D _ res generated by the electronic product 110. In addition, the counter 126 may be a free running counter that continuously generates a count value CV2 based on the clock signal CLK 2. When the processing circuit 124 receives the signal with the detection result D _ res through the wireless communication module 122, the processing circuit 124 obtains the count value CV2 from the counter 126 in real time for subsequent calculation. Specifically, when the processing circuit 124 receives the rising edge information containing the original signal Din and the corresponding first count value through the wireless communication module 122, the processing circuit 124 obtains the current count value CV2 from the counter 126 to obtain a third count value; and when the processing circuit 124 receives the falling edge information including the original signal Din and the corresponding second count value through the wireless communication module 122, the processing circuit 124 obtains the current count value CV2 from the counter 126 to obtain a fourth count value. Finally, the processing circuit 124 generates the output signal Dout identical to the original signal Din according to the first and second count values from the electronic product 110, the third and fourth count values obtained by the electronic device 120 itself, and the time interval between the two received signals (packets) including the detection result D _ res.
Fig. 2 and fig. 3 are taken as examples for explanation, wherein fig. 2 is a schematic diagram of the electronic product 110 generating a packet including a first count value and a second count value, and fig. 3 is a schematic diagram of the electronic device 120 generating a third count value and a fourth count value to generate the output signal Dout accordingly. In the following description, it is assumed that both the electronic product 110 and the electronic device 120 support the Bluetooth Low Energy (BLE) specification, and the wireless communication module 112 in the electronic product 110 transmits a Bluetooth packet to the wireless communication module 122 of the electronic device 120. Referring to fig. 2, when the detecting circuit 114 detects that the first count value obtained when the rising edge of the original signal Din is "21200", the electronic product 110 immediately transmits the packet containing the first count value to the electronic device 120, and if the packet transmission fails (for example, the electronic product 110 does not receive an Acknowledgement (ACK)), the electronic product 110 retransmits the packet containing the first count value to the electronic device 120 after a fixed time interval. It should be noted that, in the present embodiment, the transmission interval of the packet is 7.5 milliseconds (ms), but this is merely an example and not a limitation of the present invention, and the transmission interval of the packet can be determined by online negotiation between the electronic product 110 and the electronic device 120. Then, the second count value obtained when the detecting circuit 114 detects the falling edge of the original signal Din is "1221231", and the electronic product 110 immediately transmits the packet containing the second count value to the electronic device 120.
Next, referring to fig. 3, assuming that the electronic device 120 successfully receives the packet containing the first count value when the electronic product 110 transmits the packet containing the first count value for the first time, the processing circuit 124 obtains a third count value "1024" from the current count value of the counter 126; in addition, when the processing circuit 124 receives a packet transmitted from the electronic product 110 and containing the second count value, the processing circuit 124 will now obtain a fourth count value "1201087" from the counter 126. Then, assuming that the frequencies of the clock signals CLK1 and CLK2 are 40MHz, the width of each clock cycle is 25 nanoseconds (ns), the first time the electronic product 110 sends a packet containing the first count value as the first packet, the first time the electronic product 110 sends a packet containing the second count value as the fifth packet, and the transmission interval between each packet is 7.5 milliseconds, the width W of the waveform of the output signal Dout with a high level can be calculated as follows:
W=[(1201087-1024)*25ns/(7.5ms*4)]*(1221231-21200)=1200094.............(1);
where "(1221231-. Therefore, after determining the width W of the output signal Dout, the processing circuit 124 can accurately establish the same output signal Dout as the original signal Din according to the count value CV2 of the counter 126, such as the control output signal Dout changing from low level to high level when the count value CV2 is "352000" and changing from high level to low level when the count value CV2 is "1552094" as shown in fig. 3.
It should be noted that, in the example shown in fig. 3, it is assumed that the electronic device 120 successfully receives the packet containing the first count value transmitted by the electronic product 110 for the first time, and if the electronic device 120 successfully receives the packet containing the first count value transmitted by the electronic product 110 for the second time, the "7.5 ms 4" in the above formula (1) is modified to be "7.5 ms 3", and the third count value "1024" is also modified to be the count value when the second packet is received. Since a person skilled in the art can understand how to modify the content of the formula (1) to adapt to the packet retransmission after reading the above description, the detailed description is omitted here.
In the present embodiment, when the electronic product 110 is a radio watch, the width of the original signal Din with high level represents the power consumption of the environment, so that, by the contents described in the above embodiments, even if the actual frequencies of the clock signal CLK1 and the clock signal CLK2 are different due to process or environmental factors, the electronic device 120 can still accurately reproduce the original signal Din for subsequent applications.
On the other hand, in the testing stage of the electronic product 110, since the original signal Din of the electronic product is a known signal inputted from the outside, and the output signal Dout generated by the electronic device 120 can be completely the same as the original signal Din, the electronic device 120 itself can also determine whether the internal operation of the electronic product 110 is defective by comparing the output signal Dout with the known signal, so as to detect the quality of the internal signal of the electronic product 110.
Fig. 4 is a schematic diagram of an electronic product 410 and an electronic device 420 according to an embodiment of the invention, wherein the electronic device 420 can be disposed in a measuring device and used for determining a signal status of an original signal Din in the electronic product 410. As shown in fig. 4, the electronic product 410 includes a wireless communication module 412, a detection circuit 414 and a counter 416, and the electronic device 420 includes a wireless communication module 422, a processing circuit 424 and a counter 426. In this embodiment, the electronic product 410 may be a wireless electric meter, which can be installed in any environment using electric power and record the amount of power used in the environment, and the original signal Din is the power consumption amount used to represent the environment; the electronic device 420 is used to internally reconstruct an output signal Dout that is the same as the original signal Din for determining the quality of the original signal Din.
When the electronic product 410 is in a testing stage, the electronic product 410 receives an original signal Din from the outside, wherein the original signal Din is a digital signal generated by simulating the electronic product 410 during actual application, and the original signal Din can be from a measuring device (e.g., transmitted through other interfaces) including the electronic device 420. In addition, the counter 416 may be a free running counter that continuously generates a count value CV1 based on the clock signal CLK 1. Then, the detecting circuit 414 continuously detects the original signal Din to determine whether the original signal Din has a level change, that is, whether an edge of the original signal Din appears on the waveform, so as to generate a detecting result D _ res. In detail, when the detecting circuit 414 detects that the original signal Din changes from low level to high level, the detecting circuit 414 obtains the current count value CV1 from the counter 416 to obtain a first count value for generating the detection result D _ res and transmitting the detection result D _ res to the electronic device 420 through the wireless communication module 412, wherein the detection result D _ res at this time includes the first count value corresponding to the rising edge of the original signal Din. In the present embodiment, if the packet transmission of the electronic product 410 fails, before the packet retransmission, the detection circuit 414 further obtains the current count value CV1 from the counter 416 to obtain an updated first count value, and transmits the updated first count value together with the previous first count value to the electronic device 420 through the new packet. On the other hand, when the detecting circuit 414 detects that the original signal Din changes from the high level to the low level, the detecting circuit 414 obtains the current count value CV1 from the counter 416 to obtain a second count value for generating a detection result D _ res and transmitting the detection result D _ res to the electronic device 420 through the wireless communication module 412, wherein the detection result D _ res at this time includes the second count value corresponding to the lower edge of the original signal Din. In the present embodiment, if the packet transmission of the electronic product 410 fails, before the packet retransmission, the detection circuit 414 further obtains the current count value CV1 from the counter 416 to obtain an updated second count value, and transmits the updated second count value together with the previous second count value to the electronic device 420 through the new packet. In summary, each time the detecting circuit 414 detects that the original signal Din has an upper edge or a lower edge, the counting value CV1 of the counter 416 is obtained in real time, and the detecting result D _ res is generated to transmit the upper edge information or the lower edge information and the corresponding counting value to the electronic device 420. In the embodiment, since the detection circuit 414 immediately transmits the corresponding detection result D _ res to the electronic device 420 when detecting that the original signal Din has an upper edge or a lower edge, no matter how close the upper edge and the lower edge of the original signal Din are, one packet only contains the count value of one edge of the original signal Din.
In operation of the electronic device 420, the wireless communication module 422 continuously receives a plurality of packets from the electronic product 410, wherein some of the plurality of packets include the detection result D _ res generated by the electronic product 410. In addition, the counter 426 may be a free running counter that continuously generates a count value CV2 based on the clock signal CLK 2. When the processing circuit 424 receives the signal with the detection result D _ res through the wireless communication module 422, the processing circuit 424 obtains the count value CV2 from the counter 426 in real time for subsequent calculation. Specifically, when the processing circuit 424 receives the rising edge information including the original signal Din and the corresponding first count value through the wireless communication module 422, the processing circuit 424 obtains the current count value CV2 from the counter 426 to obtain a third count value; and when the processing circuit 424 receives the falling edge information including the original signal Din and the corresponding second count value through the wireless communication module 422, the processing circuit 424 obtains the current count value CV2 from the counter 426 to obtain a fourth count value. Finally, the processing circuit 424 generates the output signal Dout identical to the original signal Din according to the first count value and the second count value from the electronic product 410, the updated first count value or the updated second count value (if any) from the electronic product 410, and the third count value and the fourth count value obtained by the electronic device 420 itself.
Fig. 5 and fig. 6 are taken as examples for explanation, in which fig. 5 is a schematic diagram of the electronic product 410 generating the packet including the first count value and the second count value, and fig. 6 is a schematic diagram of the electronic device 420 generating the third count value and the fourth count value to generate the output signal Dout accordingly. In the following description, it is assumed that the electronic product 410 and the electronic device 420 do not have a fixed packet transmission interval, that is, the electronic product 410 can transmit packets to the electronic device 420 at any time without setting the fixed packet transmission interval as in the bluetooth low energy specification. In one embodiment, the electronic product 410 and the electronic device 420 support the Nordic 2.4GHz specification. Referring to fig. 5, when the detecting circuit 414 detects the rising edge of the original signal Din, the obtained first count value is "21200", and the electronic product 410 immediately transmits the packet containing the first count value to the electronic device 420, and if the packet transmission fails (e.g., the electronic product 410 does not receive an Acknowledgement (ACK)), the detecting circuit 414 obtains the current count value CV1 from the counter 416 as an updated first count value (e.g., "36200" in fig. 5), and immediately transmits the first count value "21200" and the updated first count value "36200" to the electronic device, that is, the updated first count value "36200" can be regarded as a time point corresponding to the retransmitted packet. Then, the detecting circuit 414 detects that the second count value obtained when the detecting circuit 414 detects the bottom edge of the original signal Din is "1221231", and the electronic product 410 immediately transmits the packet containing the second count value to the electronic device 420.
Next, referring to fig. 6, since the electronic device 420 does not succeed when the electronic product 410 transmits the packet containing the first count value for the second time, the processing circuit 424 obtains the count value of the current counter 126 to obtain a third count value "15028"; in addition, when the processing circuit 424 receives a packet transmitted from the electronic product 410 and containing the second count value, the processing circuit 424 now obtains a fourth count value "1201087" from the counter 426. Then, the width W of the waveform of the output signal Dout having the high level can be calculated as follows:
W=[(1221231-36200)/(1201087-15028)]*(1221231-21200)=1185031.......(2);
where the calculated width W represents a width in which the waveform of the original signal Din has a high level in the case of counting using the frequency signal CLK 2. Therefore, after determining the width W of the output signal Dout, the processing circuit 124 can accurately establish the same output signal Dout as the original signal Din according to the counter value CV2 of the counter 126, such as the control output signal Dout changing from low to high when the counter value CV2 is "42000" and changing from high to low when the counter value CV2 is "1227031" as shown in FIG. 3.
It should be noted that, in the examples shown in fig. 5 and 6, it is assumed that the electronic device 420 successfully receives the packet containing the first count value when the electronic product 410 transmits the packet containing the first count value for the second time, and if the electronic device 420 successfully receives the packet containing the first count value when the electronic product 410 transmits the packet containing the first count value for the first time, the updated first count value "36200" in the above formula (2) is modified to be the first count value "21200", and the third count value "15028" is modified to be the count value "1024" when the first packet is received. Since a person skilled in the art can understand how to modify the content of the formula (2) to adapt to the situation that the first packet transmission is successful after reading the above contents, detailed descriptions thereof are omitted.
Fig. 7 is a schematic diagram of an electronic product 710 and an electronic device 720 according to another embodiment of the invention, wherein the electronic device 720 can be disposed in a measuring device for determining a signal status of an original signal Din in the electronic product 710. As shown in fig. 7, the electronic product 710 includes a wireless communication module 712, a detection circuit 714 and a counter 716, and the electronic device 720 includes a wireless communication module 722, a processing circuit 724 and a counter 726. In this embodiment, the electronic product 710 may be a wireless electric meter, which can be installed in any environment using electric power and record the amount of power used in the environment, and the original signal Din is the power consumption amount used to represent the environment; the electronic device 720 is used to internally reconstruct an output signal Dout substantially identical to the original signal Din for determining the quality of the original signal Din.
When the electronic product 710 is in a testing stage, the electronic product 710 receives an original signal Din from the outside, wherein the original signal Din is a digital signal generated by simulating the electronic product 710 in actual application, and the original signal Din can be from a measuring device (e.g., transmitted through other interfaces) including the electronic device 720. In addition, the counter 716 may be a free running counter that continuously generates a count value CV1 based on the clock signal CLK 1. Then, the detecting circuit 714 continuously detects the original signal Din to determine whether the original signal Din has a level change, that is, whether an edge of the original signal Din appears on the waveform, so as to generate a detecting result D _ res. In detail, when the detecting circuit 714 detects that the original signal Din changes from the low level to the high level, the detecting circuit 714 obtains the current count value CV1 from the counter 716 to obtain a first count value for generating the detection result D _ res and transmitting the detection result D _ res to the electronic device 720 through the wireless communication module 712, wherein the detection result D _ res at this time includes the first count value corresponding to the rising edge of the original signal Din. On the other hand, when the detecting circuit 714 detects that the original signal Din changes from the high level to the low level, the detecting circuit 714 obtains the current count value CV1 from the counter 716 to obtain a second count value for generating a detection result D _ res, and transmits the detection result D _ res to the electronic device 720 through the wireless communication module 712, wherein the detection result D _ res at this time includes the second count value corresponding to the bottom edge of the original signal Din. In summary, each time the detecting circuit 714 detects that the original signal Din has an upper edge or a lower edge, the counting value CV1 of the counter 716 is obtained in real time, and the detecting result D _ res is generated to transmit the upper edge or the lower edge information and the corresponding counting value to the electronic device 720.
In operation of the electronic device 720, the wireless communication module 722 generates packets into the electronic product 710 to enable the electronic product 710 to generate a third count value and a fourth count value, specifically, assuming that the electronic product 710 and the electronic device 720 both support the Bluetooth Low Energy (BLE) specification, the electronic device 720 can transmit a plurality of bluetooth packets to the wireless communication module of the electronic product 710, and when the electronic product 710 receives a packet from the electronic device 720, the detection circuit 714 obtains the current count value CV1 from the counter 716 to obtain the third count value for generating the detection result D _ res and transmitting the detection result D _ res to the electronic device 720 through the wireless communication module 712; when the electronic product 710 receives another packet from the electronic device 720, the detecting circuit 714 obtains the current count value CV1 from the counter 716 to obtain a fourth count value, so as to generate a detection result D _ res and transmit the detection result D _ res to the electronic device 720 through the wireless communication module 712. It should be noted that, when the electronic product 710 transmits the third count value and the fourth count value to the electronic device 720, the bluetooth packet information of the corresponding electronic device 720 (for example, the first bluetooth packet and the fifth bluetooth packet in this embodiment) is also transmitted.
Then, the processing circuit 724 generates the output signal Dout identical to the original signal Din according to the first count value, the second count value, the third count value and the fourth count value from the electronic product 710, and the time intervals of the bluetooth packets corresponding to the third count value and the fourth count value.
Fig. 8 and fig. 9 are taken as examples for explanation, wherein fig. 8 is a schematic diagram of the electronic product 710 generating the first count value, the second count value, the third count value and the fourth count value, and fig. 9 is a schematic diagram of the electronic device 720 generating the output signal Dout. Referring first to fig. 8, a first count value obtained when the detection circuit 714 detects the upper edge of the original signal Din is "21200", and a second count value obtained when the detection circuit 714 detects the lower edge of the original signal Din is "1221231". In addition, the third count value obtained by the detection circuit 714 when the first bluetooth packet from the electronic device 720 is received is "1024", and the fourth count value obtained by the detection circuit 714 when the fifth bluetooth packet from the electronic device 720 is received is "1201087". Next, referring to fig. 9, assuming that the frequencies of the clock signals CLK1 and CLK2 are 40MHz, the width of each clock cycle is 25 nanoseconds (ns), and the transmission interval of each packet is 7.5 milliseconds, the width W of the waveform of the output signal Dout with a high level can be calculated as follows:
W=(7.5ms*4)*(1221231-21200)/[(1201087-1024)*25ns]......(3);
therefore, after determining the width W of the output signal Dout, the processing circuit 724 can accurately establish the same output signal Dout as the original signal Din according to the count value CV2 of the counter 726, such as the control output signal Dout changing from low level to high level when the count value CV2 is "352000" and changing from high level to low level when the count value CV2 is "1551968" as shown in fig. 9.
Briefly summarizing the present invention, in the electronic device and the electronic product of the present invention, the electronic product obtains a first count value from the counter when an upper edge of an original signal appears, and obtains a second count value from the counter when a lower edge of the original signal appears, and transmits the first count value and the second count value to the electronic device through a first packet and a second packet which are different from each other, respectively; the electronic device obtains a third count value from the internal counter when receiving the first packet and obtains a fourth count value from the internal counter when receiving the second packet, and the waveform of the original signal can be accurately reproduced by performing operation by using the first count value, the second count value, the third count value, the fourth count value and/or other time information without being influenced by errors of frequency signals inside the electronic device and the electronic product. In another embodiment, the first count value, the second count value, the third count value and the fourth count value may be generated by an electronic product, and then the first count value, the second count value, the third count value and the fourth count value are transmitted to the electronic device to reconstruct the waveform of the original signal.
The above description is only a preferred embodiment of the present invention, and all equivalent changes and modifications made within the scope of the claims of the present invention should be covered by the present invention.
[ notation ] to show
110. 410, 710: electronic product
112. 412, 712: wireless communication module
114. 414, 714: detection circuit
116. 416, 716: counter with a memory
120. 420, 720: electronic device
122. 422, 722: wireless communication module
124. 424, 724: processing circuit
126. 426, 726: counter with a memory
CLK1, CLK 2: frequency signal
CV1, CV 2: count value
Din: original signal
D _ res: the result of the detection
Dout: and outputting the signal.

Claims (10)

1. An electronic device, comprising:
a wireless communication module, configured to receive a first packet and a second packet from another electronic device, where the first packet at least includes a first count value, the second packet at least includes a second count value, and the first count value and the second count value respectively correspond to two adjacent edges of an original signal of the another electronic device;
a counter for continuously counting according to a frequency signal; and
a processing circuit, coupled to the wireless communication module and the counter, for obtaining a third count value from the counter when receiving the first packet and obtaining a fourth count value from the counter when receiving the second packet; and the processing circuit also generates an output signal which is the same as the original signal according to the first count value, the second count value, the third count value and the fourth count value.
2. The electronic device of claim 1, wherein the processing circuit calculates a time interval between two adjacent edges of the output signal according to a difference between the first count value and the second count value and a difference between the third count value and the fourth count value, and generates the output signal accordingly.
3. The electronic device of claim 2, wherein the processing circuit calculates the time interval between two adjacent edges of the output signal according to the difference between the first count value and the second count value, the difference between the third count value and the fourth count value, the width of one period of the clock signal, and the time interval between the first packet and the second packet received by the processing circuit.
4. The electronic device of claim 1, wherein the first packet comprises the first count value and an updated first count value, the first packet is a retransmission packet of a previous packet, the previous packet comprises the first count value, and the updated first count value corresponds to a transmission time of the first packet.
5. The electronic device of claim 4, wherein the processing circuit further generates the output signal identical to the original signal according to the first count value, the updated first count value, the second count value, the third count value and the fourth count value.
6. The electronic device of claim 5, wherein the processing circuit calculates a time interval between two adjacent edges of the output signal according to a difference between the first count value and the second count value, a difference between the third count value and the fourth count value, and a difference between the second count value and the updated first count value, and generates the output signal accordingly.
7. An electronic product, comprising:
a counter for continuously counting according to a frequency signal;
a detection circuit for detecting an original signal in real time, and obtaining a first count value from the counter when an upper edge of the original signal appears, and obtaining a second count value from the counter when a lower edge of the original signal appears; and
the wireless communication module is used for transmitting the first count value to an electronic device through a first packet after the detection circuit obtains the first count value, and transmitting the second count value to the electronic device through a second packet after the detection circuit obtains the first count value.
8. The electronic product of claim 7, wherein the detection circuit obtains an updated first count value from the counter when the first packet fails to be transmitted, and transmits the first count value and the updated first count value to the electronic device via another packet.
9. An electronic device, comprising:
a wireless communication module, configured to receive a first packet, a second packet, a third packet, and a fourth packet from another electronic device, where the first packet at least includes a first count value, the second packet at least includes a second count value, the third packet at least includes a third count value, the fourth packet at least includes a fourth count value, and the first count value and the second count value respectively correspond to two adjacent edges of an original signal of the another electronic device, and the third count value and the fourth count value are respectively generated according to two packets transmitted to the another electronic device by the wireless communication module;
a counter for continuously counting according to a frequency signal; and
and the processing circuit is coupled with the wireless communication module and the counter and used for generating an output signal which is the same as the original signal according to the first count value, the second count value, the third count value and the fourth count value.
10. The electronic device of claim 9, wherein the processing circuit calculates a time interval between two adjacent edges of the output signal according to a difference between the first count value and the second count value and a difference between the third count value and the fourth count value, and generates the output signal accordingly.
CN202110062306.XA 2020-02-25 2021-01-18 Electronic device and electronic product Pending CN113376454A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US202062981037P 2020-02-25 2020-02-25
US62/981,037 2020-02-25

Publications (1)

Publication Number Publication Date
CN113376454A true CN113376454A (en) 2021-09-10

Family

ID=77569574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110062306.XA Pending CN113376454A (en) 2020-02-25 2021-01-18 Electronic device and electronic product

Country Status (2)

Country Link
CN (1) CN113376454A (en)
TW (1) TWI736497B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5133064A (en) * 1987-04-27 1992-07-21 Hitachi, Ltd. Data processing system generating clock signal from an input clock, phase locked to the input clock and used for clocking logic devices
JPH10303874A (en) * 1997-04-28 1998-11-13 Nec Corp System for detecting synchronized edge between different clocks
JP2001133526A (en) * 1999-11-09 2001-05-18 Denso Corp Device for generating chattering
JP2002026884A (en) * 2000-07-10 2002-01-25 Hitachi Ltd Communication method and communication apparatus
US6342697B1 (en) * 1998-09-21 2002-01-29 Mitutoyo Corporation Method and apparatus for detecting origin of measurement
CN101086659A (en) * 2006-06-08 2007-12-12 精工爱普生株式会社 Radio ammeter
JP2017085347A (en) * 2015-10-28 2017-05-18 住友電気工業株式会社 Signal processor and communication device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7058144B2 (en) * 2001-08-07 2006-06-06 Conexant, Inc. Intelligent control system and method for compensation application in a wireless communications system
US8583067B2 (en) * 2008-09-24 2013-11-12 Honeywell International Inc. Apparatus and method for improved wireless communication reliability and performance in process control systems
TWI510029B (en) * 2014-06-13 2015-11-21 Realtek Semiconductor Corp Wireless communication device and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5133064A (en) * 1987-04-27 1992-07-21 Hitachi, Ltd. Data processing system generating clock signal from an input clock, phase locked to the input clock and used for clocking logic devices
JPH10303874A (en) * 1997-04-28 1998-11-13 Nec Corp System for detecting synchronized edge between different clocks
US6342697B1 (en) * 1998-09-21 2002-01-29 Mitutoyo Corporation Method and apparatus for detecting origin of measurement
JP2001133526A (en) * 1999-11-09 2001-05-18 Denso Corp Device for generating chattering
JP2002026884A (en) * 2000-07-10 2002-01-25 Hitachi Ltd Communication method and communication apparatus
CN101086659A (en) * 2006-06-08 2007-12-12 精工爱普生株式会社 Radio ammeter
JP2017085347A (en) * 2015-10-28 2017-05-18 住友電気工業株式会社 Signal processor and communication device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨聪伟;: "一种基于软件的位同步和数据恢复方法", 航天器工程, no. 04, pages 54 - 59 *

Also Published As

Publication number Publication date
TWI736497B (en) 2021-08-11
TW202133591A (en) 2021-09-01

Similar Documents

Publication Publication Date Title
US6931338B2 (en) System for providing a calibrated path for multi-signal cables in testing of integrated circuits
US7246274B2 (en) Method and apparatus for estimating random jitter (RJ) and deterministic jitter (DJ) from bit error rate (BER)
CN101779376B (en) Circuit device and method of measuring clock jitter
KR101369963B1 (en) System and method for testing integrated circuit modules comprising a plurality of integrated circuit devices
JP2007174681A (en) Method and system for correcting inaccurate time synchronization caused by internal asymmetric delay in device
TWI442241B (en) Data Synchronization System and Method for Multi - measure Instrument
JP2950370B2 (en) PLL jitter measuring method and integrated circuit
CN102385913B (en) Sampling phase correcting host controller, semiconductor device and correction method
CN110460505B (en) Parallel bus time sequence calibration method and device and receiving end equipment
US5256964A (en) Tester calibration verification device
CN113110370A (en) Test system and method
CN101908012A (en) Clock signal testing device and testing method thereof
TWI635717B (en) System and method for data packet transceiver testing after signal calibration and power settling to minimize test time
US11146273B2 (en) Electronic device and electronic product
US6876938B2 (en) Method to provide a calibrated path for multi-signal cables in testing of integrated circuits
US20110016232A1 (en) Time stamping apparatus and method for network timing synchronization
CN113376454A (en) Electronic device and electronic product
CN101680923B (en) Electronic device and electronic device testing method
CN111464375A (en) CAN bus signal test system and test method thereof
CN110047552B (en) Memory reading speed measuring circuit
CN109361567B (en) Method and device for testing UART (universal asynchronous receiver/transmitter) communication compatibility of batch products
US11397197B2 (en) Voltage detection system and method
CN109101691B (en) Data sampling method of double-rate data transmission interface
JP2018063472A (en) Manufacturing inspection device for fire sensor, installation site inspection device for fire sensor, and data transmission method for fire sensor
US6275952B1 (en) Information transmission system and information transmission apparatus

Legal Events

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