Modification method for address of slave unit, and chip and electronic device

By using the Hall detection module and the analog-to-digital converter module in the slave unit, the modified address is generated based on the magnetic field induction signal, which solves the problem of high cost of address setting for multi-slave devices and realizes the independent control of the slave unit by the master unit. and system cost reduction.

WO2024221661A1PCT designated stage expired Publication Date: 2024-10-31SHANGHAI AWINIC TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/114351
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-24
Filing Date
2023-08-23
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

When multiple slave devices are hung on the same integrated circuit bus, the existing technology requires the design of multiple address pins for each slave device, resulting in high system costs, and the host unit cannot independently control each slave unit. control.

Method used

By introducing the Hall detection module, analog-to-digital converter module and processing module into the slave unit, the magnetic field induction signal is used to generate a voltage signal, and digital conversion is performed to obtain the modified address, thereby eliminating the need to increase the system resources of the main control platform. Realize the modification and independent control of the slave unit address.

Benefits of technology

It realizes the independent control of the slave unit by the master unit without increasing the system resources, reduces the system cost, and simplifies the setting process of the address of the slave unit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023114351_31102024_PF_FP_ABST
    Figure CN2023114351_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications. Disclosed are a modification method for the address of a slave unit, and a chip and an electronic device. The modification method comprises: a master unit sending a first modification enable signal to a processing module of each slave unit; a Hall measurement module of each slave unit sending a first voltage signal to an ADC module of each slave unit, wherein the first voltage signal is acquired on the basis of a magnetic field induction signal measured by means of the Hall measurement module; the ADC module of each slave unit performing digital conversion processing on the first voltage signal, so as to acquire second signal data; and on the basis of the second signal data in each slave unit, each slave unit acquiring a modified address corresponding to each slave unit. On the basis of the solution, the addresses of slave units can be modified without increasing system resources of a master control platform end, so as to realize independent control over each slave unit by means of a master unit, thereby effectively reducing system costs.
Need to check novelty before this filing date? Find Prior Art

Description

Method for modifying slave unit address, chip and electronic device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 24, 2023, with application number 202310450914.7 and application name “A method for modifying the address of a slave unit, a chip and an electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a method for modifying a slave unit address, a chip, and an electronic device. Background Art

[0003] Currently, master control platforms typically require communication between a host unit and multiple slave units. Multiple slave devices are connected to the same Inter-Integrated Circuit (IIC) bus. To facilitate access by the host device, each slave device must have a unique address. Currently, address distinctions for each slave device are typically achieved by connecting address pins on each slave device to different port connections. This requires more address pins per slave device when there are many slaves, resulting in higher system costs.

[0004] Summary of the Invention

[0005] To solve the above problems, the present application provides a method, chip and electronic device for modifying the address of a slave unit.

[0006] In the first aspect, the present application provides a method for modifying the address of a slave unit, which is applied to an electronic device, wherein the electronic device includes a host unit and multiple slave units, each of the multiple slave units includes a Hall detection module, an analog-to-digital converter module and a processing module; the method includes: the host unit sends a first modification enable signal to the processing module of each slave unit; the Hall detection module of each slave unit respectively sends a first voltage signal to the analog-to-digital converter module of each slave unit, and the first voltage signal is obtained based on the magnetic field induction signal detected by the Hall detection module; the analog-to-digital converter module of each slave unit respectively performs digital conversion processing on the first voltage signal to obtain second signal data; the processing module of each slave unit obtains the modified address corresponding to each slave unit based on the second signal data in each slave unit.

[0007] It can be understood that the Hall detection module of each slave unit detects the magnetic field sensing signal in the circuit of each slave unit. Since the circuit environment in each slave unit is different, the magnetic field sensing signal of each slave unit is different, which makes the first voltage signal converted by each slave unit different. Therefore, the second signal data digitally converted based on the first voltage signal is different. In this way, it is possible to obtain the modified address corresponding to each slave unit based on the second signal data in the slave unit. That is, the solution provided by this application can modify the slave unit address without increasing the system resources of the master control platform, thereby realizing independent control of each slave unit by the host unit, effectively reducing system costs.

