Adaptive device and adaptive method
By using the controller and the switching device in the inter-device adapter, the pin position of the second device is matched according to the signal to be transmitted by the first device, the problem of interface compatibility between devices is solved, and the interaction efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202411724578.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2044-11-28
AI Technical Summary
Due to the differences in interface definition and pin position between devices, there are interface compatibility issues, which requires manual adjustment of the connection method during interaction, which is time-consuming and prone to errors, reducing burning efficiency and accuracy.
An adapter is provided, including a controller, a switching device, a first connector and a second connector, and obtains a signal to be transmitted from the first device through the controller, and controls the switching device output signal on the pin position of the second device according to the signal to achieve matching of the signal and the pin position.
The interface compatibility between different devices is achieved through the adapter device, avoiding the need for manual adjustment, improving the efficiency and accuracy of interaction, and reducing the influence of human factors.
Smart Images

Figure CN119576829A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an adaptation device and an adaptation method. Background Art
[0002] With the development of technology, it is very important for devices to be able to interact with each other. However, in practice, due to the differences in interface definitions and pin positions of different devices, there are often interface compatibility issues when devices need to interact with each other.
[0003] For example, in the product development phase, the board needs to interact with the Complex Programmable Logic Device (CPLD) burner. However, due to the size and space issues of various boards, the number of pins of the CPLD burner connectors of different boards is different, and the interface definitions of CPLDs from different manufacturers and different models are different. During the burning process, it is often necessary to manually adjust the connection method, which is not only time-consuming but also prone to errors, that is, the burning efficiency and accuracy are reduced.
[0004] It can be seen that how to solve the compatibility problem of device interfaces to facilitate interaction between devices is a technical problem that people in this field urgently need to solve. Summary of the invention
[0005] The purpose of the present invention is to provide an adaptation device and an adaptation method to solve the interface compatibility problem that exists when devices need to interact with each other.
[0006] In order to solve the above technical problems, the present invention provides an adaptor device, comprising: a controller, a switching device, a first connector and a second connector;
[0007] The input end of the first connector is connected to the output end of the first device, and is used to receive a signal output by the first device;
[0008] The input end of the switching device is connected to the output end of the first connector, and the output end of the switching device is connected to the input end of the second connector;
[0009] The output end of the second connector is connected to the input end of the second device;
[0010] The controller is connected to the switching device, and is used to obtain the signal to be transmitted corresponding to the first device, and control the switching device to output the signal to be transmitted according to the pin position of the signal to be transmitted on the second device.
[0011] On the one hand, the switching device includes a signal expansion module and a signal switching module;
[0012] The input end of the signal expansion module is connected to the output end of the first connector, and is used to expand each signal output from the first connector into multiple identical signals;
[0013] The input end of each of the signal switching modules is connected to the output end of each of the signal expansion modules, and the output end of each of the signal switching modules is connected to a pin of the second connector;
[0014] The controller is used to control the signal switching module corresponding to the signal to be transmitted to open the pin corresponding to the signal to be transmitted on the second connector, so as to output the signal to be transmitted through the corresponding pin on the second connector; wherein the pin corresponding to the signal to be transmitted on the second connector is determined by the pin signal of the second device.
[0015] On the other hand, the number of the signal expansion modules is equal to the number of transmission signals, and the number of channels of each of the signal switching modules is the same as the number of transmission signals; wherein the transmission signal is a signal when the first device interacts with the second device.
[0016] On the other hand, the switching device further includes a pin position switching module;
[0017] The pin switching module is located between the output end of the first connector and the signal expansion module, and the pin switching module is connected to the controller, and is used to trigger the pin on the output end of the first connector to be turned on according to the model of the first device obtained by the controller.
[0018] On the other hand, the pin switching module is located between the output end of the first connector and the signal expansion module and includes:
[0019] The pin switching module is located between the target pin on the output end of the first connector and the signal expansion module; wherein the target pin on the output end of the first connector is a pin used solely by at least two first devices.
[0020] On the other hand, it also includes: a signal acquisition device; the controller is connected to the signal acquisition device, and is used to compare the signal of the current first device type acquired by the signal acquisition device with the signal of the first device type stored in advance to determine the current first device type; trigger the pin on the output end of the first connector to be turned on according to the current first device type and the pre-stored pin signal of the current first device.
[0021] On the other hand, the controller also includes an interface for inputting information of the first device; the interface for inputting information of the first device is used to receive information of the first device; wherein the information of the first device includes at least a type of the first device, a signal corresponding to the type of the first device, and a pin signal of the first device.
[0022] In another aspect, it also includes: a first operating element and a second operating element;
[0023] The controller is connected to the first operating element and the second operating element respectively, and is used to compare the current operating signal of the first operating element with the first corresponding relationship after determining the type of the current first device, so as to determine the signal to be transmitted corresponding to the current first device; wherein the first corresponding relationship is the corresponding relationship between the transmission signal and the operation on the first operating element;
[0024] Comparing the signal to be transmitted with a second corresponding relationship to determine the operation to be performed on the second operating element; wherein the second corresponding relationship is a corresponding relationship between the transmission signal and the operation on the second operating element;
[0025] After detecting that the operation to be executed on the second operating element is completed, according to the pre-established correspondence between the operation executed on the second operating element and the signal switching module, the signal switching module corresponding to the operation to be executed is controlled to open the pin corresponding to the signal to be transmitted on the second connector.
[0026] On the other hand, it also includes: a first indication device, a second indication device and / or a third indication device; wherein the number of states of the first indication device is the same as the number of models of the first device; the number of states of the second indication device is the same as the number of transmission signals; the third indication device corresponds to the pin positions of the second connector one by one, the state of each of the third indication devices is the same as the number of transmission signals, and there is a corresponding relationship between the state of the second indication device and the state of the third indication device under the same transmission signal;
[0027] The controller is connected to the first indicating device, the second indicating device and the third indicating device respectively, and is used to control the current state of the first indicating device to be the state of the first indicating device corresponding to the current first device type according to the correspondence between the type of the first device and the state of the first indicating device after determining the current first device type;
[0028] After determining the signal to be transmitted corresponding to the current first device, controlling the current state of the second indication device to be the state of the second indication device corresponding to the signal to be transmitted according to the correspondence between the transmission signal and the state of the second indication device;
[0029] After controlling the signal switching module corresponding to the operation to be performed to open the pin corresponding to the signal to be transmitted on the second connector, the current state of the third indicator device is controlled to be the state of the third indicator device corresponding to the pin of the signal to be transmitted on the second connector according to the correspondence between the state of the third indicator device and the pin on the second connector; when it is detected that the current state of the third indicator device and the current state of the second indicator device satisfy the correspondence between the state of the second indicator device and the state of the third indicator device, it is determined that the pin corresponding to the signal to be transmitted on the second connector that is opened is correct.
[0030] On the other hand, after detecting that the first operating element performs a current operation and before performing the operation to be performed on the second operating element, the controller further includes:
[0031] If a new operation signal of the first operating element is detected, the state of the second indicating device corresponding to the target signal to be transmitted is kept unchanged, and the step of obtaining the signal to be transmitted corresponding to the first device is returned; wherein, the new operation signal is different from the current operation signal, and the target signal to be transmitted is the signal to be transmitted corresponding to the new operation signal.
[0032] In order to solve the above technical problem, the present invention further provides an adaptation method, which is applied to the above adaptation device, and the method comprises:
[0033] Acquire a signal to be transmitted corresponding to the first device;
[0034] The pin position of the second device is controlled to output the signal to be transmitted according to the signal to be transmitted.
[0035] The beneficial effect of the present invention is that the adapter device includes a controller, a switching device, a first connector and a second connector. The input end of the first connector is connected to the output end of the first device, and is used to receive the signal output by the first device; the input end of the switching device is connected to the output end of the first connector, and the output end of the switching device is connected to the input end of the second connector; the output end of the second connector is connected to the input end of the second device; and the controller is connected to the switching device. After the controller obtains the signal to be transmitted corresponding to the first device, it can control the switching device to output the signal to be transmitted according to the pin position of the signal to be transmitted on the second device. Therefore, the matching of the transmission signal of the first device and the pin position signal of the second device is achieved through the adapter device, and the problem of interface compatibility is solved.
[0036] In addition, the switching device includes a signal expansion module and a signal switching module. Each signal output from the first connector is expanded into multiple identical signals through the signal expansion module. The input end of each signal switching module is connected to the output end of each signal expansion module, that is, the input end of each signal switching module can receive all signals, and the output end of each signal switching module is connected to a pin of the second connector. When the same type of second devices interact with different types of first devices, or when different types of second devices interact with the same type of first devices, after determining the signals to be transmitted corresponding to each first device, since the pin corresponding to the signal to be transmitted on the second connector is determined by the pin signal of the second device, the switching module is used to open the pin corresponding to the module to be transmitted on the second connector, and the signal of the corresponding pin on the second device is connected, so that the output signals of different types of first devices can match the pin signals of the second devices, and the output signals of the same type of first devices can match the pin signals of different types of second devices, thereby solving the problem of interface compatibility. Compared with the manual wiring method after replacing the first device or the second device, in the adapter provided by the present invention, when the signals to be transmitted are different, the controller controls the switching module to open the corresponding pins on the second connector, thereby realizing automatic switching of the pin signals, avoiding the influence of human factors, and improving the efficiency and accuracy of adaptation.
[0037] During the interaction between the first device and the second device, some signals need to be transmitted, while some signals do not need to be transmitted. The number of signal expansion modules in the adapter is equal to the number of transmission signals, and the number of channels of each signal switching module is equal to the number of transmission signals. Compared with setting corresponding signal expansion modules for all signals and setting the number of channels of each signal switching module equal to the number of all signals, the adapter provided by the present invention reduces the complexity of the adapter and the cost of the adapter while satisfying signal transmission requirements due to the reduction of the number of signal expansion modules and the number of channels of the signal switching modules.
[0038] The adapter device also includes a pin switching module located between the output end of the first connector and the signal extension module, and the pin switching module is located between the target pins (pins used solely by at least two first devices) on the output end of the first connector and the signal extension module, so that at least two pins of the first connector can share the signal extension module, that is, multiplexing of the signal extension module is achieved, and the complexity of the adapter device is reduced and the cost of the adapter device is reduced.
[0039] A signal acquisition device is also provided in the adapter device, and the current first device type can be determined by the signal of the current first device type collected by the signal acquisition device. Compared with the method of directly storing the first device type, the adapter device provided by the present invention compares the signal collected by the signal acquisition device with the pre-stored signal of the type of the first device, so that the determined type of the first device is more accurate.
[0040] The adapting device is also provided with an interface for inputting information of the first device, and the interface is used to receive information of the first device, so that the adaptation of various types of first devices can be performed through the controller in the adapting device.
[0041] The adapter device is also provided with a first operating element, a second operating element, a first indicating device, a second indicating device and a third indicating device. After determining the current first device type, the state of the first indicating device is controlled according to the correspondence between the type of the first device and the state of the first indicating device, so that the determined current first device type can be verified through the first indicating device, and the accuracy of the determined current first device type can be guaranteed as much as possible; the signal to be transmitted of the first device is determined by the operating signal of the first operating element, and after determining the signal to be transmitted, the state of the second indicating device is controlled according to the correspondence between the transmission signal and the state of the second indicating device, so that the determined signal to be transmitted can be verified through the second indicating device, and the accuracy of the determined signal to be transmitted can be guaranteed as much as possible; after the signal switching module corresponding to the operation to be executed is controlled to open the corresponding pin position of the signal to be transmitted on the second connector, the state of the third indicating device is controlled according to the correspondence between the state of the third indicating device and the pin position on the second connector, and the current state of the third indicating device is compared with the current state of the second indicating device, so as to realize the verification of whether the signal switching is successful.
[0042] After the controller detects that the first operating element performs the current operation and before performing the operation to be performed on the second operating element, if it detects a new operation signal of the first operating element, the state of the second indication device corresponding to the target signal to be transmitted remains unchanged, thereby avoiding the occurrence of false triggering.
[0043] In addition, the present invention also provides an adaptation method, which is applied to the above-mentioned adaptation device and has the same or corresponding technical features as the above-mentioned adaptation device, and has the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A schematic diagram of an adaptation device provided by an embodiment of the present invention;
[0046] Figure 2 A schematic diagram of a CPLD burner interface provided by an embodiment of the present invention;
[0047] Figure 3 A schematic diagram of the power pin conduction control of the first connector for different types of programmers provided by an embodiment of the present invention;
[0048] Figure 4 A schematic diagram of the conduction control of the transmission signal pin of the first connector for different types of burners provided by an embodiment of the present invention;
[0049] Figure 5 A structural diagram of a specific adaptation device provided by an embodiment of the present invention;
[0050] Figure 6 A hardware architecture diagram corresponding to an adaptation process provided by an embodiment of the present invention;
[0051] Figure 7 A schematic diagram of an adapter board provided in an embodiment of the present invention;
[0052] Figure 8 A flowchart of an adaptation method provided by an embodiment of the present invention;
[0053] Fig. 9 The present invention provides a flowchart of a method for adapting a burner to a board. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] The core of the present invention is to provide an adaptation device and an adaptation method to solve the interface compatibility problem that exists when devices need to interact with each other.
[0056] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 A schematic diagram of an adaptation device provided by an embodiment of the present invention, such as Figure 1 As shown, the adapting device includes a controller, a switching device, a first connector and a second connector;
[0057] The input end of the first connector is connected to the output end of the first device, and is used to receive a signal output by the first device;
[0058] The input end of the switching device is connected to the output end of the first connector, and the output end of the switching device is connected to the input end of the second connector;
[0059] An output terminal of the second connector is connected to an input terminal of the second device;
[0060] The controller is connected to the switching device and is used for acquiring the signal to be transmitted corresponding to the first device, and controlling the switching device to output the signal to be transmitted according to the pin position of the signal to be transmitted on the second device.
[0061] The adapter is located between the first device and the second device, and is used to solve the problem of compatibility between the interface of the first device and the interface of the second device. There is no limitation on the first device and the second device, and it is determined according to the actual scenario. For example, in the process of burning a board card with a CPLD burner, the number of pins of the CPLD burning connector of different boards is different due to the size and space problems of various boards, and there are differences in the JTAG interface definitions of CPLDs of different manufacturers and different models. Therefore, there is an interface compatibility problem between the CPLD burner and the board card. In this scenario, when the first device is a CPLD burner, the second device is a board card, or the first device is a board card and the second device is a CPLD burner.
[0062] There is no limitation on the switching device, for example, the switching device includes a signal expansion module and a signal switching module.
[0063] The input end of the signal expansion module is connected to the output end of the first connector, and is used to expand each signal output from the first connector into multiple identical signals;
[0064] The input end of each signal switching module is connected to the output end of each signal expansion module, and the output end of each signal switching module is connected to a pin of the second connector.
[0065] At this time, the controller is used to control the signal switching module corresponding to the signal to be transmitted to open the pin corresponding to the signal to be transmitted on the second connector, so as to output the signal to be transmitted through the corresponding pin on the second connector; wherein the pin corresponding to the signal to be transmitted on the second connector is determined by the pin signal of the second device.
[0066] In the adapter, the first connector and the second connector pass through the signal expansion module and the signal switching module in sequence. For example, a multiplexer (MUX) chip is used as a signal expansion module, and a switching chip is used as a signal switching module. There is no limit on the number of signal expansion modules used, such as all the pins of the first connector are connected to a signal expansion module respectively. However, in practice, during the interaction between the first device and the second device, only part of the signal needs to be transmitted (in the embodiment of the present invention, the signal transmitted when the first device and the second device interact is referred to as a transmission signal). In order to reduce the complexity and cost of the adapter, the number of signal expansion modules is set to be equal to the number of transmission signals, and the number of channels of each signal switching module is the same as the number of transmission signals. For example, during the interaction between the CPLD burner and the board, the Joint Test Action Group (JTAG) interface is used, and the transmission signal (main signal) includes four signals, namely, the test clock (TCK) signal / test mode select (TMS) signal / test data output (TDO) signal / test data input (TDI) signal.
[0067] In order to ensure interface compatibility, the input end of the signal expansion module is connected to the output end of the first connector, and each signal output from the first connector is expanded into multiple identical signals. There is no limit on the number of signals after each signal is expanded. In order to improve interface compatibility, the number of signals after each signal is expanded can be determined by the number of pins of the second device. For example, if the number of pins of the second device is 10, the number of signals after each signal is expanded is 10. The input end of each signal switching module is connected to the output end of each signal expansion module, and the output end of each signal switching module is connected to a pin of the second connector. It is worth noting that the number of signal switching modules set can also be determined by the number of pins of the second device. If the number of pins of the second device is 10, the number of signal switching modules set is also 10. There is no limit on the switching capacity of each signal switching module, which can be determined according to the number of transmitted signals. If the transmitted signal is 4 different signals, the switching capacity of each signal switching module can be set to 4 switches 1.
[0068] In implementation, the switching device also includes a pin switching module; the pin switching module is located between the output end of the first connector and the signal expansion module, and the pin switching module is connected to the controller, and is used to trigger the pin on the output end of the first connector to be turned on according to the model of the first device obtained by the controller.
[0069] When different types of first devices interact with second devices, the pin signals of different types of first devices are different. There may be some pins that are used by different types of first devices, and some are only used by some types of first devices. In order to reduce the number of signal expansion modules used, the pin switching module is located between the target pin on the output end of the first connector and the signal expansion module; wherein the target pin on the output end of the first connector is a pin used separately by at least two first devices.
[0070] The following will continue to use the scenarios of different types of CPLD burners interacting with boards as examples to explain. Figure 2A schematic diagram of a CPLD burner interface provided by an embodiment of the present invention includes 10 pins. Specifically, the JTAG interface of the model 1 burner is defined as follows: pin 1 is TCK, pin 2 is GND, pin 3 is TDO, pin 4 is 3.3V, pin 5 is TMS, pin 6 is nCE (indicating non-chip enable, which is the negative form of Chip Enable), pin 7 is STATUS, pin 8 is nCS (indicating non-chip select, which is the negative form of Chip Select), pin 9 is TDI, and pin 10 is NC (indicating no connection, which is the abbreviation of NoConnection). The JTAG interface of Model 2 writer is defined as: Pin 1 is SCLK (serial clock, short for SerialClock) / TCK, Pin 2 is GND, Pin 3 is MODE (mode selection) / TMS, Pin 4 is GND, Pin 5 is SDI (serial data input, short for Serial Data Input) / TDI, Pin 6 is VCC, Pin 7 is SDO (serial data output, short for Serial Data Out) / TDO, Pin 8 is INIT (initialize, short for Initialize), Pin 9 is TRST (test reset input, short for Test Reset Input), Pin 10 is EN / PROG (program, short for Program). According to the interface definition of the two programmers, the four transmission signals TCK / TMS / TDI / TDO of which Model 1 programmer uses pins 1 / 3 / 5 / 9, and Model 2 programmer uses pins 1 / 3 / 5 / 7. Therefore, pins 1 / 3 / 5 are shared by Model 1 and Model 2 programmers, and pins 9 and 7 are used separately (pin 9 is the pin for the transmission signal used by Model 1 programmer, and pin 7 is the pin for the transmission signal used by Model 2 programmer). Therefore, at this time, the target pins on the output end of the first connector are pins 7 and 9. In addition, it is worth noting that the pin corresponding to the VCC signal of Model 1 programmer is pin 4, and the pin corresponding to the VCC signal of Model 2 programmer is pin 6. The target pins on the output end of the first connector are pins 4 and 6. A pin switching module can be set between pins 7 and 9 on the output end of the first connector, and a pin switching module can be set between pins 4 and 6. There is no limitation on the switching capability of the pin switch module, for example, it can be 2-to-1 or 3-to-1, etc. In addition, pins 1 / 3 / 5 are shared by the model 1 programmer and the model 2 programmer, and can be directly connected to the signal expansion module.
[0071] It should be noted that the control of the pin switching module is all controlled by the controller. When the controller receives the model of the first device, it can trigger the pin on the first connector corresponding to the interface definition of the first device to be turned on. In the process of interaction between the model 1 burner and the model 2 burner and the board, the pin switching module used is a 2-to-1 pin switching module. When the controller recognizes that the first device is model 1, it will control the pin switching module to turn on pin 4 and pin 9; when the controller recognizes that the first device is model 2, it will control the pin switching module to turn on pin 6 and pin 7. Figure 3 The present invention provides a schematic diagram of the power pin conduction control of the first connector for different types of burners. Figure 3 As shown, the first pin switching module is respectively connected to pin 4 and pin 6 of the first connector, and the first pin switching module receives a power signal and a control signal sent by the controller. When the controller recognizes that the first device is model 1, the first pin switching module is controlled to turn on pin 4. When the controller recognizes that the first device is model 2, the first pin switching module is controlled to turn on pin 6. Figure 4 The present invention provides a schematic diagram of the conduction control of the transmission signal pin of the first connector for different types of burners. Figure 4 As shown, the second pin switching module is respectively connected to pin 7 and pin 9 of the first connector, the first pin switching module is connected to the switching device and the controller, and receives the control signal sent by the controller. When the controller recognizes that the first device is model 1, the second pin switching module is controlled to turn on pin 9. When the controller recognizes that the first device is model 2, the first pin switching module is controlled to turn on pin 7.
[0072] In order to adapt the model 1 and model 2 programmers to interact with the board, the connector on the programmer, the first connector, the second connector and the connector on the board are all 10-pin standard connecting cables. Figure 5 FIG. 1 is a structural diagram of a specific adaptation device provided in an embodiment of the present invention. Figure 5 As shown, the switching device in the adapter device is composed of 4 10-channel analog multiplexing chips, 10 4-to-1 signal switching modules and 2 1-to-2 channel pin switching modules. The 4 10-channel analog multiplexing chips mainly expand the 4 main signals TCK / TMS / TDO / TDI of the JTAG signal, output 10 identical signals, and then each signal is connected to a 4-to-1 signal switching module, and the output signals are respectively connected to the 10 pins of the second connector. Pins 1, 2 and 3 of the first connector are directly connected to the analog multiplexing chip respectively, and pins 4 / 6 of the first connector are connected to the first pin switching module controller and the power signal; pins 7 / 9 of the first connector are connected to the analog multiplexing chip through the second pin switching module.
[0073] In addition, in order to adapt to multiple types of first devices, in implementation, the controller also includes an interface for inputting information of the first device; the interface for inputting information of the first device is used to receive information of the first device; wherein the information of the first device includes at least the type of the first device and a signal corresponding to the type of the first device and a pin signal of the first device.
[0074] Before the controller obtains the signal to be transmitted corresponding to the first device, it first needs to determine the model of the first device. In order to determine the model of the first device, the adapter device also includes: a signal acquisition device; the controller is connected to the signal acquisition device, and is used to compare the signal of the current first device type acquired by the signal acquisition device with the pre-stored signal of the first device type to determine the current first device type; according to the current first device type and the pre-stored pin signal of the current first device, the pin on the output end of the first connector is triggered to be turned on.
[0075] There is no limitation on the signal acquisition device used, such as a dip switch, a toggle switch, etc. In order to achieve adaptation to multiple models, in the implementation, the signal acquisition device is an electrical signal acquisition device, which is respectively connected to the first device of the model to be confirmed and the controller. The controller is used to obtain the current electrical signal collected by the electrical signal acquisition device when the first device of the model to be confirmed is connected, and compare the current electrical signal with the pre-stored correspondence between the electrical signal and the first device model to determine the first device model corresponding to the current electrical signal. Among them, the electrical signal acquisition device can be a voltmeter, an ammeter, etc.
[0076] Since a toggle switch can generally only identify two types of first devices, when the toggle switch is turned to one end it is model 1, and when the toggle switch is turned to the other end it is model 2. Therefore, compared to the method of using a toggle switch, the signal acquisition device used in this embodiment is an electrical signal acquisition device, which is not limited by the toggle direction and can determine more than two first device models based on different electrical signals, thereby achieving adaptation to multiple types of first devices.
[0077] In order to determine the signal to be transmitted, the adaptation device further comprises: a first operating element and a second operating element;
[0078] The controller is connected to the first operating element and the second operating element respectively, and is used to compare the current operating signal of the first operating element with the first corresponding relationship after determining the current first device type, so as to determine the signal to be transmitted corresponding to the current first device; wherein the first corresponding relationship is the corresponding relationship between the transmission signal and the operation on the first operating element;
[0079] Comparing the signal to be transmitted with the second corresponding relationship to determine the operation to be performed on the second operating element; wherein the second corresponding relationship is the corresponding relationship between the transmission signal and the operation on the second operating element;
[0080] After detecting that the operation to be executed is completed on the second operating element, according to the pre-established correspondence between the operation executed on the second operating element and the signal switching module, the signal switching module corresponding to the operation to be executed is controlled to open the pin corresponding to the signal to be transmitted on the second connector.
[0081] The first operating element and the second operating element may be buttons. There is no limitation on the number of buttons on the first operating element. Since the first operating element is used to determine the signal to be transmitted corresponding to the current first device, when the first operating element is the first button group, the number of buttons in the first button group may be the same as the number of transmission signals. If the number of transmission signals is 4, 4 buttons may be set in the first button group. The second operating element is used to trigger the controller to open the pin corresponding to the signal to be transmitted on the second connector. When the first operating element is the second button group, the number of buttons in the second button group may be the same as the number of pins of the second connector. If the number of pins of the second connector is 10, 10 buttons may be set in the second button group.
[0082] In order to determine the accuracy of the determined current first device type and the signal to be transmitted, and to determine whether the switching is successful, the adapter device also includes: a first indication device, a second indication device and / or a third indication device; wherein the number of states of the first indication device is the same as the number of models of the first device; the number of states of the second indication device is the same as the number of transmission signals; the third indication device corresponds to the pin position of the second connector one by one, the state of each third indication device is the same as the number of transmission signals, and there is a corresponding relationship between the state of the second indication device and the state of the third indication device under the same transmission signal;
[0083] The controller is connected to the first indicating device, the second indicating device and the third indicating device respectively, and is used to control the current state of the first indicating device to be the state of the first indicating device corresponding to the current first device type according to the correspondence between the type of the first device and the state of the first indicating device after determining the current first device type;
[0084] After determining the signal to be transmitted corresponding to the current first device, controlling the current state of the second indicator device to be the state of the second indicator device corresponding to the signal to be transmitted according to the correspondence between the transmission signal and the state of the second indicator device;
[0085] After controlling the signal switching module corresponding to the operation to be executed to open the pin corresponding to the signal to be transmitted on the second connector, the current state of the third indicator device is controlled to be the state of the third indicator device corresponding to the pin of the signal to be transmitted on the second connector according to the correspondence between the state of the third indicator device and the pin on the second connector; when it is detected that the current state of the third indicator device and the current state of the second indicator device satisfy the correspondence between the state of the second indicator device and the state of the third indicator device, it is determined that the pin corresponding to the opened signal to be transmitted on the second connector is correct.
[0086] The first indicator is used to indicate the determined first device model, and the state of the first indicator can be determined by the number of the first device model. The second indicator is used to indicate the determined signal to be transmitted, and the state of the second indicator can be determined by the number of transmission signals. The third indicator is used to indicate the signal after each pin of the second connector is switched. For example, if the second connector has 10 pins and there are 4 transmission signals, the number of the third indicator can be 10, and each third indicator can have 4 states.
[0087] In order to help those skilled in the art better understand the adapter device of the present invention, the following continues to explain the interaction scenarios between the burner of model 1 and model 2 listed above and the board. Take the adapter device as an example, Figure 6 A hardware architecture diagram corresponding to an adaptation process provided in an embodiment of the present invention, such as Figure 6 As shown, the first test interface (test interface of the complex programmable logic device burner) is connected to the first connector of the adapter board, the switching device is connected to the first connector, the second connector and the controller respectively, the second connector is connected to the second test interface (test interface of the complex programmable logic device on the board), and the controller is connected to the button and the indicator light. The adapter board is designed to be switched by buttons to adjust the signal of the 10-pin standard first connector of the complex programmable logic device burner to the second connector signal, so that it matches the test interface signal definition of the complex programmable logic device on the board end. At the same time, the adapter board is designed with an indicator light to facilitate confirmation of whether the adjustment is as expected. The first test interface-first connector and the second connector-second test interface are both 10-pin standard connection lines. Figure 7 A schematic diagram of an adapter board provided by an embodiment of the present invention. Figure 7As shown, the signal acquisition device used is a toggle switch, the first operating element is a first button group, the second operating element is a second button group, the first indicating device and the second indicating device are indicator light array one, and the third indicating device is indicator light array two. The controller is respectively connected to the toggle switch, the first button group, the second button group, the indicator light array one, the indicator light array two, a connector for burning controller firmware (such as the interface for inputting information of the first device described above) and a switching device, and the switching device is respectively connected to the first connector and the second connector. Figure 5 The contents of the switching device have been described in detail in , and will not be repeated here.
[0088] The switch buttons are divided into 1 toggle switch, the first button group and the second button group. The toggle switch is convenient for the controller to determine the model of the burner. The default model is 1. When it is toggled to the other end, the controller recognizes it as model 2. The first button group is designed with 4 self-recovery buttons, corresponding to the 4 main signals TCK / TMS / TDI / TDO of the first connector; the second button group is designed with 10 buttons corresponding to the 10 pins of the second connector, mainly to provide the controller with a switching trigger signal for signal switching.
[0089] The indicator array is divided into indicator array 1 and indicator array 2. Indicator array 1 is designed with 4 signal indicators of different colors (i.e., the second indicator device), which correspond to the 4 signals TCK / TMS / TDO / TDI of the first connector, and 2 model indicators of different colors (i.e., the first indicator device), which are used to confirm which model of burner is matched; indicator array 2 is designed with 10 4-color indicators, which are used to quickly confirm whether the manual adjustment is correct after switching the signal.
[0090] In order to avoid invalid key presses, after the controller detects that the first operating element performs the current operation and before the second operating element performs the operation to be performed, the controller further includes:
[0091] If a new operation signal of the first operating element is detected, the state of the second indication device corresponding to the target signal to be transmitted is kept unchanged, and the step of obtaining the signal to be transmitted corresponding to the first device is returned; wherein, the new operation signal is different from the current operation signal, and the target signal to be transmitted is the signal to be transmitted corresponding to the new operation signal.
[0092] Combine the following Figure 6 The hardware architecture and Figure 7 The present invention is further described as follows through the specific design scheme and implementation method of hardware:
[0093] 1) For the two types of programmers described above, the adapter board is designed with a toggle switch connected to the controller. The user can use the toggle switch to adjust between the two models, namely model 1 (default) and model 2. The user needs to confirm the model of the programmer first, and then select the model through the toggle switch. The controller on the adapter board can identify the model of the programmer after detecting the level state of the toggle switch through the control signal (such as General Purpose Input / Output (GPIO)), and at the same time, it will light up the indicator lights 5 / 6 in the indicator array 1 through the control signal. For example, the default design is CPLD programmer model 1. If it is confirmed that the model 2 programmer is used, adjust the toggle switch to model 2, and the controller will identify the model of the programmer used according to the level state of the toggle switch.
[0094] 2) According to the interface definitions of the two programmers, the first connector interface definition and connection method for power supply VCC / ground GND are as follows:
[0095] 1. VCC is provided to the programmer externally for internal buffer power supply, which can be provided through the adapter board. Since the two programmer interfaces define VCC pins differently, one is pin 4 and the other is pin 6, the controller of the design adapter board detects the model of the programmer according to the toggle switch, and first switches the module through the first pin (such as Figure 3 As shown in the figure, switch VCC. For example:
[0096] ①When the controller detects that the toggle switch is turned to model 1 (pin 4 of the model 1 programmer is VCC), the controller controls the first pin switch module to switch. At this time, VCC is connected to pin 4, pin 4 is pulled to VCC, and pin 6 is not conducting;
[0097] ② When the MCU detects that the toggle switch is turned to model 2 (pin 6 of the model 2 programmer is VCC), the MCU controls the first pin switch module to switch. At this time, VCC is connected to pin 6, pin 6 is pulled to VCC, and pin 4 is not conducting;
[0098] 2.Both programmer interfaces define pin 2 as GND, so the design sets pin 2 of the first connector interface as ground.
[0099] 3) According to the interface definition of the two programmers, the 4 main signals TCK / TMS / TDI / TDO, of which model 1 programmer uses pins 1 / 3 / 5 / 9, and model 2 programmer uses pins 1 / 3 / 5 / 7. Therefore, the pins 1 / 3 / 5 of the first connector are designed to be directly connected to the signal expansion module, and the pins 7 / 9 are designed to be consistent with the VCC pins, that is, the controller controls the second pin switch module to switch (such as Figure 4 As shown), for example:
[0100] 1. When the controller detects that the toggle switch is turned to model 1 (pin 9 of the model 1 writer is the TDI signal), the controller controls the second pin switch module to switch, TDI / TDO is connected to pin 9, and pin 9 is connected to the switch module;
[0101] 2. When the controller detects that the toggle switch is turned to model 2 (pin 7 of the model 2 writer is the TDO signal), the controller controls the second pin switching module to switch, TDI / TDO is connected to pin 7, and pin 7 is connected to the switching module.
[0102] 4) Design indicator array 1, that is, 4 signal indicators 1 / 2 / 3 / 4 of different colors and 2 model indicators 5 / 6 of different colors, which are controlled by the controller through GPIO signals. Signal indicators 1 / 2 / 3 / 4 are used to indicate the signal of the first connector, and model indicators 5 / 6 are used to indicate the model of the connected burner. The indicator definition example is as follows:
[0103] GPIO1 control indicator light 1, which is a red signal indicator light, used to indicate the first connector signal 1;
[0104] GPIO2 control indicator light 2, which is a green signal indicator light, used to indicate the first connector signal 3;
[0105] GPIO3 control indicator light 3, which is a blue signal indicator light, used to indicate the first connector signal 5;
[0106] GPIO4 control indicator light 4 is a yellow signal indicator light, used to indicate the first connector signal 7 / 9;
[0107] GPIO5 controls indicator light 5, which is a green indicator light, used to indicate the connection to the burner model 1;
[0108] GPIO6 controls indicator light 6, which is a yellow indicator light and is used to indicate that the burner model 2 is connected.
[0109] 5) At the same time, the color distinction design is carried out for the signals of the two types of burners. The design indicator light corresponds to the first connector pin information and the model 1 / 2 signal relationship as shown in Table 1. At the same time, the silk screen is added to the indicator light of the adapter board for easy confirmation. This method can easily distinguish the various signals and confirm whether the DIP switch setting is consistent with the actual burner model used. Table 1 is the indicator light corresponding to the first connector pin information and the model 1 / 2 signal relationship table.
[0110] Table 1
[0111]
[0112] The following are some examples:
[0113] 1. When the controller recognizes that a model 1 programmer is connected, the model indicator 5 of the indicator array 1 will be lit through the GPIO signal; when the controller recognizes that a model 2 programmer is connected, the model indicator 6 of the indicator array 1 will be lit through the GPIO signal;
[0114] 2. If the first connector is used with model 1 writer, the normal model indicator 5 lights up green, but the model indicator 6 lights up yellow after the actual connection. You can confirm that the dip switch is not adjusted based on the indicator light.
[0115] 6) For the first connector, i.e. the connector on the programmer side, the first button group is designed, which includes 4 self-recovery buttons 1 / 2 / 3 / 4, corresponding to the 4 main signals TCK / TMS / TDI / TDO respectively; for the second connector, i.e. the connector on the board side, the second button group is designed, which includes 10 self-recovery buttons, which are consistent with the pin sequence of the second connector interface on the board side, button 1 corresponds to pin 1, button 2 corresponds to pin 2..., the controller first confirms the signal through the 4 self-recovery buttons, and lights up the corresponding indicator light after obtaining that the button is pressed, and then switches and lights up the corresponding indicator light through the status of the 10 self-recovery buttons. The controller will adjust the signal according to the different models of the programmer, as shown below:
[0116] 1. The programmer is model 1, and its signals are 1-TCK, 3-TDO, 5-TMS, and 9-TDI. At this time, the GPIO signals of the controller corresponding to the 4 buttons are 1-TCK, 2-TDO, 3-TMS, and 4-TDI. Similarly, when the programmer is model 2, the GPIO signals of the controller corresponding to the 4 buttons are 1-TCK, 2-TMS, 3-TDI, and 4-TDO, which correspond to Table 1.
[0117] 2. The second connector is a 6-pin connector, and the pin definitions are 1-TMS, 2-GND, 3-TDO, 4-VCC, 5-TDI, and 6-TCK. Since the VCC and GND of the second connector are already provided, you only need to adjust the other signals of the second connector interface to match the board;
[0118] 3. At this time, press one of the buttons in the first button group, such as 3-TMS. After the controller obtains the level change and determines that the TMS signal needs to be switched and adjusted, it will first light up the blue signal indicator 3 (refer to Table 1, the TMS signal of model 1 corresponds to the blue signal indicator 3), and then press button 1 of the second button group. The controller will control the signal switching module to open the pin 1 channel of the second connector and connect the TMS signal to pin 1.
[0119] 4. Press one of the buttons 1-TCK in the first button group. After the controller obtains the level change, it determines that the TCK signal needs to be switched and adjusted. It will first light up the red signal indicator 1 (refer to Table 1, model 1 TCK signal corresponds to red signal indicator 1). Then press button 6 of the second button group. The controller will control the signal switching module to open the channel with pin 6 of the second connector and connect the TCK signal to pin 6.
[0120] 5. Then press one of the buttons 4-TDI in the first button group. After the controller obtains the level change and determines that the TDI signal needs to be switched and adjusted, it will first light up the yellow signal indicator 4 (refer to Table 1, the TDI signal of model 1 corresponds to the yellow signal indicator 4). Then press button 5 of the second button group, the controller will control the signal switching module to open the channel with pin 5 of the second connector and connect the TDI signal to pin 5;
[0121] 6. Press one of the buttons 2-TDO in the first button group. After the controller obtains the level change, it determines that the TDO signal needs to be switched and adjusted. It will first light up the green signal indicator 2 (refer to Table 1, model 1 TDO signal corresponds to green signal indicator 2). Then press button 3 of the second button group. The controller will control the switching chip to open the pin 3 channel of the signal switching module and connect the TDO signal to pin 3. At this time, the switching is completed;
[0122] 7. After pressing one button in the first button group, you need to press the second button group to open the switching channel. If you press another button in button group 1 again, the controller will determine that this button is ineffective because it cannot obtain the pressing status of the second button group, and will not light up the indicator light corresponding to the indicator light array 1;
[0123] 8. If you find that you have pressed the wrong button in the second button group during the process of pressing the button, you can press the wrong button again. The controller will obtain the level change and judge it as a cancel button, close the switching channel, and the controller will control the corresponding indicator light to go out;
[0124] 9. Design a controller key combination. When any two buttons are pressed at the same time, the controller will obtain the level change and restore the GPIO initial state of the button and indicator light. If you find that you have pressed the wrong button after pressing it, you can press any two buttons at the same time to cancel it and turn off all the indicator lights.
[0125] 7) Design indicator array 2, i.e. 10 4-color signal indicators, which are controlled by the controller through GPIO signals and are used to quickly confirm whether the manual adjustment is correct after switching the signal. Define the 4-color signal indicators to correspond one-to-one with the 4 signal indicators in indicator array 1, that is, when the 4 signal indicators are on, the controller will light up the 4-color signal indicators after control switching, and make them correspond to the colors of the 4 signal indicators in indicator array 1. An example is as follows:
[0126] 1. The programmer is model 2, and its signals are 1-TCK, 3-TMS, 5-TDI, and 7-TDO. At this time, the GPIO signals of the MCU corresponding to the 4 buttons in the first button group are 1-TCK, 2-TMS, 3-TDI, and 4-TDO, which correspond to Table 1;
[0127] 2. The second connector is a 6-pin connector, and the pin definitions are 1-TMS, 2-GND, 3-TDO, 4-VCC, 5-TDI, 6-TCK;
[0128] 3. First press a button in the first button group, such as 4-TDO. After the controller obtains the level change and determines that the TDO signal needs to be switched and adjusted, it will first light up the yellow signal indicator 4 of the indicator array 1 (refer to Table 1, the TDO signal of model 2 corresponds to the yellow signal indicator 4), and then press button 3 of the second button group. The controller will control the switching chip to open the pin 3 channel of the second connector and connect the TDO signal to pin 3; at this time, the controller will control the indicator 3 (corresponding to pin 3) in the indicator array 2 to light up the yellow light, corresponding to the indicator array 1; the other indicators are the same and will not be repeated here.
[0129] In the adapter device provided by the embodiment of the present invention, each signal output from the first connector is expanded into multiple identical signals through a signal expansion module, and the input end of each signal switching module is connected to the output end of each signal expansion module, that is, the input end of each signal switching module can receive all signals, and the output end of each signal switching module is connected to a pin of the second connector. When the same type of second devices interact with different types of first devices, or when different types of second devices interact with the same type of first devices, after determining the signals to be transmitted corresponding to each first device, since the pin corresponding to the signal to be transmitted on the second connector is determined by the pin signal of the second device, the corresponding pin of the module to be transmitted on the second connector is opened by the switching module, and the signal of the corresponding pin on the second device is connected, so that the output signals of different types of first devices can match the pin signals of the second devices, and the output signals of the same type of first devices can match the pin signals of different types of second devices, thereby solving the problem of interface compatibility. Compared with the manual wiring method after replacing the first device or the second device, in the adapter provided by the present invention, when the signals to be transmitted are different, the controller controls the switching module to open the corresponding pins on the second connector, thereby realizing automatic switching of the pin signals, avoiding the influence of human factors, reducing the inconvenience of wiring, and improving the efficiency and accuracy of adaptation; different models of first devices can be identified, which is simple and practical; the signal can be switched after expansion to adapt to various interface definitions; after adjustment, it can be judged by the indicator light, which is simple and quick; and multiple first devices can be adapted by burning the controller firmware of the adapter board.
[0130] An adaptation device is described above. This embodiment further provides an adaptation method, which is applied to the above-mentioned adaptation device. Figure 8 A flowchart of an adaptation method provided by an embodiment of the present invention is shown in FIG. Figure 8 As shown, the method includes:
[0131] S10: Acquire a signal to be transmitted corresponding to the first device;
[0132] S11: Controlling a switching device according to the pin position of the signal to be transmitted to output the signal to be transmitted.
[0133] Fig. 9 A flowchart of a method for adapting a burner and a board provided by an embodiment of the present invention, such as Fig. 9 As shown, the method includes:
[0134] S12: Select the burner model;
[0135] S13: Connect the writer to the adapter board, and the adapter board to the board;
[0136] S14: Adjust the toggle switch to set the model;
[0137] S15: The controller lights up the model indicator light;
[0138] S16: Determine whether the toggle switch is set correctly; if so, proceed to step S17; if not, return to step S14;
[0139] S17: Press a button of the first button group;
[0140] S18: Light up an indicator light of the indicator light array;
[0141] S19: Press the second button group button to switch;
[0142] S20: Light up the second indicator light of the indicator light array;
[0143] S21: Determine whether the key is set correctly; if not, proceed to step S22; if yes, proceed to step S24;
[0144] S22: Press a button of the second button group;
[0145] S23: Turn off the second indicator light of the indicator light array;
[0146] S24: Determine whether the key setting is complete; if so, proceed to step S25; if not, return to step S17;
[0147] S25: Connection completed.
[0148] The adaptation method provided in this embodiment has the same or corresponding technical features as the adaptation device described above. The embodiment of the adaptation device has been described in detail above, and the embodiment of the adaptation method will not be repeated here, and the effect is the same as above.
[0149] The above is a detailed introduction to an adaptation device and an adaptation method provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the method disclosed in the embodiment, since it corresponds to the device disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the device part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.
[0150] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used 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 "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including 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 statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. An adapter device, characterized in that: include: a controller, a switching device, a first connector, and a second connector; The input end of the first connector is connected to the output end of the first device, and is used to receive the signal output by the first device; The input end of the switching device is connected to the output end of the first connector, and the output end of the switching device is connected to the input end of the second connector; The output end of the second connector is connected to the input end of the second device; The controller is connected to the switching device and is used to obtain the signal to be transmitted corresponding to the first device, and control the switching device to output the signal to be transmitted according to the pin position of the signal to be transmitted on the second device.
2. The adapter according to claim 1, characterized in that The switching device includes a signal expansion module and a signal switching module; The input end of the signal expansion module is connected to the output end of the first connector, and is used to expand each signal output from the first connector into multiple identical signals; The input end of each of the signal switching modules is connected to the output end of each of the signal expansion modules, and the output end of each of the signal switching modules is connected to a pin of the second connector; The controller is used to control the signal switching module corresponding to the signal to be transmitted to open the pin corresponding to the signal to be transmitted on the second connector, so as to output the signal to be transmitted through the corresponding pin on the second connector; wherein the pin corresponding to the signal to be transmitted on the second connector is determined by the pin signal of the second device.
3. The adapter device according to claim 2, characterized in that The number of the signal expansion modules is equal to the number of transmission signals, and the number of channels of each signal switching module is the same as the number of the transmission signals; wherein, the transmission signal is a signal when the first device interacts with the second device.
4. The adapter device according to claim 3, characterized in that The switching device also includes a pin switching module; The pin switching module is located between the output end of the first connector and the signal expansion module, and the pin switching module is connected to the controller, and is used to trigger the pin on the output end of the first connector to be turned on according to the model of the first device obtained by the controller.
5. The adapter device according to claim 4, characterized in that The pin switching module is located between the output end of the first connector and the signal expansion module and includes: The pin switching module is located between the target pin on the output end of the first connector and the signal expansion module; wherein the target pin on the output end of the first connector is a pin used solely by at least two first devices.
6. The adapting device according to any one of claims 3 to 5, characterized in that: Also includes: signal acquisition device; The controller is connected to the signal acquisition device and is used to compare the signal of the current first device type collected by the signal acquisition device with the signal of the first device type stored in advance to determine the current first device type; and trigger the pin on the output end of the first connector to be turned on according to the current first device type and the pre-stored pin signal of the current first device.
7. The adapter device according to claim 6, characterized in that The controller also includes an interface for inputting information of the first device; the interface for inputting information of the first device is used to receive information of the first device; wherein the information of the first device includes at least the type of the first device, a signal corresponding to the first device type, and a pin signal of the first device.
8. The adapter device according to claim 6, characterized in that Also includes: a first operating element and a second operating element; The controller is connected to the first operating element and the second operating element respectively, and is configured to, after determining the type of the current first device, compare the current operation signal of the first operating element with a first correspondence to determine the signal to be transmitted corresponding to the current first device; wherein the first correspondence is a correspondence between the transmission signal and the operation on the first operating element; comparing the signal to be transmitted with a second corresponding relationship to determine the operation to be performed on the second operating element; wherein the second corresponding relationship is a corresponding relationship between the transmission signal and the operation on the second operating element; After detecting that the operation to be performed on the second operating element is completed, according to the pre-established correspondence between the operation performed on the second operating element and the signal switching module, the signal switching module corresponding to the operation to be performed is controlled to open the pin corresponding to the signal to be transmitted on the second connector.
9. The adapter device according to claim 8, characterized in that Also includes: a first indicating device, a second indicating device, and / or a third indicating device; wherein the number of states of the first indicating device is the same as the number of models of the first device; the number of states of the second indicating device is the same as the number of the transmission signals; the third indicating devices have a one-to-one correspondence with the pins of the second connector, the state of each of the third indicating devices is the same as the number of the transmission signals, and there is a corresponding relationship between the state of the second indicating device and the state of the third indicating device under the same transmission signal; The controller is connected to the first indicator device, the second indicator device, and the third indicator device, respectively, and is configured to, after determining the current first device type, control the current state of the first indicator device to be the state of the first indicator device corresponding to the current first device type according to the correspondence between the type of the first device and the state of the first indicator device; After determining the signal to be transmitted corresponding to the current first device, controlling the current state of the second indicator device to be the state of the second indicator device corresponding to the signal to be transmitted according to the correspondence between the transmission signal and the state of the second indicator device; After controlling the signal switching module corresponding to the operation to be performed to open the pin corresponding to the signal to be transmitted on the second connector, the current state of the third indicator device is controlled to be the state of the third indicator device corresponding to the pin of the signal to be transmitted on the second connector according to the correspondence between the state of the third indicator device and the pin on the second connector; when it is detected that the current state of the third indicator device and the current state of the second indicator device satisfy the correspondence between the state of the second indicator device and the state of the third indicator device, it is determined that the opened pin corresponding to the signal to be transmitted on the second connector is correct.
10. The adapter device according to claim 9, characterized in that After detecting that the first operating element performs a current operation and before performing the to-be-performed operation on the second operating element, the controller further includes: If a new operation signal of the first operating element is detected, the state of the second indicating device corresponding to the target signal to be transmitted is kept unchanged, and the step of obtaining the signal to be transmitted corresponding to the first device is returned; wherein, the new operation signal is different from the current operation signal, and the target signal to be transmitted is the signal to be transmitted corresponding to the new operation signal.
11. An adaptation method, characterized in that: Applied to the adapter device according to any one of claims 1 to 10, the method comprises: Obtaining a signal to be transmitted corresponding to the first device; According to the signal to be transmitted, the pin position of the second device is used to control the switching device to output the signal to be transmitted.
Citation Information
Patent Citations
Hard disk backboard identification system, method and equipment and storage medium
CN116010315A
Multi-server control method, device and system, electronic equipment and storage medium
CN117648281A
Network configuration switching device, board card and switch
CN117768322A
Systems and methods for improving connections to an information handling system
US20110264840A1
Expansion device and computer system to which expansion device can be connected
US6009492A