CN117609097A - Cloud platform remote debugging method and system based on embedded application software - Google Patents

Cloud platform remote debugging method and system based on embedded application software Download PDF

Info

Publication number
CN117609097A
CN117609097A CN202311788510.5A CN202311788510A CN117609097A CN 117609097 A CN117609097 A CN 117609097A CN 202311788510 A CN202311788510 A CN 202311788510A CN 117609097 A CN117609097 A CN 117609097A
Authority
CN
China
Prior art keywords
program
unit
cloud platform
user account
equipment
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
Application number
CN202311788510.5A
Other languages
Chinese (zh)
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.)
Huizhou Yutai Energy Co ltd
Utek Technology Shenzhen Co ltd
Original Assignee
Huizhou Yutai Energy Co ltd
Utek Technology Shenzhen 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 Huizhou Yutai Energy Co ltd, Utek Technology Shenzhen Co ltd filed Critical Huizhou Yutai Energy Co ltd
Priority to CN202311788510.5A priority Critical patent/CN117609097A/en
Publication of CN117609097A publication Critical patent/CN117609097A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3624Software debugging by performing operations on the source code, e.g. via a compiler
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention is applicable to the technical field of embedded equipment, and provides a cloud platform remote debugging method and system based on embedded application software, wherein the method comprises the following steps: through online programming, the program is sent to the equipment, debugging information of the program executed by the equipment is received and displayed, and the program is deployed to one or more pieces of equipment after the program is modified or directly; remote debugging of software and hardware is realized; the method also comprises the steps of suspending or continuing to execute the program when executing the program, displaying the debug log on the cloud platform, and making up the defect that the program needs to be suspended by a physical key and the limitation of locally printing the debug log, thereby realizing remote development, debugging and deployment of the program, improving the development, debugging and deployment efficiency and labor cost of embedded reference software, and further improving the user experience.

Description

