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

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

Info

Publication number
CN115220675A
CN115220675A CN202210566204.6A CN202210566204A CN115220675A CN 115220675 A CN115220675 A CN 115220675A CN 202210566204 A CN202210566204 A CN 202210566204A CN 115220675 A CN115220675 A CN 115220675A
Authority
CN
China
Prior art keywords
system interface
display device
polling
interface corresponding
display
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.)
Granted
Application number
CN202210566204.6A
Other languages
Chinese (zh)
Other versions
CN115220675B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application discloses a control method of a display device on a communication bus, the display device and a computer storage medium. The control method comprises the following steps: in a first receiving mode, if polling signals sent by other equipment on the communication bus are not received within a first preset time length, updating the working mode to be a sending mode; communicating with other devices in a polling manner; determining a system interface corresponding to the target device sending the response signal based on the response signal received from the other device; 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 manner, so that the use convenience of the display device and the data display accuracy are improved.

Description

Control method of display device, and computer storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method for controlling a display device on a communication bus, a display device, and a computer storage medium.
Background
For different communication buses, such as a 485 bus system, the communication protocols are difficult to unify, and moreover, due to different development time and different development periods of different projects, incompatibility often occurs.
In the related art, in order to solve the above problem, corresponding software may be developed on the same hardware platform for each communication protocol and communication bus, and different display devices are usually adopted to load the corresponding software due to software incompatibility. However, in the actual project development process, a uniform (uniform model and same appearance) display device is usually 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 convenience of the application 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 a display device on a communication bus, the display device and a computer storage medium, so that the same display device can be compatible with different application scenes, and corresponding data can be displayed in a self-adaptive manner, and therefore the convenience of using the display device and the correctness of data display are improved.
In order to solve the above technical problem, the present application provides a method for controlling a display device on a communication bus. The control method comprises the following steps: in a first receiving mode, if the polling signals sent by other equipment on the communication bus are not received within a first preset time, updating the working mode to be a sending mode; communicating with other devices in a polling manner; determining a system interface corresponding to the target device sending the response signal based on the response signal received from the other device; and displaying a system interface.
In order to solve the above technical problem, the present application provides a method for controlling a display device on a communication bus. The control method comprises the following steps: in a first receiving mode, if a polling signal sent by other equipment on a communication bus is received within a first preset time, determining a system interface corresponding to target equipment sending the polling signal based on the polling signal received from the other equipment; and displaying a system interface.
In order to solve the technical problem, the application provides a display device. This display device connects on the communication bus, still is connected with other equipment on the communication bus, and display device includes: 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 used for updating the working mode to be the sending mode if the polling signal on the communication bus is not received within a first preset time length in the first receiving mode, and the communication module is communicated 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 which sends 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 problem, the application provides a display device. This display device connects on the communication bus, still is connected with other equipment on the communication bus, and display device includes: a communication module for receiving a polling signal; and the display module is connected with the communication module and used for determining a system interface corresponding to the target device 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 within a first preset time length in the first receiving mode.
In order to solve the technical problem, the application provides a display device. This display device connects on the communication bus, still is connected with other equipment on the communication bus, and display device includes: a processor; a memory; a program stored on the memory, the program implementing the control method when executed by the processor.
To solve the above technical problem, the present application provides a computer storage medium. The computer storage medium stores program instructions, and when executed by a processor, the program instructions implement the method for controlling a display device on a communication bus according to any of the embodiments described above.
The control method of the display equipment on the communication bus comprises the steps of firstly judging whether the display equipment receives polling signals sent by other equipment on the communication bus within a first preset time length or not in a first receiving mode, and if the display equipment does not receive the polling signals sent by the other equipment on the communication bus within the first preset time length, updating the working mode of the display equipment to be a sending mode; then, the display device communicates with other devices in a polling mode, and determines a system interface corresponding to the target device which sends the response signal based on the response signal received from the other devices; and finally, displaying a system interface. By the mode, when the display device does not receive the polling signals sent by other devices on the communication bus within the first preset time, the working mode is updated to be the sending mode, the devices on the communication bus are polled by the role of the host, namely the display device polls other devices on the communication bus by the role of the host when the communication is idle, the communication conflict can be improved, and the data display accuracy is improved; and the display device determines the system interface corresponding to the target device sending the response signal based on the response signal received from the other device, can adaptively acquire the system interface corresponding to the target device based on the response signal received from the other device, and displays the system interface. Therefore, the application method and the device can realize that the same display device is compatible with different application scenes, namely, scenes that different other devices on the communication bus need to display data through the display device, and can also display the data corresponding to the target device in a self-adaptive manner, so that the use convenience of the display device and the data display accuracy can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for the description of the embodiments will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
FIG. 1 is a schematic block diagram of an embodiment of a control system of the present application;
FIG. 2 is a flowchart illustrating an embodiment of a method for controlling a display device on a communication bus according to the present disclosure;
FIG. 3 is a flowchart illustrating an embodiment of a method for controlling a display device on a communication bus according to the present disclosure;
FIG. 4 is a flowchart illustrating an embodiment of a method for controlling a display device on a communication bus according to the present disclosure;
FIG. 5 is a flowchart illustrating an embodiment of a method for controlling a display device on a communication bus according to the present disclosure;
FIG. 6 is a flowchart illustrating an embodiment of a method for controlling a display device on a communication bus according to the present disclosure;
FIG. 7 is a flowchart illustrating an embodiment of a method for controlling a display device on a communication bus according to the present disclosure;
FIG. 8 is a flowchart illustrating an embodiment of a method for controlling a display device on a communication bus according to the present disclosure;
FIG. 9 is a flowchart illustrating an embodiment of a method for controlling a display device on a communication bus according to the present disclosure;
FIG. 10 is a schematic structural diagram of an embodiment of a display device of the present application;
FIG. 11 is a schematic structural diagram of an embodiment of a display device of the present application;
FIG. 12 is a schematic structural diagram of an embodiment of a display device of the present application;
FIG. 13 is a schematic structural diagram of an embodiment of a computer storage medium of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be noted that the following examples are only illustrative of the present application, and do not limit the scope of the present application. Likewise, the following examples are only some examples and not all examples of the present application, and all other examples obtained by a person of ordinary skill in the art without any inventive step are within the scope of the present application.
In the description of the embodiments of the present application, it should be noted that the terms "connected" and "connected" are to be interpreted broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected, unless explicitly stated or limited otherwise; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. Specific meanings of the above terms in the embodiments of the present application can be understood in specific cases by those of ordinary skill in the art.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean 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 an embodiment of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer 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, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The technical scheme of the application can be applied to various communication buses, such as a 485 bus, and the application will be introduced by taking the 485 bus as an example.
The communication protocols of different 485 bus systems are difficult to unify, and incompatibility often occurs due to different project development time and development period, 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 can 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 the display device having the same appearance being unable to distinguish which item it matches at all before it is turned off.
For the above situation, if the same display device is used to match multiple items, different software needs to be developed for the display device, and a label is made on the display device to manage the different display devices. That is, in different projects, the display device may be used as a master or a slave, but the related programs and data (parameters) to be displayed are different, and the appearance of the display device may be the same, in which case, the display device required by the corresponding system cannot be recognized, which causes inconvenience.
The related technical scheme has the problem of difficult material management of the display equipment, the display equipment with almost the same appearance is difficult to distinguish which item belongs to, once the display equipment is mistaken, the software of the display equipment must be updated on site, and the condition of error connection often occurs. Bring many influences to practical application and user experience.
Therefore, the application provides a control method of a display device on a communication bus, the display device and a computer storage medium, so as to solve the problem that the display device cannot be accessed to different occasions to prepare display data timely according to requirements, namely the problem of display device wildcard. The applied technical scheme also has the capability of continuous iterative updating, and can be compatible with a new 485 project in the later period.
Specifically, the present application first proposes a method for controlling a display device on a communication bus, as shown in fig. 1, fig. 1 is a schematic flow chart of an embodiment of the method for controlling a display device on a 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 signals sent by other equipment on the communication bus are not received within a first preset time period, the working mode is updated to be the 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 master so as to realize the communication modes of master polling and slave response.
When the display device is in the first receiving mode, the communication bus is accessed by the slave role, and the polling signals sent by other devices or the host on the communication bus are received.
When the display device is in the transmission mode, the communication bus is accessed in a master role, a polling signal is transmitted to other devices or slaves on the communication bus, and corresponding response signals are received from the slaves.
Optionally, when the display device is powered on, the operating mode is set to the first receiving mode.
Step S92: communicate with other devices in a polling manner.
The display device accesses the communication bus in a host role, sends polling signals to other devices on the communication bus, and receives response signals of the other devices to the polling signals 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 sending the response signal based on the response signal received from the other device.
Specifically, a corresponding communication protocol may be obtained 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 analyzing the response signal may be determined, and the response signal may be analyzed based on the communication protocol, and then the system interface corresponding to the target device may be determined based on the analyzed 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 of this embodiment does not receive the polling signal sent by the other device on the communication bus within the first preset time period, the working mode is updated to be the sending mode, and the device on the communication bus is polled by the role of the host, that is, the display device polls the other device on the communication bus by the role of the host when the communication is idle, so that the communication conflict can be improved, and the accuracy of data display can be improved; and the display device determines the system interface corresponding to the target device sending the response signal based on the response signal received from the other device, can adaptively acquire the system interface corresponding to the target device based on the response signal received from the other device, and displays the system interface. Therefore, the embodiment can realize that the same display device is compatible with different application scenes, that is, scenes that different other devices on the communication bus need to display data through the display device, and the embodiment can also adaptively display data corresponding to the target device, so that the convenience of use of the display device and the correctness of data display can be improved.
The present application further provides a method for controlling a display device on a communication bus according to another embodiment, as shown in fig. 2, fig. 2 is a schematic flowchart of an embodiment of the method for controlling a display device on a communication bus according to the present application. The communication method of the embodiment specifically includes the following steps:
step S101: in the first receiving mode, if the polling signals sent by other equipment on the communication bus are not received within a first preset time length, the working mode is updated to be the sending mode.
Reference may be made to the above examples for specific embodiments.
Step S102: a polling signal is sent to the other device.
When the display device is in the transmission mode, the communication bus is accessed in a master role, and a polling signal is transmitted to other devices or slaves on the communication bus.
Step S103: and updating the working mode to be the second receiving mode.
And after the polling signal is sent, the display equipment switches the working mode of the display equipment from the sending mode to a second receiving mode, and receives corresponding response signals from other equipment in the second receiving mode.
Step S104: and judging whether a response signal is received. If yes, step S105 is executed, otherwise, the operation mode is switched to the first receiving mode, and step S101 is executed.
Steps S102 to S104 implement communication with other devices in a polling manner.
Wherein 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 is accessed to the communication bus by a slave role and receives a polling signal of the host; and the second receiving mode is a working mode that the display device accesses the communication bus in a master role and receives a response signal of the slave to the polling signal.
Step S105: and determining a system interface corresponding to the target device sending the response signal based on the response signal received from the other device.
Reference may be made to the above examples for specific embodiments.
Step S106: and displaying a system interface.
Reference may be made to the above-described embodiments for specific implementations.
On the basis of the above embodiment, in this embodiment, after the display device has sent the polling signal, the display device switches its operating mode from the sending mode to the second receiving mode, and timely receives a response signal for the polling signal, which is fed back by another device, so as to avoid data loss.
The present application further provides a method for controlling a display device on a communication bus according to another embodiment, as shown in fig. 3, fig. 3 is a schematic flowchart of an embodiment of the method for controlling a display device on a communication bus according to the present application. The communication method of the embodiment specifically includes the following steps:
step S111: in the first receiving mode, if the polling signals sent by other equipment on the communication bus are not received within a first preset time period, the working mode is updated to be the sending mode.
Reference may be made to the above examples for specific embodiments.
Step S112: communicate with other devices in a polling manner.
Reference may be made to the above examples for specific embodiments.
Step S113: and determining a system interface corresponding to the target device sending the response signal based on the response signal received from the other device.
Reference may be made to the above examples for specific embodiments.
Step S114: and judging whether a system interface corresponding to the target equipment exists or not.
If yes, step S115 is executed, and if not, step S116 is executed.
Specifically, the embodiment may determine whether the answer signal can be successfully analyzed; if yes, determining that a system interface corresponding to the target equipment exists; and if not, determining that the system interface corresponding to the target equipment does not exist.
Step S115: and displaying a system interface.
Reference may be made to the above examples for specific embodiments.
Step S116: and sending out a notice that the display equipment does not have a system interface corresponding to the target equipment and/or a notice of software upgrading.
Whether the response signal is successfully analyzed is judged, namely whether the 485 messages are compatible can be judged; if the analysis is unsuccessful, namely the 485 message is incompatible, the display device is considered to be not provided with the system interface corresponding to the target device, and a notification that the display device is not provided with the system interface corresponding to the target device is sent; or the display device may not be upgraded, and although the 485 message is detected, the display device may not be compatible with the 485 message, and at this time, the display device needs to wait for the upgrade of the display device and send a notification of the upgrade of the display device software.
Similar modifications can be made to other embodiments described above.
On the basis of the above embodiment, the present embodiment further issues a corresponding notification when the display device does not have a system interface corresponding to the target device; or when the display equipment is not upgraded, the software upgrading notification of the display equipment is sent so as to notify the user in time.
The present application further provides a method for controlling a display device on a communication bus according to another embodiment, as shown in fig. 5, fig. 5 is a schematic flowchart of an embodiment of the method for controlling a display device on a communication bus according to the present application. The communication method of the embodiment specifically includes the following steps:
step S121: in the first receiving mode, if the polling signals sent by other equipment on the communication bus are not received within a first preset time length, the working mode is updated to be the sending mode.
Reference may be made to the above examples for specific embodiments.
Step S122: communicate with other devices in a polling manner.
Reference may be made to the above examples for specific embodiments.
Step S123: and determining a system interface corresponding to the target device sending the response signal based on the response signal received from the other device.
Step S124: and displaying a system interface.
Reference may be made to the above examples for specific embodiments.
Step S125: and if the sending signal of the target equipment is not received within the second preset time, 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 transmission signal of the target device is not received within the second preset time period, triggering to receive a transmission timeout event, switching the working mode of the display device to the first receiving mode, and executing step S121.
Similar modifications can be made to other embodiments described above.
On the basis of the foregoing embodiment, after the display device displays the system interface corresponding to the target device, if the transmission signal of the target device is not received within the second preset time period, the embodiment triggers receiving and transmitting a timeout event, and switches the operating mode of the display device to the first receiving mode. By the method, the display equipment can timely display the system interface corresponding to the other target equipment under the condition of switching to be connected with the other target equipment. Therefore, the embodiment can cope with the situation that the equipment switching is possible to be performed again; and when equipment switching is carried out, the logic is repeated to judge, and the equipment switching is carried out.
In another embodiment, as shown in fig. 6, after the display device is turned on, the working mode of the display device is set as the first receiving mode, and when no 485 message is received within 1 second (or 2 seconds, 3 seconds, 5 seconds, etc., without limitation), the working mode of the display device is changed into the sending mode, and the display device starts to poll other devices on the 485 bus in a role of the host; after the polling message is sent, the working mode of the mobile terminal is set as a second receiving mode in time, and then whether the 485 message is received or not is analyzed; judging which equipment the current communication protocol corresponds to aiming at the received 485 message, and switching a display interface into a system interface required by the corresponding target equipment after determining the target equipment; the background open timeout handling logic then handles the possible further device switching.
In the above logic, the step "determine whether the 485 message is compatible" means that the current display device may not be upgraded, and although the 485 message is detected, the 485 message may not be compatible, and at this time, it is necessary to wait for the display device to be upgraded. And if the step of 'whether to trigger the reception of the sending timeout event' is to deal with the possibility of carrying out equipment switching again, repeating the logic for judgment and switching the equipment when carrying out equipment switching. The "offline system does not respond" indicates that the display device does not access any device or the communication line is disconnected.
In a certain system, the display device and the corresponding device are connected together according to the requirement of the system, the display device starts to execute the logic, confirms which system is in the current state, and corresponds to the switching program for displaying.
As shown in fig. 1, taking the display device as a host of the battery to obtain information such as battery power, voltage, etc. quickly as an example, the display device is connected to the battery, and is powered on, the display device is in the first receiving mode first, counts 1 second, and determines whether 485 messages are received. In this embodiment, the display device is used as the host to send the 458 message, so that the 458 message is not received after timing for 1 second, the display device switches to the sending mode, and traverses all the adapted 458 messages with the identity of the host; at this point, if the display device is connected to the battery normally, the display device will receive 458 the message (from the battery). After receiving the 458 message, the display device judges which device sent the 458 message (judges as a battery); and judging 458 whether the messages are compatible, and switching to a display interface of the corresponding battery under the condition of compatibility. And if the display device is not compatible with the display device, waiting for the display device to upgrade the software. If the wiring between the display device and the battery is not proper, the system is not responsive.
The present application further provides a method for controlling a display device on a communication bus, as shown in fig. 7, fig. 7 is a schematic flowchart of an embodiment of the method for controlling a display device on a communication bus according to the present application. The control method of the embodiment specifically includes the following steps:
step S141: in the first receiving mode, if a polling signal sent by other equipment on the communication bus is received within a first preset time, a system interface corresponding to a target equipment sending the polling signal is determined based on the polling signal received from the other equipment.
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 master so as to realize the communication modes of master polling and slave response.
When the display device is in the first receiving mode, the communication bus is accessed by the slave role, and the polling signals sent by other devices or the host on the communication bus are received.
Optionally, when the display device is powered on, the operating mode is set to the first receiving mode.
Specifically, a communication protocol of the polling signal may be obtained based on the polling 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 to analyze the polling signal may be determined, and the polling signal may be analyzed based on the communication protocol, and then the system interface corresponding to the target device may be determined based on the analyzed 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 this embodiment receives a polling signal sent by another device on the communication bus within a first preset time period, the display device determines, based on the polling signal received from the other device, a system interface corresponding to a target device that sends the polling signal, and can adaptively acquire, based on the polling signal received by the other device, the system interface corresponding to the target device and display the system interface. Therefore, the embodiment can realize that the same display device is compatible with different application scenes, that is, scenes that different other devices on the communication bus need to display data through the display device, and the embodiment can also adaptively display data corresponding to the target device, so that the convenience of use of the display device and the correctness of data display can be improved.
The present application further provides a method for controlling a display device on a communication bus according to another embodiment, as shown in fig. 8, fig. 8 is a schematic flowchart of an embodiment of the method for controlling a display device on a communication bus according to the present application. The communication method of the embodiment specifically includes the following steps:
step S151: in the first receiving mode, the system interface corresponding to the target device which sends the polling signal is determined based on the polling signal received from other devices.
Reference may be made to the above examples for specific embodiments.
Step S152: and judging whether a system interface corresponding to the target equipment exists or not.
If yes, step S153 is executed, and if not, step S154 is executed.
Specifically, the present embodiment may 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 a system interface corresponding to the target equipment does not exist.
Step S153: and displaying a system interface.
Reference may be made to the above-described embodiments for specific implementations.
Step S154: and sending out a notice that the display equipment does not have a system interface corresponding to the target equipment and/or a notice of software upgrading.
Judging whether the polling signal is successfully analyzed, namely judging whether the 485 messages are compatible; if the analysis is unsuccessful, namely the 485 message is incompatible, the display device is considered to be not provided with the system interface corresponding to the target device, and a notification that the display device is not provided with the system interface corresponding to the target device is sent; or the display device may not be upgraded, and although the 485 message is detected, the display device may not be compatible, and at this time, the display device needs to wait for the upgrade of the display device and send a notification of the upgrade of the display device software.
Similar modifications can be made to other embodiments described above.
On the basis of the above embodiment, the present embodiment further issues a corresponding notification when the display device does not have a system interface corresponding to the target device; or when the display equipment is not upgraded, the display equipment sends out the notification of the software upgrading of the display equipment so as to facilitate the subsequent operation and improve the control efficiency.
The present application further provides a method for controlling a display device on a communication bus according to another embodiment, as shown in fig. 9, fig. 9 is a schematic flowchart of an embodiment of the method for controlling a display device on a communication bus according to the present application. The communication method of the embodiment specifically includes the following steps:
step S161: in the first receiving mode, the system interface corresponding to the target device which sends the polling signal is determined based on the polling signal received from other devices.
Step S162: and displaying a system interface.
Reference may be made to the above examples for specific embodiments.
Step S163: and if the sending signal of the target equipment is not received within the second preset time, the display equipment works in the first receiving mode.
The sending signal of this embodiment includes a polling signal sent by the target device to the display device.
After the display device displays the system interface corresponding to the target device, if the transmission signal of the target device is not received within the second preset time period, a reception/transmission timeout event is triggered, the working mode of the display device is switched to the first reception mode, and step S161 is executed.
Similar modifications can be made to other embodiments described above.
On the basis of the foregoing embodiment, after the display device displays the system interface corresponding to the target device, if the transmission signal of the target device is not received within the second preset time period, the embodiment triggers receiving and transmitting a timeout event, and switches the operating mode of the display device to the first receiving mode. By the method, the display device can be switched to be connected with another target device, and the system interface corresponding to the other target device can be displayed in time. Therefore, the embodiment can cope with the situation that the equipment switching is possible to be performed again; and when equipment switching is carried out, the logic is repeated to judge, and the equipment switching is carried out.
The present application further provides a display device, as shown in fig. 10, fig. 10 is a schematic structural diagram of an embodiment of the display device of the present 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; the communication module 171 is configured to send a polling signal and receive a response signal; the mode switching module 172 is configured to, in the first receiving mode, update the working mode to the sending mode if a polling signal on the communication bus is not received within a first preset time period, and communicate 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 a response signal received by the communication module 172 from another device, and displays the system interface.
The display device of this embodiment is connected to a communication bus, which is also connected to other devices.
When the display device of this embodiment does not receive the polling signal sent by the other device on the communication bus within the first preset time period, the working mode is updated to be the sending mode, and the device on the communication bus is polled by the role of the host, that is, the display device polls the other device on the communication bus by the role of the host when the communication is idle, so that the communication conflict can be improved, and the accuracy of data display can be improved; and the display device determines the system interface corresponding to the target device sending the response signal based on the response signal received from the other device, can adaptively acquire the system interface corresponding to the target device based on the response signal received by the other device, and displays the system interface. Therefore, the embodiment can realize that the same display device is compatible with different application scenes, that is, scenes that different other devices on the communication bus need to display data through the display device, and the embodiment can also adaptively display data corresponding to the target device, so that the convenience of use of the display device and the correctness of data display 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 the response signal can be successfully analyzed when determining whether the system interface corresponding to the target device exists. When the answer signal can be successfully analyzed, the display module 173 determines that a system interface corresponding to the target device exists; upon failure to successfully interpret the answer signal, the display module 173 determines that there is no system interface corresponding to the target device.
Optionally, the display device further comprises a first prompting 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 time period, 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 operating 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 a 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 operating mode of the display device to the first receiving mode. In the first receiving mode, if the communication module 171 does not receive the polling signal sent by other devices on the communication bus within the first preset time period, the mode switching module 172 updates the working mode of the display device to the sending mode.
Optionally, when the display device is powered on, the mode switching 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 response signal, and determine the system interface corresponding to the target device based on the communication protocol.
The present application further provides a display device, as shown in fig. 11, fig. 11 is a schematic structural diagram of an embodiment of the display device of the present 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; the communication module 181 is configured to receive a polling signal; the display module 182 is configured to, in the first receiving mode, determine, based on the polling signal received by the communication module from the other device, a system interface corresponding to a target device that sends the polling signal if the polling signal on the communication bus is received within a first preset time period, and display the system interface.
The display device of this embodiment is connected to a communication bus, which is also connected to other devices.
When the display device of this embodiment receives a polling signal sent by another device on the communication bus within a first preset time period, the display device determines, based on the polling signal received from the other device, a system interface corresponding to a target device that sends the polling signal, and can adaptively acquire, based on the polling signal received by the other device, the system interface corresponding to the target device and display the system interface. Therefore, the embodiment can realize that the same display device is compatible with different application scenes, that is, scenes that different other devices on the communication bus need to display data through the display device, and the embodiment can also adaptively display data corresponding to the target device, so that the convenience of use of the display device and the correctness of data display 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 the polling signal can be successfully analyzed when determining whether a system interface corresponding to the target device exists. When the polling signal can be successfully parsed, the display module 182 determines that a system interface corresponding to the target device exists; upon failing to resolve the polling signal, the display module 182 determines that there is no system interface corresponding to the target device.
Optionally, the display device further comprises a second prompting module. The second prompting module is used for sending out a notice that the display equipment does not have the system interface corresponding to the target equipment and/or a notice 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 transformation module. The mode conversion module is used for controlling the display equipment to work in the first receiving mode when the sending signal of the target equipment is not received within the second preset time length.
Optionally, the mode conversion module is further configured to set the operating 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 present application further provides a display device, as shown in fig. 12, fig. 12 is a schematic structural diagram of an embodiment of the display device of the present application. The display device (not shown) of the present embodiment includes: a processor 191, memory 192, and programs (not shown); wherein the program is stored in the memory 192 and 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 this embodiment, the processor 191 may also be referred to as a Central Processing Unit (CPU). The processor 191 may be an integrated circuit chip having 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, to which other devices are also connected.
The present application further provides a computer storage medium, as shown in fig. 13, 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, and when executed by a processor (not shown), the program instructions 201 implement the method for controlling a display device on a communication bus according to any of the embodiments described above.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device (such as 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) having one or more wires, a U disk, an SD card, a PD optical drive, a removable hard disk, a mass-storage floppy 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). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can 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 equipment on the communication bus comprises the steps of firstly judging whether the display equipment receives polling signals sent by other equipment on the communication bus within a first preset time length or not in a first receiving mode, and if the display equipment does not receive the polling signals sent by the other equipment on the communication bus within the first preset time length, updating the working mode of the display equipment to be a sending mode; then, the display device communicates with other devices in a polling mode, and determines a system interface corresponding to the target device which sends the response signal based on the response signal received from the other devices; and finally, displaying a system interface. By the mode, when the display device does not receive the polling signals sent by other devices on the communication bus within the first preset time, the working mode is updated to be the sending mode, the devices on the communication bus are polled by the role of the host, namely the display device polls other devices on the communication bus by the role of the host when the communication is idle, the communication conflict can be improved, and the data display accuracy is improved; and the display device determines the system interface corresponding to the target device sending the response signal based on the response signal received from the other device, can adaptively acquire the system interface corresponding to the target device based on the response signal received from the other device, and displays the system interface. Therefore, the application can realize that the same display device is compatible with different application scenes, namely, scenes that different other devices on the communication bus need to display data through the display device, and the application can also display the data corresponding to the target device in a self-adaptive manner, so that the use convenience of the display device and the data display correctness can be improved.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specified 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 the scope of the preferred embodiments of the present application includes other implementations 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 present application.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (16)

