CN115220675B - Control method of display device, display device and computer storage medium - Google Patents

Control method of display device, display device and computer storage medium Download PDF

Info

Publication number
CN115220675B
CN115220675B CN202210566204.6A CN202210566204A CN115220675B CN 115220675 B CN115220675 B CN 115220675B CN 202210566204 A CN202210566204 A CN 202210566204A CN 115220675 B CN115220675 B CN 115220675B
Authority
CN
China
Prior art keywords
system interface
display device
mode
display
interface corresponding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210566204.6A
Other languages
Chinese (zh)
Other versions
CN115220675A (en
Inventor
屈晓峰
杨威
�田宏
刘章华
陶师正
万小康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong ePropulsion Technology Co Ltd
Original Assignee
Guangdong ePropulsion Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong ePropulsion Technology Co Ltd filed Critical Guangdong ePropulsion Technology Co Ltd
Priority to CN202210566204.6A priority Critical patent/CN115220675B/en
Publication of CN115220675A publication Critical patent/CN115220675A/en
Application granted granted Critical
Publication of CN115220675B publication Critical patent/CN115220675B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C

Abstract

The application discloses a control method of display equipment on a communication bus, the display equipment and a computer storage medium. The control method comprises the following steps: in the first receiving mode, if the polling signals sent by other devices on the communication bus are not received within a first preset time period, updating the working mode to be a sending mode; communicate with other devices in a polling manner; determining a system interface corresponding to a target device for transmitting the response signal based on response signals received from other devices; and displaying a system interface. By the method, the same display device can be compatible with different application scenes, and corresponding data can be displayed in a self-adaptive mode, so that the convenience in use of the display device and the correctness in data display are improved.

Description

Control method of display device, display device and computer storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for controlling a display device on a communications bus, a display device, and a computer storage medium.
Background
In addition, the communication protocols of different communication buses, such as 485 bus systems, are difficult to unify, and incompatibility often occurs due to different development times and development periods of different projects.
In the related art, in order to solve the above-mentioned problems, corresponding software may be developed on the same hardware platform for each communication protocol and communication bus, and because of incompatibility of the software, different display devices are generally used to load the corresponding software. However, in the practical project development process, a unified (unified model, same appearance) display device is generally required to display all information on different communication buses. However, the display devices with the same appearance cannot distinguish the association with the specific parameters of the project before the display devices are not started, so that the application convenience of the display devices in different occasions is greatly reduced, and the correctness of the display data is reduced.
Disclosure of Invention
The application provides a control method of display equipment on a communication bus, the display equipment and a computer storage medium, so that the same display equipment is compatible with different application scenes, corresponding data are adaptively displayed, and therefore convenience in use of the display equipment and correctness in data display are improved.
In order to solve the technical problems, the application provides a control method of display equipment on a communication bus. The control method comprises the following steps: in the first receiving mode, if the polling signals sent by other devices on the communication bus are not received within a first preset time period, updating the working mode to be a sending mode; communicate with other devices in a polling manner; determining a system interface corresponding to a target device for transmitting the response signal based on response signals received from other devices; and displaying a system interface.
In order to solve the technical problems, the application provides a control method of display equipment on a communication bus. The control method comprises the following steps: in the first receiving mode, if polling signals sent by other devices on the communication bus are received within a first preset time period, determining a system interface corresponding to a target device sending the polling signals based on the polling signals received by the other devices; and displaying a system interface.
In order to solve the technical problems, the application provides display equipment. The display device is connected to a communication bus, to which other devices are also connected, the display device comprising: the communication module is used for sending a polling signal and receiving a response signal; the mode switching module is connected with the communication module and is used for updating the working mode into a sending mode if a polling signal on the communication bus is not received within a first preset duration in a first receiving mode, and the communication module communicates with other equipment in a polling mode; and the display module is connected with the communication module, determines a system interface corresponding to the target device for sending the response signal based on the response signal received by the communication module from other devices, and displays the system interface.
In order to solve the technical problems, the application provides display equipment. The display device is connected to a communication bus, to which other devices are also connected, the display device comprising: the communication module is used for receiving the polling signal; and the display module is connected with the communication module and used for determining a system interface corresponding to the target device for sending the polling signal based on the polling signal received by the communication module from other devices and displaying the system interface if the polling signal on the communication bus is received in a first preset time period in the first receiving mode.
In order to solve the technical problems, the application provides display equipment. The display device is connected to a communication bus, to which other devices are also connected, the display device comprising: a processor; a memory; and a program stored in the memory, wherein the program realizes the control method when executed by the processor.
In order to solve the above technical problems, the present application provides a computer storage medium. The computer storage medium stores program instructions that when executed by the processor implement the method for controlling a display device on a communication bus according to any of the above embodiments.
The control method of the display device on the communication bus firstly judges whether the display device receives polling signals sent by other devices on the communication bus in a first preset time length under a first receiving mode, and if the polling signals sent by the other devices on the communication bus are not received in the first preset time length, the working mode of the display device is updated to be a sending mode; then, the display device communicates with other devices in a polling mode, and determines a system interface corresponding to a target device for transmitting the response signal based on the response signal received from the other devices; and finally displaying a system interface. In this way, when the display device does not receive the polling signals sent by other devices on the communication bus within the first preset duration, the working mode is updated to be the sending mode, and the devices on the communication bus are polled by the host angle, namely, the display device polls the other devices on the communication bus by the host angle when the communication is idle, so that the communication conflict of the display device can be improved, and the accuracy of data display is improved; and the display device determines a system interface corresponding to the target device sending the response signal based on the response signals received from the other devices, and can adaptively acquire the system interface corresponding to the target device based on the response signals received by the other devices and display the system interface. Therefore, the application device can realize that the same display device is compatible with different application scenes, namely, different other devices on the communication bus need to display data through the display device, and the application device can also adaptively display the data corresponding to the target device, so that the convenience of using the display device and the correctness of data display can be improved.
Drawings
For a clearer description of the technical solutions in the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art, wherein:
FIG. 1 is a schematic diagram of an embodiment of a control system of the present application;
FIG. 2 is a flow chart of an embodiment of a method for controlling a display device on a communication bus of the present application;
FIG. 3 is a flow chart of an embodiment of a method for controlling a display device on a communication bus of the present application;
FIG. 4 is a flow chart of an embodiment of a method for controlling a display device on a communication bus of the present application;
FIG. 5 is a flow chart of an embodiment of a method for controlling a display device on a communication bus of the present application;
FIG. 6 is a flow chart of an embodiment of a method for controlling a display device on a communication bus of the present application;
FIG. 7 is a flow chart of an embodiment of a method for controlling a display device on a communication bus of the present application;
FIG. 8 is a flow chart of an embodiment of a method for controlling a display device on a communication bus of the present application;
FIG. 9 is a flow chart of an embodiment of a method of controlling a display device on a communication bus of the present application;
FIG. 10 is a schematic view of an embodiment of a display device of the present application;
FIG. 11 is a schematic view of an embodiment of a display device of the present application;
FIG. 12 is a schematic view of an embodiment of a display device of the present application;
FIG. 13 is a schematic diagram of an embodiment of a computer storage medium of the present application.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is specifically noted that the following examples are only for illustration of the present application, but do not limit the scope of the present application. Likewise, the following embodiments are only some, but not all, of the embodiments of the present application, and all other embodiments obtained by one of ordinary skill in the art without inventive effort are within the scope of the present application.
In the description of the embodiments of the present application, it should be noted that, unless explicitly specified and limited otherwise, the terms "connected," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium. The specific meaning of the terms in the embodiments of the present application will be understood by those of ordinary skill in the art in a specific context.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the embodiments of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
The technical scheme of the application can be applied to various communication buses, such as 485 buses, and the like, and the 485 buses are taken as examples for introduction.
In addition, because of different project development time and development period, incompatibility often occurs, however, in the actual project development process, unified (unified model and same appearance) display equipment is usually required to display all information on different 485 buses.
In the related art, corresponding software may be developed on the same hardware platform for each communication protocol and communication bus, but the software is not necessarily compatible with each other. This results in a display device of the same appearance that cannot distinguish between which item it matches at all before it is not powered on.
For the above, if the same display device is used to match multiple items, it is often necessary to develop different software for the display device, and tag the display device to manage the different display devices. That is, in different projects, the display device may be a master or a slave, but the program involved and the data (parameters) to be displayed may be different, and the appearance of the adopted display device may be the same, in which case the display device required by the corresponding system cannot be recognized, resulting in inconvenience.
The related technical scheme has the problem that the material management of the display equipment is difficult, the display equipment with almost the same appearance is difficult to distinguish products belonging to which item, the software of the display equipment must be updated on site once the display equipment is mistaken, and the situation of wrong connection often occurs. And the method has a great influence on actual application and user experience.
Therefore, the application provides a control method of display equipment on a communication bus, the display equipment and a computer storage medium, so as to solve the problem that the display equipment can not be timely prepared for display data according to requirements when being connected to different occasions, namely the problem of wild configuration of the display equipment. The technical scheme also has the capability of continuous iterative updating, and can be compatible with a new 485 project in the later stage.
Specifically, the present application first proposes a control method of a display device on a communication bus, as shown in fig. 1, and fig. 1 is a flow chart of an embodiment of the control method of the display device on the communication bus of the present application. The control method of the embodiment specifically includes the following steps:
step S91: in the first receiving mode, if the polling signal sent by other devices on the communication bus is not received within a first preset time period, the working mode is updated to be a sending mode.
The polling signal is a communication signal sent by the host to the slave on the communication bus where the host is located; the slave receives the polling signal and feeds back a response signal aiming at the polling signal to the host so as to realize a communication mode of host polling and slave response.
When the display device is in the first receiving mode, the slave role is used for accessing the communication bus, and other devices on the communication bus or a polling signal sent by the host is received.
When the display device is in a transmitting mode, the display device accesses the communication bus in a host role, transmits a polling signal to other devices or slave computers on the communication bus, and receives corresponding response signals from the slave computers.
Optionally, the operation mode is set to the first receiving mode when the display device is powered on.
Step S92: communicate with other devices in a polling manner.
The display device accesses the communication bus in a host role, transmits a polling signal to other devices on the communication bus, and receives response signals of the other devices to the polling signal so as to realize communication with the other devices based on a polling mode.
Step S93: and determining a system interface corresponding to the target device for transmitting the response signal based on response signals received from other devices.
Specifically, a corresponding communication protocol may be acquired based on a response signal sent by the target device, and a system interface corresponding to the target device may be determined based on the communication protocol, specifically, which communication protocol is used for resolving the response signal may be determined, the response signal may be resolved based on the communication protocol, and then the system interface corresponding to the target device may be determined based on the resolved response signal.
Step S94: and displaying a system interface.
The display device displays a system interface corresponding to the target device, and can display corresponding data, parameters and the like through the system interface.
When the display device does not receive the polling signals sent by other devices on the communication bus within the first preset time, updating the working mode to be a sending mode, and polling the devices on the communication bus by using the host angle, namely, polling the other devices on the communication bus by using the host angle when the display device is idle, so that communication conflict can be improved, and the accuracy of data display can be improved; and the display device determines a system interface corresponding to the target device sending the response signal based on the response signals received from the other devices, and can adaptively acquire the system interface corresponding to the target device based on the response signals received by the other devices and display the system interface. Therefore, the embodiment can realize that the same display device is compatible with different application scenes, namely, different other devices on the communication bus need to display data through the display device, and the embodiment can also adaptively display the data corresponding to the target device, so that the convenience of using the display device and the correctness of displaying the data can be improved.
The present application further proposes a control method of a display device on a communication bus according to another embodiment, as shown in fig. 2, and fig. 2 is a schematic flow chart of an embodiment of the control method of the display device on the communication bus of the present application. The communication method of the present embodiment specifically includes the following steps:
step S101: in the first receiving mode, if the polling signal sent by other devices on the communication bus is not received within a first preset time period, the working mode is updated to be a sending mode.
Reference is made to the examples described above for specific implementation.
Step S102: a polling signal is sent to the other devices.
When the display device is in a transmitting mode, the communication bus is accessed by a host role, and a polling signal is transmitted to other devices or slave computers on the communication bus.
Step S103: the update operation mode is the second reception mode.
After the polling signal is sent, the display device switches the working mode of the display device from a sending mode to a second receiving mode, and receives corresponding response signals from other devices in the second receiving mode.
Step S104: and judging whether a response signal is received. If yes, step S105 is executed, if no, the operation mode is switched to the first reception mode, and step S101 is executed.
Steps S102 to S104 enable communication with other devices in a polling manner.
The first receiving mode is different from the second receiving mode in that: the first receiving mode is a working mode that the display equipment accesses the communication bus in a slave role and receives a polling signal of the host; and the second receiving mode is an operating mode in which the display device accesses the communication bus in the role of a master, and receives a response signal of the slave to its polling signal.
Step S105: and determining a system interface corresponding to the target device for transmitting the response signal based on response signals received from other devices.
Reference is made to the examples described above for specific implementation.
Step S106: and displaying a system interface.
Reference is made to the examples described above for specific implementation.
On the basis of the above embodiment, in this embodiment, after the display device has sent the polling signal, the working mode of the display device is switched from the sending mode to the second receiving mode, and the response signals for the polling signal fed back by other devices are received in time, so that data loss is avoided.
The present application further proposes a control method of a display device on a communication bus according to another embodiment, as shown in fig. 3, and fig. 3 is a schematic flow chart of an embodiment of the control method of the display device on the communication bus of the present application. The communication method of the present embodiment specifically includes the following steps:
Step S111: in the first receiving mode, if the polling signal sent by other devices on the communication bus is not received within a first preset time period, the working mode is updated to be a sending mode.
Reference is made to the examples described above for specific implementation.
Step S112: communicate with other devices in a polling manner.
Reference is made to the examples described above for specific implementation.
Step S113: and determining a system interface corresponding to the target device for transmitting the response signal based on response signals received from other devices.
Reference is made to the examples described above for specific implementation.
Step S114: and judging whether a system interface corresponding to the target equipment exists or not.
If so, step S115 is performed, and if not, step S116 is performed.
Specifically, the embodiment can determine whether the response signal can be successfully analyzed; if yes, determining that a system interface corresponding to the target equipment exists; if not, determining that the system interface corresponding to the target equipment does not exist.
Step S115: and displaying a system interface.
Reference is made to the examples described above for specific implementation.
Step S116: a notification is issued that the display device does not have a system interface corresponding to the target device and/or a notification of a software upgrade.
Judging whether the response signal is successfully analyzed or not, namely judging whether the 485 message is compatible or not; if the analysis is unsuccessful, namely 485 messages are incompatible, the display equipment can be considered to be not provided with a system interface corresponding to the target equipment, and a notification that the display equipment is not provided with the system interface corresponding to the target equipment is sent; or the display device may not be upgraded, but may be incompatible although 485 messages are detected, at which time it is necessary to wait for the display device to upgrade and issue a notification of the display device software upgrade.
Similar modifications can be made to the other embodiments described above.
Based on the above embodiment, the present embodiment further sends a corresponding notification if the display device does not have a system interface corresponding to the target device; or when the display device is not updated, a notification of the display device software update is sent out so that a user can be notified in time.
The present application further proposes a control method of a display device on a communication bus according to another embodiment, as shown in fig. 5, and fig. 5 is a flowchart of an embodiment of the control method of the display device on the communication bus according to the present application. The communication method of the present embodiment specifically includes the following steps:
step S121: in the first receiving mode, if the polling signal sent by other devices on the communication bus is not received within a first preset time period, the working mode is updated to be a sending mode.
Reference is made to the examples described above for specific implementation.
Step S122: communicate with other devices in a polling manner.
Reference is made to the examples described above for specific implementation.
Step S123: and determining a system interface corresponding to the target device for transmitting the response signal based on response signals received from other devices.
Step S124: and displaying a system interface.
Reference is made to the examples described above for specific implementation.
Step S125: and if the sending signal of the target equipment is not received within the second preset time period, the display equipment works in the first receiving mode.
The transmission signal of this embodiment includes a response signal of the target device to the polling signal of the display device.
After the display device displays the system interface corresponding to the target device, if the sending signal of the target device is not received within the second preset duration, the receiving and sending timeout event is triggered, the working mode of the display device is switched to the first receiving mode, and step S121 is executed.
Similar modifications can be made to the other embodiments described above.
In this embodiment, on the basis of the foregoing embodiment, after the display device displays the system interface corresponding to the target device, if the sending signal of the target device is not received within the second preset duration, the receiving and sending timeout event is triggered, and the working mode of the display device is switched to the first receiving mode. By the method, the display device can timely display the system interface corresponding to the other target device under the condition of switching to be connected with the other target device. Therefore, the present embodiment can cope with a case where device switching is possible again; and when the equipment is switched, repeating the logic to judge and switching the equipment.
In another embodiment, as shown in fig. 6, after the display device is turned on, the self-operating mode is set to the first receiving mode, and when no 485 message is received within 1 second (2 seconds, 3 seconds, 5 seconds, etc. are also not limited herein), the self-operating mode is changed to the transmitting mode, and other devices on the 485 bus are started to be polled by the host angle color wheel; after the polling message is sent, the working mode of the device is set to be a second receiving mode in time, and then whether 485 messages are received is analyzed; judging which device the current communication protocol corresponds to according to the received 485 message, determining the target device, and cutting the display interface into a system interface required by the corresponding target device; the background turn-on timeout processing logic then handles the possible device switch again.
In the above logic, the step of "determining whether the 485 message is compatible" is that the current display device may not be updated, but the 485 message is detected but not compatible, and it is necessary to wait for the display device to be updated. The step of triggering the receiving and sending timeout event is to cope with the possibility of switching the equipment again, and repeat the logic to judge and switch the equipment when switching the equipment. An "unresponsive to an ofline system" indicates that the display device is not connected to any device, or that the communication line is disconnected.
In a certain system, the display equipment and the corresponding equipment are connected together according to the requirements of the system, the display equipment starts to execute the logic, and confirms which system is currently in, and the corresponding switching program is displayed.
As shown in fig. 1, taking a display device as a host of a battery to quickly acquire information such as battery power, voltage and the like, the display device is connected with the battery and powered on, and the display device is in a first receiving mode, counts time for 1 second, and judges whether a 485 message is received. In this embodiment, the display device is used as the host to send 458 messages, so that the display device should not receive 458 messages after timing for 1 second, switches to the sending mode, and traverses all adapted 458 messages with the identity of the host; at this point, if the display device is properly connected to the battery, the display device receives 458 a message (sent by the battery). After the display device receives the message 458, it determines which device the message 458 was sent (whether it is a battery); and judging 458 whether the message is compatible, and switching to a display interface of a corresponding battery under the condition of compatibility. And if the display equipment is not compatible, waiting for the display equipment to upgrade the software. If the connection between the display device and the battery is improper, the system does not respond.
The present application further proposes a control method of a display device on a communication bus, as shown in fig. 7, and fig. 7 is a schematic flow chart of an embodiment of the control method of a display device on a communication bus. The control method of the embodiment specifically includes the following steps:
step S141: in the first receiving mode, if polling signals sent by other devices on the communication bus are received within a first preset time period, determining a system interface corresponding to a target device sending the polling signals based on the polling signals received from the other devices.
The polling signal is a communication signal sent by the host to the slave on the communication bus where the host is located; the slave receives the polling signal and feeds back a response signal aiming at the polling signal to the host so as to realize a communication mode of host polling and slave response.
When the display device is in the first receiving mode, the slave role is used for accessing the communication bus, and other devices on the communication bus or a polling signal sent by the host is received.
Optionally, the operation mode is set to the first receiving mode when the display device is powered on.
Specifically, a communication protocol of the polling signal may be acquired based on the polling signal transmitted by the target device, and a system interface corresponding to the target device may be determined based on the communication protocol, and specifically, which of the communication protocols is used to parse the polling signal may be determined, and the polling signal may be parsed based on the communication protocol, and then the system interface corresponding to the target device may be determined based on the parsed polling signal.
Step S142: and displaying a system interface.
The display device displays a system interface corresponding to the target device, and can display corresponding data, parameters and the like through the system interface.
When the display device of the embodiment receives the polling signals sent by the other devices on the communication bus within the first preset time period, the system interface corresponding to the target device sending the polling signals is determined based on the polling signals received by the other devices, and the system interface corresponding to the target device can be obtained in a self-adaptive mode based on the polling signals received by the other devices and displayed. Therefore, the embodiment can realize that the same display device is compatible with different application scenes, namely, different other devices on the communication bus need to display data through the display device, and the embodiment can also adaptively display the data corresponding to the target device, so that the convenience of using the display device and the correctness of displaying the data can be improved.
The present application further proposes a control method of a display device on a communication bus according to another embodiment, as shown in fig. 8, and fig. 8 is a flowchart of an embodiment of the control method of the display device on the communication bus according to the present application. The communication method of the present embodiment specifically includes the following steps:
Step S151: in the first reception mode, a system interface corresponding to a target device that transmits a polling signal is determined based on polling signals received from other devices.
Reference is made to the examples described above for specific implementation.
Step S152: and judging whether a system interface corresponding to the target equipment exists or not.
If so, step S153 is performed, and if not, step S154 is performed.
Specifically, the embodiment can determine whether the polling signal can be successfully analyzed; if yes, determining that a system interface corresponding to the target equipment exists; if not, determining that the system interface corresponding to the target equipment does not exist.
Step S153: and displaying a system interface.
Reference is made to the examples described above for specific implementation.
Step S154: a notification is issued that the display device does not have a system interface corresponding to the target device and/or a notification of a software upgrade.
Judging whether the polling signal is successfully analyzed or not, namely judging whether 485 messages are compatible or not; if the analysis is unsuccessful, namely 485 messages are incompatible, the display equipment can be considered to be not provided with a system interface corresponding to the target equipment, and a notification that the display equipment is not provided with the system interface corresponding to the target equipment is sent; or the display device may not be upgraded, but may be incompatible although 485 messages are detected, at which time it is necessary to wait for the display device to upgrade and issue a notification of the display device software upgrade.
Similar modifications can be made to the other embodiments described above.
Based on the above embodiment, the present embodiment further sends a corresponding notification if the display device does not have a system interface corresponding to the target device; or when the display equipment is not updated, a notification of the software update of the display equipment is sent out, so that subsequent operation is facilitated, and the control efficiency can be improved.
The present application further proposes a control method of a display device on a communication bus according to another embodiment, as shown in fig. 9, and fig. 9 is a flowchart of an embodiment of the control method of the display device on the communication bus according to the present application. The communication method of the present embodiment specifically includes the following steps:
step S161: in the first reception mode, a system interface corresponding to a target device that transmits a polling signal is determined based on polling signals received from other devices.
Step S162: and displaying a system interface.
Reference is made to the examples described above for specific implementation.
Step S163: and if the sending signal of the target equipment is not received within the second preset time period, the display equipment works in the first receiving mode.
The transmission signal of the embodiment includes a polling signal that the target device transmits to the display device.
After the display device displays the system interface corresponding to the target device, if the sending signal of the target device is not received within the second preset duration, the receiving and sending timeout event is triggered, the working mode of the display device is switched to the first receiving mode, and step S161 is executed.
Similar modifications can be made to the other embodiments described above.
In this embodiment, on the basis of the foregoing embodiment, after the display device displays the system interface corresponding to the target device, if the sending signal of the target device is not received within the second preset duration, the receiving and sending timeout event is triggered, and the working mode of the display device is switched to the first receiving mode. By the method, the display device can display a system interface corresponding to another target device in time when being switched to be connected with the other target device. Therefore, the present embodiment can cope with a case where device switching is possible again; and when the equipment is switched, repeating the logic to judge and switching the equipment.
The application further provides a display device, as shown in fig. 10, and fig. 10 is a schematic structural diagram of an embodiment of the display device of the application. The display device (not shown) of the present embodiment includes: a communication module 171, and a mode switching module 172 and a display module 173 connected to the communication module 171; wherein the communication module 171 is configured to send a polling signal and receive a response signal; the mode switching module 172 is configured to update the working mode to a sending mode if the polling signal on the communication bus is not received within a first preset duration in the first receiving mode, where the communication module communicates with other devices in a polling manner; the display module 173 is connected to the communication module 171, determines a system interface corresponding to a target device that transmits a response signal based on the response signal received by the communication module 172 from the other device, and displays the system interface.
The display device of this embodiment is connected to a communication bus, and other devices are also connected to the communication bus.
When the display device does not receive the polling signals sent by other devices on the communication bus within the first preset time, updating the working mode to be a sending mode, and polling the devices on the communication bus by using the host angle, namely, polling the other devices on the communication bus by using the host angle when the display device is idle, so that communication conflict can be improved, and the accuracy of data display can be improved; and the display device determines a system interface corresponding to the target device sending the response signal based on the response signals received from the other devices, and can adaptively acquire the system interface corresponding to the target device based on the response signals received by the other devices and display the system interface. Therefore, the embodiment can realize that the same display device is compatible with different application scenes, namely, different other devices on the communication bus need to display data through the display device, and the embodiment can also adaptively display the data corresponding to the target device, so that the convenience of using the display device and the correctness of displaying the data can be improved.
Optionally, the display module 173 is further configured to determine whether a system interface corresponding to the target device exists, and display the system interface corresponding to the target device when the system interface corresponding to the target device exists.
Optionally, the display module 173 is configured to determine whether a system interface corresponding to the target device exists, and specifically is configured to determine whether the response signal can be successfully parsed. When the answer signal can be successfully parsed, the display module 173 determines that a system interface corresponding to the target device exists; upon failure to successfully parse the reply signal, the display module 173 determines that there is no system interface corresponding to the target device.
Optionally, the display device further includes a first prompt module. The first prompting module is used for sending out a notification that the display equipment does not have the system interface corresponding to the target equipment and/or a notification of software upgrading when the system interface corresponding to the target equipment does not exist in the display equipment.
Optionally, after the display module 173 displays the system interface, if the communication module 171 does not receive the transmission signal of the target device within the second preset duration, the mode switching module 172 controls the display device to operate in the first receiving mode.
Optionally, the communication module 171 is further configured to send a polling signal to other devices, and the mode switching module 172 is further configured to update the operation mode of the display device to the second receiving mode. When the communication module 171 receives the response signal, the display module 173 is configured to determine a system interface corresponding to the target device that transmits the response signal based on the response signal received from the other device.
Alternatively, when the communication module 171 does not receive the response signal, the mode switching module 172 switches the operation mode of the display device to the first reception mode. In the first receiving mode, if the communication module 171 does not receive the polling signal sent by the other device on the communication bus within the first preset time period, the mode switching module 172 updates the operation mode of the display device to the sending mode.
Optionally, at power-up of the display device, the mode switch module 172 sets the operating mode of the display device to the first receiving mode.
Optionally, the display module 173 is further configured to determine a communication protocol of the reply signal, and determine the system interface corresponding to the target device based on the communication protocol.
The application further provides a display device, as shown in fig. 11, and fig. 11 is a schematic structural diagram of an embodiment of the display device of the application. The display device (not shown) of the present embodiment includes: a communication module 181 and a display module 182 connected to the communication module 181; wherein the communication module 181 is configured to receive a polling signal; the display module 182 is configured to, in the first receiving mode, determine a system interface corresponding to the target device that sends the polling signal based on the polling signal received by the communication module from the other device if the polling signal on the communication bus is received within a first preset period of time, and display the system interface.
The display device of this embodiment is connected to a communication bus, and other devices are also connected to the communication bus.
When the display device of the embodiment receives the polling signals sent by the other devices on the communication bus within the first preset time period, the system interface corresponding to the target device sending the polling signals is determined based on the polling signals received by the other devices, and the system interface corresponding to the target device can be obtained in a self-adaptive mode based on the polling signals received by the other devices and displayed. Therefore, the embodiment can realize that the same display device is compatible with different application scenes, namely, different other devices on the communication bus need to display data through the display device, and the embodiment can also adaptively display the data corresponding to the target device, so that the convenience of using the display device and the correctness of displaying the data can be improved.
Optionally, the display module 182 is further configured to determine whether a system interface corresponding to the target device exists, and display the system interface corresponding to the target device when the system interface corresponding to the target device exists.
Optionally, the display module 182 is configured to determine whether a system interface corresponding to the target device exists, and specifically is configured to determine whether the polling signal can be successfully parsed. When the polling signal can be successfully parsed, the display module 182 determines that a system interface corresponding to the target device exists; upon failure to successfully parse the polling signal, the display module 182 determines that there is no system interface corresponding to the target device.
Optionally, the display device further includes a second prompt module. And the second prompting module is used for sending out a notification that the display equipment does not have the system interface corresponding to the target equipment and/or a notification of software upgrading when the system interface corresponding to the target equipment does not exist in the display equipment.
Optionally, the display device further comprises a mode conversion module. The mode conversion module is used for controlling the display device to work in a first receiving mode when the sending signal of the target device is not received within a second preset time period.
Optionally, the mode conversion module is further configured to set the operation mode to the first receiving mode when the display device is powered on.
Optionally, the display module 182 is further configured to determine a communication protocol of the polling signal, and determine a system interface corresponding to the target device based on the communication protocol.
The application further proposes a display device, as shown in fig. 12, and fig. 12 is a schematic structural diagram of an embodiment of the display device of the application. The display device (not shown) of the present embodiment includes: a processor 191, a memory 192, and programs (not shown); wherein a program is stored on the memory 192, which when executed by the processor 191 implements the method of controlling a display device on a communication bus as described in any of the above embodiments.
In the present embodiment, the processor 191 may also be referred to as a CPU (Central Processing Unit ). The processor 191 may be an integrated circuit chip with signal processing capabilities. The processor 191 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor 191 may be any conventional processor or the like.
The display device of this embodiment is connected to a communication bus, and other devices are also connected to the communication bus.
The present application further proposes a computer storage medium, as shown in fig. 13, and fig. 13 is a schematic structural diagram of an embodiment of the computer storage medium of the present application. The computer storage medium 200 has stored thereon program instructions 201, which when executed by a processor (not shown) implement the method for controlling a display device on a communication bus according to any of the above embodiments.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., may be considered as a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device (which can be a personal computer, server, network device, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions). For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) with one or more wires, a USB flash disk, an SD card, a PD optical drive, a removable hard disk, a high capacity floppy disk drive, a multimedia memory card, a server, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
The control method of the display device on the communication bus firstly judges whether the display device receives polling signals sent by other devices on the communication bus in a first preset time length under a first receiving mode, and if the polling signals sent by the other devices on the communication bus are not received in the first preset time length, the working mode of the display device is updated to be a sending mode; then, the display device communicates with other devices in a polling mode, and determines a system interface corresponding to a target device for transmitting the response signal based on the response signal received from the other devices; and finally displaying a system interface. In this way, when the display device does not receive the polling signals sent by other devices on the communication bus within the first preset duration, the working mode is updated to be the sending mode, and the devices on the communication bus are polled by the host angle, namely, the display device polls the other devices on the communication bus by the host angle when the communication is idle, so that the communication conflict of the display device can be improved, and the accuracy of data display is improved; and the display device determines a system interface corresponding to the target device sending the response signal based on the response signals received from the other devices, and can adaptively acquire the system interface corresponding to the target device based on the response signals received by the other devices and display the system interface. Therefore, the application device can realize that the same display device is compatible with different application scenes, namely, different other devices on the communication bus need to display data through the display device, and the application device can also adaptively display the data corresponding to the target device, so that the convenience of using the display device and the correctness of data display can be improved.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" is at least two, such as two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the patent application, and all equivalent structures or equivalent processes using the descriptions and the contents of the present application or other related technical fields are included in the scope of the patent application.

