Transmitting apparatus, receiving apparatus, transmitting method, and receiving method
By dividing the I/O setting data into common and inherent parts and using PWM modulation and demodulation, the problem of low data transmission efficiency in CXPI communication is solved, achieving efficient data transmission and flexible terminal response.
Patent Information
- Application Number
- CN202210973789.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-23
- Filing Date
- 2022-08-15
- Publication Date
- 2026-12-04
- Estimated Expiration
- 2042-08-15
AI Technical Summary
In CXPI communication, existing technologies struggle to efficiently transmit large amounts of I/O terminal setting data, resulting in excessive communication volume and impacting system efficiency.
By dividing the I/O setting data into data shared by all I/O terminals and data specific to each I/O terminal, and transmitting them separately, PWM modulation and demodulation are employed, and data processing is performed using a CXPI transceiver and registers, flexible data transmission is achieved.
It effectively reduces the amount of communication for I/O setting data, improves data transmission efficiency, supports flexible response of slave nodes with different numbers of terminals in the communication system, and simplifies the impact of increasing the number of terminals on data transmission.
Smart Images

Figure CN116846919B_ABST
Abstract
Description
[0001] This application enjoys priority based on Japanese Patent Application No. 2022-46699 (filed on March 23, 2022). This application incorporates the entire contents of that basic application by reference. Technical Field
[0002] Embodiments of the present invention relate to a transmitting device, a receiving device, a transmitting method, and a receiving method used in high-capacity data transmission. Background Technology
[0003] The Japan Automotive Technology and Research Institute (CATIR) has developed the CXPI (Clock Extension Peripheral Interface) automotive communication protocol standard. The purpose of CXPI is to reduce the increasing number of wiring harnesses and multiplexing between automotive devices in the HMI (Human Machine Interface) area, which involves increasingly more one-to-one connections. CXPI defines bidirectional communication between master and slave nodes.
[0004] Slave nodes have a large number of I / O terminals that can connect to a large number of devices. The input / output functions of each I / O terminal on a slave node include various configuration items, specifying which settings are required. The master node sends configuration data for the I / O terminals to the slave nodes. This configuration data includes data from each terminal; therefore, the communication volume for configuration data is high. Summary of the Invention
[0005] The present invention provides a transmitting device, a receiving device, a transmitting method, and a receiving method that can efficiently transmit data.
[0006] According to the embodiment, the transmitting device transmits setting data specifying the input / output functions of the multiple input / output terminals to the receiving device, which includes multiple input / output terminals. The setting data includes first data shared by the multiple input / output terminals and second data specific to each of the multiple input / output terminals. Attached Figure Description
[0007] Figure 1 This is a block diagram illustrating an example of a CXPI communication system according to an implementation method.
[0008] Figure 2 This is a block diagram illustrating an example of a subordinate node involved in an implementation method.
[0009] Figure 3 This is a diagram illustrating an example of a signal waveform on a signal line involved in an implementation method.
[0010] Figure 4 This is a diagram illustrating an example of the format of a communication frame involved in the implementation method.
[0011] Figure 5 This is a diagram illustrating an example of a count value within the frame information of a communication frame according to an implementation method.
[0012] Figure 6 This diagram illustrates an example of communication where a master node sends I / O configuration data to a slave node.
[0013] Figure 7 This is a diagram illustrating an example of I / O configuration data related to an implementation method.
[0014] Figure 8 This is a diagram illustrating an example of I / O configuration data related to an implementation method.
[0015] Figure 9 This is a block diagram illustrating an example of a subordinate node involved in an implementation method.
[0016] Figure 10 This is a block diagram illustrating other examples of subordinate nodes involved in the implementation.
[0017] Figure 11 This is a block diagram illustrating other examples of subordinate nodes involved in the implementation.
[0018] Figure 12 This is a block diagram illustrating other examples of subordinate nodes involved in the implementation.
[0019] Figure 13 This is a diagram illustrating an example of communication where a master node sends output command data to a slave node.
[0020] Figure 14 This is a diagram illustrating an example of output instruction data related to an implementation method.
[0021] Figure 15 This is a diagram illustrating an example of output instruction data related to an implementation method.
[0022] Figure 16 This is a diagram illustrating an example of communication where a slave node sends input notification data to the master node.
[0023] Figure 17 This is a diagram illustrating an example of input notification data involved in the implementation method.
[0024] Figure 18 This is a block diagram illustrating other examples of subordinate nodes involved in the implementation.
[0025] Figure 19 This is a block diagram illustrating other examples of subordinate nodes involved in the implementation. Detailed Implementation
[0026] The embodiments will now be described with reference to the accompanying drawings. The following description illustrates apparatus and methods for embodying the technical concept of the embodiments; the technical concept of the embodiments is not limited to the structure, shape, arrangement, material, etc., of the constituent elements described below. Modifications readily conceived by those skilled in the art are naturally included within the scope of this disclosure. To make the description clearer, the dimensions, thickness, planar dimensions, or shapes of various elements are sometimes shown schematically with respect to actual embodiments in the drawings. In multiple drawings, elements with different dimensional relationships or ratios are sometimes included. In multiple drawings, the same reference numerals are sometimes assigned to corresponding elements, omitting repeated descriptions. Sometimes several elements are given multiple names, but these examples are merely illustrative and do not preclude the possibility of assigning other names to these elements. Furthermore, elements not given multiple names are not precluded from being given other names. In addition, in the following description, "connection" means not only direct connection but also connection via other elements.
[0027] Hereinafter, this embodiment will be described in detail with reference to the accompanying drawings.
[0028] Figure 1 This illustrates an example of a CXPI communication system according to an implementation method. The CXPI communication system includes multiple slave nodes 12, each having multiple terminals connected to multiple devices, and a master node 10 that controls the multiple slave nodes 12. Each node has a node address. The master node 10 also has multiple terminals connected to multiple devices. The master node 10 is also referred to as a BCM (Body Control Module). The master node 10 and the slave nodes 12 are connected via a power line VBAT, a signal line BUS, and a ground line GND. The multiple devices connected to the slave nodes 12 communicate with the master node 10 via the signal line BUS.
[0029] Master node 10 includes an MCU (Micro Controller Unit) 20, a CXPI transceiver 22, and a register 24. MCU 20 controls the entire master node 10. CXPI transceiver 22 modulates the data from MCU 20 and outputs modulated data to the signal line BUS. An example of the modulation method is PWM (Pulse Width Modulation). CXPI transceiver 22 demodulates the data from the signal line BUS and outputs demodulated data to MCU 20. MCU 20 stores the data in register 24. Register 24 is, for example, a non-volatile memory. The signal line BUS and the power line VBAT are interconnected via a series resistor 26 and a diode 28.
[0030] Figure 2This represents an example of slave node 12. Slave node 12 includes a 5V power supply 32, a CXPI driver / receiver 34, CXPI control logic 36, a temporary register 38, a PWM circuit 42, a matrix circuit result register 44, a setting register 46, a data register 48, an ADC (analog-to-digital converter) circuit 50, an I / O port 52, and a jitter filter 54.
[0031] The signal line BUS is connected to the CXPI driver / receiver 34. The CXPI driver / receiver 34 receives signals from the master node 10 and sends signals back to the master node 10. When the CXPI driver / receiver 34 is awakened by the master node 10 via the signal line BUS, it activates the 5V power supply 32. The 5V power supply 32 uses the voltage from the power line BVAT to supply power to various parts of the slave node 12. The 5V power supply 32 stops operating when it receives a sleep signal generated inside the slave node 12.
[0032] Slave node 12 can be configured with a node address (e.g., 4 bits). Slave node 12 has node address terminals that are respectively connected to four switches on the substrate. The node addresses AD0, AD1, AD2, and AD3, which are set to "0" or "1" by turning the switches on or off, are set in CXPI control logic 36.
[0033] I / O port 52 is connected to multiple, for example, 12, I / O terminals P00, P01, P02, P10, P11, P12, P20, P21, P22, P23, P24, and P30. Each I / O terminal P00-P30 is connected to a jitter filter 54 to prevent jitter of the input signal. The jitter prevention effect varies depending on the jitter duration.
[0034] The PWM circuit 42 performs pulse width modulation on pulses output from any one of the I / O terminals P00-P30. The resolution, frequency, and duty cycle of the PWM signal can vary depending on the slave node. Resolution refers to the number of bits of data represented by the PWM signal, for example, set to any one of 8 bits, 10 bits, or 12 bits. Frequency is set to multiple frequencies, for example, any one of 15 frequencies. Duty cycle is set, for example, to 10%, 25%, etc.
[0035] Figure 3 This is an example of a signal waveform on the signal line BUS. Each bit of data is represented by the ratio of the duration of a low level to the duration of a high level, indicating "0" or "1".
[0036] In the case of a matrix circuit with m×n switches connected to I / O terminals P00-P30, the matrix circuit result register 44 stores the detection result of the detection position of the detected on switch. The setting register 46 stores the setting values of the input / output function settings for I / O terminals P00-P30, the setting values of the output specifications when outputting signals from the output terminals, and the setting values of the input specifications when inputting signals to the input terminals. The data register 48 stores the input / output data for I / O terminals P00-P30. Alternatively, a non-volatile memory can be provided instead of the setting register 46, or based on the setting register 46, to store the setting values of the input / output function settings, the output specifications, and the input specifications of the I / O terminals.
[0037] The ADC circuit 50 converts the analog signals input from I / O terminals P00-P30 into digital signals. The resolution of the ADC circuit 50 can also vary depending on the subordinate node 12. The resolution of the ADC circuit 50 is set to one of 8 bits, 10 bits, or 12 bits.
[0038] CXPI communication uses event-triggered frame communication. Each node can freely send frames when it detects an idle state on the bus. In the event of multiple simultaneous send events, arbitration is used to select the frame event with the highest priority.
[0039] Figure 4 This is an example of the format of a burst frame used for communication on a signal line BUS. The communication frame includes a PID (Protected ID) area and a response area.
[0040] The PID area includes a 1-bit parity bit and a 7-bit frame ID. The parity bit is, for example, an odd-numbered parity bit. The frame ID is 01h-7Fh. Frames are pre-prioritized, and arbitration is performed based on this priority.
[0041] A PID is an identifier used to identify CXPI frames sent or received at each node. The master node 10 sets a PID for CXPI frames used between the master node 10 and the slave node 12. Multiple PIDs can be set for each slave node for data transmission, data reception, data request, and data response. The slave node 12 specified by the PID area can receive communication frames and send response areas. This enables one-to-one communication.
[0042] The response area includes frame information (2 bytes), data (0-255 (maximum) bytes), and CRC (2 bytes). The frame information includes a 4-bit DLC, a 2-bit NM, a 2-bit CT, and an 8-bit DLC2. The DLC specifies the burst frame (4 bits = 1111). Additionally, the response area for communication frames other than burst frames includes frame information (1 byte), data (0-12 (maximum) bytes), and CRC (1 byte). The frame information includes a 4-bit DLC, a 2-bit NM, and a 2-bit CT, excluding DLC2. The DLC represents the data length within the communication frame in bytes (maximum 12 bytes). The frame length also varies depending on the DLC value.
[0043] NM includes a 1-bit Wakeup.Ind and a 1-bit Sleep.Ind used in sleep / wake processing.
[0044] When the master node 10 sends a clock signal upon waking up, it continuously sets Wakeup.Ind to "1b" until it goes to sleep. When the slave node 12 sends a wake-up pulse upon waking up, it continuously sets Wakeup.Ind to "1b" until it goes to sleep. Otherwise, it sets Wakeup.Ind to "0b".
[0045] Each node uses Sleep.Ind to indicate whether it is currently in a state where sleep is allowed. Each node sets Sleep.Ind to "0b" when sleep is prohibited and sets Sleep.Ind to "1b" when sleep is allowed.
[0046] CT is a counter value representing frame continuity (sequence information). CT can be optionally used system-wise. It is incremented in units of frame ID during transmission within a response area. The initial value of CT is "00b". CT returns to "00b" after "11b". If a deviation in CT is detected at the receiving end, it is determined that there is no frame continuity. Even if the transmitted frame is erroneous, the transmitting node will increment the CT of subsequent transmitted frames before transmitting them.
[0047] In addition, both the transmitting and receiving nodes restore the CT to its initial value when the power is turned on and when the node is woken up. Figure 5This illustrates an example of CT usage. Assume frames matching the frame ID field are transmitted sequentially from transmission sequence 1 to 8, with the value of each CT field stored in the CT section of the frame. CTs are managed according to frame IDs; therefore, each time the response area is restored to frame ID "01h" in the 1st to 3rd transmission, the CT is incremented by 1. In the 4th transmission, the frame ID is "02h," so the CT for frame ID "02h" is incremented. When frame ID "01h" is transmitted in the 5th transmission, the previous value of the CT in the response area is incremented to "11b."
[0048] On the other hand, if the 7th frame cannot be received due to an error and the 8th frame is received instead, the frame ID "02h" is judged to have a CT of "10b" regardless of the previous CT being "00b", thus failing to follow the order and impairing the continuity of the frames.
[0049] DLC2 represents the data length within a communication frame in bytes (maximum 256 bytes). The frame length varies depending on the DLC2 value.
[0050] CRC is the error detection area.
[0051] The general communication sequence between the master node 10 and the slave node 12 in CXPI communication will be explained. Here, the vehicle includes a turn signal switch, wiper switch, light switch, motor, lights, etc., which are connected to the I / O port 52 of the slave node 12. The master node 10 can configure whether to use each I / O terminal of the slave node 12 as an input terminal or as an output terminal, and sends I / O configuration data for the specified terminals to the slave node 12. Furthermore, the master node 10 can also send output command data to the slave node 12, specifying the specifications of the output signals of the terminals of the slave node 12 that are configured as output terminals. Further, the slave node 12 can send input notification data to the master node 10, notifying the input signals to the terminals of the I / O terminals that are configured as input terminals.
[0052] Figure 6 This example illustrates communication between master node 10 and slave node 12, where the master node 10 sends I / O configuration data. When the vehicle has a battery, power is supplied to the CXPI communication system. Upon power connection, master node 10 sends a wake-up pulse to slave node 12. When slave node 12 receives the wake-up pulse, the CXPI driver / receiver 34 provides a wake-up pulse to the 5V power supply 32, activating it. After the 5V power supply 32 starts, slave node 12 enters normal mode and notifies master node 10 to start. Even when the vehicle's ignition key is turned off, power to the CXPI communication system remains connected.
[0053] When master node 10 receives a wake-up pulse triggered by slave node 12, it enters normal mode. When both master node 10 and slave node 12 are in normal mode, master node 10 sends I / O configuration data to slave node 12. This I / O configuration data is also used as... Figure 4 The frame shown is transmitted. Configuration data is recorded in the data area. The master node 10 records the PID of the slave node 12 that it wishes to configure in the PID area.
[0054] The corresponding slave node 12 receives I / O configuration data and, based on this data, determines whether each I / O terminal is used as an input terminal or an output terminal, and sets the function of the configured terminal. The configuration values are stored in the configuration register 46.
[0055] Figure 7 , Figure 8 This represents an example of I / O configuration data sent from master node 10 to slave node 12. The I / O configuration data includes data common to all I / O terminals and data specific to each I / O terminal. The I / O configuration data is stored in the configuration register 46 of slave node 12.
[0056] The data shared by all I / O terminals consists of eight data points, numbered No. 1 through No. 8. This shared data represents multiple candidate settings (also known as modes) that can be configured for the function of each terminal. The data specific to each I / O terminal specifies the identification information for the mode set on that terminal.
[0057] Data No. 1 represents the filter time data of the jitter filter 54. One byte represents the time data for one mode. Six bytes of Data No. 1 represent the time data for six modes. When a terminal input is generated, slave node 12 does not react immediately, but reacts after the jitter time has elapsed. The jitter time is also known as the standby time.
[0058] Data No. 2 represents the power-on / off time when power is applied to / off the device connected to the output terminal. The output terminal is not continuously powered, but rather alternately powered on and off. For example, the I / O terminal connected to the motor of a side mirror is alternately powered on for a first time and de-powered for a second time, causing the mirror to move a certain angle each time. The power-on data specifies the power-on time, and the power-off data specifies the power-off time. One mode of power-on data is represented by 1 byte, and one mode of power-off data is also represented by 1 byte; therefore, one mode of power-on / power-off data is represented by 2 bytes. Data No. 2, consisting of 12 bytes, represents the power-on / power-off data for 6 modes.
[0059] Data No. 3 represents wake-up monitoring time data, indicating the wake-up monitoring interval during sleep. Slave node 12 periodically monitors the reception of wake-up pulses during sleep. One pattern of monitoring time data is represented by 1 byte. Data No. 3, consisting of 6 bytes, represents monitoring time data for 6 patterns.
[0060] Data No. 4 represents the fade-in application time data. LEDs don't light up and turn off instantly; instead, they gradually light up and turn off over time. The fade-in time is the time from off to on, and the fade-out time is the time from on to off. One mode of application time data is represented by one byte. Data No. 4, consisting of 8 bytes, represents the application time data for 8 modes. Fade-in and fade-out are achieved by changing the duty cycle of the PWM signal.
[0061] Data No. 5 represents the fade-out application time data, indicating the time taken for the fade-out to occur. One pattern of application time data is represented by 1 byte. An 8-byte data No. 5 represents the application time data for 8 patterns.
[0062] Data No. 6 is a 2-bit (0.25-byte) PWM resolution setting data that selects the resolution capability of the PWM signal from 8-bit, 10-bit, and 12-bit.
[0063] Data No. 7 is a 2-bit (0.25-byte) ADC resolution setting data that specifies the resolution capability of the ADC circuit 50 when performing analog-to-digital conversion on the input signal as any one of 8-bit, 10-bit, or 12-bit.
[0064] The sum of data No. 6 and data No. 7 is 0.5 bytes (4 bits). Data is communicated in units of 1 byte. Therefore, data No. 8 is set as 4 bits (0.5 bytes) of unused data, i.e., dummy data.
[0065] Each I / O terminal has 6 data entries. The I / O terminal P00 has data entries No. 9 to No. 14.
[0066] Data No. 9 is a 2-bit (0.25-byte) I / O setting data that specifies which of the following four terminals, I / O terminal P00, should be used: digital input terminal (Din), digital output terminal (Dout), output terminal for 100% duty cycle activation (on) signal (PWM), or analog input terminal (ADC).
[0067] Data No. 10 is a 3-bit (0.375-byte) filter setting data for the jitter time mode (all 6 modes) of the jitter filter 54 that processes the input signal of I / O terminal P00.
[0068] Data No. 11 is a 3-bit (0.375-byte) wake-up monitoring setting data that specifies whether wake-up monitoring of I / O terminal P00 is allowed and the monitoring interval time (all 6 modes) when wake-up monitoring of I / O terminal P00 is allowed. The monitoring interval time mode is set by data No. 3 of the common part of the I / O setting data on slave node 12 and stored in setting register 46.
[0069] Data No. 12 is a 4-bit (0.5-byte) PWM setting data that specifies the PWM frequency (all 15 modes) of I / O terminal P00. The PWM frequency mode is set through the common part of the I / O setting data, Data No. 12, which is stored in the setting register 46 on slave node 12.
[0070] Data No. 13 is a 2-bit (0.25-byte) pull-up / pull-down setting data that specifies whether the I / O terminal P00 is used as a pull-up terminal or a pull-down terminal.
[0071] Data No. 14 is a 2-bit (0.25-byte) action data specifying the output action of I / O terminal P00 when CXPI communication is interrupted. For example, it specifies whether to continue output for several seconds or stop output immediately when communication is interrupted.
[0072] The data inherent to I / O terminal P01 is data No. 15 to data No. 20. The data inherent to I / O terminal P02 is data No. 21 to data No. 26. Hereinafter, the communication of inherent data will be performed corresponding to the number of I / O terminals.
[0073] Data No. 15 and Data No. 21 are the same I / O setting data as Data No. 9. Data No. 16 and Data No. 22 are the same filter setting data as Data No. 10. Data No. 17 and Data No. 23 are the same wake-up monitoring setting data as Data No. 11. Data No. 18 and Data No. 24 are the same PWM setting data as Data No. 12. Data No. 19 and Data No. 25 are the same pull-up / pull-down setting data as Data No. 13. Data No. 20 and Data No. 26 are the same communication interruption action data as Data No. 14.
[0074] In this way, data No. 1 to data No. 8, which are shared by all I / O terminals, are designated as representative modes for each I / O terminal, while data specific to each I / O terminal is designated as an identifier for the mode set on that I / O terminal. Therefore, even as the number of I / O terminals increases, the increase in the amount of I / O configuration data communicated from the master node 10 to the slave node 12 can be suppressed, achieving efficient data transmission. Furthermore, by dividing the I / O configuration data into data shared by all I / O terminals and data specific to each I / O terminal, and sending data specific to each I / O terminal in accordance with the number of I / O terminals, the master node 10 can flexibly respond to the number of I / O terminals even when slave nodes 12 with different numbers of terminals coexist in the communication system, making I / O configuration for slave nodes 12 with various terminal numbers easier.
[0075] Figure 9 This represents an example of a slave node 12 where all I / O terminals P00-P30 are connected to the on / off switch 102. Examples of switches 120 include turn signals, wiper switches, and light switches. All I / O terminals P00-P30 are configured as digital input terminals (Din).
[0076] Figure 10 This represents an example of a slave node 12 where all I / O terminals P00-P30 are connected to transistor 104. The transistor 104 is an example of a driver that drives a motor, lamp, etc. All I / O terminals P00-P30 are configured as either digital output terminals (Dout) or output terminals (PWM).
[0077] Figure 11 This represents an example of a slave node 12 connected to I / O terminals P00, P01, and P02 and temperature sensor 106 and potentiometer 108. I / O terminals P00, P01, and P02 are configured as analog input terminals (ADC), I / O terminals P11, P21, P23, and P30 are configured as digital input terminals (Din), and I / O terminals P10, P12, P20, P22, and P24 are configured as digital output terminals (Dout).
[0078] Figure 12 This represents an example of a slave node 12 connected to I / O terminal P00 with lamp 112, I / O terminal P30 with on / off switch 102, I / O terminal P01 with temperature sensor 106, I / O terminal P02 with potentiometer 108, and I / O terminals P20-P23 and P10-P13 with matrix circuit 114. I / O terminals P00 and P20-P23 (or P10-P13) are configured as digital output terminals (Dout), and I / O terminals P30 and P10-P13 (or P20-P23) are configured as digital input terminals (Din).
[0079] Figure 13 This example illustrates communication where master node 10 sends output command data to slave node 12. This output command data is used to set the output specifications when slave node 12 outputs signals from its I / O terminals. Driven devices such as motors and LEDs are connected to the I / O terminals of slave node 12. When drive signals need to be output from slave node 12 to these driven devices, master node 10 sends output command data to slave node 12. Master node 10 determines that output from slave node 12 is needed upon receiving button input from push-button switch 120 or detecting an event, and sends output command data to slave node 12. Alternatively, master node 10 may also send output command data to slave node 12 upon receiving input notification data from slave node 12 (see [reference]). Figure 16 In the case of [missing information], the master node 10 sends output command data to the slave node 12. When the slave node 12 receives the output command data, it sets the output specifications according to the output command data and outputs the signal according to the set specifications. In addition, sometimes the master node 10 does not send the output command data to the slave node 12, but instead sends it to the upper-level network 124 via the network using the MCU 122.
[0080] Figure 14 , Figure 15 This represents an example of output command data sent from master node 10 to slave node 12 for an I / O terminal. The output command data also includes data common to all I / O terminals and data specific to each I / O terminal.
[0081] The data shared by all I / O terminals consists of three data points: Data No. 1 to Data No. 3. This shared data represents settings related to error handling common to all I / O terminals. The unique data for each I / O terminal represents pattern identification information set in the slave node 12 and stored in the setting register 46 through the shared portion of the I / O setting data.
[0082] Data No. 1 is a 4-bit (0.5-byte) communication error flag representing the communication error flags (all 8 types) of the last data received by master node 10. The types of communication errors include CRC errors and errors caused by PID errors. In the event of a communication error, master node 10 only retransmits the shared portion of the output instruction data to slave node 12.
[0083] Data No. 2 is a 1-bit (0.25-byte) exception state clearing request to clear the exception state flag of slave node 12. Slave node 12 becomes abnormally stateful when the temperature rises abnormally or the power supply voltage drops. When slave node 12 detects an abnormal state, it notifies master node 10 of the abnormal state. After recovering from the abnormal state, slave node 12 receives this request and thus resumes normal operation.
[0084] The sum of data No.1 and data No.2 is 5 bits (0.625 bytes). Since data is communicated in units of 1 byte, data No.3 is set as 3 unused bits (0.375 bytes), i.e., dummy data.
[0085] Each I / O terminal has 9 data entries. The I / O terminal P00 has data entries No. 4 to No. 12.
[0086] Data No. 4 specifies a 1-bit (0.125-byte) parameter indicating whether the data output of I / O terminal P00 is enabled (allowing output from output terminal Dout or PWM terminal when active) or deactivated (off). Master node 10 identifies which drive device this I / O terminal is connected to and allows output when driving the target device.
[0087] Data No. 5 is a 3-bit (0.375-byte) power-on time output mode data that specifies whether the power-on time of I / O terminal P00 is enabled and the power-on time mode (all 6 modes). The power-on time mode (all 6 modes) is set by data No. 2, which is a common part of the I / O setting data, on slave node 12 and stored in setting register 46.
[0088] Data No. 6 is a 4-bit (0.5-byte) data specifying the number of times the power-on time output of I / O terminal P00 is output (maximum 16 times).
[0089] Master node 10 uses data No.5 and No.6 to specify the number of times and durations to power on I / O terminal P00.
[0090] Data No. 7 is a 4-bit (0.5-byte) fade-in mode setting data that specifies the fade-in time mode (all 8 modes) of I / O terminal P00. This setting is only valid when this terminal is set as a PWM output terminal. Data No. 4, which is a common part of the I / O setting data for the fade-in time mode (all 8 modes), is set on slave node 12 and stored in setting register 46.
[0091] Data No. 8 is a 4-bit (0.5-byte) fade-out mode setting data that specifies the fade-out time mode (all 8 modes) of I / O terminal P00. This setting is only valid when this terminal is set as a PWM output terminal. Data No. 5, the common part of the I / O setting data for the fade-out time mode (all 8 modes), is set on slave node 12 and stored in setting register 46.
[0092] Master node 10 uses data No.7 and No.8 to specify how to fade in / fade out the PWM output of I / O terminal P00.
[0093] Data No. 9 is a 2-bit (0.25-byte) PWM duty cycle data that appends a 1 bit to specify the resolution of the PWM output of I / O terminal P00 (the high 2 bits in the 12-bit case). When the duty cycle of the PWM output of I / O terminal P00 is 8-bit or 10-bit, slave node 12 ignores data No. 9.
[0094] Data No. 10 is a 2-bit (0.25-byte) PWM duty cycle appended to specify the duty cycle of the PWM output of I / O terminal P00 (the high 2 bits in the 10-bit case). When the duty cycle of the PWM output of I / O terminal P00 is 8 bits, slave node 12 ignores data No. 10.
[0095] Data No. 11 is set as 4 bits (0.5 bytes) of unused data, i.e., dummy data, so that the sum of data No. 4 to data No. 11 constitutes data in bytes.
[0096] Data No. 12 is a 1-byte (8-bit) PWM duty cycle data specifying the duty cycle of the PWM output from I / O terminal P00. When the PWM output duty cycle of I / O terminal P00 is 12 bits, slave node 12 adds data No. 10 and No. 9 to the high-order bits of data No. 12 to make the PWM output duty cycle 12 bits. When the PWM output duty cycle of I / O terminal P00 is 10 bits, slave node 12 adds data No. 10 to the high-order bits of data No. 12 to make the PWM output duty cycle 10 bits. When the PWM output duty cycle of I / O terminal P00 is 8 bits, slave node 12 uses data No. 12 to make the PWM output duty cycle 8 bits.
[0097] The data inherent to I / O terminal P01 is data No. 13 to data No. 21. Hereinafter, the communication of inherent data will also be performed corresponding to the number of I / O terminals.
[0098] Data No. 13 is the same as Data No. 4, indicating whether output is allowed. Data No. 14 is the same as Data No. 5, indicating the power-on time output mode. Data No. 15 is the same as Data No. 6, indicating the number of power-on time outputs. Data No. 16 is the same as Data No. 7, indicating the fade-in mode setting. Data No. 17 is the same as Data No. 8, indicating the fade-out mode setting. Data No. 18 is the same as Data No. 9, indicating the PWM duty cycle with an additional bit of 1. Data No. 19 is the same as Data No. 10, indicating the PWM duty cycle with an additional bit of 2. Data No. 20 is the same as Data No. 11, indicating a dummy value. Data No. 21 is the same as Data No. 12, indicating the PWM duty cycle.
[0099] When slave node 12 receives output command data, it sets the output specifications of the I / O terminals according to the output command data and outputs signals according to the set specifications.
[0100] By dividing the output command data and I / O setting data into data shared by all terminals and data specific to each terminal, the increase in the amount of output command data can be suppressed even as the number of I / O terminals increases, achieving efficient data transmission. Furthermore, even if slave nodes 12 with different numbers of terminals coexist in the communication system, the master node 10 can flexibly respond according to the number of I / O terminals, making it easy to set the output specifications for slave nodes 12 with various terminal numbers.
[0101] Figure 16 This illustrates an example of communication where slave node 12 sends input notification data to master node 10 when an input is generated. Input notification data is sent when an input device such as a potentiometer or sensor is connected to the I / O terminals of slave node 12, and an event occurs where an input is generated at a terminal of slave node 12 from these input devices. Figure 13 The communication of the output command data shown Figure 16 The communication of the input notification data shown begins based on user actions and the occurrence of events; therefore, the order of transmission is not fixed. The input notification data notifies the master node 10 of the data input to the slave node 12 according to the input specifications of the slave node 12.
[0102] Figure 17 This represents an example of input notification data sent from slave node 12 to master node 10 via an I / O terminal. The input notification data also includes data common to all I / O terminals and data specific to each I / O terminal.
[0103] The data shared by all I / O terminals consists of three data points: Data No. 1 to Data No. 3. This shared data represents settings related to error handling common to all I / O terminals. The unique data for each I / O terminal represents pattern identification information set in the slave node 12 and stored in the setting register 46 through the shared portion of the I / O setting data.
[0104] Analog signals from the input device are input to the CXPI driver / receiver 34 via the ADC circuit 50. The resolution of the ADC circuit 50 varies depending on the slave node 12; therefore, the slave node 12 sends input notification data to the master node 10 using a shared frame, regardless of the resolution of the ADC circuit 50.
[0105] Data No.1 is a 4-bit (0.5-byte) communication error flag representing the communication error flags (all 9 types) of the last data received by the slave node.
[0106] Data No.2 is a 2-bit (0.25-byte) exception status flag that indicates the notification of the exception status of the subordinate node 12.
[0107] The sum of data No.1 and data No.2 is 6 bits (0.75 bytes). Since data is communicated in units of 1 byte, data No.3 is set as 2 unused bits (0.25 bytes), i.e., dummy data.
[0108] Each I / O terminal has 5 data entries. The I / O terminal P00 has data entries No. 4 to No. 8.
[0109] Data No. 4 specifies 0.125 bytes (1 bit) of input data to indicate whether the data input to I / O terminal P00 is active (Din when active) or inactive.
[0110] Data No. 5 is a 2-bit (0.25-byte) ADC input data appended with a 1, representing the value input from the ADC circuit 50 at I / O terminal P00 (the high 2 bits when the ADC circuit 50 has a 12-bit resolution). When the ADC circuit 50 has an 8-bit or 10-bit resolution, the master node 10 ignores Data No. 5.
[0111] Data No. 6 is a 2-bit (0.25-byte) appended 2-bit data representing the value input from the ADC circuit 50 at I / O terminal P00 (the high 2 bits when the ADC circuit 50 has a 10-bit resolution). When the ADC circuit 50 has an 8-bit resolution, master node 10 ignores data No. 6.
[0112] Data No. 7 is set as 3 unused bits (0.375 bytes), i.e., dummy data, so that the sum of data No. 4 to data No. 6 constitutes data in bytes.
[0113] Data No. 8 is a 1-byte (8-bit) ADC input representing the value input from the ADC circuit 50 at I / O terminal P00. When the ADC circuit 50 has a 12-bit resolution, the master node 10 adds the data of No. 10 and No. 9 to the high-order bits of data No. 13, receiving 12 bits of data. When the ADC circuit 50 has a 10-bit resolution, the master node 10 adds the data of No. 10 to the high-order bits of data No. 13, receiving 10 bits of data. When the ADC circuit 50 has an 8-bit resolution, the master node 10 receives 8 bits of data based on the data of No. 13.
[0114] The data inherent to I / O terminal P01 is data No. 9 to data No. 13. Hereinafter, the communication of inherent data will also be performed corresponding to the number of I / O terminals.
[0115] Data 9 is the same as data 4, indicating whether the input is valid. Data 10 is the same as data 5, adding bit 1 to the input of ADC circuit 50. Data 11 is the same as data 6, adding bit 2 to the input of ADC circuit 50. Data 12 is the same as data 7, indicating whether the input is valid or not. Data 13 is the same as data 8, indicating the input data of ADC circuit 50.
[0116] When the master node 10 receives input notification data, it interprets the input specifications of the I / O terminals (in this case, the resolution of the ADC circuit 50) according to the input notification data, and receives the signal according to the interpreted specifications.
[0117] Figure 18 Other examples of slave node 12 are shown. This slave node 12 is an example of a side mirror angle adjustment motor 134R, 134L driven via a multi-channel motor driver 132. Selector switches 138, 140, which specify the side mirror angle adjustment direction as up / down or left / right, are connected to I / O terminals P02, P10, P11, P12.
[0118] When motor position adjustment information from potentiometers 136R and 136L is input to I / O terminals P00 and P01, slave node 12 sends input notification data to master node 10. The input notification data includes an ADC input obtained by performing an AD conversion on the motor position adjustment information at a predetermined resolution. Master node 10 processes the input notification data and calculates the drive signals for motors 134R and 134L. Master node 10 sends output command data including the drive signals to slave node 12. Slave node 12 outputs drive signals from I / O terminals P20, P21, P23, and P24 to motor driver 132. The drive signals include the angle adjustment direction (up / down or left / right) input from selector switches 138 and 140. Motor driver 132 drives motors 134R and 134L according to the drive signals.
[0119] Figure 19 Another example of slave node 12 is shown. This slave node 12 is an example of a side mirror retraction motor 146 driven by a high-current motor driver 142. A selection switch 154 for specifying the retraction / retraction of the right side mirror and a selection switch 156 for specifying the retraction / retraction of the left side mirror are connected to I / O terminals P02, P10, P11, and P12.
[0120] When mirror storage / restoration indication information from selector switches 154 and 156 is input to I / O terminals P02, P10, P11, and P12, slave node 12 sends input notification data to master node 10. The input notification data includes the mirror storage / restoration indication information. Master node 10 processes the input notification data and calculates the drive signal for motor 146. Master node 10 sends output command data to slave node 12, including the drive signal. Slave node 12 outputs drive signals from I / O terminals P20, P21, P23, and P24 to motor driver 142. Motor driver 142 drives motor 146 according to the drive signals.
[0121] Furthermore, the present invention is not limited to the above-described embodiments, and can be embodied by modifying the constituent elements during the implementation phase without departing from its spirit. Additionally, various inventions can be formed by appropriately combining the multiple constituent elements disclosed in the above embodiments. For example, several constituent elements may be deleted from all the constituent elements shown in the embodiments. Furthermore, constituent elements involved in different embodiments may be appropriately combined.
Claims
1. A transmitting device, comprising an MCU and a CXPI transceiver, wherein the MCU controls the transmitting device as a whole, and the CXPI transceiver modulates data from the MCU and transmits first setting data specifying the input / output functions of the plurality of input / output terminals to a receiving device including a plurality of input / output terminals. The first setting data includes first data shared by the plurality of input / output terminals and second data inherent to each of the plurality of input / output terminals. The first data is a candidate for the setting value of the input / output function. The second data includes first inherent data for each of the plurality of input / output terminals, the first inherent data specifying whether the input / output terminal is used as an input terminal or an output terminal, and specifying an identifier for a candidate setting value set on the input / output terminal.
2. The transmitting device according to claim 1, Send the first data, and then send multiple sets of the second data.
3. The transmitting device according to claim 1, Send second setting data specifying the output mode of multiple first terminals that have been configured with output functions among the multiple input / output terminals. The second setting data includes a third data shared by the plurality of first terminals and a fourth data inherent to each of the plurality of first terminals.
4. The transmitting device according to claim 3, The third data is a candidate for the set value of the output method. The fourth piece of data is the identifier of the candidate.
5. The transmitting device according to claim 3, Send the third data, and then send multiple sets of the fourth data.
6. The transmitting device according to claim 1, Receive notification data from multiple second terminals that are configured with input functions among the multiple input / output terminals. The notification data includes a fifth data shared by the plurality of second terminals and a sixth data inherent to each of the plurality of second terminals.
7. The transmitting device according to claim 6, Receive the fifth data, and then receive multiple sixth data.
8. A receiving device, comprising a CXPI driver / receiver and a plurality of input / output terminals, The CXPI driver / receiver receives from the transmitting device first setting data specifying the input / output functions of the plurality of input / output terminals. The first setting data includes first data shared by the plurality of input / output terminals and second data inherent to each of the plurality of input / output terminals. The first data is a candidate for the setting value of the input / output function. The second data includes first inherent data for each of the plurality of input / output terminals, the first inherent data specifying whether the input / output terminal is used as an input terminal or an output terminal, and specifying an identifier for a candidate setting value set on the input / output terminal.
9. The receiving device according to claim 8, Receive the first data, and then receive a plurality of the second data.
10. The receiving device according to claim 8, The transmitting device receives second setting data specifying the output mode of a plurality of first terminals among the plurality of input / output terminals that have been configured with output functions. The second setting data includes a third data shared by the plurality of first terminals and a fourth data inherent to each of the plurality of first terminals.
11. The receiving device according to claim 10, The third data is a candidate for the set value of the output method. The fourth piece of data is the identifier of the candidate.
12. The receiving device according to claim 10, Receive the third data, and then receive multiple sets of the fourth data.
13. The receiving device according to claim 8, The sending device sends notification data to notify inputs from multiple second terminals that are configured with input functions among the plurality of input / output terminals. The notification data includes a fifth data shared by the plurality of second terminals and a sixth data inherent to each of the plurality of second terminals.
14. The receiving device according to claim 13, Send the fifth data, and then send multiple sets of the sixth data.
15. A transmission method comprising transmitting first setting data specifying the input / output functions of the plurality of input / output terminals to a receiving device including a plurality of input / output terminals. The first setting data includes first data shared by the plurality of input / output terminals and second data inherent to each of the plurality of input / output terminals. The first data is a candidate for the setting value of the input / output function. The second data includes first inherent data for each of the plurality of input / output terminals, the first inherent data specifying whether the input / output terminal is used as an input terminal or an output terminal, and specifying an identifier for a candidate setting value set on the input / output terminal.
16. A receiving method, which is a receiving method of a receiving device including multiple input / output terminals, Receive first setting data from the transmitting device to specify the input / output functions of the plurality of input / output terminals. The first setting data includes first data shared by the plurality of input / output terminals and second data inherent to each of the plurality of input / output terminals. The first data is a candidate for the setting value of the input / output function. The second data includes first inherent data for each of the plurality of input / output terminals, the first inherent data specifying whether the input / output terminal is used as an input terminal or an output terminal, and specifying an identifier for a candidate setting value set on the input / output terminal.