[0008] In one practicable manner, the Hall detection module of each slave unit respectively sends a first voltage signal to the analog-to-digital converter module of each slave unit, including: the Hall detection module in each slave unit detects a magnetic field induction signal; the Hall detection module in each slave unit converts the magnetic field induction signal into voltage signal data; the Hall detection module in each slave unit sends the voltage signal data to the amplifier module in each slave unit; the amplifier module of each slave unit processes the voltage signal data to obtain a first voltage signal; the amplifier module of each slave unit respectively sends the first voltage signal to the analog-to-digital converter module of each slave unit.

[0009] In one practicable embodiment, the electronic device further includes magnetic elements, and the position of each magnetic element is different from the relative position between the corresponding slave units; the first voltage signal is obtained based on the magnetic field induction signal detected by the Hall detection module, including: the first voltage signal is obtained based on the magnetic field induction signal generated between the position of each magnetic element detected by the Hall detection module and the corresponding slave unit.

[0010] In one practicable embodiment, the plurality of slave units include a first slave unit, a second slave unit, a first magnetic element, and a second magnetic element. The relative positions of the first magnetic element and the first slave unit are the same, and the relative positions of the second magnetic element and the second slave unit are the same. The connection direction between the first slave unit and the digital-to-analog converter module of the electronic device is opposite to the connection direction between the second slave unit and the digital-to-analog converter. The first voltage signal is obtained based on the magnetic field induction signal detected by the Hall detection module, including: the first voltage signal in the first slave unit is obtained based on the magnetic field induction signal generated between the first magnetic element detected by the Hall detection module and the slave unit, and the second voltage signal in the second slave unit is obtained based on the magnetic field induction signal generated between the second magnetic element detected by the Hall detection module and the second slave unit.

[0011] In one implementable manner, the processing module of each slave unit obtains the modification address corresponding to each slave unit based on the second signal data in each slave unit, including: the processing module in each slave unit selects a number with a first preset number of bits from the maximum fidelity output interval in the second signal data as the modification address corresponding to each slave unit.

[0012] In one practicable manner, the processing module in each slave unit selects a second preset number of bits from the first noise signal corresponding to each slave unit as the address of each slave unit, including: when the number of bits of the first noise signal is less than the second preset number of bits, the processing module of each slave unit copies and splices at least part of the signal data in the first noise signal corresponding to each slave unit according to a preset arrangement, and uses the copied and spliced ​​data as the modified address corresponding to each slave unit.

[0013] In one implementable manner, each slave unit obtains the modification address corresponding to each slave unit based on the second signal in each slave unit, including: when the processing module in each slave unit determines that the value of the second signal data is greater than the first threshold, the magnetic field signal induction signal value corresponding to the second signal data is used as the modification address corresponding to each slave unit.

[0014] In the second aspect, the present application provides an electronic device, including a host unit, multiple slave units and a first magnetic field; each slave unit in the multiple slave units includes a Hall detection module and an analog-to-digital converter module; the host unit is used to send a first modification enable signal to each slave unit; the Hall detection module of each slave unit is used to send a first voltage signal to the analog-to-digital converter module of each slave unit, and the first voltage signal is obtained based on the magnetic field induction signal detected by the Hall detection module; the analog-to-digital converter module of each slave unit is used to perform digital conversion processing on the first voltage signal to obtain second signal data, and each slave unit includes a first conversion signal corresponding to the voltage signal and a first noise signal in the conversion process, and the first noise signal in each slave unit is different; each slave unit is used to obtain the modification address corresponding to each slave unit based on the second signal data in each slave unit.

[0015] In one practicable manner, the processing module is configured to select a number with a first preset number of bits from a maximum fidelity output interval in the second signal data as a modification address corresponding to each slave unit.

[0016] In a third aspect, the present application provides a chip, which is used to execute the method for modifying the slave unit address mentioned in the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] FIG1 shows a schematic diagram of an application scenario of an embodiment of the present application according to some embodiments of the present application;

[0018] FIG2 is a schematic flow chart showing a method for modifying a slave unit address according to some embodiments of the present application;

[0019] FIG3 is a schematic diagram showing a process in which an ADC module is affected by noise during conversion of a first voltage signal into second signal data according to some embodiments of the present application;

[0020] FIG4 is a schematic diagram showing an ADC module converting second signal data into a slave unit address according to some embodiments of the present application;

[0021] FIG5 is a schematic diagram showing a relationship between second signal data of an ADC module and a first voltage signal of a first circuit according to some embodiments of the present application;

[0022] FIG6 shows a schematic diagram illustrating a relationship between second signal data of an ADC module and a first voltage signal of a first circuit according to some embodiments of the present application;

