CN107562500B - Debugging device, method and equipment - Google Patents

Debugging device, method and equipment Download PDF

Info

Publication number
CN107562500B
CN107562500B CN201710758788.6A CN201710758788A CN107562500B CN 107562500 B CN107562500 B CN 107562500B CN 201710758788 A CN201710758788 A CN 201710758788A CN 107562500 B CN107562500 B CN 107562500B
Authority
CN
China
Prior art keywords
debugging
user account
module
current user
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710758788.6A
Other languages
Chinese (zh)
Other versions
CN107562500A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710758788.6A priority Critical patent/CN107562500B/en
Publication of CN107562500A publication Critical patent/CN107562500A/en
Application granted granted Critical
Publication of CN107562500B publication Critical patent/CN107562500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The disclosure relates to a debugging device, method and apparatus. The debugging device comprises: the device comprises a first processing module, a communication module and an interface module which are respectively connected with the first processing module; the communication module is configured to establish a communication connection between the first processing module and a terminal; the interface module is configured to provide an interface connected with a device to be debugged for the first processing module; the first processing module is configured to receive a program file sent by the terminal through the communication module, and to write the program file to the device to be debugged through the interface module. The present disclosure improves the flexibility of programming.

Description

Debugging device, method and equipment
Technical Field
The present disclosure relates to debugging technologies, and in particular, to a debugging apparatus, method, and device.
Background
Debugging is an essential link in the development process of embedded system software. The debugging is mainly divided into hardware simulation debugging and software simulation debugging. The hardware simulation debugging depends on actual hardware equipment, and a program actually runs in a processor of the hardware equipment.
In the related art, when a developer performs hardware simulation debugging, the developer needs to connect a terminal (e.g., a desktop or a notebook computer) used for debugging with a writer through a serial port, so as to write a program file developed by the developer to a device to be debugged through the writer, for example, to a Read-Only Memory (ROM) of the device to be debugged.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a debugging apparatus, method and device.
According to a first aspect of the embodiments of the present disclosure, there is provided a debugging apparatus, including: the device comprises a first processing module, a communication module and an interface module which are respectively connected with the first processing module;
the communication module is configured to establish communication connection between the first processing module and a terminal;
the interface module is configured to provide an interface connected with a device to be debugged for the first processing module;
the first processing module is configured to receive the program file sent by the terminal through the communication module, and to write the program file to the device to be debugged through the interface module.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the debugging device comprises a first processing module, a communication module and an interface module, wherein the communication module and the interface module are respectively connected with the first processing module, the communication module establishes communication connection between the first processing module and the terminal, the interface module provides an interface connected with equipment to be debugged for the first processing module, the first processing module receives a program file sent by the terminal through the communication module and writes the program file to the equipment to be debugged through the interface module, so that the terminal can carry out remote communication with the debugging device and writes the program file to the equipment to be debugged, and the programming flexibility is improved.
Optionally, the debugging apparatus further includes: and the second processing module is configured to transmit the data input by the interface module to the terminal through the communication module.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the second processing module sends the data input by the interface module to the terminal through the communication module, so that the terminal can obtain the data output by the equipment to be debugged in the process of running the program file by the equipment to be debugged, and a remote developer can know the working state of the equipment to be debugged through the terminal
Optionally, the debugging apparatus further includes: and the third processing module is configured to receive the debugging instruction sent by the terminal through the communication module and output the debugging instruction through the interface module.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the third processing module receives the debugging instruction sent by the terminal through the communication module and outputs the debugging instruction through the interface module, so that the debugging instruction sent by the terminal can be received by the equipment to be debugged, and a remote developer can send the debugging instruction to the equipment to be debugged through the terminal.
Optionally, the first processing module and the interface module are integrated in a writer.
According to a second aspect of the embodiments of the present disclosure, there is provided a method of debugging, including:
after a current user account is detected, determining a debugging device corresponding to the current user account according to the current user account;
establishing communication connection with the debugging device;
and sending a program file to the debugging device, wherein the program file is used for the debugging device to program the program file to the equipment to be debugged.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the current user account is detected, the debugging device corresponding to the current user account is obtained according to the current user account, communication connection is established with the debugging device, and a program file is sent to the debugging device, wherein the program file is used for programming the program file to equipment to be debugged by the debugging device, so that after a user logs in the account by using a terminal, remote communication can be carried out between the terminal and the debugging device, the program file is programmed to the equipment to be debugged, and the programming flexibility is improved.
Optionally, after the current user account is detected, obtaining the debugging device corresponding to the current user account according to the current user account includes:
determining that the current user account is detected according to the input account information;
acquiring the identification of the debugging device corresponding to the current user account from the server according to the current user account;
and determining the debugging device corresponding to the current user account according to the identification.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method and the device have the advantages that the current user account is determined and detected according to the input account information, the identification of the debugging device corresponding to the current user account is obtained according to the current user account, the debugging device corresponding to the current user account is determined according to the identification, and the debugging device corresponding to the current user account is determined according to the current user account after the current user account is detected.
Optionally, a plurality of debugging devices corresponding to the current user account;
should establish communication connection with this debugging device, include:
acquiring a modulation device selected by the current user account in the plurality of modulation devices;
establishing a communication connection with the selected commissioning device.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the modulation device selected by the current user account in the plurality of debugging devices is obtained, and the communication connection is established with the selected debugging device, so that the terminal can establish the communication connection with the debugging device selected by the user, the user can select the used debugging device, and the flexibility is improved.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for debugging, including:
the debugging device comprises a determining module, a debugging module and a debugging module, wherein the determining module is configured to determine a debugging device corresponding to a current user account according to the current user account after the current user account is detected;
a communication module configured to establish a communication connection with the debugging apparatus;
and the sending module is configured to send a program file to the debugging device, wherein the program file is used for the debugging device to write the program file to the equipment to be debugged.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the determining module detects the current user account, the debugging device corresponding to the current user account is obtained according to the current user account, the communication module is in communication connection with the debugging device, the sending module sends a program file to the debugging device, and the program file is used for programming the program file to the device to be debugged by the debugging device, so that after a user logs in the account by using a terminal, remote communication can be carried out between the terminal and the debugging device, the program file is programmed to the device to be debugged, and the programming flexibility is improved.
Optionally, the determining module includes:
the first determining submodule is configured to determine that a current user account is detected according to the input account information;
the first obtaining sub-module is configured to obtain a debugging device corresponding to the current user account from the server according to the current user account;
and the second determining submodule is configured to determine the debugging device corresponding to the current user account according to the identifier.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the current user account is determined and detected through the first determining submodule according to the input account information, the first obtaining submodule obtains the identification of the debugging device corresponding to the current user account according to the current user account, the second determining submodule determines the debugging device corresponding to the current user account according to the identification, and after the current user account is detected, the debugging device corresponding to the current user account is determined according to the current user account.
Optionally, a plurality of debugging devices corresponding to the current user account; the communication module includes:
a second obtaining sub-module configured to obtain a modulation device selected by the current user account among the plurality of modulation devices;
a connection sub-module configured to establish a communication connection with the selected commissioning device.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the modulation device selected by the current user account in the plurality of debugging devices is obtained through the second obtaining sub-module, and the connecting sub-module is in communication connection with the selected debugging device, so that the terminal can be in communication connection with the debugging device selected by the user, the user can select the used debugging device, and the flexibility is improved.
According to a fourth aspect of embodiments of the present disclosure, there is provided a debugging system including: the commissioning apparatus according to any one of the above first aspects and the commissioning apparatus according to any one of the above third aspects.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor and a memory for storing computer instructions; the processor executes the computer instructions to perform the method of any of the second aspects described above.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the method of any one of the above second aspects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a block diagram illustrating a debugging apparatus in accordance with an exemplary embodiment;
FIG. 2 is a block diagram illustrating a debugging apparatus according to another exemplary embodiment;
FIG. 3 is a block diagram illustrating a debugging apparatus in accordance with yet another exemplary embodiment;
FIG. 4 is a flow diagram illustrating a method of debugging in accordance with an exemplary embodiment;
FIG. 5 is a flow diagram illustrating a method of debugging in accordance with another illustrative embodiment;
FIG. 6 is a flow chart illustrating a method of debugging in accordance with yet another exemplary embodiment;
FIG. 7 is a block diagram illustrating an apparatus for debugging in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating a commissioned device in accordance with another illustrative embodiment;
FIG. 9 is a block diagram illustrating an apparatus for debugging in accordance with yet another exemplary embodiment;
FIG. 10 is a block diagram illustrating a commissioned device in accordance with yet another illustrative embodiment;
fig. 11 is a block diagram illustrating a debugged terminal 800 according to yet another example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a block diagram illustrating a debugging apparatus according to an exemplary embodiment. Referring to fig. 1, the debugging apparatus includes: a first processing module 101, and a communication module 102 and an interface module 103 respectively connected to the first processing module 101. Wherein, the communication module 102 is configured to establish a communication connection between the first processing module 101 and a terminal; the interface module 103 is configured to provide an interface for connecting with a device to be debugged to the first processing module 101; the first processing module 101 is configured to receive a program file sent by the terminal through the communication module 102, and write the program file to the device to be debugged through the interface module 103.
The terminal may be a terminal used by a developer, such as a desktop computer, a notebook computer, and the like. The device to be debugged can be a hardware device which is depended by a developer when the developer conducts hardware simulation debugging on the developed program, and the developer can burn the developed program to the device to be debugged to conduct hardware simulation debugging. The communication module 102 may be, for example, a Wireless Fidelity (WiFi) module, an ethernet module, or the like, which may provide a telecommunication service. The interface module 103 may be, for example, a serial port module, an RS232 module, or the like. The program file may be a file written by a developer and capable of being executed by a processor of the device to be debugged.
The debugging device comprises a first processing module 101, and a communication module 102 and an interface module 103 which are respectively connected with the first processing module 101, wherein the communication module 102 establishes a communication connection between the first processing module 101 and a terminal, the interface module 103 provides an interface for the first processing module 101 to be connected with a device to be debugged, the first processing module 101 receives a program file sent by the terminal through the communication module 102, and programs the program file to the device to be debugged through the interface module 103, so that the terminal can perform remote communication with the debugging device and program the program file to the device to be debugged, and the programming flexibility is improved.
The debugging device provided by this embodiment, the debugging device includes a first processing module, and a communication module and an interface module that are connected to the first processing module, respectively, wherein, the communication module establishes a communication connection between the first processing module and the terminal, the interface module provides an interface connected to the device to be debugged for the first processing module, the first processing module receives the program file sent by the terminal through the communication module, and writes the program file to the device to be debugged through the interface module, so that the terminal can perform remote communication with the debugging device, and write the program file to the device to be debugged, thereby improving the flexibility of writing.
Fig. 2 is a block diagram illustrating a debugging apparatus according to another exemplary embodiment. Referring to fig. 2, the debugging apparatus, based on the block diagram shown in fig. 1, may optionally further include: a second processing module 104.
And a second processing module 104 configured to transmit the data input by the interface module 103 to the terminal through the communication module 102.
The data may be data, which is output by a processor of the device to be debugged during the process of running the program file, for indicating the operating state of the device to be debugged, and may also be called a log (log).
In the debugging device provided by this embodiment, the second processing module sends the data input by the interface module to the terminal through the communication module, so that the terminal can obtain the data output by the device to be debugged in the process of running the program file by the device to be debugged, and a remote developer can know the working state of the device to be debugged through the terminal.
Fig. 3 is a block diagram illustrating a debugging apparatus according to still another exemplary embodiment. Referring to fig. 3, the debugging apparatus, based on the block diagram shown in fig. 1, may optionally further include: a third processing module 105.
A third processing module 105 configured to receive the debugging instruction sent by the terminal through the communication module 102, and output the debugging instruction through the interface module 103.
The debug instruction may be, for example, a pause, a single step, a breakpoint, etc. After the third processing module outputs the debugging instruction through the interface module, the interface module is connected with the device to be debugged, so that the debugging instruction sent by the terminal can be received by the device to be debugged. Further, the device to be debugged may be executed according to a debugging instruction sent by the terminal device.
In the debugging apparatus provided in this embodiment, the third processing module receives the debugging instruction sent by the terminal through the communication module, and outputs the debugging instruction through the interface module, so that the debugging instruction sent by the terminal can be received by the device to be debugged, and a remote developer can send the debugging instruction to the device to be debugged through the terminal.
Fig. 4 is a flow chart illustrating a method of debugging, an execution subject of which may be a terminal, according to an example embodiment. As shown in fig. 4, the method comprises the following steps:
in step 401, after the current user account is detected, a debugging device corresponding to the current user account is determined according to the current user account.
In this step, the current user account may be an account used by the user to log in software matched with the debugging device. Optionally, an identifier of the adjusting device corresponding to the current user account may be obtained, and the debugging device corresponding to the current user account may be determined according to the identifier. The identification of the debugging device corresponding to the current user account can be stored locally in the terminal, and the identification of the debugging device corresponding to the current user frame number can be obtained by inquiring a local storage space; alternatively, the identifier of the debugging apparatus corresponding to the current user account may also be stored in the server, and may be acquired from the server. The identifier of the debugging device corresponding to the current user account locally stored by the terminal may be obtained by the terminal from the server and then stored locally, or may be configured on the terminal by the user. In this step, the debugging apparatus is specifically described in the embodiments shown in fig. 1 to fig. 3.
In step 402, a communication connection is established with the commissioning device.
In this step, specifically, the terminal may establish a communication connection with the debugging apparatus through the communication module. The communication module may be, for example, a WiFi module or an ethernet module, etc. It should be noted that the communication module in the terminal and the communication module in the debugging device should be the same, for example, both the communication module in the terminal and the communication module in the debugging device are WiFi modules. After the terminal establishes the communication connection with the debugging device, the terminal and the debugging device can perform remote communication.
In step 403, a program file is sent to the debugging apparatus, where the program file is used for the debugging apparatus to write the program file to the device to be debugged.
In this step, the program file may be a file written by a developer and capable of being run by a processor of the device to be debugged. And the terminal sends the program file to the debugging device, and the debugging device writes the program file to the equipment to be debugged. Specifically, the program file may be sent to the device to be debugged according to a programming instruction input by a user and used for programming the program file to the device to be debugged.
According to the debugging method, after the current user account is detected, the debugging device corresponding to the current user account is obtained according to the current user account, communication connection is established with the debugging device, and the program file is sent to the debugging device and used for programming the program file to the equipment to be debugged by the debugging device, so that after a user logs in the account by using a terminal, remote communication can be carried out between the terminal and the debugging device, the program file is programmed to the equipment to be debugged, and the programming flexibility is improved.
FIG. 5 is a flow chart illustrating a method of debugging in accordance with another exemplary embodiment. In this embodiment, an optional implementation manner of determining, after the current user account is detected, the debugging apparatus corresponding to the current user account according to the current user account is mainly described on the basis of the embodiment shown in fig. 4. As shown in fig. 5, the method comprises the following steps:
in step 501, it is determined that the current user account is detected according to the input account information.
In this step, when the user inputs account information on a login interface of software that is matched with the debugging device, the current user account may be determined to be detected according to the input account information. The input account information may include a user account, and the user account included in the account information is a current user account.
In step 502, according to the current user account, an identifier of the debugging device corresponding to the current user account is obtained.
In this step, optionally, the current user account may be sent to a server, and an identifier of the debugging device corresponding to the current user account returned by the server may be received. Because a user usually needs to input account information and a password when logging in software, and the input account information and the input password are sent to a server for verification, the server can return the identifier of the debugging device corresponding to the user account in the account information to the terminal after the verification is successful.
In step 503, according to the identifier, a debugging device corresponding to the current user account is determined.
According to the debugging method of the embodiment, the current user account is determined and detected according to the input account information, the identification of the debugging device corresponding to the current user account is obtained according to the current user account, and the debugging device corresponding to the current user account is determined according to the identification, so that the debugging device corresponding to the current user account is determined according to the current user account after the current user account is detected.
FIG. 6 is a flow chart illustrating a method of debugging in accordance with yet another exemplary embodiment. On the basis of the embodiment shown in fig. 4, this embodiment mainly describes an optional implementation manner when multiple debugging devices correspond to a current user account. As shown in fig. 6, the method comprises the following steps:
in step 601, the modulation device selected by the current user account in the plurality of modulation devices is obtained.
In this step, the dynamic debugging device selected by the user may be one or more of the plurality of debugging devices. Before step 601, the method may further include: and displaying a plurality of debugging devices corresponding to the current user account to the user. Specifically, the display may be in an interface of software that is configured with the debugging apparatus.
Step 602, establishing a communication connection with the selected debugging device.
According to the debugging method of the embodiment, the modulation device selected by the current user account in the plurality of debugging devices is obtained, and the communication connection is established with the selected debugging device, so that the terminal can establish the communication connection with the debugging device selected by the user, the user can select the used debugging device, and the flexibility is improved.
Optionally, on the basis of the embodiments shown in fig. 4 to fig. 6, after step 403, the method may further include: and sending a debugging instruction to the equipment to be debugged through the debugging device. Here, the debugging apparatus may transmit the debugging instruction from the terminal to the device to be debugged. The terminal sends a debugging instruction to the device to be debugged through the device to be debugged, so that the debugging instruction sent by the terminal can be received by the device to be debugged, and a remote developer can send the debugging instruction to the device to be debugged through the terminal.
Optionally, on the basis of the embodiments shown in fig. 4 to fig. 6, after step 403, the method may further include: and receiving data sent by the equipment to be debugged through the debugging device. Here, the debugging apparatus may transparently transmit data from the device to be debugged to the terminal. The terminal receives the data sent by the device to be debugged through the debugging device, so that the terminal can obtain the data output by the device to be debugged in the process of running the program file by the device to be debugged, and a remote developer can know the working state of the device to be debugged through the terminal.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
FIG. 7 is a block diagram illustrating an apparatus for debugging in accordance with an example embodiment. The apparatus may be implemented as part or all of the terminal by software, hardware or a combination of both. Referring to fig. 7, the apparatus includes: a determination module 701, a communication module 702 and a sending module 703. Wherein the content of the first and second substances,
a determining module 701, configured to determine, after detecting a current user account, a debugging device corresponding to the current user account according to the current user account;
a communication module 702 configured to establish a communication connection with the debugging apparatus determined by the determination module 701;
a sending module 703 configured to send a program file to the debugging apparatus that establishes a communication connection with the communication module 702, where the program file is used for the debugging apparatus to program the program file to the device to be debugged.
To sum up, according to the debugging apparatus provided by the embodiment of the present disclosure, after the current user account is detected by the determining module, the debugging apparatus corresponding to the current user account is obtained according to the current user account, the communication module establishes a communication connection with the debugging apparatus, and the sending module sends the program file to the debugging apparatus, where the program file is used for the debugging apparatus to write the program file to the device to be debugged, so that after a user logs in the account using a terminal, the user can perform remote communication with the debugging apparatus through the terminal, and write the program file to the device to be debugged, thereby improving the flexibility of writing.
Fig. 8 is a block diagram illustrating a commissioned device according to another example embodiment. Referring to fig. 8, the apparatus is based on the block diagram shown in fig. 7, and optionally, the determining module 701 may include: a first determining submodule 7011, a first obtaining submodule 7012 and a second determining submodule 7013. Wherein the content of the first and second substances,
a first determining sub-module 7011 configured to determine, according to the input account information, that a current user account is detected;
a first obtaining sub-module 7012, configured to obtain, according to the current user account, an identifier of the debugging apparatus corresponding to the current user account;
and the second determining sub-module 7013 is configured to determine, according to the identifier, a debugging apparatus corresponding to the current user account.
In summary, according to the debugging device provided by the embodiment of the present disclosure, a first determining sub-module determines to detect a current user account according to input account information, a first obtaining sub-module obtains an identifier of a debugging device corresponding to the current user account according to the current user account, and a second determining sub-module determines the debugging device corresponding to the current user account according to the identifier, so that after the current user account is detected, the debugging device corresponding to the current user account is determined according to the current user account.
FIG. 9 is a block diagram illustrating a commissioned device according to yet another example embodiment. Referring to fig. 9, on the basis of the block diagram shown in fig. 7, the device may select multiple debugging devices corresponding to the current user account; the communication module 702 includes: a second acquisition sub-module 7021 and a connection sub-module 7022.
A second obtaining sub-module 7021 configured to obtain a modulation device selected by the current user account among the plurality of modulation devices;
a connection sub-module 7022 configured to establish a communication connection with the selected commissioning apparatus.
It should be noted that, on the basis of the block diagram shown in fig. 8, the second obtaining sub-module 7021 and the connection sub-module 7022 may also be included.
To sum up, in the debugging apparatus provided in the embodiment of the present disclosure, the second obtaining sub-module obtains the modulation apparatus selected by the current user account among the plurality of debugging apparatuses, and the connection sub-module establishes a communication connection with the selected debugging apparatus, so that the terminal can establish a communication connection with the debugging apparatus selected by the user, the user can select the used debugging apparatus, and the flexibility is improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 10 is a block diagram illustrating a terminal according to still another exemplary embodiment, and as shown in fig. 10, the terminal may include: a processor 1001 and a memory 1002 for storing computer instructions.
The processor 1001 executes the computer instructions to execute the following method:
after a current user account is detected, determining a debugging device corresponding to the current user account according to the current user account;
establishing communication connection with the debugging device;
and sending a program file to the debugging device, wherein the program file is used for the debugging device to program the program file to the equipment to be debugged.
Optionally, after the current user account is detected, determining, according to the current user account, a debugging device corresponding to the current user account, including:
determining that the current user account is detected according to the input account information;
acquiring the identification of the debugging device corresponding to the current user account according to the current user account;
and determining the debugging device corresponding to the current user account according to the identification.
Optionally, a plurality of debugging devices corresponding to the current user account;
should establish communication connection with this debugging device, include:
acquiring a modulation device selected by the current user account in the plurality of modulation devices;
establishing a communication connection with the selected commissioning device.
Fig. 11 is a block diagram illustrating a terminal 800 according to yet another example embodiment. For example, the terminal 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 11, terminal 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the terminal 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on terminal 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of terminal 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 800.
The multimedia component 808 includes a screen providing an output interface between the terminal 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the terminal 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for terminal 800. For example, sensor assembly 814 can detect the open/closed state of device 800, the relative positioning of components, such as a display and keypad of terminal 800, sensor assembly 814 can also detect a change in position of terminal 800 or a component of terminal 800, the presence or absence of user contact with terminal 800, orientation or acceleration/deceleration of terminal 800, and a change in temperature of terminal 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communication component 816 is configured to facilitate communications between terminal 800 and other devices in a wired or wireless manner. The terminal 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the methods illustrated in fig. 4, 5 or 6 and described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the terminal 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a terminal, enable the terminal to perform a method of debugging, the method comprising:
after a current user account is detected, determining a debugging device corresponding to the current user account according to the current user account;
establishing communication connection with the debugging device;
and sending a program file to the debugging device, wherein the program file is used for the debugging device to program the program file to the equipment to be debugged.
Optionally, after the current user account is detected, determining, according to the current user account, a debugging device corresponding to the current user account, including:
determining that the current user account is detected according to the input account information;
acquiring the identification of the debugging device corresponding to the current user account according to the current user account;
and determining the debugging device corresponding to the current user account according to the identification.
Optionally, a plurality of debugging devices corresponding to the current user account;
should establish communication connection with this debugging device, include:
acquiring a modulation device selected by the current user account in the plurality of modulation devices;
establishing a communication connection with the selected commissioning device.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A method of debugging, comprising:
after a current user account is detected, determining a debugging device corresponding to the current user account according to the current user account;
establishing communication connection with the debugging device;
sending a program file to the debugging device, wherein the program file is used for the debugging device to program the program file to the equipment to be debugged;
after the current user account is detected, determining a debugging device corresponding to the current user account according to the current user account includes:
determining that the current user account is detected according to the input account information;
acquiring an identifier of a debugging device corresponding to the current user account according to the current user account;
and determining a debugging device corresponding to the current user account according to the identification.
2. The method according to claim 1, wherein the current user account corresponds to a plurality of debugging devices;
the establishing communication connection with the debugging device comprises:
acquiring a modulation device selected by the current user account in the plurality of debugging devices;
establishing a communication connection with the selected commissioning device.
3. A debugging apparatus for performing a method of debugging as claimed in claim 1 or 2, the debugging apparatus comprising: the device comprises a first processing module, a communication module and an interface module which are respectively connected with the first processing module;
the communication module is configured to establish a communication connection between the first processing module and a terminal;
the interface module is configured to provide an interface connected with a device to be debugged for the first processing module;
the first processing module is configured to receive a program file sent by the terminal through the communication module, and to write the program file to the device to be debugged through the interface module.
4. The debugging apparatus according to claim 3, wherein said debugging apparatus further comprises: and the second processing module is configured to transmit the data input by the interface module to the terminal through the communication module.
5. The debugging apparatus according to claim 3, wherein said debugging apparatus further comprises: and the third processing module is configured to receive the debugging instruction sent by the terminal through the communication module and output the debugging instruction through the interface module.
6. The debugging device according to any one of claims 3 to 5, wherein the first processing module and the interface module are integrated in a writer.
7. An apparatus for debugging, comprising:
the debugging device comprises a determining module, a debugging module and a debugging module, wherein the determining module is configured to determine a debugging device corresponding to a current user account according to the current user account after the current user account is detected;
a communication module configured to establish a communication connection with the debugging apparatus;
the debugging device comprises a sending module and a debugging module, wherein the sending module is configured to send a program file to the debugging device, and the program file is used for the debugging device to write the program file to equipment to be debugged;
the determining module comprises:
the first determining submodule is configured to determine that a current user account is detected according to the input account information;
the first obtaining sub-module is configured to obtain an identifier of a debugging device corresponding to the current user account according to the current user account;
and the second determining submodule is configured to determine the debugging device corresponding to the current user account according to the identifier.
8. The device of claim 7, wherein the current user account corresponds to a plurality of debugging devices; the communication module includes:
a second obtaining sub-module configured to obtain a modulation device selected by the current user account among the plurality of debugging devices;
a connection sub-module configured to establish a communication connection with the selected commissioning device.
9. A terminal, comprising:
a processor and a memory for storing computer instructions; the processor executes the computer instructions to perform the method of claim 1 or 2.
CN201710758788.6A 2017-08-29 2017-08-29 Debugging device, method and equipment Active CN107562500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710758788.6A CN107562500B (en) 2017-08-29 2017-08-29 Debugging device, method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710758788.6A CN107562500B (en) 2017-08-29 2017-08-29 Debugging device, method and equipment

