Equipment control method and electronic equipment
By setting up the driver circuit and driving board in the main control module of the cash register and implementing a device control method, the problem of poor compatibility of the existing cash register is solved, and the compatibility and flexibility of various control methods are achieved.
Patent Information
- Application Number
- CN202411945857.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-29
AI Technical Summary
The development of application software in existing cash registers needs to be designed separately for multiple cash box control methods, resulting in poor compatibility and inconvenient use.
By setting the driving circuit and the driving board in the main control module, and implementing a device control method on the main control module, receiving the target signal, acquiring the connection status of the driving circuit, and converting the control signal to be compatible with different control methods.
It realizes simultaneous compatibility of multiple control methods on the same device, improves the flexibility and compatibility of device functions, and solves the problem of application software incompatibility.
Smart Images

Figure CN119904952A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of financial equipment, and in particular to an equipment control method and electronic equipment. Background Art
[0002] In the related art, there are multiple ways to control the cash box of a cash register. However, the current application software development in the cash register requires separate design of different contents for multiple ways. When the cash register is replaced, application software incompatibility may occur. Therefore, the cash register in the related art has the problems of poor compatibility and inconvenience in use. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a device control method and an electronic device, which can be compatible with multiple control methods on the same device at the same time, thereby improving the flexibility and compatibility of the device functions.
[0004] In order to solve the above technical problems, a technical solution adopted by the present invention is: A device control method is used for a main control module of a device, the device comprises a driving circuit for controlling a first module, a driving board for controlling a second module and a main control board, the main control module is arranged on the main control board, the method comprises: If a target signal for controlling the first module is received, obtaining a connection state of the driving circuit; If the driving circuit is integrated on the main control board, a feedback instruction is sent to the driving board, wherein the feedback instruction is used to instruct the driving board to return a first control signal generated based on the target signal to the main control board; If the first control signal is received, converting the first control signal into a second control signal; The second control signal is sent to the driving circuit, so that the first module is controlled by the driving circuit according to the second control signal.
[0005] In order to solve the above technical problems, another technical solution adopted by the present invention is: An electronic device comprises a main control module, a driving circuit for controlling a first module, a driving board for controlling a second module and a main control board, wherein the main control module is arranged on the main control board, the main control module comprises a memory, a processor and a computer program stored in the memory and running on the processor, and the processor implements the above-mentioned device control method when executing the computer program.
[0006] The beneficial effects of the present invention are as follows: the device of the present application includes a driving circuit for controlling a first module, a driving board and a main control board for controlling a second module, the main control module is arranged on the main control board, the method of the present application is applied on the main control module, and the present application receives a target signal for controlling the first module and obtains the connection status of the driving circuit. When the driving circuit is integrated into the main control board, the first control signal generated on the driving board based on the target signal is transmitted back to the main control board, and the first control signal is converted into a second control signal, thereby sending the second control signal to the driving circuit, so that the main control module can directly control the first module through the driving circuit. The second control signal used to directly control the first module in the present application is obtained based on the conversion of the first control signal, so that the control logic of the two control signals is associated, and there is no need to separately configure the driver of the second control signal, which solves the problem that the two control methods are incompatible and is easy to use. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 A flow chart of a device control method provided by an embodiment of the present invention; Figure 2 A connection diagram of a driving circuit provided by an embodiment of the present invention; Figure 3 A connection diagram of another driving circuit provided by an embodiment of the present invention; Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention; Figure 5 A schematic diagram of the structure of another electronic device provided by an embodiment of the present invention; Figure 6 A schematic diagram of the structure of a main control module provided by an embodiment of the present invention; Description of labels: 100. An electronic device; 101. A main control module; 102. A driving circuit; 103. A driving board; 104. A main control board; 1011. A memory; 1012. A processor. DETAILED DESCRIPTION
[0008] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0009] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0010] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0011] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0012] In the related art, there are multiple ways to control the cash box of a cash register. However, the current application software development in the cash register requires separate design of different contents for multiple ways. When the cash register is replaced, application software incompatibility may occur. Therefore, the cash register in the related art has the problems of poor compatibility and inconvenience in use.
[0013] In the related art, the cash register mainly includes two cash box control methods: one is to control the cash box by sending instructions through the printer. The cash box on the cash register system is usually connected as an auxiliary device of its printer. When the user needs to open the cash box, the cash register system will send a command string containing ESC / POS instructions to the printer. After receiving these command strings, the printer will parse and perform corresponding operations, including triggering the cash box opening mechanism. Among them, the ESC / POS instruction is an instruction set applied to thermal printers, through which the computer can control various operations of the printer by sending a series of instructions, which are usually represented by a specific byte sequence. The other is to directly control the cash box through a customized driver motherboard. In some cash register systems with customized motherboards, the cash box drive circuit is usually integrated on the motherboard. When the user needs to open the cash box, the cash register system directly controls the IO (input and output) signal of the cash box to open the cash box, but this method requires the cash box driver to be installed separately. Therefore, the cash register system either sends a general control command to the printer so that the printer controls the cash box, or the cash register system sends a dedicated control command to directly control the cash box. There are differences in the control commands sent by the two, the two control software are incompatible, and the design requirements for the circuit are also different, so these two cash box control methods cannot be configured on the same cash register system at the same time.
[0014] In order to solve the above problems, the present application provides a device control method and an electronic device.
[0015] The embodiment of the present application provides a device control method, which is used for a main control module of a device, wherein the device includes a driving circuit for controlling a first module, a driving board for controlling a second module, and a main control board, and the main control module is arranged on the main control board. It should be noted that the main control module of the device is the main control end of the device, which refers to a functional module for controlling the first module and the second module.
[0016] In one embodiment of the present application, the first module and the second module can be configured in the device as fixed hardware of the device, that is, the first module and the second module are fixed accessories of the device. For example, the device is a cash register, and the first module and the second module are hardware modules integrated in the cash register, for example, the first module is a cash box configured in the cash register, and the second module is a printer configured in the cash register. In another embodiment of the present application, the first module and the second module can also be connected to the device as peripherals of the device, that is, the first module, the second module and the device are three independent devices. For example, the device is a cash register, and the first module and the second module are connected to the cash register by wire.
[0017] Please refer to Figure 1 , the device control method of the present application includes steps S110 to S140.
[0018] Step S110: if a target signal for controlling the first module is received, the connection state of the driving circuit is obtained.
[0019] Step S120: If the driving circuit is integrated on the main control board, a feedback instruction is sent to the driving board, where the feedback instruction is used to instruct the driving board to feedback the first control signal generated based on the target signal to the main control board.
[0020] Step S130: If the first control signal is received, convert the first control signal into a second control signal.
[0021] Step S140: Send the second control signal to the driving circuit, so that the driving circuit controls the first module according to the second control signal.
[0022] In this embodiment, if Figure 2 As shown, the main control module of the device is connected to the driver board through the main control board, and the driver board is used to control the second module; at the same time, the main control module of the device is connected to the drive circuit through the main control board, and the drive circuit is used to control the first module. In a specific scenario, the device is a cash register, wherein the main control end of the cash register is used to perform the above steps S110 to S140, the first module is a cash box, the second module is a printer, and the cash box and the printer are integrated inside the cash register, so that the cash box, the printer and the cash register are integrated. In one embodiment of the present application, the target signal is used to control the opening and closing of the cash box, and only the driver program of the printer is configured on the main control end. Specifically, when the main control end of the cash register receives the cash box opening signal sent by the operator, the main control end of the cash register will send the cash box opening signal to the driver board of the printer. After receiving the cash box opening signal, the driver board of the printer will generate a cash box control signal of the driver board, that is, the cash box control signal at this time is to realize the control of the driver circuit of the cash box by the driver board of the printer. At the same time, the main control end of the cash register will obtain the connection status of the driving circuit of the cash box. If the driving circuit of the cash box is integrated on the main control board corresponding to the main control end, the driver board of the printer cannot control the opening of the cash box at this time. Therefore, the main control end of the cash register obtains the cash box control signal from the driver board of the printer and converts it into the cash box control signal of the main control end, that is, the cash box control signal at this time is to realize the control of the driving circuit of the cash box by the main control end. Finally, the main control end sends the cash box control signal to the driving circuit of the cash box to control the opening of the cash box. It can be seen from this that since the driving circuit of the cash box is integrated on the main control board of the cash register, according to the relevant technology, the driver program of the cash box should be configured on the main control board of the cash register, so as to directly control the opening and closing of the cash box. However, since the printer also needs to be configured with the corresponding driver program at the same time, the driver program of the cash box and the printer will be incompatible and control cannot be realized. However, the present application can also realize the opening and closing of the cash box when the main control end only configures the driver program of the printer, without considering the compatibility of the application.
[0023] It can be seen from the above embodiments that the present application receives a target signal for controlling the first module and obtains the connection status of the driving circuit. When the driving circuit is integrated into the main control board, the first control signal generated on the driving board based on the target signal is transmitted back to the main control board, and the first control signal is converted into a second control signal, thereby sending the second control signal to the driving circuit, so that the main control module can directly control the first module through the driving circuit. The second control signal used to directly control the first module in the present application is obtained based on the conversion of the first control signal, so that the control logic of the two control signals is associated, and there is no need to separately configure the driver of the second control signal, which solves the problem of incompatibility between the two control methods and is easy to use.
[0024] In one embodiment of the present application, if the driving circuit is integrated in the driving board, the above steps S120 to S140 are replaced by step S150: Step S150: sending a forwarding instruction to the driving board, where the forwarding instruction is used to instruct the driving board to send the first control signal to the driving circuit, so as to control the first module according to the first control signal through the driving circuit.
[0025] In this embodiment, if Figure 3 As shown, the main control module of the device is connected to the driver board through the main control board, and the driver board is used to control the second module; at the same time, the driver board is connected to the drive circuit, and the drive circuit is used to control the first module. In a specific scenario, the device is a cash register, wherein the main control end of the cash register is used to execute the above steps S110 and S150, the first module is a cash box, the second module is a printer, and the cash box and the printer are integrated inside the cash register, so that the cash box, the printer and the cash register are an integrated design. In one embodiment of the present application, the target signal is used to control the opening and closing of the cash box. Specifically, when the main control end of the cash register receives the cash box opening signal sent by the operator, the main control end of the cash register will send the cash box opening signal to the driver board of the printer. After receiving the cash box opening signal, the driver board of the printer will generate a cash box control signal of the driver board, that is, the cash box control signal at this time is to realize the control of the driver circuit of the cash box by the driver board of the printer. At the same time, the main control end of the cash register will obtain the connection status of the driving circuit of the cash box. If the driving circuit of the cash box is integrated on the corresponding driving board of the printer, the driving board of the printer can directly control the cash box to open, so the driving board of the printer sends the cash box control signal to the driving circuit of the cash box to control the cash box to open. It can be seen that the present application can automatically select and switch the corresponding control method under different circuit design conditions, so that one device can adapt to multiple circuit methods without considering the compatibility of circuit design.
[0026] It can be seen from the above embodiments that when the driving circuit is integrated into the driving board, there is no need to transmit the first control signal back to the main control board, and the driving board can send the first control signal to the driving circuit to control the first module. In this way, the corresponding control method can be selected according to the different integration states of the driving circuit, thereby improving the flexibility of device control.
[0027] In another specific scenario, the device is a cash register, wherein the main control end of the cash register is used to execute the above steps S110 to S150, the first module is a cash box, the second module is a printer, and the cash box and the printer are connected to the cash register as peripherals. In the current scenario, the method for opening and closing the cash box is the same as the method in the above scenario where the cash box, printer and cash register are integrated, and will not be repeated here.
[0028] In one embodiment of the present application, the first module can be directly controlled based on the device, and the operator directly triggers the target signal on the device. In a specific scenario, the device is a cash register. If there is a cash register demand, the operator directly clicks the cash box opening instruction on the cash register, so that the cash register realizes the opening of the cash box based on the above steps S110 to S150.
[0029] In one embodiment of the present application, the method of receiving a target signal for controlling the first module in step S110 includes step S210.
[0030] Step S210: Receive a target signal for controlling the first module sent by a target terminal based on the Hongmeng distributed connection through a distributed soft bus.
[0031] That is, the present application can remotely control the first module based on the target terminal. At this time, the operator triggers the target signal on the target terminal, and the target terminal transmits the target signal to the device through the distributed soft bus. In a specific scenario, the device is a cash register, the target terminal is a mobile device (such as a mobile phone or tablet), and the cash register and the mobile device are connected in a distributed manner based on the openharmony system. If there is a cash register demand, the operator clicks the cash box opening instruction on the mobile device, and the mobile device sends the target signal to the main control end of the cash register through the distributed soft bus, so that the cash register can open the cash box based on the above steps S110 to S150.
[0032] It can be seen from the above embodiments that the target terminal based on the Hongmeng distributed connection can send the target signal for controlling the first module to the current device through the distributed soft bus, so that the target terminal remotely controls the first module through the current device.
[0033] In one embodiment of the present application, the method further includes steps S310 to S330: Step S310: if a first signal for controlling the second module is received, instruction information associated with the first module is acquired, and it is determined whether a target signal for controlling the first module is received according to the instruction information.
[0034] Step S320: If the target signal for controlling the first module is not received, the first signal and the second generating instruction are sent to the driving board, where the second generating instruction is used to instruct the driving board to generate a third control signal based on the first signal.
[0035] Step S330: controlling the second module according to the third control signal through the driving board.
[0036] In another embodiment of the present application, if a target signal for controlling the first module and a first signal for controlling the second module are received, while executing the above-mentioned steps S110-S150 to realize the control of the first module through the driving circuit, the first signal and the second generation instruction are sent to the driving board, so that the driving board generates a third control signal based on the first signal to realize the control of the second module through the driving board.
[0037] In a specific scenario, the device is a cash register, the first module is a cash box, the second module is a printer, the target signal is used to control the opening and closing of the cash box, and the first signal is used to control the printer to print receipts or ticket paper, etc. If the cash register receives a printing signal for controlling the printer triggered by an operator, the current payment method is obtained. If the payment method is cash payment, it is determined that the cash register receives a target signal for opening the cash box. At this time, the main control end of the cash register sends a first signal, a target signal, a first generation instruction, and a second generation instruction to the driver board of the printer, so that the driver board of the printer generates a printer control signal and a cash box control signal, and opens the cash box while driving the printer to print. If the payment method is not cash payment, it is determined that the cash register does not receive a target signal for opening the cash box. At this time, the main control end of the cash register sends a first signal and a second generation instruction to the driver board of the printer, so that the driver board of the printer only generates a printer control signal and drives the printer to print.
[0038] Among them, directly controlling the second module based on the device or remotely controlling the second module based on the target terminal is the same as controlling the first module, which will not be repeated here.
[0039] It can be seen from the above embodiments that due to the functional connection between the first module and the second module, the associated instruction information is obtained through the control signal of the second module, so that the operator only needs to trigger the signal once to simultaneously control the two modules, which effectively optimizes the control operation of the equipment and improves the convenience of use of the equipment.
[0040] In one embodiment of the present application, after receiving the target signal for controlling the first module in step S110 , the method further includes step S310 .
[0041] Step S310: sending a target signal and a first generation instruction to the driving board, where the first generation instruction is used to instruct the driving board to generate a first control signal based on the target signal.
[0042] It can be seen from the above embodiments that the target signal for controlling the first module is used to generate a corresponding control signal using the driver board, so that the device can control the first module through the driver of the second module, thereby avoiding program compatibility issues.
[0043] In one embodiment of the present application, the main control board is connected to the driving board via a universal serial bus; the method of sending the target signal and the first generation instruction to the driving board in step S310 includes step S410.
[0044] Step S410: sending the target signal and the first generation instruction to the driving board via the universal serial bus.
[0045] In a specific scenario, the device is a cash register, the first module is a cash box, and the second module is a printer. If the cash register is only equipped with a cash box, and the driving circuit of the cash box is integrated into the main control board of the cash register, but the main control end of the cash register is only equipped with a driver for the printer, but not a driver for the cash box, the driver board of the printer can be externally connected to the main control board of the cash register through a universal serial bus, so that the cash register can use the driver of the printer to generate a first control signal and then convert it into a second control signal, thereby controlling the cash box.
[0046] As can be seen from the above embodiments, the main control board and the driver board are connected via a universal serial bus, which means that the second module can be connected to the device in an external manner. In this way, when the device needs to control the first module, the second module can be connected externally, so that the driver board of the second module can be used to control the first module, thereby reducing the requirements for the hardware circuit of the device and improving the flexibility of device control.
[0047] In one embodiment of the present application, the method of converting the first control signal into the second control signal in step S130 includes step S510.
[0048] Step S510: converting the first control signal into a second control signal according to a preset signal conversion rule.
[0049] It can be seen from the above embodiments that the first control signal for controlling the second module can be converted into the second control signal for controlling the first module through the signal conversion rule, so that no matter which driving control method is used, the control can be achieved based on the same set of control signals, avoiding the problem of signal incompatibility.
[0050] In one embodiment of the present application, the signal conversion rule includes a signal mapping relationship. The method of converting the first control signal into the second control signal according to the preset signal conversion rule in step S510 includes steps S610 to S630.
[0051] Step S610: Analyze the first control signal to obtain signal parameters.
[0052] Step S620: Acquire a signal mapping relationship corresponding to the control interface of the main control board according to the signal parameters.
[0053] Step S630: converting the first control signal into a second control signal output based on the control interface based on the signal mapping relationship.
[0054] In a specific scenario, the device is a cash register, the first module is a cash drawer, the second module is a printer, and the first control signal of the printer driver board is generated based on the ESC / POS instruction. If the cash drawer drive circuit is integrated into the main control board, the IO control instruction output by the main control end is required to drive the cash drawer, so the first control signal of the ESC / POS instruction needs to be converted into the second control signal of the IO control instruction.
[0055] As can be seen from the above embodiments, due to the differences in control interfaces between different circuits, if the first control signal is to be output based on the control interface of the main control board, the first control signal needs to be converted. Conversion based on a predefined signal mapping relationship can effectively speed up the signal response speed.
[0056] In one embodiment of the present application, the method of sending a feedback instruction to the driving board in step S120 includes step S710.
[0057] Step S710: Sending a feedback instruction to the driving board based on the polling mechanism.
[0058] It can be seen from the above embodiments that the polling mechanism is a method of periodically querying status or information. Based on the polling mechanism, a feedback instruction is sent to the driver board, so that the driver board can promptly return the first control signal to the main control board after generating the first control signal, thereby improving the control efficiency of the first module.
[0059] A device control method of the present application is applied to a specific scenario, in which the device is a cash register, the first module is a cash box, the second module is a printer, and the cash box and the printer are integrated inside the cash register, so that the cash box, the printer and the cash register are an integrated design. After the operator triggers the cash box opening signal on the cash register, the main control end of the cash register is used to perform the following steps: receiving the cash box opening signal, and obtaining the connection status of the driving circuit of the cash box. If the driving circuit of the cash box is connected to the driver board of the printer, the cash box opening signal is sent to the driver board of the printer, so that the driver board of the printer generates a control signal of the printer to the cash box, and the driver board of the printer controls the driving circuit to open the cash box. If the driving circuit of the cash box is connected to the main control board of the cash register, the control signal of the printer to the cash box is obtained from the driver board of the printer, and the control signal of the printer to the cash box is converted into a control signal of the main control end to the cash box, and the main control end of the cash register controls the driving circuit to open the cash box. In addition, if a printer start signal is received at the same time as a cash drawer open signal, a printer start signal is sent to the driver board of the printer at the same time as the cash drawer open signal is sent to the driver board of the printer, so that the driver board of the printer also generates a printer control signal, and the driver board of the printer controls the printer to start.
[0060] In summary, the present invention provides a device control method, which receives a target signal for controlling a first module and obtains the connection status of a driving circuit. When the driving circuit is integrated into the main control board, the first control signal generated on the driving board based on the target signal is transmitted back to the main control board, and the first control signal is converted into a second control signal, thereby sending the second control signal to the driving circuit, so that the main control module can directly control the first module through the driving circuit. When the driving circuit is integrated into the driving board, the first control signal is directly sent to the driving circuit by the driving board to control the first module. The present application detects the connection status of the driving circuit to determine the control method of the device to achieve flexible switching, thereby improving the applicability of the device to different circuit designs. In addition, no matter which control method is used, the first control signal needs to be generated by the driving board, so that the device can also realize the control of the first module without separately configuring the driver of the second control signal, thereby reducing the change development of the device driver and having stronger compatibility.
[0061] Please refer to Figures 4 to 6 Another embodiment of the present application provides an electronic device 100, including a main control module 101, a driving circuit 102 for controlling a first module, a driving board 103 for controlling a second module, and a main control board 104, wherein the main control module 101 is disposed on the main control board 104.
[0062] like Figure 4 As shown, in one embodiment of the present application, the main control board 104 is electrically coupled to the driving circuit 102 and the driving board 103 respectively.
[0063] like Figure 5 As shown, in one embodiment of the present application, the main control board 104 is electrically coupled to the driving board 103 , and the driving board 103 is electrically coupled to the driving circuit 102 .
[0064] Among them, Figure 6 As shown, the main control module 101 includes a memory 1011, a processor 1012, and a computer program stored in the memory 1011 and running on the processor 1012. When the processor 1012 executes the computer program, the above-mentioned device control method is implemented.
[0065] Among them, the corresponding content of a device control method has been disclosed in the above part and will not be repeated here.
[0066] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A device control method, characterized in that: A main control module for a device, the device comprising a driving circuit for controlling a first module, a driving board for controlling a second module and a main control board, the main control module being arranged on the main control board, the method comprising: If a target signal for controlling the first module is received, obtaining a connection state of the driving circuit; If the driving circuit is integrated on the main control board, a feedback instruction is sent to the driving board, wherein the feedback instruction is used to instruct the driving board to return a first control signal generated based on the target signal to the main control board; If the first control signal is received, converting the first control signal into a second control signal; The second control signal is sent to the driving circuit, so that the first module is controlled by the driving circuit according to the second control signal.
2. A device control method according to claim 1, characterized in that: Also includes: If the driving circuit is integrated on the driving board, a forwarding instruction is sent to the driving board, wherein the forwarding instruction is used to instruct the driving board to send the first control signal to the driving circuit, so as to control the first module according to the first control signal through the driving circuit.
3. A device control method according to claim 1, characterized in that: After receiving the target signal for controlling the first module, the method further includes: The target signal and a first generation instruction are sent to the driving board, where the first generation instruction is used to instruct the driving board to generate a first control signal based on the target signal.
4. A device control method according to claim 3, characterized in that: The main control board is connected to the driving board via a universal serial bus; Sending the target signal and the first generation instruction to the driving board includes: The target signal and the first generation instruction are sent to the driving board through the universal serial bus.
5. A device control method according to claim 1, characterized in that: Converting the first control signal into a second control signal comprises: The first control signal is converted into a second control signal according to a preset signal conversion rule.
6. A device control method according to claim 5, characterized in that: The signal conversion rule includes a signal mapping relationship; Converting the first control signal into a second control signal according to a preset signal conversion rule includes: parsing the first control signal to obtain a signal parameter; Acquire a signal mapping relationship corresponding to the control interface of the main control board according to the signal parameter; The first control signal is converted into a second control signal output based on the control interface based on the signal mapping relationship.
7. A device control method according to claim 1, characterized in that: Sending a return instruction to the driver board includes: Sending feedback instructions to the driving board based on a polling mechanism.
8. A device control method according to claim 1, characterized in that: Receiving a target signal for controlling the first module includes: The target signal for controlling the first module sent by the target terminal based on the Hongmeng distributed connection is received through the distributed soft bus.
9. A device control method according to claim 1, characterized in that: Also includes: If a first signal for controlling the second module is received, obtaining instruction information associated with the first module, and determining whether a target signal for controlling the first module is received according to the instruction information; If the target signal for controlling the first module is not received, sending the first signal and a second generating instruction to the driving board, wherein the second generating instruction is used to instruct the driving board to generate a third control signal based on the first signal; The second module is controlled by the driving board according to the third control signal.
10. An electronic device, characterized in that: It includes a main control module, a driving circuit for controlling a first module, a driving board for controlling a second module, and a main control board, wherein the main control module is arranged on the main control board, and the main control module includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, a device control method as described in any one of claims 1 to 8 is implemented.