[0023] FIG7 shows a schematic diagram of a slave unit chip structure provided by an embodiment of the present application according to some embodiments of the present application. DETAILED DESCRIPTION

[0024] The embodiments of the present application include but are not limited to a method for modifying a slave unit address, a chip, and an electronic device.

[0025] The application scenario of the embodiment of the present application is introduced below in conjunction with Figure 1. As shown in Figure 1, the method for modifying the slave unit address mentioned in the embodiment of the present application can be used for a host unit and multiple slave units, such as a scene in which slave unit 1, slave unit 2, and slave unit 3 communicate. In this application, the host unit 1 can be a controller, and the slave unit 1, slave unit 2, and slave unit 3 can be corresponding response devices such as memory, display, and sensor respectively. Wherein, the number and type of the above-mentioned slave units can be set as needed, and this application does not limit it. As mentioned above, under the IIC or upgraded version of the integrated circuit bus (I3C) bus system architecture of a host unit and multiple slave units, the same host unit is required to control multiple slave units with the same device address. Due to the limitations of the IIC / I3C protocol, the IIC / I3C host unit will communicate with all slave units with the same device address at the same time, that is, issue the same instruction to all slave units. If all IIC / I3C slave units with the same device address return data to the master unit, the IIC / I3C master unit cannot distinguish which slave unit the received data comes from, that is, the master unit cannot communicate with each slave unit individually.

[0026] As mentioned above, existing solutions generally require additional system resources to implement communication between a master unit and multiple slave units with the same device address.

[0027] To solve the above problem, an embodiment of the present application provides a method for modifying the address of a slave unit. The method is used in an electronic device, wherein the electronic device includes a host unit and multiple slave units; each of the multiple slave units includes a Hall detection module, an analog to digital converter (ADC) module, and a processing module; the host unit sends a first modification enable signal to each slave unit; the Hall detection module of each slave unit respectively sends a first voltage signal to the ADC module of each slave unit, and the first voltage signal is obtained based on the magnetic field induction signal detected by the Hall detection module; the ADC module of each slave unit respectively performs digital conversion processing on the first voltage signal to obtain second signal data; and each slave unit obtains a modified address corresponding to each slave unit based on the second signal data in each slave unit.

[0028] It can be understood that the Hall detection module of each slave unit detects the magnetic field sensing signal in the circuit of each slave unit. Since the circuit environment in each slave unit is different, the magnetic field sensing signal of each slave unit is different, which makes the first voltage signal converted by each slave unit different. Therefore, the second signal data digitally converted based on the first voltage signal is different. In this way, it is possible to obtain the modified address corresponding to each slave unit based on the second signal data in the slave unit. That is, the solution provided by the present application can modify the IIC / I3C slave unit address under the IIC / I3C architecture with one master and multiple slaves without increasing the system resources of the master control platform end, thereby realizing independent control of each slave unit by the host unit, effectively reducing system costs.

[0029] The following describes in detail a method for modifying the slave unit address in conjunction with FIG2 . FIG2 shows a flow chart of a method for modifying the slave unit address, the method comprising:

[0030] S201: The master unit sends a first modification enable signal to the processing module of each slave unit.

[0031] In some embodiments, the first modification enable signal may be a trigger instruction for each slave unit to modify its own device address. The master unit sends the first modification enable signal to each slave unit to prompt each slave unit to modify its device address. The master unit may send the first modification enable signal to a pin with an input function on each slave unit.

[0032] S202: The Hall detection module of each slave unit sends a first voltage signal to the ADC module of each slave unit respectively. The first voltage signal is obtained based on the magnetic field induction signal detected by the Hall detection module.

[0033] In some embodiments, the Hall detection module in each slave unit detects a magnetic field sensing signal; the Hall detection module in each slave unit converts the magnetic field sensing signal into voltage signal data; the Hall detection module in each slave unit sends the voltage signal data to the Hall detection module amplifier module in each slave unit; the amplifier module of each slave unit processes the voltage signal data to obtain a first voltage signal; the amplifier module of each slave unit sends the first voltage signal to the analog-to-digital converter module of each slave unit respectively.

[0034] In some embodiments, the electronic device also includes various magnetic elements, and the position of each magnetic element is different from the relative position between the corresponding slave units; the first voltage signal is obtained based on the magnetic field induction signal detected by the Hall detection module, including: the first voltage signal is obtained based on the position of each magnetic element detected by the Hall detection module and the magnetic field induction signal generated between the corresponding slave unit.

