CN104536765A - Embedded device logging-in and debugging method and system - Google Patents

Embedded device logging-in and debugging method and system Download PDF

Info

Publication number
CN104536765A
CN104536765A CN201510012727.6A CN201510012727A CN104536765A CN 104536765 A CN104536765 A CN 104536765A CN 201510012727 A CN201510012727 A CN 201510012727A CN 104536765 A CN104536765 A CN 104536765A
Authority
CN
China
Prior art keywords
embedded device
program
file
header file
target program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510012727.6A
Other languages
Chinese (zh)
Other versions
CN104536765B (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.)
Suzhou Keda Technology Co Ltd
Original Assignee
Suzhou Keda Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Keda Technology Co Ltd filed Critical Suzhou Keda Technology Co Ltd
Priority to CN201510012727.6A priority Critical patent/CN104536765B/en
Publication of CN104536765A publication Critical patent/CN104536765A/en
Application granted granted Critical
Publication of CN104536765B publication Critical patent/CN104536765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides an embedded device logging-in and debugging method and system. The embedded device logging-in method comprises the steps that a remote login protocol client side source program is compiled into a target program supported by an operating system of an embedded device according to a compiling rule file; the target program is transplanted into the embedded device; the embedded device is connected with a computer provided with an installation system; according to an operating system of the computer, the target program in the embedded equipment is executed so that the embedded device logging-in can be achieved. In this way, embedded device logging-in can be conveniently achieved so as to debug the application program of the embedded device, the IP address of the logged-in embedded device is not needed, and logging-in of embedded devices under the wireless network, especially a 3G or 4G network is convenient.

Description