Claims (14)

1. A method for controlling a display device on a communication bus, comprising:
in the first receiving mode, if the polling signal sent by other devices on the communication bus is not received within a first preset time period, updating the working mode to be a sending mode;
communicate with the other device in a polling manner;
determining a system interface corresponding to a target device for transmitting the response signal based on the response signal received from the other device;
in a first receiving mode, if the polling signal sent by other equipment on the communication bus is received within a first preset time period, determining a system interface corresponding to a target equipment sending the polling signal based on the polling signal received from the other equipment;
and displaying the system interface.
2. The control method according to claim 1, characterized by further comprising:
judging whether a system interface corresponding to the target equipment exists or not;
and if so, executing the step of displaying the system interface.
3. The control method according to claim 2, wherein when the target device is a target device that transmits the response signal, the determining whether a system interface corresponding to the target device exists includes:
Judging whether the response signal can be successfully analyzed;
if yes, determining that the system interface corresponding to the target equipment exists;
if not, determining that the system interface corresponding to the target equipment does not exist.
4. The control method according to claim 2, wherein when the target device is a target device that transmits the polling signal, the determining whether or not there is a system interface corresponding to the target device includes:
judging whether the polling signal can be successfully analyzed;
if yes, determining that the system interface corresponding to the target equipment exists;
if not, determining that the system interface corresponding to the target equipment does not exist.
5. The control method according to claim 2, characterized by further comprising:
and if the system interface is not available, sending out that the display equipment does not have the notification of the system interface and/or the notification of the software upgrading corresponding to the target equipment.
6. The control method according to claim 1, characterized by further comprising, after said displaying said system interface:
and if the sending signal of the target equipment is not received within the second preset time period, the display equipment works in the first receiving mode.
7. The control method according to claim 1, characterized in that the communicating with the other device in a polling manner includes:
transmitting a polling signal to the other device;
updating the working mode to a second receiving mode;
and if the response signal is received, executing the step of determining a system interface corresponding to the target device for sending the response signal based on the response signals received from the other devices.
8. The control method according to claim 7, characterized by further comprising:
and if the response signal is not received, switching the working mode to the first receiving mode, and executing the step of updating the working mode to a transmitting mode if the polling signal transmitted by other devices on the communication bus is not received within a first preset duration in the first receiving mode.
9. The control method according to claim 1, characterized by further comprising:
and when the display equipment is powered on, setting the working mode as the first receiving mode.
10. The control method according to claim 1, wherein the determining a system interface corresponding to a target device that transmits the response signal based on the response signal received from the other device includes:
Determining a communication protocol of the response signal;
the system interface corresponding to the target device is determined based on the communication protocol.
11. The control method according to claim 1, wherein the determining a system interface corresponding to a target device that transmits the polling signal based on the polling signal received from the other device includes:
determining a communication protocol of the polling signal;
the system interface corresponding to the target device is determined based on the communication protocol.
12. A display device, wherein the display device is connected to a communication bus to which other devices are also connected, the display device comprising:
the communication module is used for sending a polling signal and receiving a response signal;
the mode switching module is connected with the communication module and is used for updating the working mode into a sending mode if the polling signal on the communication bus is not received within a first preset duration in a first receiving mode, and the communication module communicates with other equipment in a polling mode;
the display module is connected with the communication module, determines a system interface corresponding to a target device for sending the response signal based on the response signal received by the communication module from the other device, and displays the system interface;
The communication module is also used for receiving a polling signal; and the display module is also used for determining a system interface corresponding to the target device for sending the polling signal based on the polling signal received by the communication module from the other devices when the polling signal on the communication bus is received within the first preset time period, and displaying the system interface.
13. A display device, wherein the display device is connected to a communication bus to which other devices are also connected, the display device comprising:
a processor;
a memory;
a program stored on the memory, which when executed by the processor, implements the control method according to any one of claims 1 to 10.
14. A computer storage medium having stored thereon program instructions which, when executed by a processor, implement the method of controlling a display device on a communication bus of any of claims 1 to 10.
CN202210566204.6A 2022-05-20 2022-05-20 Control method of display device, display device and computer storage medium Active CN115220675B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210566204.6A CN115220675B (en) 2022-05-20 2022-05-20 Control method of display device, display device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210566204.6A CN115220675B (en) 2022-05-20 2022-05-20 Control method of display device, display device and computer storage medium