[0035] It can be understood that the electronic device may include multiple magnetic elements, and the number of magnetic elements is the same as the number of slave units. By different relative positions between the positions of each magnetic element and the corresponding slave units, the magnetic field induction signals of each slave unit detected by the Hall detection module can be different.

[0036] In some embodiments, the plurality of slave units include a first slave unit, a second slave unit, a first magnetic element, and a second magnetic element. The first magnetic element and the first slave unit are in the same relative position, and the second magnetic element and the second slave unit are in the same relative position. The connection direction between the first slave unit and the digital-to-analog converter module of the electronic device is opposite to the connection direction between the second slave unit and the digital-to-analog converter.

[0037] In some embodiments, the first magnetic element and the second magnetic element mentioned in the present application can be magnets or any other practicable magnetic elements. In some embodiments, if there are two slave units, such as the first slave unit and the second slave unit, and the magnetic field variation ranges corresponding to the two slave units are the same, for example, the relative positions between the first magnetic element and the first slave unit are the same, and the relative positions between the second magnetic element and the second slave unit are the same, resulting in the same magnetic field variation ranges corresponding to the two slave units. At this time, the polarity direction of the magnetic field can be changed. For example, in the presence of a digital to analog converter (DAC) module, one of the slave units can be reversely connected to the two output ports (out1, out2) of the digital to analog converter driver (Driver) to achieve different connection methods between the two slave units and the DAC, thereby achieving the change in the polarity direction of the magnetic field, that is, achieving the indirect change in the direction of movement of the magnet, so that the magnetic field directions sensed by the two slave units are different, and the corresponding ADC output voltages are different, thereby obtaining different slave unit addresses.

[0038] In some embodiments, the first voltage signal is obtained based on the magnetic field induction signal detected by the Hall detection module, including: the first voltage signal in the first slave unit is obtained based on the magnetic field induction signal generated between the first magnetic element detected by the Hall detection module and the slave unit, and the second voltage signal in the second slave unit is obtained based on the magnetic field induction signal generated between the second magnetic element detected by the Hall detection module and the second slave unit.

[0039] S203: Each slave unit performs digital conversion processing on the first voltage signal to obtain second signal data.

[0040] In some embodiments, the ADC module in each slave unit can perform digital conversion processing on the first voltage signal to obtain second signal data. Figure 3 shows a schematic diagram of the ADC module being affected by noise during the process of converting the first voltage signal into second signal data. As shown in Figure 3, the power supply terminal AVDD, the clock signal terminal CLK, and the ground terminal of the ADC module all have noise of different sizes and data. At the same time, the first voltage signal at the input end has noise, and the second signal data converted and output by the ADC module will also have noise. Since the second signal data of each slave unit includes the first noise signal, the first noise signal generated by each slave unit is random, and the second signal data obtained by each slave unit is different.

[0041] S204: The processing module of each slave unit obtains the modified address corresponding to each slave unit based on the second signal data in each slave unit.

[0042] In some embodiments, the processing module in each slave unit selects, from the maximum fidelity output interval of the second signal data, a number of digits with a first preset number of bits (or referred to as the preset number of bits) as the modified address corresponding to each slave unit. The following uses the first preset number of bits as M bits and one slave unit as an example to illustrate the method for modifying the slave unit address: For example, as shown in FIG. 4, the ADC module of the slave unit receives the first voltage signal, and the number of bits of the second signal data output through conversion is N bits (i.e., from the 0-bit to the N-1-bit). M bits (i.e., from the 0-bit to the M-1-bit) of the signal are selected from the maximum fidelity interval (i.e., the valid second signal data) of the second signal data output from the ADC module as the device address of the slave unit and output to the IIC module. For example, when the first voltage signal input to the ADC module occupies the full swing of the ADC module resolution (i.e., all the first voltage signals input to the ADC module are valid signals), M bits of data can be selected from the second signal data output by the ADC module from the N-1-bit to the 0-bit (i.e., from the high bit of the number of bits to the low bit of the number of bits) as the device address of the slave unit. Among them, N and M are two unrelated values, that is, this application does not limit the size relationship between M and N, that is, the cases of N>M, N<M, or N = M are all within the scope mentioned in the embodiments of this application.