The method and system of login, debugging embedded equipment
Technical field
The present invention relates to embedded device technology field, be specifically related to a kind of login, debugging embedded device, method and system.
Background technology
Telnet is the english abbreviation of Telecommunication Network, mean Telnet, have a wide range of applications on internet, most network operating system has the application terminal of Telnet agreement substantially, especially, on the computing machine using Unix, (SuSE) Linux OS, it has become one of indispensable instrument.The more important thing is that Telnet agreement provides the important method transmitting data and control information on internet between heterogeneous network, allow program in a machine as access home server, access the resource in another main frame long-range.
At present, the embedded device of operation system, particularly for communication apparatus, in systems development process, there will be various problem unavoidably, therefore at the beginning of product design, just should consider follow-up positioning test means, can deal with problems with this, scope problem involved is reduced to minimum, ensures the reliability service of equipment, improves the service quality of product.Adjustment method relatively more conventional in prior art realizes with inner Telnet login mode, namely, in test process and when finding system problem in the actual use procedure of product, enter embedded device by Telnet mode and perform some instructions and obtain the Debugging message of system cloud gray model with investigation problem.
When application Telnet mode logs in, the following condition of demand fulfillment: 1, the CLIENT PROGRAM comprising Telnet agreement must be housed on the local computer; 2, IP address or the domain name of logged equipment must be known; 3, login banner and password must be known.But, for the communication embedded device based on 3G or 4G network (such as, Android terminal), because IP address is distributed at random by operator, so want to sign in embedded device by local computer based on Telnet, be just difficult to realize to debug the application program of embedded device.
Summary of the invention
For this reason, the technical problem to be solved in the present invention is that prior art is difficult to realize logging in embedded device, to debug the application program of embedded device.
For solving the problems of the technologies described above, the present invention by the following technical solutions:
Log in a method for embedded device, comprise the following steps: the target program according to compiling rule file by the program compilation of Telnet client source being the operating system support of embedded device; Described target program is transplanted in described embedded device; Described embedded device and the computing machine being provided with operating system are connected; Described target program in described embedded device is performed to log in described embedded device by the operating system of described computing machine.
Preferably, described compiling rule file comprises the first Android compiling rule file and the second Android compiling rule file, and wherein said first Android compiling rule file is for describing the program compilation of described Telnet client source the compiling rule of the target program being the support of described operating system; Described second Android compiling rule file is for describing the library file described source program being compiled as described target program; And the operating system of described embedded device is Android system.
Preferably, variable function header file and termination function database header file is comprised in the header file searching route of described first Android compiling rule file, described variable function header file is for the variable that describes described first header file that comprises of Android compiling rule file and define and/or function, and described termination function database header file is for describing Telnet (Telnet) protocol client function.
Preferably, the header file of the description Linux/Unix system function in described variable function header file is the header file describing C language system function; In described variable function header file for stopping compiling and the program showing error message is for defining the grand program controlling compiling flow process; Maim body in described termination function database header file also comprises C and modifies program, and described C modifies program and is used for when being compiled source program and being C Plus Plus program, and the name variable in the target program after generating compiling carries out C language modification.
Preferably, the described target program that the described operating system by described computing machine performs in described embedded device comprises the following steps with the step logging in described embedded device: the operating right obtaining the described target program in described embedded device; Start the described target program in described embedded device; The local loopback address inputting described embedded device is set up communication with described embedded device and is connected; Be can edit pattern by the setup of attribute of the described target program in described embedded device; The username and password inputting described embedded device logs in described embedded device.
The present invention also provides a kind of method of debugging embedded equipment, comprises the following steps: utilize the method for the login embedded device described in technique scheme to log in described embedded device; Application program in described embedded device is debugged.
The present invention also provides a kind of system logging in embedded device, comprising: collector, for the target program that the operating system that is embedded device by the program compilation of Telnet client source according to compiling rule file is supported; Transplant module, for being transplanted in described embedded device by institute's target program; Link block, for connecting described embedded device and the computing machine being provided with operating system; Login module, for performing described target program in described embedded device to log in described embedded device by the operating system of described computing machine.
Preferably, described compiling rule file comprises the first Android compiling rule file and the second Android compiling rule file, and wherein said first Android compiling rule file is for describing the program compilation of described Telnet client source the compiling rule of the target program being the support of described operating system; Described second Android compiling rule file is for describing the library file described source program being compiled as described target program; And the operating system of described embedded device is Android system.
Preferably, variable function header file and termination function database header file is comprised in the header file searching route of described first Android compiling rule file, described variable function header file is for the variable that describes described first header file that comprises of Android compiling rule file and define and/or function, and described termination function database header file is for describing Telnet (Telnet) protocol client function.
Preferably, the header file of the description Linux/Unix system function in described variable function header file is the header file describing C language system function; In described variable function header file for stopping compiling and the program showing error message is for defining the grand program controlling compiling flow process; Maim body in described termination function database header file also comprises C and modifies program, and described C modifies program and is used for when being compiled source program and being C Plus Plus program, and the name variable in the target program after generating compiling carries out C language modification.
Preferably, operating right acquiring unit, for obtaining the operating right of the described target program in described embedded device; Start-up routine unit, for starting the described target program in described embedded device; Connect unit, and the local loopback address for inputting described embedded device is set up communication with described embedded device and is connected; Setting can edit pattern unit, for being can edit pattern by the setup of attribute of the described target program in described embedded device; Embedded device logs in unit, and the username and password for inputting described embedded device logs in described embedded device.
The present invention also provides a kind of system of debugging embedded equipment, comprising: the system of the login embedded device described in technique scheme, for logging in described embedded device; Debugging module, for debugging the application program in described embedded device.
The beneficial effect of the method and system of login of the present invention, debugging embedded equipment comprises:
(1) method and system of login of the present invention, debugging embedded equipment, because the method for wherein said login embedded device comprises the following steps: the target program according to compiling rule file by the program compilation of Telnet client source being the operating system support of embedded device; Described target program is transplanted in described embedded device; Described embedded device and the computing machine being provided with operating system are connected; Described target program in described embedded device is performed to log in described embedded device by the operating system of described computing machine.Can realize easily logging in embedded device to debug the application program of embedded device by above step, do not need the IP address of the embedded device logged in, this is for wireless network, and the login of the embedded device under special 3G or 4G network is particularly convenient.
(2) method and system of login of the present invention, debugging embedded equipment, because the method for wherein said debugging embedded equipment comprises the following steps: the method according to login embedded device of the present invention logs in described embedded device; Application program in described embedded device is debugged.Can debug the application program of embedded device easily like this, the process logging in embedded device does not need the IP address of the embedded device logged in, this is for wireless network, the login of the embedded device under special 3G or 4G network is particularly convenient, improves the efficiency of the application program of debugging embedded equipment.
Accompanying drawing explanation
In order to make content of the present invention be more likely to be clearly understood, below according to a particular embodiment of the invention and by reference to the accompanying drawings, the present invention is further detailed explanation, wherein
Fig. 1 is a kind of process flow diagram logging in the method for embedded device of the embodiment of the present invention 1;
Fig. 2 is that the embodiment of the present invention 1 a kind of logs in the method for embedded device and perform described target program in described embedded device to log in the process flow diagram of described embedded device step by the operating system of described computing machine;
Fig. 3 is a kind of structural representation logging in the system of embedded device of the embodiment of the present invention 2;
Fig. 4 is a kind of structural representation logging in the login module of the system of embedded device of the embodiment of the present invention 2.
Embodiment
Embodiment 1
Fig. 1 shows a kind of method logging in embedded device of the embodiment of the present invention 1, comprises the following steps:
Step S11, the target program supported according to the compiling rule file operating system that is embedded device by the program compilation of Telnet client source.Described Telnet client source program can be Telnet (Telnet) the protocol client source program under linux system, also can be Telnet (Telnet) the protocol client source program under Unix system, such as, adopt Kazakhstan not netkit-telent-0.17.orig.tar.gz source code and the termcap-1.3.1.tar.gz source code under linux system.
Step S12, described target program to be transplanted in described embedded device.Such as, use adb instrument to be transplanted in described embedded device by discernible for described Android system binary file (i.e. described target program), described embedded device is the embedded device of application Android operation system.Particularly, under described target program can being transplanted to the data/local path of described embedded device.
Step S13, described embedded device and the computing machine being provided with operating system to be connected.
Step S14, perform described target program in described embedded device to log in described embedded device by the operating system of described computing machine.
Can realize easily logging in embedded device to debug the application program of embedded device by above step, due to described target program is transplanted in described embedded device, described target program in described embedded device is performed to log in described embedded device by the operating system of described computing machine, therefore the IP address of the embedded device logged in is not needed, this is for wireless network, and the login of the embedded device under special 3G or 4G network is particularly convenient.
Hereinafter, for the operating system of embedded device for Android system introduces embodiments of the invention in detail, it will be appreciated by those skilled in the art that the operating system of embedded device be the other systems such as such as IOS, Windows is also feasible.
Particularly, described compiling rule file comprises the first Android compiling rule file and the second Android compiling rule file.Described first Android compiling rule file is Android.mk, for describing the compiling rule described Telnet (Telnet) protocol client source program being compiled as the target program that Android system is supported, particularly, to the LOCAL_PATH (path, translation and compiling environment file place) needed for compiling, LOCAL_MODULE (title of the module after compiling generation), LOCAL_CPP_EXTENSION (needs the type of the file of compiling, namely the type of C and the C++ source file in the netkit-telnet-0.17/telnet file in Telnet (Telnet) protocol client source program is referred in the present embodiment), LOCAL_SRC_FILES (list of C and the C++ source file in the netkit-telnet-0.17/telnet file in Telnet (Telnet) protocol client source program), LOCAL_C_INCLUDES (searching route of header file) and LOCAL_CXXFLAGS (describing the rule compiled C language category code) is described.Described second Android compiling rule file is Application.mk, for describing the library file described source program being compiled as described target program, particularly, be that APP_ABI (instruction set that target device processor architecture is supported), the APP_STL (STLs of the compiling system needs of NDK) needed for compiling and APP_PLATFORM (targeted environment of compiling) is described.
Like this, according to the first Android compiling rule file Android.mk and the second Android compiling rule file Application.mk, described Telnet (Telnet) protocol client source program can be compiled as the target program of Android system support, particularly, can be provided with on Android NDK software PC at one, by the compilation tool in Android NDK software, described Telnet (Telnet) protocol client source program is compiled as the target program of Android system support, described target program is the discernible binary file of Android system.Because described compiling rule file comprises the first Android compiling rule file and the second Android compiling rule file, and the operating system of described embedded device is Android system, therefore compile efficiency is high, and then realizes more easily logging in embedded device to debug the application program of embedded device.
As a kind of preferred version, variable function header file externs.h and termination function database header file termcap.h is comprised in the header file searching route of described first Android compiling rule file, variable function header file externs.h is for the variable that describes described first header file that comprises of Android compiling rule file Android.mk and define and/or function, and termination function database header file termcap.h is for describing Telnet (Telnet) protocol client function.
Wherein, the header file unistd.h of the description Linux/Unix system function in described variable function header file externs.h is the header file stdlib.h describing C language system function.The header file unistd.h of the description Linux/Unix system function namely in variable function header file externs.h is replaced by the header file stdlib.h describing C language system function.
In described variable function header file externs.h for stopping compiling and the program #error showing error message is for defining the grand program #define_POSIX_VDISABLE 1 controlling compiling flow process.By in variable function header file externs.h for stopping compiling and the program #error showing error message replaces by for defining the grand program #define_POSIX_VDISABLE 1 controlling compiling flow process.
Maim body in described termination function database header file also comprises C and modifies program.Wherein, described C modifies program and is used for when being compiled source program and being C Plus Plus program, and the name variable in the target program after generating compiling carries out C language modification.
Header file unistd.h due to the description Linux/Unix system function in described variable function header file externs.h is the header file stdlib.h describing C language system function, in described variable function header file externs.h for stopping compiling and the program #error showing error message is for defining the grand program #define_POSIX_VDISABLE 1 controlling compiling flow process, maim body in described termination function database header file also comprises C and modifies program, like this in the process described Telnet (Telnet) protocol client source program being compiled as the target program that Android system is supported, do not report an error, improve and be compiled into power, and then realize more easily logging in embedded device to debug the application program of embedded device.
As a kind of preferred version, as shown in Figure 2, the described target program performed in described embedded device by the operating system of described computing machine can be comprised the following steps with the step S14 logging in described embedded device:
The operating right of step S141, the described target program obtained in described embedded device.Specifically comprise the following steps: first, in the operating system of described computing machine, open cmd command window; Secondly, the file system that adb shell-command enters described embedded device is performed; Again, root (root) authority that su order obtains described embedded device is performed; Finally, the operating right that chmod 777 telnet order obtains described client objectives program is performed.
Step S142, the described target program started in described embedded device.Specifically comprise the following steps: first, in the operating system of described computing machine, open cmd command window; Secondly, perform ./telnet order and start described target program.
Step S143, the local loopback address inputting described embedded device are set up communication with described embedded device and are connected.Specifically comprise the following steps: first, in the operating system of described computing machine, open cmd command window; Next, input open localhost 2500 or open 127.0.0.12500 sets up communication with embedded formula equipment and is connected.
Step S144, be can edit pattern by the setup of attribute of the described target program in described embedded device.Specifically comprise the following steps: first, in the operating system of described computing machine, open cmd command window; Secondly, ^ is performed] order the setup of attribute entering described client objectives program; Finally, performing modeedit order is can edit pattern by the setup of attribute of described client objectives program.
Step S145, the username and password inputting described embedded device log in described embedded device.
By step S141-step S145, described target program in described embedded device can be performed to log in described embedded device by the operating system of described computing machine expeditiously, and then realize more easily logging in embedded device to debug the application program of embedded device.
Embodiment 2:
The embodiment of the present invention 2 provides a kind of method utilizing the method for the login embedded device of the embodiment of the present invention 1 to carry out debugging embedded equipment, comprises the following steps:
Log in embedded device.Such as, the method for the login embedded device described in embodiment 1 can be adopted to log in described embedded device.
Application program in described embedded device is debugged.Comprise the following steps particularly: first, in the operating system of described computing machine, open cmd command window; Secondly, input debug command is debugged the application program in described embedded device.
Can be debugged the application program of embedded device easily by above step, the process logging in embedded device does not need the IP address of the embedded device logged in, this is for wireless network, the login of the embedded device under special 3G or 4G network is particularly convenient, improves the efficiency of the application program of debugging embedded equipment.
Embodiment 3
Fig. 3 shows a kind of system logging in embedded device of the embodiment of the present invention 3, comprises collector 31, transplants module 32, link block 33 and login module 34.
Collector 31 is corresponding with the step S11 in embodiment 1, for the target program that the operating system that is embedded device by the program compilation of Telnet client source according to compiling rule file is supported.
Transplant module 32 corresponding with the step S12 in embodiment 1, for being transplanted in described embedded device by institute's target program.
Link block 33 is corresponding with the step S13 in embodiment 1, for described embedded device and the computing machine being provided with operating system being connected.
Login module 34 is corresponding with the step S14 in embodiment 1, for being performed described target program in described embedded device by the operating system of described computing machine to log in described embedded device.
Can realize easily like this logging in embedded device to debug the application program of embedded device, due to described target program is transplanted in described embedded device, described target program in described embedded device is performed to log in described embedded device by the operating system of described computing machine, therefore the IP address of the embedded device logged in is not needed, this is for wireless network, and the login of the embedded device under special 3G or 4G network is particularly convenient.
Particularly, for the operating system of embedded device for Android system introduces embodiments of the invention in detail, but the other systems such as such as IOS, Windows are also feasible.Identical with embodiment 1, described compiling rule file comprises the first Android compiling rule file and the second Android compiling rule file.Wherein, described first Android compiling rule file is Android.mk, for describing the compiling rule described Telnet (Telnet) protocol client source program being compiled as the target program that Android system is supported, particularly, to the LOCAL_PATH (path, translation and compiling environment file place) needed for compiling, LOCAL_MODULE (title of the module after compiling generation), LOCAL_CPP_EXTENSION (needs the type of the file of compiling, namely the type of C and the C++ source file in the netkit-telnet-0.17/telnet file in Telnet (Telnet) protocol client source program is referred in the present embodiment), LOCAL_SRC_FILES (list of C and the C++ source file in the netkit-telnet-0.17/telnet file in Telnet (Telnet) protocol client source program), LOCAL_C_INCLUDES (searching route of header file) and LOCAL_CXXFLAGS (describing the rule compiled C language category code) is described.Described second Android compiling rule file is Application.mk, for describing the library file described source program being compiled as described target program, particularly, be that APP_ABI (instruction set that target device processor architecture is supported), the APP_STL (STLs of the compiling system needs of NDK) needed for compiling and APP_PLATFORM (targeted environment of compiling) is described.
Like this, according to the first Android compiling rule file Android.mk and the second Android compiling rule file Application.mk, described Telnet (Telnet) protocol client source program can be compiled as the target program of Android system support, particularly, can be provided with on Android NDK software PC at one, by the compilation tool in Android NDK software, described Telnet (Telnet) protocol client source program is compiled as the target program of Android system support, described target program is the discernible binary file of Android system.Because described compiling rule file comprises the first Android compiling rule file and the second Android compiling rule file, and the operating system of described embedded device is Android system, therefore compile efficiency is high, and then realizes more easily logging in embedded device to debug the application program of embedded device.
As a kind of preferred version, variable function header file externs.h and termination function database header file termcap.h is comprised in the header file searching route of described first Android compiling rule file, variable function header file externs.h is for the variable that describes described first header file that comprises of Android compiling rule file Android.mk and define and/or function, and termination function database header file termcap.h is for describing Telnet (Telnet) protocol client function.
Wherein, the header file unistd.h of the description Linux/Unix system function in described variable function header file externs.h is the header file stdlib.h describing C language system function.The header file unistd.h of the description Linux/Unix system function namely in variable function header file externs.h is replaced by the header file stdlib.h describing C language system function.
In described variable function header file externs.h for stopping compiling and the program #error showing error message is for defining the grand program #define_POSIX_VDISABLE 1 controlling compiling flow process.By in variable function header file externs.h for stopping compiling and the program #error showing error message replaces by for defining the grand program #define_POSIX_VDISABLE 1 controlling compiling flow process.
Maim body in described termination function database header file also comprises C and modifies program.Wherein, described C modifies program and is used for when being compiled source program and being C Plus Plus program, and the name variable in the target program after generating compiling carries out C language modification.
Header file unistd.h due to the description Linux/Unix system function in described variable function header file externs.h is the header file stdlib.h describing C language system function, in described variable function header file externs.h for stopping compiling and the program #error showing error message is for defining the grand program #define_POSIX_VDISABLE 1 controlling compiling flow process, maim body in described termination function database header file also comprises C and modifies program, like this in the process described Telnet (Telnet) protocol client source program being compiled as the target program that Android system is supported, do not report an error, improve and be compiled into power, and then realize more easily logging in embedded device to debug the application program of embedded device.
As a kind of preferred version, as shown in Figure 4, login module 34 specifically comprises operating right acquiring unit 341, start-up routine unit 342, the unit 343 that connects, arranges and edit pattern unit 344 and embedded device can log in unit 345.
Operating right acquiring unit 341 is corresponding with the step S141 in embodiment 1, for obtaining the operating right of the described target program in described embedded device.Particularly, shown operating right acquiring unit comprises: open command window subelement, for opening cmd command window in the operating system of described computing machine; Entering file system subelement, entering the file system of described embedded device for performing adb shell-command; Root authority obtains subelement, obtains root (root) authority of described embedded device for performing su order; Operating right obtains subelement, obtains the operating right of described client objectives program for performing chmod 777 telnet order.
Start-up routine unit 342 is corresponding with the step S142 in embodiment 1, for starting the described target program in described embedded device.Particularly, described start-up routine unit comprises: described in open command window subelement and start the startup target program subelement of described target program for performing ./telnet order.
The unit 343 that connects is corresponding with the step S143 in embodiment 1, and the local loopback address for inputting described embedded device is set up communication with described embedded device and is connected.Particularly, command window subelement is opened described in the unit that connects described in comprises and for inputting open localhost 2500 or open 127.0.0.12500 and embedded formula equipment sets up communication establishment of connection connexon unit.
Setting can edit pattern unit 344 corresponding with the step S144 in embodiment 1, for being can edit pattern by the setup of attribute of the described target program in described embedded device.Described setting can edit pattern unit comprise described in open command window subelement, and enter setup of attribute subelement, for performing ^] order enters the setup of attribute of described client objectives program; Setting can edit pattern subelement, for performing mode edit order by the setup of attribute of described client objectives program for can edit pattern.
It is corresponding with the step S145 in embodiment 1 that embedded device logs in unit 345, and the username and password for inputting described embedded device logs in described embedded device.
Described target program in described embedded device can be performed to log in described embedded device by the operating system of described computing machine expeditiously like this, and then realize more easily logging in embedded device to debug the application program of embedded device.
Embodiment 4:
The embodiment of the present invention 4 provides a kind of system utilizing the debugging embedded equipment of the system of the login embedded device of the embodiment of the present invention 4, comprising: the system and the debugging module that log in embedded device.
The system of described login embedded device can be the system of the login embedded device described in embodiment 3, for logging in described embedded device.
Described debugging module is used for debugging the application program in described embedded device.Particularly, described debugging module comprises: open command window unit, for opening cmd command window in the operating system of described computing machine; Debugging unit, debugs the application program in described embedded device for inputting debug command.
Can debug the application program of embedded device easily like this, the process logging in embedded device does not need the IP address of the embedded device logged in, this is for wireless network, the login of the embedded device under special 3G or 4G network is particularly convenient, improves the efficiency of the application program of debugging embedded equipment.
Obviously, above-described embodiment is only for clearly example being described, and the restriction not to embodiment.For those of ordinary skill in the field, can also make other changes in different forms on the basis of the above description.Here exhaustive without the need to also giving all embodiments.And thus the apparent change of extending out or variation be still among the protection domain of the invention.

