CN116466929A - Remote on-screen method based on MQTT - Google Patents
Remote on-screen method based on MQTT Download PDFInfo
- Publication number
- CN116466929A CN116466929A CN202310230147.9A CN202310230147A CN116466929A CN 116466929 A CN116466929 A CN 116466929A CN 202310230147 A CN202310230147 A CN 202310230147A CN 116466929 A CN116466929 A CN 116466929A
- Authority
- CN
- China
- Prior art keywords
- remote
- screen
- vehicle
- data
- interface
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000012545 processing Methods 0.000 claims description 25
- 230000004044 response Effects 0.000 claims description 12
- 230000008569 process Effects 0.000 claims description 4
- 238000012790 confirmation Methods 0.000 claims description 3
- 230000003993 interaction Effects 0.000 abstract description 4
- 230000002457 bidirectional effect Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 11
- 238000004590 computer program Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004171 remote diagnosis Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a remote on-screen method based on an MQTT, which belongs to the technical field of engineering machinery software and comprises the following steps: developing a set of application software codes, performing cross-platform compiling, and deploying the application software codes to a remote end and a vehicle-mounted end; the remote end and the vehicle-mounted end establish remote same-screen connection through the MQTT server; the remote end and the vehicle-mounted end operate the screen, and the screen interface and the data are unified through the MQTT server. The method can enable the remote end and the vehicle-mounted end to use the same set of application software codes without redevelopment, and can realize bidirectional or multidirectional interaction.
Description
Technical Field
The invention relates to a remote on-screen method based on an MQTT, and belongs to the technical field of engineering machinery software.
Background
At present, the remote on-screen patent is mainly focused on the directions of remote education, home video, robot positioning and the like.
One reason why the remote on-screen function cannot be applied in large quantity in the engineering machinery industry is that two sets of software need to be developed, and the software developed at the equipment end cannot be directly applied to a remote PC end or a mobile end. The traditional remote same-screen function has the defects that software needs to be developed respectively for the vehicle-mounted terminal and the remote terminal, the workload is large, the software in the engineering machinery industry is changed very frequently, and therefore the software of the vehicle-mounted terminal and the remote terminal needs to be changed very troublesome.
In addition, the previous remote on-screen is limited to displaying on-screen, similar to the functionality of a duplicate screen. Interaction of the interactive operation layer is not realized, namely, operation is performed at the vehicle-mounted end, and the remote end can only view the interface and cannot perform operation.
Disclosure of Invention
The invention aims to provide a remote same-screen method based on MQTT, wherein the remote end and the vehicle-mounted end use the same set of application software codes, do not need to be redeveloped, and can realize bidirectional or multidirectional interaction.
In order to achieve the above purpose, the present invention provides the following technical solutions:
a MQTT-based remote on-screen method comprising:
developing a set of application software codes, performing cross-platform compiling, and deploying the application software codes to a remote end and a vehicle-mounted end;
the remote end and the vehicle-mounted end establish remote same-screen connection through the MQTT server;
the remote end and the vehicle-mounted end operate the screen, and the screen interface and the data are unified through the MQTT server.
Further, developing a set of application software code includes:
developing a set of application software codes using Qt or other software that supports cross-platform compilation;
for an operation interface in a screen interface, the application software code supports both local processing and external processing;
aiming at data processing of a vehicle-mounted terminal, a local data interface is reserved by the application software code;
for data processing of a remote end, reserving a network data interface by the application software code;
the application software code configures different compilation environments and cross tool chains for different operating systems.
Further, the operation interface in the screen interface includes: buttons, sliders, lists, and popups.
Further, the data processing of the vehicle-mounted terminal includes: CAN data transceiving, ferroelectric data and database file processing.
Further, the operating system includes: linux system, windows system and Android system.
Further, the remote end and the vehicle-mounted end establish remote on-screen connection through the MQTT server includes:
the remote terminal logs in through the Internet of things platform, selects a corresponding vehicle type, and sends a same screen request to the vehicle-mounted terminal through the MQTT server;
responding to the same screen request, and displaying a same screen request confirmation reminder on an interface of the vehicle-mounted terminal;
after the user confirms the on-screen request, the remote end and the vehicle-mounted end establish remote on-screen connection.
Further, after the remote end and the vehicle-mounted end establish the remote same-screen connection, the vehicle-mounted end operates the screen, so that the screen interface and the data of the vehicle-mounted end and the remote end are unified, and the method comprises the following steps:
the vehicle-mounted terminal sends the local data to the MQTT server, and distributes corresponding response data to the remote terminal which has established the remote same-screen connection through the MQTT server;
the remote terminal receives the response data, and processes interface jump and interface data refreshing according to preset software logic, so that screen interfaces and data of the vehicle-mounted terminal and the remote terminal are unified;
wherein the response data includes interface information and interface internal data.
Further, after the remote end and the vehicle-mounted end establish the remote same-screen connection, the remote end operates the screen, so that the screen interface and the data of the vehicle-mounted end and the remote end are unified, and the method comprises the following steps:
the remote terminal responds to the operation of the remote terminal on the screen, responds to the screen interface, and sends an operation signal to the vehicle-mounted terminal through the MQTT server;
the vehicle-mounted terminal receives the operation signal, responds to the screen interface according to the operation signal, and sends corresponding response data to the remote terminal through the MQTT server, so that the screen interfaces and the data of the vehicle-mounted terminal and the remote terminal are unified.
Compared with the prior art, the invention has the beneficial effects that:
on one hand, the invention uses the same set of application software codes for the vehicle-mounted terminal and the remote terminal, reduces the workload of software development, can automatically back up the latest software codes to the server, and can automatically push the latest version of software when a user uses the remote same screen function, thereby not only reducing the workload of application and maintenance, but also creating conditions for batch application.
On the other hand, the invention can realize bidirectional or multidirectional interaction, after the equipment is connected, each equipment can carry out interactive operation on the screen interface, other screen interfaces can respond to the operation, and the invention provides great convenience for remote service, remote diagnosis and remote control by combining with rights management.
Drawings
Fig. 1 is a flow chart of a remote on-screen method based on MQTT according to an embodiment of the present invention.
Detailed Description
The technical scheme of the patent is further described in detail below with reference to the specific embodiments.
Embodiments of the present patent are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the present patent and are not to be construed as limiting the present patent. The embodiments of the present application and the technical features in the embodiments may be combined with each other without conflict.
Embodiment one:
fig. 1 is a flow chart of a remote on-screen method based on MQTT according to an embodiment of the present invention, where the flow chart merely shows a logic sequence of the method according to the present embodiment, and on the premise of not conflicting with each other, in other possible embodiments of the present invention, the steps shown or described may be completed in a different order from that shown in fig. 1.
The MQTT-based remote on-screen method provided in this embodiment may be applied to a terminal, and may be executed by a corresponding remote on-screen device, where the device may be implemented by software and/or hardware, and the device may be integrated in the terminal, for example: any tablet computer or computer equipment with communication function. Referring to fig. 1, the method of this embodiment specifically includes the following steps:
step one: developing a set of application software codes, performing cross-platform compiling, and deploying the application software codes to a remote end and a vehicle-mounted end;
developing a set of application software code includes the steps of:
step A: developing a set of application software codes using Qt or other software that supports cross-platform compilation;
and (B) step (B): aiming at an operation interface in a screen interface, the application software code supports local processing and external processing at the same time;
step C: aiming at data processing of a vehicle-mounted terminal, a local data interface is reserved by an application software code;
step D: for data processing of a remote end, reserving a network data interface by an application software code;
step E: the application software code configures different compilation environments and cross tool chains for different operating systems.
The operation interface in the screen interface comprises: buttons, sliders, lists, popups and the like, when the operation interfaces are developed, the same event processing function is called, and meanwhile, the modes of local processing and external processing are supported, so that one set of application software can respond to multiple input modes.
The data processing of the vehicle-mounted terminal comprises the following steps: CAN data transmission and reception, ferroelectric data and database file processing, and the like.
The operating system includes: linux system, windows system, android system, etc.
Thus, codes related to UI and functional parts during cross-platform compiling can finish the operation of a set of software and a plurality of platforms without any change.
Step two: the remote end and the vehicle-mounted end establish remote same-screen connection through the MQTT server;
the remote end and the vehicle-mounted end establish remote same-screen connection through the MQTT server, and the method comprises the following steps of:
step a: the remote terminal logs in through the Internet of things platform, selects a corresponding vehicle type, and sends a same screen request to the vehicle-mounted terminal through the MQTT server;
step b: responding to the same screen request, and displaying a same screen request confirmation reminder on an interface of the vehicle-mounted terminal;
step c: after the user confirms the on-screen request, the remote end and the vehicle-mounted end establish remote on-screen connection.
Step three: the remote end and the vehicle-mounted end operate the screen and realize the unification of the screen interface and the data through the MQTT server;
after the remote end and the vehicle-mounted end establish the remote same-screen connection, the vehicle-mounted end operates the screen to realize the unification of the screen interfaces and data of the vehicle-mounted end and the remote end, and the method comprises the following steps:
step I: the vehicle-mounted terminal sends the local data to the MQTT server, and distributes corresponding response data to the remote terminal which has established the remote same-screen connection through the MQTT server;
step II: the remote terminal receives the response data, and processes interface jump and interface data refreshing according to preset software logic, so that screen interfaces and data of the vehicle-mounted terminal and the remote terminal are unified;
wherein the response data includes interface information and interface internal data.
After the remote end and the vehicle-mounted end establish the remote same-screen connection, the remote end operates the screen to realize the screen interface and data unification of the vehicle-mounted end and the remote end, and the method comprises the following steps:
step i: the remote terminal responds to the operation of the remote terminal on the screen, responds to the screen interface, and sends an operation signal to the vehicle-mounted terminal through the MQTT server;
step ii: the vehicle-mounted terminal receives the operation signal, responds to the screen interface according to the operation signal, and sends corresponding response data to the remote terminal through the MQTT server, so that the screen interfaces and the data of the vehicle-mounted terminal and the remote terminal are unified.
The delay of the remote on-screen system in the engineering machinery industry is about 1.5s at present, and the system delay is within 100ms under the condition of not considering network delay. With the wide application of 4G and 5G, the communication speed of the current mobile network is remarkably improved, and based on 4G communication, the total delay of the system can be controlled within 1s, if the current 5G module is used, the total delay can be controlled within 500ms, so that the remote on-screen function is practically applied, such as a remote service scene, a service person does not need to run away from thousands of feet, and only needs to connect a vehicle-mounted display screen in an office, check the fault of the system and remotely debug, and troubleshoot and solve the problem of clients, thereby not only reducing the service cost, but also improving the service efficiency and the user satisfaction. In addition, the MQTT is light-weighted and based on the protocol of the client-server, the invention optimizes the communication protocol part, reduces the content required to be communicated at each interface and improves the communication efficiency.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing is merely a preferred embodiment of the present invention, and it should be noted that modifications and variations could be made by those skilled in the art without departing from the technical principles of the present invention, and such modifications and variations should also be regarded as being within the scope of the invention.
Claims (8)
1. A MQTT-based remote on-screen method, comprising:
developing a set of application software codes, performing cross-platform compiling, and deploying the application software codes to a remote end and a vehicle-mounted end;
the remote end and the vehicle-mounted end establish remote same-screen connection through the MQTT server;
the remote end and the vehicle-mounted end operate the screen, and the screen interface and the data are unified through the MQTT server.
2. The MQTT-based remote on-screen method of claim 1, wherein developing a set of application software codes comprises:
developing a set of application software codes using Qt or other software that supports cross-platform compilation;
for an operation interface in a screen interface, the application software code supports both local processing and external processing;
aiming at data processing of a vehicle-mounted terminal, a local data interface is reserved by the application software code;
for data processing of a remote end, reserving a network data interface by the application software code;
the application software code configures different compilation environments and cross tool chains for different operating systems.
3. The MQTT-based remote on-screen method of claim 2, wherein the operating interface in the screen interface comprises: buttons, sliders, lists, and popups.
4. The MQTT-based remote on-screen method of claim 2, wherein the data processing of the vehicle-mounted terminal comprises: CAN data transceiving, ferroelectric data and database file processing.
5. The MQTT-based remote on-screen method of claim 2, wherein the operating system comprises: linux system, windows system and Android system.
6. The MQTT-based remote on-screen method of claim 1, wherein the remote end and the on-board end establish the remote on-screen connection through the MQTT server comprises:
the remote terminal logs in through the Internet of things platform, selects a corresponding vehicle type, and sends a same screen request to the vehicle-mounted terminal through the MQTT server;
responding to the same screen request, and displaying a same screen request confirmation reminder on an interface of the vehicle-mounted terminal;
after the user confirms the on-screen request, the remote end and the vehicle-mounted end establish remote on-screen connection.
7. The MQTT-based remote on-screen method of claim 1, wherein after the remote end and the vehicle-mounted end establish the remote on-screen connection, the vehicle-mounted end operates the screen to realize the unification of the screen interfaces and data of the vehicle-mounted end and the remote end, comprising:
the vehicle-mounted terminal sends the local data to the MQTT server, and distributes corresponding response data to the remote terminal which has established the remote same-screen connection through the MQTT server;
the remote terminal receives the response data, and processes interface jump and interface data refreshing according to preset software logic, so that screen interfaces and data of the vehicle-mounted terminal and the remote terminal are unified;
wherein the response data includes interface information and interface internal data.
8. The MQTT-based remote on-screen method of claim 1, wherein after the remote end and the vehicle-mounted end establish the remote on-screen connection, the remote end operates the screen to realize the unification of the screen interfaces and data of the vehicle-mounted end and the remote end, comprising:
the remote terminal responds to the operation of the remote terminal on the screen, responds to the screen interface, and sends an operation signal to the vehicle-mounted terminal through the MQTT server;
the vehicle-mounted terminal receives the operation signal, responds to the screen interface according to the operation signal, and sends corresponding response data to the remote terminal through the MQTT server, so that the screen interfaces and the data of the vehicle-mounted terminal and the remote terminal are unified.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310230147.9A CN116466929A (en) | 2023-03-10 | 2023-03-10 | Remote on-screen method based on MQTT |
CN202311357627.8A CN117311694A (en) | 2023-03-10 | 2023-10-19 | Remote on-screen method based on message queue telemetry transmission |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310230147.9A CN116466929A (en) | 2023-03-10 | 2023-03-10 | Remote on-screen method based on MQTT |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116466929A true CN116466929A (en) | 2023-07-21 |
Family
ID=87183178
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310230147.9A Pending CN116466929A (en) | 2023-03-10 | 2023-03-10 | Remote on-screen method based on MQTT |
CN202311357627.8A Pending CN117311694A (en) | 2023-03-10 | 2023-10-19 | Remote on-screen method based on message queue telemetry transmission |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311357627.8A Pending CN117311694A (en) | 2023-03-10 | 2023-10-19 | Remote on-screen method based on message queue telemetry transmission |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN116466929A (en) |
-
2023
- 2023-03-10 CN CN202310230147.9A patent/CN116466929A/en active Pending
- 2023-10-19 CN CN202311357627.8A patent/CN117311694A/en active Pending
Also Published As
Publication number | Publication date |
---|---|
CN117311694A (en) | 2023-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9122269B2 (en) | Method and system for operating a machine from the field of automation engineering | |
US20090013092A1 (en) | Method for virtual COM port modbus gateway ethernet I/O | |
CN103634592A (en) | Automatic test method and system for intelligent televisions | |
CN106161644B (en) | Distributed system for data processing and data processing method thereof | |
CN110888615A (en) | Multi-input equipment interaction method, device and medium for double-screen different display of Android system | |
CN103984818A (en) | AUV (autonomous underwater vehicle) design flow visualization modeling method based on Flex technology | |
CN105975351A (en) | User behavior message reporting method and apparatus | |
CN101477485B (en) | MySQL database remote backup and reduction method based on ASP.net | |
CN113448650A (en) | Live broadcast function plug-in loading method, device, equipment and storage medium | |
CN116466929A (en) | Remote on-screen method based on MQTT | |
KR20000004083A (en) | An operating method for a network management system(nms) and a communication device therefor in programing environments of a graphic user interface(gui) | |
CN107577466A (en) | A kind of RPM software kits Compilation Method and system based on linux system | |
CN115543824A (en) | Software testing device, system and method | |
CN112231231B (en) | Cloud service debugging method, system and device | |
CN103294532A (en) | Method for rapid implementation of matrix switch graphical control system | |
CN116011943A (en) | Robot automation flow service system, method and medium based on low codes | |
CN104639403A (en) | Method for calling IxChariot API (Application Program Interface) to test throughput | |
KR100817551B1 (en) | System and method of controling multi-projection based on pc cluster | |
CN112418796A (en) | Sub-process node activation method and device, electronic equipment and storage medium | |
CN103607620A (en) | Mobile communication terminal method and apparatus for controlling intelligent television | |
CN112463212B (en) | Environment building method and device supporting cross-system platform | |
CN115357510A (en) | Fault simulation method, device, storage medium and electronic equipment | |
Wang | Distributed Process Control Development Using IEC 61499 Function | |
CN115242912A (en) | STF-based mobile phone automatic test method | |
CN106354495B (en) | Method and equipment for realizing IETM integrated interactive interface of informatization electronic equipment |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20230721 |