[0043] In some embodiments, when the number of bits of the first noise signal is less than the second preset number of bits, each slave unit replicates and splices partial signal data in the first noise signal corresponding to each slave unit in a preset arrangement manner, and uses the replicated and spliced data as the address of each slave unit.

[0044] For example, the number of bits of the first noise signal is N bits, P bits (P<N) of data are selected from the N bits, and are spliced in different array manners to obtain the device address of the slave unit with M bits, or the position order of the second signal data in the N bits is disrupted and the data is used as the device address of the slave unit. For example, for example, the number of bits of the first noise signal is 4 bits, and the number of bits of the device address of the slave unit is 2 bits. 1 bit is selected from the number of bits of the first noise signal, and the selected value is replicated and then spliced to obtain the device address of the slave unit with 2 bits. Among them, N and M are two unrelated values, that is, this application does not limit the size relationship between M and N, that is, the cases of N>M, N<M, or N = M are all within the scope mentioned in the embodiments of this application.

[0045] In some embodiments, when the processing module in each slave unit determines that the second signal data is greater than the first threshold, the magnetic field magnitude corresponding to the first threshold is used as the address corresponding to each slave unit.

[0046] For example, the second signal data output by the ADC module can be used as an indirect criterion for modifying the slave unit address. Specifically, the second signal data output by a particular ADC module is selected as a first threshold. When the second signal data meets the first threshold, the device address of each slave unit can be modified to the magnetic field magnitude. Figure 5 shows a schematic diagram of the relationship between the second signal data of the ADC module and the magnetic field magnitude. As shown in Figure 5, the ordinate represents the second signal data of the ADC module (e.g., Th1, Th2, Th-m, etc. can represent different signal thresholds), and the abscissa represents the magnetic field magnitude (e.g., M0, M1, Mn can represent different magnetic field intensities). Ideally, the second signal data of the ADC module and the magnetic field magnitude are linearly related. For example, if the first threshold of the second signal data of the ADC module is set to Th0, when the second signal data meets the first threshold, the device address of the slave unit can be modified to the data of the magnetic field magnitude M0 corresponding to the first threshold. If the first threshold of the second signal data of the ADC module is set to Th1, when the second signal data meets the first threshold, the device address of the slave unit can be modified to the data of the magnetic field magnitude M1 corresponding to the first threshold.

[0047] As another example, Figure 6 shows a schematic diagram of the relationship between the second signal data of the ADC module and the magnitude of the magnetic field. As shown in Figure 6, the ordinate represents the second signal data of the ADC module, and the abscissa represents the magnitude of the magnetic field. Ideally, the second signal data of the ADC module and the magnitude of the magnetic field are linearly related. For example, if the first threshold of the second signal data of the ADC module is set to Th0, when the second signal data meets the first threshold, the device address of the slave unit can be modified to the data of the magnetic field magnitude A corresponding to the first threshold; if the first threshold of the second signal data of the ADC module is set to Th1, when the second signal data meets the first threshold, the device address of the slave unit can be modified to the data of the magnetic field magnitude B corresponding to the first threshold.

[0048] In some embodiments, the ADC module in each slave unit may also send the second signal data to a DSP (Digital Signal Processing, DSP) module. The DSP module processes the second signal data to obtain third signal data. Each slave unit then obtains a modified address corresponding to each slave unit based on the third signal data in each slave unit. The method for obtaining the modified address corresponding to each slave unit based on the third signal data in each slave unit is similar to the method for obtaining the modified address corresponding to each slave unit based on the second signal data in each slave unit described above, and will not be further described here.

[0049] Through the above method, in an IIC / I3C architecture with one master and multiple slaves, the system resources on the master control platform side can be increased, thereby realizing the modification of the IIC / I3C slave unit address. Based on the slave units with different device addresses, the host unit can independently control the slave units. The solution is simple and easy to implement, and the system cost is low.

[0050] It is understood that in some embodiments, the slave unit address can be modified by reversely connecting one slave unit to the serial data line (SDA) and serial clock line (SCL), and the other slave unit is normally connected to SCL and SDA, thereby realizing independent control of the two slave units by the host unit. Although the above solution does not require additional system resources, it can only cope with the situation where there are only two slave units in the system architecture, and the applicable scenarios are limited. The method provided in the present application can realize independent communication between the host unit and more than two slave units without increasing system resources.