Claims (12)

1. log in a method for embedded device, it is characterized in that, comprise the following steps:
Be the target program of the operating system support of embedded device by the program compilation of Telnet client source according to compiling rule file;
Described target program is transplanted in described embedded device;
Described embedded device and the computing machine being provided with operating system are connected;
Described target program in described embedded device is performed to log in described embedded device by the operating system of described computing machine.
2. the method for login embedded device according to claim 1, it is characterized in that, described compiling rule file comprises the first Android compiling rule file and the second Android compiling rule file, and wherein said first Android compiling rule file is for describing the program compilation of described Telnet client source the compiling rule of the target program being the support of described operating system; Described second Android compiling rule file is for describing the library file described source program being compiled as described target program; And the operating system of described embedded device is Android system.
3. the method for login embedded device according to claim 2, it is characterized in that: in the header file searching route of described first Android compiling rule file, comprise variable function header file and termination function database header file, described variable function header file is for the variable that describes described first header file that comprises of Android compiling rule file and define and/or function, and described termination function database header file is for describing Telnet client functionality.
4. the method for login embedded device according to claim 3, is characterized in that:
The header file of the description Linux/Unix system function in described variable function header file is the header file describing C language system function;
In described variable function header file for stopping compiling and the program showing error message is for defining the grand program controlling compiling flow process;
Maim body in described termination function database header file also comprises C and modifies program, and described C modifies program and is used for when being compiled source program and being C Plus Plus program, and the name variable in the target program after generating compiling carries out C language modification.
5. the method for login embedded device according to any one of claim 1 to 4, it is characterized in that, the described target program that the described operating system by described computing machine performs in described embedded device comprises the following steps with the step logging in described embedded device:
Obtain the operating right of the described target program in described embedded device;
Start the described target program in described embedded device;
The local loopback address inputting described embedded device is set up communication with described embedded device and is connected;
Be can edit pattern by the setup of attribute of the described target program in described embedded device;
The username and password inputting described embedded device logs in described embedded device.
6. a method for debugging embedded equipment, is characterized in that, comprises the following steps:
The method of the login embedded device described in any one of claim 1-5 is utilized to log in described embedded device;
Application program in described embedded device is debugged.
7. log in a system for embedded device, it is characterized in that, comprising:
Collector, for the target program that the operating system that is embedded device by the program compilation of Telnet client source according to compiling rule file is supported;
Transplant module, for being transplanted in described embedded device by institute's target program;
Link block, for connecting described embedded device and the computing machine being provided with operating system;
Login module, for performing described target program in described embedded device to log in described embedded device by the operating system of described computing machine.
8. the system of login embedded device according to claim 7, it is characterized in that: described compiling rule file comprises the first Android compiling rule file and the second Android compiling rule file, wherein said first Android compiling rule file is for describing the program compilation of described Telnet client source the compiling rule of the target program being the support of described operating system; Described second Android compiling rule file is for describing the library file described source program being compiled as described target program; And the operating system of described embedded device is Android system.
9. the system of login embedded device according to claim 8, it is characterized in that: in the header file searching route of described first Android compiling rule file, comprise variable function header file and termination function database header file, described variable function header file is for the variable that describes described first header file that comprises of Android compiling rule file and define and/or function, and described termination function database header file is for describing Telnet client functionality.
10. the system of login embedded device according to claim 9, is characterized in that:
The header file of the description Linux/Unix system function in described variable function header file is the header file describing C language system function;
In described variable function header file for stopping compiling and the program showing error message is for defining the grand program controlling compiling flow process;
Maim body in described termination function database header file also comprises C and modifies program, and described C modifies program and is used for when being compiled source program and being C Plus Plus program, and the name variable in the target program after generating compiling carries out C language modification.
The system of 11. login embedded devices according to any one of claim 7 to 10, it is characterized in that, described login module comprises:
Operating right acquiring unit, for obtaining the operating right of the described target program in described embedded device;
Start-up routine unit, for starting the described target program in described embedded device;
Connect unit, and the local loopback address for inputting described embedded device is set up communication with described embedded device and is connected;
Setting can edit pattern unit, for being can edit pattern by the setup of attribute of the described target program in described embedded device;
Embedded device logs in unit, and the username and password for inputting described embedded device logs in described embedded device.
The system of 12. 1 kinds of debugging embedded equipment, is characterized in that, comprising:
The system of the login embedded device described in any one of claim 7-11, for logging in described embedded device;
Debugging module, for debugging the application program in described embedded device.
CN201510012727.6A 2015-01-09 2015-01-09 Login, the method and system of debugging embedded equipment Active CN104536765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510012727.6A CN104536765B (en) 2015-01-09 2015-01-09 Login, the method and system of debugging embedded equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510012727.6A CN104536765B (en) 2015-01-09 2015-01-09 Login, the method and system of debugging embedded equipment