Publications (2)

Publication Number Publication Date
CN115220675A CN115220675A (en) 2022-10-21
CN115220675B true CN115220675B (en) 2024-04-09

Family

ID=83607029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210566204.6A Active CN115220675B (en) 2022-05-20 2022-05-20 Control method of display device, display device and computer storage medium

Country Status (1)

Country Link
CN (1) CN115220675B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102275524A (en) * 2011-06-30 2011-12-14 奇瑞汽车股份有限公司 Diagnostic system and diagnostic method for power battery packs
CN110417761A (en) * 2019-07-17 2019-11-05 上海东土远景工业科技有限公司 Communication means and device based on dual-computer redundancy
CN111459858A (en) * 2020-04-07 2020-07-28 广东芬尼能源技术有限公司 Multi-host communication method, device, system and storage medium
CN112100007A (en) * 2020-10-12 2020-12-18 苏州浪潮智能科技有限公司 Method and system for switching main controller in multi-controller storage equipment
CN113360041A (en) * 2021-06-21 2021-09-07 南京南瑞继保电气有限公司 Display method, display device, electronic equipment and storage medium
WO2021258748A1 (en) * 2020-06-24 2021-12-30 浪潮(北京)电子信息产业有限公司 I2c bus communication control method, device and system, and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102275524A (en) * 2011-06-30 2011-12-14 奇瑞汽车股份有限公司 Diagnostic system and diagnostic method for power battery packs
CN110417761A (en) * 2019-07-17 2019-11-05 上海东土远景工业科技有限公司 Communication means and device based on dual-computer redundancy
CN111459858A (en) * 2020-04-07 2020-07-28 广东芬尼能源技术有限公司 Multi-host communication method, device, system and storage medium
WO2021258748A1 (en) * 2020-06-24 2021-12-30 浪潮(北京)电子信息产业有限公司 I2c bus communication control method, device and system, and readable storage medium
CN112100007A (en) * 2020-10-12 2020-12-18 苏州浪潮智能科技有限公司 Method and system for switching main controller in multi-controller storage equipment
CN113360041A (en) * 2021-06-21 2021-09-07 南京南瑞继保电气有限公司 Display method, display device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115220675A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
EP1877918B1 (en) System and method for scheduling device management
WO2008066574A1 (en) Methods, devices and computer program products for automatically installing device drivers from a peripheral device onto a host computer
US20120047292A1 (en) Monitoring System, Device Server, Host Computer, Monitoring Method, and Storage Medium
US8073997B2 (en) Software install automation
JP2001256170A (en) Peripheral device and printer
EP2664988B1 (en) Method, device and system for installing terminal software
US10025742B2 (en) JBOD apparatus having BMC module and controlling method for the same
CN114201197A (en) Firmware upgrading method and device, electronic equipment and readable storage medium
CN110853323B (en) Upgrading method and device for remote control equipment
CN115220675B (en) Control method of display device, display device and computer storage medium
US7457887B1 (en) Method and system for processing asynchronous event notifications
CN108366131B (en) Data transmission method, device, terminal and storage medium
CN111176577B (en) Distributed block storage service command processing method, device, equipment and medium
CN110445700B (en) Master-slave communication system and method and terminal equipment
CN107171915B (en) Communication protocol changing method and device
US20040187041A1 (en) Display system, access point of display system, and power control method
AU2021412311B2 (en) Reader device and method of configuring the same
CN114189400A (en) Control method, device, system, storage medium and program product for household electrical appliance
KR100862488B1 (en) Peripheral device, peripheral-device recognizing method, and recording medium having peripheral-device recognizing program recorded
CN106445571B (en) Mainboard and starting method
CN114070896B (en) Communication interface, electronic device and device management method
KR20120066399A (en) Legacy usb device service system in mobile terminal and method of the same
CN113760577B (en) Dynamic connection answering device, processing method, control device and storage medium
KR101353919B1 (en) Host/slave auto switching system for rs485 communication.
CN116405387A (en) PCIe switch upgrading method, device, equipment and storage medium

Legal Events

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