[0051] The slave unit chip provided in the embodiment of the present application is described below in conjunction with Figure 7. As shown in Figure 7, the slave unit chip provided in the embodiment of the present application has an analog area and a digital area, and the analog area is connected to the digital area. The analog area may include an ADC module, an amplifier module, a Hall detection module, and a DAC module. Among them, the output end of the Hall detection module is connected to the input end of the amplifier module, which is used to send voltage signal data to the amplifier module; the output end of the amplifier module is connected to the input end of the ADC module, which is used to provide a first voltage signal to the ADC module; the output end of the ADC module is connected to the input end of the DSP module, which is used to perform digital conversion processing on the first voltage signal and send second signal data to the DSP module; the DAC module is used to provide driving current to each slave unit.

[0052] The digital area can include a DSP module and an IIC / I3C module (or processing module). The DSP module's input is connected to the ADC module, and its output is connected to the IIC / I3C module. The DSP module receives and processes the second signal data from the ADC module and transmits the third signal data to the IIC / I3C module. The IIC / I3C module receives the processed third signal data from the DSP module and implements data transmission between the master unit and each slave unit.

[0053] In some embodiments, the processing module can be used to select a first preset number of bits from the maximum fidelity output interval in the second signal data as the modification address corresponding to each slave unit. In some embodiments, the processing module can be used to select a second preset number of bits from the first noise signal corresponding to each slave unit as the modification address corresponding to each slave unit. In some embodiments, the processing module can be used to copy and splice part of the signal data in the first noise signal corresponding to each slave unit according to a preset arrangement, and use the copied and spliced ​​data as the modification address corresponding to each slave unit. In some embodiments, the processing module can be used to use the second signal data as the modification address corresponding to each slave unit when it is determined that the value of the second signal data is greater than the first threshold.

[0054] The present application also provides an electronic device, including a host unit, multiple slave units and a first magnetic field; each slave unit in the multiple slave units includes a Hall detection module, an analog-to-digital converter module and a processing module; the host unit is used to send a first modification enable signal to the processing module of each slave unit; the Hall detection module of each slave unit is used to send a first voltage signal to the analog-to-digital converter module of each slave unit, and the first voltage signal is obtained based on the magnetic field induction signal detected by the Hall detection module; the analog-to-digital converter module of each slave unit is used to perform digital conversion processing on the first voltage signal to obtain second signal data; the processing module of each slave unit is used to obtain the modification address corresponding to each slave unit based on the second signal data in each slave unit.

[0055] In some embodiments, the processing module of each slave unit is configured to select a number with a first preset number of bits from a maximum fidelity output interval in the second signal data as the address of each slave unit.

[0056] In some embodiments, the electronic device provided by the embodiments of the present application can be used to execute the method for modifying the slave unit address mentioned in the embodiments of the present application.

[0057] An embodiment of the present application also provides a chip, which is used to execute the method for modifying the slave unit address mentioned in the embodiment of the present application.

[0058] The various embodiments disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.

[0059] Program code can be applied to input instructions to perform the functions described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0060] Program code can be implemented with a high-level programming language or an object-oriented programming language to communicate with the processing system. Where necessary, program code can also be implemented in assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any particular programming language. In either case, the language can be a compiled language or an interpreted language.

[0061] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer-readable media. Therefore, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to floppy disks, optical disks, optical discs, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).

[0062] In the accompanying drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or order may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of a structural or method feature in a particular figure does not imply that such feature is required in all embodiments, and in some embodiments, such features may not be included or may be combined with other features.

[0063] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems raised by this application. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units / modules that are not closely related to solving the technical problems raised by this application. This does not mean that other units / modules do not exist in the above-mentioned device embodiments.

[0064] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "including a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.

Claims

1. A method for modifying a slave unit address, characterized in that: Used in an electronic device, the electronic device comprises a host unit and a plurality of slave units, each of the plurality of slave units comprises a Hall detection module, an analog-to-digital converter module and a processing module; The method comprises: The host unit sends a first modification enable signal to the processing module of each slave unit; The Hall detection module of each slave unit sends a first voltage signal to the analog-to-digital converter module of each slave unit respectively, and the first voltage signal is obtained based on the magnetic field induction signal detected by the Hall detection module; The analog-to-digital converter modules of each slave unit respectively perform digital conversion processing on the first voltage signal to obtain second signal data; The processing module of each slave unit obtains a modification address corresponding to each slave unit based on the second signal data in each slave unit.