Publications (2)

Publication Number Publication Date
CN104536765A true CN104536765A (en) 2015-04-22
CN104536765B CN104536765B (en) 2017-09-12

Family

ID=52852297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510012727.6A Active CN104536765B (en) 2015-01-09 2015-01-09 Login, the method and system of debugging embedded equipment

Country Status (1)

Country Link
CN (1) CN104536765B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893238A (en) * 2015-08-04 2016-08-24 乐视致新电子科技(天津)有限公司 Code debugging method and device
CN108121646A (en) * 2017-12-26 2018-06-05 东软集团股份有限公司 Journal file acquisition methods, device, computer and storage medium
CN108153668A (en) * 2017-11-20 2018-06-12 珠海格力节能环保制冷技术研究中心有限公司 The adjustment method of application, apparatus and system
CN111930359A (en) * 2020-06-30 2020-11-13 绵阳慧视光电技术有限责任公司 System and method for algorithm development on heterogeneous embedded system
CN112231211A (en) * 2020-10-14 2021-01-15 天津津航计算技术研究所 Method for solving Qt application debugging under embedded VxWorks operating system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045397A (en) * 2010-12-20 2011-05-04 福建星网视易信息系统有限公司 Method and equipment for logining embedded terminals by using Telnet to debug embedded terminals
CN102609353A (en) * 2012-01-17 2012-07-25 浪潮(北京)电子信息产业有限公司 Method, device and system for managing program debugging

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045397A (en) * 2010-12-20 2011-05-04 福建星网视易信息系统有限公司 Method and equipment for logining embedded terminals by using Telnet to debug embedded terminals
CN102609353A (en) * 2012-01-17 2012-07-25 浪潮(北京)电子信息产业有限公司 Method, device and system for managing program debugging

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893238A (en) * 2015-08-04 2016-08-24 乐视致新电子科技(天津)有限公司 Code debugging method and device
CN108153668A (en) * 2017-11-20 2018-06-12 珠海格力节能环保制冷技术研究中心有限公司 The adjustment method of application, apparatus and system
CN108121646A (en) * 2017-12-26 2018-06-05 东软集团股份有限公司 Journal file acquisition methods, device, computer and storage medium
CN111930359A (en) * 2020-06-30 2020-11-13 绵阳慧视光电技术有限责任公司 System and method for algorithm development on heterogeneous embedded system
CN111930359B (en) * 2020-06-30 2023-12-22 绵阳慧视光电技术有限责任公司 System and method for developing algorithm on heterogeneous embedded system
CN112231211A (en) * 2020-10-14 2021-01-15 天津津航计算技术研究所 Method for solving Qt application debugging under embedded VxWorks operating system
CN112231211B (en) * 2020-10-14 2024-01-26 天津津航计算技术研究所 Method for solving Qt application debugging under embedded VxWorks operating system