1. A method for controlling a display device on a communication bus, comprising:
in a first receiving mode, if the polling signals sent by other equipment on the communication bus are not received within a first preset time length, updating the working mode to be a sending mode;
communicating with the other device in a polling manner;
determining a system interface corresponding to a target device which sends the response signal based on the response signal received from the other device;
and displaying the system interface.
2. A method of controlling a display device on a communication bus, comprising:
in a first receiving mode, if the polling signals sent by other devices on the communication bus are received within a first preset time, determining a system interface corresponding to a target device sending the polling signals based on the polling signals received from the other devices;
and displaying the system interface.
3. The control method according to claim 1 or 2, 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.
4. The control method according to claim 3, 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.
5. The control method according to claim 3, wherein when the target device is a target device that transmits the polling signal, the determining whether a system interface corresponding to the target device exists includes:
judging whether the polling signal can be successfully analyzed or not;
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.
6. The control method according to claim 3, characterized by further comprising:
and if the system interface does not exist, sending a notification that the display equipment does not have the system interface corresponding to the target equipment and/or a notification of software upgrading.
7. The control method according to claim 1 or 2, further comprising, after the displaying the system interface:
and if the sending signal of the target equipment is not received within a second preset time, the display equipment works in the first receiving mode.
8. The method according to claim 1, wherein the communicating with the other device in a polling manner includes:
transmitting a polling signal to the other device;
updating the working mode to be a second receiving mode;
and if the response signal is received, executing the step of determining the system interface corresponding to the target device which sends the response signal based on the response signal received from the other device.
9. The control method according to claim 8, characterized by further comprising:
if the answer signal is not received, the working mode is switched to the first receiving mode, and the step that the working mode is updated to the sending mode if the polling signals sent by other equipment on the communication bus are not received within a first preset time length in the first receiving mode is executed.
10. The control method according to claim 1 or 2, characterized by further comprising:
and when the display equipment is powered on, setting the working mode as the first receiving mode.
11. The control method according to claim 1, wherein the determining, based on the response signal received from the other device, a system interface corresponding to a target device that transmits the response signal includes:
determining a communication protocol of the reply signal;
determining the system interface corresponding to the target device based on the communication protocol.
12. The method according to claim 2, wherein the determining, based on the polling signal received from the other device, a system interface corresponding to a target device that transmitted the polling signal includes:
determining a communication protocol of the polling signal;
determining the system interface corresponding to the target device based on the communication protocol.
13. A display device, wherein the display device is connected to a communication bus, and further connected to other devices, the display device comprising:
the communication module is used for sending polling signals and receiving response signals;
the mode switching module is connected with the communication module and used for updating the working mode to be the sending mode if the polling signal on the communication bus is not received within a first preset time length in a first receiving mode, and the communication module is communicated 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 which sends the response signal based on the response signal received by the communication module from the other device, and displays the system interface.
14. A display device, wherein the display device is connected to a communication bus, and further connected to other devices, the display device comprising:
a communication module for receiving a polling signal;
and the display module is connected with the communication module and used for determining a system interface corresponding to the target device sending the polling signal based on the polling signal received by the communication module from the other device and displaying the system interface if the polling signal on the communication bus is received within a first preset time period in the first receiving mode.
15. A display device, wherein the display device is connected to a communication bus, and further connected to other devices, the display device comprising:
a processor;
a memory;
a program stored on the memory, which when executed by the processor implements the control method of any one of claims 1 to 12.
16. 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 one of claims 1 to 12.
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 true CN115220675A (en) 2022-10-21
CN115220675B 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
CN115220675B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
US20170293483A1 (en) Mobile terminal, power adapter, and upgrade method thereof
WO2006060512A2 (en) System and method for monitoring mobile units in a wireless network
US8112769B2 (en) System and method for implementing and/or operating network interface devices to achieve network-based communications
US20120047292A1 (en) Monitoring System, Device Server, Host Computer, Monitoring Method, and Storage Medium
CN106909081B (en) Household electrical appliance and expansion platform based on same
CN101771565B (en) Analogy method for realizing multitudinous or different baseboard management controllers by single server
CN110012527B (en) Awakening method and electronic equipment
US9971591B2 (en) Mobile terminal, power adapter, and upgrade method thereof
US10025742B2 (en) JBOD apparatus having BMC module and controlling method for the same
EP2664988A1 (en) Method, device and system for installing terminal software
CN110853323A (en) Upgrading method and device for remote control equipment
CN108965019B (en) Dynamic configuration method of communication protocol, wireless communication device and related equipment
WO2024094068A1 (en) Communication connection control method, vehicle-mounted device, communication system and storage medium
CN115220675B (en) Control method of display device, display device and computer storage medium
US7861019B2 (en) System and method for implementing and/or operating network interface devices to achieve network-based communications
CN110445700B (en) Master-slave communication system and method and terminal equipment
CN101686157A (en) Software management method, device and system
CN115904447A (en) Version updating system, method, electronic equipment and storage medium
CN107171915B (en) Communication protocol changing method and device
JP2001184296A (en) Usb communication interface, computer, hub, electronic equipment, and function switching method in the electronic equipment
KR100862488B1 (en) Peripheral device, peripheral-device recognizing method, and recording medium having peripheral-device recognizing program recorded
CN114070896B (en) Communication interface, electronic device and device management method
KR101303663B1 (en) Network device driver system having communication function and method of operating the system
CN104040513A (en) Display device management system, server apparatus therefor, programmable display device, and operation control method
CN113760577B (en) Dynamic connection answering device, processing method, control device 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