2. The method for modifying the slave unit address according to claim 1, characterized in that: The Hall detection module of each slave unit sends a first voltage signal to the analog-to-digital converter module of each slave unit, including: The Hall detection module in each slave unit detects a magnetic field induction signal; The Hall detection module in each slave unit converts the magnetic field sensing signal into voltage signal data; The Hall detection module in each slave unit sends the voltage signal data to the amplifier module in each slave unit; The amplifier module of each slave unit processes the voltage signal data to obtain a first voltage signal; The amplifier module of each slave unit sends a first voltage signal to the analog-to-digital converter module of each slave unit respectively.

3. The method for modifying the slave unit address according to claim 1 or 2, characterized in that: The electronic device further comprises magnetic elements, and the positions of the magnetic elements are different from the relative positions between the corresponding slave units; The first voltage signal is obtained based on the magnetic field induction signal detected by the Hall detection module, including: The first voltage signal is obtained based on the magnetic field induction signal generated between the position of each magnetic element detected by the Hall detection module and the corresponding slave unit.

4. The method for modifying the slave unit address according to claim 1 or 2, characterized in that: The plurality of slave units include a first slave unit, a second slave unit, a first magnetic element, and a second magnetic element, wherein the first magnetic element and the first slave unit have the same relative position, and the second magnetic element and the second slave unit have the same relative position; The connection direction between the first slave unit and the digital-to-analog converter module of the electronic device is opposite to the connection direction between the second slave unit and the digital-to-analog converter; The first voltage signal is obtained based on the magnetic field induction signal detected by the Hall detection module, including: The first voltage signal in the first slave unit is obtained based on the magnetic field induction signal generated between the first magnetic element and the slave unit detected by the Hall detection module, and the second voltage signal in the second slave unit is obtained based on the magnetic field induction signal generated between the second magnetic element and the second slave unit detected by the Hall detection module.

5. The method for modifying the slave unit address according to claim 1 or 2, characterized in that: The processing module of each slave unit acquires the modification address corresponding to each slave unit based on the second signal data in each slave unit, including: The processing module in each of the slave units selects a number with a first preset number of bits from a maximum fidelity output interval in the second signal data as a modification address corresponding to each of the slave units.

6. The method for modifying the slave unit address according to claim 1 or 2, characterized in that: The processing module in each slave unit selects a second preset bit number of digits from the first noise signal corresponding to each slave unit as the address of each slave unit, including: When the number of bits of the first noise signal is less than the second preset number of bits, the processing module of each slave unit copies and splices at least part of the signal data in the first noise signal corresponding to each slave unit according to a preset arrangement, and uses the copied and spliced ​​data as the modified address corresponding to each slave unit.

7. The method for modifying the slave unit address according to claim 1 or 2, characterized in that: Each slave unit acquires a modified address corresponding to each slave unit based on the second signal in each slave unit, including: When the processing module in each slave unit determines that the value of the second signal data is greater than the first threshold, the magnetic field signal sensing signal value corresponding to the second signal data is used as the modification address corresponding to each slave unit.

8. An electronic device, characterized in that: It includes a host unit, a plurality of slave units and a first magnetic field; each of the plurality of slave units includes a Hall detection module, an analog-to-digital converter module and a processing module; The host unit is used to send a first modification enable signal to the processing module of each slave unit; The Hall detection module of each slave unit is used to send a first voltage signal to the analog-to-digital converter module of each slave unit, wherein the first voltage signal is obtained based on the magnetic field induction signal detected by the Hall detection module; The analog-to-digital converter modules of the slave units are respectively used to perform digital conversion processing on the first voltage signal to obtain second signal data; The processing module of each slave unit is used to obtain the modification address corresponding to each slave unit based on the second signal data in each slave unit.

9. The electronic device according to claim 8, characterized in that: The processing module is used to select a number with a first preset number of bits from the maximum fidelity output interval in the second signal data as the address of each slave unit.

10. A chip, characterized in that: The invention comprises a circuit, wherein the circuit is used to execute the method for modifying the address of the slave unit according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Communication system and device

    CN107104702A

  • Communication address configuration method, electronic equipment and storage medium

    CN115567488A

  • Address modification method, chip, control module and electronic equipment

    CN115865867A

  • Slave unit address modification method, chip and electronic equipment

    CN116599934A

  • Design for communication between a microcontroller and at least one sensor chip

    US20210123956A1