Also Published As

Publication number Publication date
CN104536765B (en) 2017-09-12

Similar Documents

Publication Publication Date Title
CN104536765A (en) Embedded device logging-in and debugging method and system
CN108647028B (en) Application information processing method and device
US9348771B1 (en) Cloud-based instrument driver system
CN110442524B (en) Method and device for testing web service interface with authentication authorization
US20180157479A1 (en) Cloud service framework for toolkit deployment
CN105159833A (en) Automatic testing device and method
CN104410542A (en) Method and device for simulation test
CN113162823B (en) APP test simulation system and Internet of things simulation test method
CN105072398B (en) A kind of device updating method and device
CN113110864B (en) Application program updating method and device and storage medium
CN104536890A (en) Testing system, method and device
CN105450463A (en) Hardware equipment debugging method, hardware equipment debugging device and hardware equipment debugging system
CN101982815A (en) Software test system and method
CN112948271A (en) Code testing method, device, equipment and storage medium
CN112130871A (en) Method and device for remotely deploying middleware, computer equipment and storage medium
CN106339273A (en) Application program restoration method, terminal and server
CN113992514B (en) Method for rapidly realizing data acquisition instrument protocol by zero code and data acquisition instrument terminal
CN104536900A (en) Method and device for controlling mobile terminal
US20160203035A1 (en) Analyzing OpenManage Integration for Troubleshooting Log to Determine Root Cause
CN107113199B (en) Analysis device for analyzing and processing communication sequences
CN113641582A (en) Mixed-mode mobile application debugging method and system
CN113127009A (en) Automatic deployment method and device for big data management platform
CN114020400A (en) NoVNC-based remote virtual simulation method, system, device and medium
CN104917633A (en) Method and device simulating FOTA upgrade
CN112231209A (en) Parameter acquisition method and device, computer equipment and storage medium

Legal Events

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