Cloud platform remote debugging method and system based on embedded application software
Technical Field
The invention belongs to the technical field of embedded equipment, and particularly relates to a cloud platform remote debugging method and system based on embedded application software.
Background
Development and debugging of embedded software generally requires code editing software, cross compiling tools, firmware burning tools, burning boxes or burning lines, and debugging can only print logs through JTAG or serial ports, so that time consumption is low, and remote development and debugging cannot be performed.
Disclosure of Invention
In view of the shortcomings of the prior art, the invention aims to provide a cloud platform remote debugging method and system based on embedded application software, and aims to solve the problems that the prior art cannot provide an effective cloud platform remote debugging method based on the embedded application software, so that embedded equipment cannot be remotely and intensively debugged and user experience is poor.
In one aspect, the invention provides a cloud platform remote debugging method based on embedded application software, which comprises the following steps:
writing a program on line;
transmitting the program to the device;
receiving and displaying debugging information of the program executed by the equipment;
the program is deployed to one or more of the devices after modification of the program or directly.
Preferably, before the online programming, the method further comprises:
registering a user account or logging in the cloud platform by using the user account, wherein the user account is allowed to log in after being validated;
the user account includes: and a third party user account.
Further, the online writing program further includes:
saving the program online or exporting the program to the local.
Further, before the program is sent to the device, the method includes: connecting one or more of the devices to the cloud platform;
the transmitting the program to the device includes: transmitting the program to a specific one of the devices;
connecting one or more of the devices to the cloud platform comprises: and after the equipment is powered on, the cloud platform is automatically connected.
Preferably, the transmitting the program to the device includes:
the device verifies the integrity of the program, executes the program after the integrity verification of the program is successful, and sends debugging information for executing the program to the cloud platform.
Further, the deploying the program to one or more of the devices comprises:
the device receives the program and verifies the integrity of the program, and the program is executed after the integrity verification of the program is successful.
Preferably, the method further comprises: the execution of the program is paused or continued.
Preferably, the method further comprises: binding equipment logging in the user account when logging in the user account for the first time;
sending an authentication code and verifying the legality of the authentication code when logging in the user account, and allowing logging in after the legality of the authentication code and the user account are verified to be legal;
the sending the verification code comprises the following steps: mail sending, short message sending and telephone voice sending.
In another aspect, the present invention provides a cloud platform remote debugging system based on embedded application software, the system comprising: equipment and a cloud platform;
a physical interface unit which is in control/communication connection with an external device;
the communication unit is powered on and automatically connected with the cloud platform;
a program execution unit that receives the program and executes the program;
the redirection unit redirects the debugging information to the cloud platform through the communication unit;
a registration/login unit for registering a user account or using the user account to login the cloud platform, wherein the user account is allowed to login after verification is legal;
a user equipment binding unit for binding equipment logging in the user account when logging in the user account for the first time;
the secondary verification unit is used for sending a verification code and verifying the legality of the verification code when the user account is logged in, and allowing login after the legality of the verification code and the user account are verified to be legal;
a program writing unit for writing programs on line;
a program transmitting unit that transmits the program to the device;
a debug information display unit for receiving and displaying the debug information of the program executed by the device;
a suspension unit that controls the program execution unit to suspend or continue executing the program;
a program deployment unit that deploys the program to one or more of the devices;
the apparatus comprises: a physical interface unit, a communication unit, a program execution unit and a redirection unit;
the cloud platform includes: the system comprises a registration/login unit, a user equipment binding unit, a secondary verification unit, a program writing unit, a program sending unit, a debugging information display unit, a pause unit and a batch deployment unit.
In another aspect, the present invention further provides a non-volatile computer readable storage medium, where computer executable instructions are stored, where the computer executable instructions, when executed by one or more processors, may cause the one or more processors to perform the cloud platform remote debugging method based on embedded application software described above.
The invention has the beneficial effects that: through online programming, the program is sent to the equipment, debugging information of the program executed by the equipment is received and displayed, and the program is deployed to one or more pieces of equipment after the program is modified or directly; remote debugging of software and hardware is realized; the method also comprises the steps of suspending or continuing to execute the program when executing the program, displaying the debug log on the cloud platform, and making up the defect that the program needs to be suspended by a physical key and the limitation of locally printing the debug log, thereby realizing remote development, debugging and deployment of the program, improving the development, debugging and deployment efficiency and labor cost of embedded reference software, and further improving the user experience.
Drawings
Fig. 1 is a flowchart of an implementation of a cloud platform remote debugging method based on embedded application software according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a cloud platform remote debugging system based on embedded application software according to a second embodiment of the present invention;
fig. 3 is an exemplary diagram of a cloud platform remote debugging system based on embedded application software according to a second embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The following describes in detail the implementation of the present invention in connection with specific embodiments:
embodiment one:
fig. 1 shows a realization flow of a cloud platform remote debugging method based on embedded application software according to an embodiment of the present invention, and for convenience of explanation, only the relevant parts of the embodiment of the present invention are shown, and the details are as follows:
in step S101, a program is written online;
in an embodiment of the present invention, before writing the program online, the method further includes: registering a user account or logging in the cloud platform by using the user account, and allowing logging in after the user account is validated to be legal; the user account includes: and the third party user account is a third party platform user account.
Preferably, the method further comprises: binding equipment logging in a user account when logging in the user account for the first time;
sending an authentication code and verifying the legitimacy of the authentication code when logging in a user account, and allowing logging in after the legitimacy of the authentication code and the user account are verified to be legal;
the sending of the verification code comprises: mail sending, short message sending and telephone voice sending; to improve safety.
In step S102, a program is transmitted to the device;
in an embodiment of the present invention, the online writing program further includes: storing the program or the exporting program on line to the local; namely: and editing the program online.
Further, before sending the program to the device, it includes: connecting one or more devices to a cloud platform;
the transmitting of the program to the device includes: transmitting the program to a specific device;
connecting one or more devices to the cloud platform comprises: the device is automatically connected with the cloud platform after being electrified; the cloud platform is automatically connected, and centralized management is facilitated.
Preferably, the program is sent to the device after comprising:
the equipment verifies the integrity of the program, executes the program after the integrity verification of the program is successful, and sends debugging information of the executed program to the cloud platform; the program integrity verification comprises verifying whether the package is damaged or not, and transmitting debugging information of the execution program to the cloud platform to realize remote monitoring so as to facilitate debugging and modifying the program.
In step S103, the receiving device executes debugging information of the program and displays the debugging information;
in the embodiment of the invention, the debugging information of the program executed by the receiving device is displayed, so that the running states of the remote debugging device/program and the remote monitoring program are realized.
In step S104, the program is deployed to one or more devices after being modified or directly.
In an embodiment of the present invention, deploying a program to one or more devices includes: the equipment receives the program and verifies the integrity of the program, and the program is executed after the integrity verification of the program is successful; namely: after deployment is successful, directly executing the program;
preferably, the method further comprises: suspending or continuing execution of the program; the full cloud end is realized by replacing the defect that a physical key pauses an execution program.
In the embodiment of the invention, under the condition that the embedded equipment is networked, the code text can be edited on the cloud platform and loaded to the embedded equipment to run, and the log output can be redirected to the virtual equipment and transmitted to the cloud platform to be displayed.
In the embodiment of the invention, the program is written on line, the program is sent to the equipment, the debugging information of the program executed by the equipment is received and displayed, and the program is deployed to one or more pieces of equipment after the program is modified or directly; remote debugging of software and hardware is realized; the method also comprises the steps of suspending or continuing to execute the program when executing the program, displaying the debug log on the cloud platform, and making up the defect that the program needs to be suspended by a physical key and the limitation of locally printing the debug log, thereby realizing remote development, debugging and deployment of the program, improving the development, debugging and deployment efficiency and labor cost of embedded reference software, and further improving the user experience.
Embodiment two:
fig. 2 shows a structure of a cloud platform remote debugging system based on embedded application software according to a second embodiment of the present invention, for convenience of explanation, only a portion related to the embodiment of the present invention is shown, and referring to fig. 3, including: device 100 and cloud platform 200;
a physical interface unit 110 in control/communication connection with an external device;
the communication unit 120 is powered on to automatically connect with the cloud platform 200;
a program execution unit 130 that receives a program and executes the program;
a redirecting unit 140 redirecting the debug information to the cloud platform 200 through the communication unit 120; the TCP connection of the debugging information printing redirection to the equipment and the cloud platform is realized, so that a user can conveniently determine the problems occurring in the running process of the program, and the problems are repaired.
A registration/login unit 210 for registering or using a user account to log in the cloud platform 200, and allowing login after the user account is authenticated to be legal; providing a user 201 to log in the cloud platform;
a user device binding unit 220 that binds the device 100 that logged in to the user account when the user account is first logged in;
the secondary verification unit 230 sends the verification code and verifies the legitimacy of the verification code when logging in the user account, and allows logging in after the legitimacy of the verification code and the user account are verified to be legal;
a program writing unit 240 for writing a program online;
a program transmission unit 250 that transmits a program to the apparatus 100;
a debug information display unit 260 that receives and displays debug information of the program executed by the apparatus 100;
a suspension unit 270 that controls the program execution unit 130 to suspend or continue executing the program;
a program deployment unit 280 that deploys programs to one or more devices 100;
the apparatus 100 comprises: a physical interface unit 110, a communication unit 120, and a program execution unit 130, and a redirection unit 140;
cloud platform 200 includes: the system comprises a registration/login unit 210, a user equipment binding unit 220, a secondary verification unit 230, a program writing unit 240, a program transmitting unit 250, a debug information display unit 260, a suspension unit 270, and a batch deployment unit.
In the embodiment of the invention, the online cloud platform mainly realizes online editing, maintaining, running, stopping, log output displaying, application publishing, deployment and the like of codes; wherein the program writing unit 240 supports Python voice programming.
In the embodiment of the invention, each unit of the cloud platform remote debugging system based on the embedded application software can be realized by corresponding hardware or software units, and each unit can be an independent software and hardware unit or can be integrated into one software and hardware unit, and the invention is not limited herein.
Embodiment III:
a third embodiment of the present invention provides a non-volatile computer-readable storage medium storing computer-executable instructions that are executed by one or more processors, for example, to perform the method steps S101 to S104 in fig. 1 described above.
By way of example, nonvolatile storage media can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically erasable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Synchronous RAM (SRAM), dynamic RAM, (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The disclosed memory components or memories of the operating environments described herein are intended to comprise one or more of these and/or any other suitable types of memory.
The embodiments described above are merely illustrative, wherein elements illustrated as separate elements may or may not be physically separate, and elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
From the above description of embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus a general purpose hardware platform, or may be implemented by hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in a form of a software product, which may exist in a computer-readable storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer electronic device (which may be a personal computer, a server, or a network electronic device, etc.) to perform the various embodiments or methods of some parts of the embodiments.
Conditional language such as "capable," "energy," "possible," or "may," among others, is generally intended to convey that a particular embodiment can include (but other embodiments do not include) particular features, elements, and/or operations unless specifically stated otherwise or otherwise understood within the context as used. Thus, such conditional language is not generally intended to imply that features, elements and/or operations are in any way required for one or more embodiments or that one or more embodiments must include logic for deciding, with or without student input or prompting, whether these features, elements and/or operations are included or are to be performed in any particular embodiment.
What has been described herein in this specification and the drawings includes examples of cloud platform remote debugging methods and systems capable of providing embedded application software based. It is, of course, not possible to describe every conceivable combination of components and/or methodologies for purposes of describing the various features of the present disclosure, but it may be appreciated that many further combinations and permutations of the disclosed features are possible. It is therefore evident that various modifications may be made thereto without departing from the scope or spirit of the disclosure. Further, or in the alternative, other embodiments of the disclosure may be apparent from consideration of the specification and drawings, and practice of the disclosure as presented herein. It is intended that the examples set forth in this specification and figures be considered illustrative in all respects as illustrative and not limiting. Although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.

Claims (10)

1. The cloud platform remote debugging method based on the embedded application software is characterized by comprising the following steps of:
writing a program on line;
transmitting the program to the device;
receiving and displaying debugging information of the program executed by the equipment;
the program is deployed to one or more of the devices after modification of the program or directly.
2. The method of claim 1, wherein prior to writing the program online further comprises:
registering a user account or logging in the cloud platform by using the user account, wherein the user account is allowed to log in after being validated;
the user account includes: and a third party user account.
3. The method of claim 1, wherein the online programming further comprises: saving the program online or exporting the program to the local.
4. The method of claim 1, wherein prior to transmitting the program to the device comprises: connecting one or more of the devices to the cloud platform;
the transmitting the program to the device includes: transmitting the program to a specific one of the devices;
connecting one or more of the devices to the cloud platform comprises: and after the equipment is powered on, the cloud platform is automatically connected.
5. The method of claim 4, wherein the sending the program to the device is followed by:
the device verifies the integrity of the program, executes the program after the integrity verification of the program is successful, and sends debugging information for executing the program to the cloud platform.
6. The method of claim 1, wherein the deploying the program to one or more of the devices comprises:
the device receives the program and verifies the integrity of the program, and the program is executed after the integrity verification of the program is successful.
7. The method of claim 6, wherein the method further comprises: the execution of the program is paused or continued.
8. The method as recited in claim 2, further comprising: binding equipment logging in the user account when logging in the user account for the first time;
sending an authentication code and verifying the legality of the authentication code when logging in the user account, and allowing logging in after the legality of the authentication code and the user account are verified to be legal;
the sending the verification code comprises the following steps: mail sending, short message sending and telephone voice sending.
9. Cloud platform remote debugging system based on embedded application software, characterized in that the system comprises: equipment and a cloud platform;
a physical interface unit which is in control/communication connection with an external device;
the communication unit is powered on and automatically connected with the cloud platform;
a program execution unit that receives the program and executes the program;
the redirection unit redirects the debugging information to the cloud platform through the communication unit;
a registration/login unit for registering a user account or using the user account to login the cloud platform, wherein the user account is allowed to login after verification is legal;
a user equipment binding unit for binding equipment logging in the user account when logging in the user account for the first time;
the secondary verification unit is used for sending a verification code and verifying the legality of the verification code when the user account is logged in, and allowing login after the legality of the verification code and the user account are verified to be legal;
a program writing unit for writing programs on line;
a program transmitting unit that transmits the program to the device;
a debug information display unit for receiving and displaying the debug information of the program executed by the device;
a suspension unit that controls the program execution unit to suspend or continue executing the program;
a program deployment unit that deploys the program to one or more of the devices;
the apparatus comprises: a physical interface unit, a communication unit, a program execution unit and a redirection unit;
the cloud platform includes: the system comprises a registration/login unit, a user equipment binding unit, a secondary verification unit, a program writing unit, a program sending unit, a debugging information display unit, a pause unit and a batch deployment unit.
10. A non-transitory computer-readable storage medium storing computer-executable instructions which, when executed by one or more processors, cause the one or more processors to perform the embedded application software-based cloud platform remote debugging method of any one of claims 1-8.
CN202311788510.5A 2023-12-22 2023-12-22 Cloud platform remote debugging method and system based on embedded application software Pending CN117609097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311788510.5A CN117609097A (en) 2023-12-22 2023-12-22 Cloud platform remote debugging method and system based on embedded application software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311788510.5A CN117609097A (en) 2023-12-22 2023-12-22 Cloud platform remote debugging method and system based on embedded application software

Publications (1)

Publication Number Publication Date
CN117609097A true CN117609097A (en) 2024-02-27

Family

ID=89956367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311788510.5A Pending CN117609097A (en) 2023-12-22 2023-12-22 Cloud platform remote debugging method and system based on embedded application software

Country Status (1)

Country Link
CN (1) CN117609097A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106067840A (en) * 2016-05-25 2016-11-02 郭毅 The remote debugging method of a kind of satellite in orbit and system
CN107273981A (en) * 2017-06-08 2017-10-20 杭州羽智科技有限公司 The intelligent remote module and its maintaining method safeguarded for industrial equipment
WO2022227410A1 (en) * 2021-04-29 2022-11-03 苏州大学 Embedded terminal remote software debugging method
CN115629971A (en) * 2022-10-19 2023-01-20 北京科银京成技术有限公司 Application development system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106067840A (en) * 2016-05-25 2016-11-02 郭毅 The remote debugging method of a kind of satellite in orbit and system
CN107273981A (en) * 2017-06-08 2017-10-20 杭州羽智科技有限公司 The intelligent remote module and its maintaining method safeguarded for industrial equipment
WO2022227410A1 (en) * 2021-04-29 2022-11-03 苏州大学 Embedded terminal remote software debugging method
CN115629971A (en) * 2022-10-19 2023-01-20 北京科银京成技术有限公司 Application development system and method

Similar Documents

Publication Publication Date Title
CN111104143B (en) Firmware upgrading method and upgrading device
CN102799515B (en) Applied program testing method and device
CN105786567A (en) Middleware for information interaction of light application and main application and iOS application sub-module dynamic updating method
CN109857437A (en) A kind of upgrade method and system of bluetooth equipment
CN106293811A (en) A kind of packing and issuing method and device automatically
CN114945021A (en) Unmanned vehicle remote debugging method, device and system and storage medium
CN105468393B (en) Module release upgrade method and terminal installation
CN104519050A (en) Login method and login system
CN104468592A (en) Login method and system
CN109992282A (en) Inverter method for upgrading software and system, electronic equipment
CN112261083B (en) Remote control method, system and virtual machine server
CN107168699A (en) application program repairing method and terminal device
CN109710262A (en) Software distribution method and device, computer readable storage medium
CN105786636B (en) A kind of system repair and device
CN106843934A (en) The treating method and apparatus of upgrade file
CN110149385A (en) Download upgrading terminals in space
CN105550601A (en) File integrity verification method and file integrity verification apparatus based on virtualization platform
CN108255502A (en) A kind of update in library, upload, management method, device and base management system
CN105678120B (en) A kind of application security means of defence and server
CN109819562B (en) System for wirelessly upgrading DMX lamp by computer
CN117609097A (en) Cloud platform remote debugging method and system based on embedded application software
CN109375932B (en) APP hot repair script construction method, device, terminal and storage medium
CN105159797A (en) Oracle database based backup and recovery method
CN111694583B (en) Cloud game updating method, cloud game updating system and storage medium
CN105024874B (en) Off-line emulation system based on trusted service management platform

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