Publications (2)

Publication Number Publication Date
CN107562500A CN107562500A (en) 2018-01-09
CN107562500B true CN107562500B (en) 2021-07-13

Family

ID=60977572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710758788.6A Active CN107562500B (en) 2017-08-29 2017-08-29 Debugging device, method and equipment

Country Status (1)

Country Link
CN (1) CN107562500B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108334453B (en) * 2018-02-28 2021-07-20 深圳创维数字技术有限公司 File debugging method and device, terminal equipment and storage medium
CN111831471B (en) 2019-04-18 2023-03-03 华为终端有限公司 User terminal, debugging equipment and data backup method
CN111338673B (en) * 2020-02-21 2023-12-01 Oppo(重庆)智能科技有限公司 Equipment debugging method and device, electronic equipment and storage medium
CN112478966B (en) * 2020-11-26 2023-04-28 无锡英威腾电梯控制技术有限公司 Elevator and debugging method, debugging platform and debugging terminal thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752946A (en) * 2005-10-31 2006-03-29 大唐微电子技术有限公司 Debugging method of embedded system and its system
CN102143606A (en) * 2011-03-07 2011-08-03 中国农业大学 Wireless sensor network gateway for farmland information acquisition
CN105721568A (en) * 2016-02-02 2016-06-29 清华大学 Remote debugging system, method and device
CN105931540A (en) * 2016-04-27 2016-09-07 北京航空航天大学 FPGA-based on-line experiment system and on-line experiment method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102820061B (en) * 2012-08-31 2016-08-17 东北大学 Embedded remote device program programming device and method
CN104320520A (en) * 2014-10-14 2015-01-28 小米科技有限责任公司 Terminal commissioning method and device
CN104298602A (en) * 2014-10-27 2015-01-21 北京神州绿盟信息安全科技股份有限公司 Method and device for debugging application program
CN105094914A (en) * 2015-08-07 2015-11-25 珠海格力电器股份有限公司 Remote online programming method, device and system
CN105550109A (en) * 2015-12-11 2016-05-04 四川长虹电器股份有限公司 Equipment debugging method and electronic equipment
CN107015912A (en) * 2017-05-26 2017-08-04 网易(杭州)网络有限公司 Realize system, method, device and the electronic equipment of remote debugging

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752946A (en) * 2005-10-31 2006-03-29 大唐微电子技术有限公司 Debugging method of embedded system and its system
CN102143606A (en) * 2011-03-07 2011-08-03 中国农业大学 Wireless sensor network gateway for farmland information acquisition
CN105721568A (en) * 2016-02-02 2016-06-29 清华大学 Remote debugging system, method and device
CN105931540A (en) * 2016-04-27 2016-09-07 北京航空航天大学 FPGA-based on-line experiment system and on-line experiment method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于W5300的以太网和串口数据相互转换***设计;董武 等;《制造业自动化》;20130125;第139-142页 *

Also Published As

Publication number Publication date
CN107562500A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
EP3136698B1 (en) Connection status prompting method and device
US20180365004A1 (en) Method and device for calling software development kit
US9800666B2 (en) Method and client terminal for remote assistance
US20160352661A1 (en) Video communication method and apparatus
CN105472771B (en) Wireless connection method and device
US20170171321A1 (en) Methods and devices for managing accounts
CN107562500B (en) Debugging device, method and equipment
CN106375096B (en) short message verification method and device
US20170013456A1 (en) Method and device for testing a terminal
CN105117337A (en) Application debugging method, client and debugging platform
EP3322227B1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
CN105100074A (en) Data operation processing method, device and terminal equipment
CN110502444B (en) Testing method and testing device for image processing algorithm
CN109684112B (en) Program file operation method, device, terminal and storage medium
CN109344051B (en) Data processing method and device, electronic equipment and storage medium
CN108984417B (en) Software testing method, device, terminal and storage medium
CN106612149B (en) Radio frequency circuit testing method, device and system and mobile terminal
CN106909481B (en) Interface test method, interface test device and electronic equipment
CN106535147B (en) Communication signal processing method and device
CN109976872B (en) Data processing method and device, electronic equipment and storage medium
EP3128722A1 (en) File transmission method and apparatus, computer program and recording medium
CN108886461B (en) Data transmission method and device
CN107885464B (en) Data storage method, device and computer readable storage medium
CN113726905B (en) Data acquisition method, device and equipment based on home terminal equipment
CN113626322A (en) Interface test method, device, equipment and medium based on binary data communication

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