CN104503907B - A kind of application program remote adjustment method and system based on Linux system - Google Patents

A kind of application program remote adjustment method and system based on Linux system Download PDF

Info

Publication number
CN104503907B
CN104503907B CN201410779390.7A CN201410779390A CN104503907B CN 104503907 B CN104503907 B CN 104503907B CN 201410779390 A CN201410779390 A CN 201410779390A CN 104503907 B CN104503907 B CN 104503907B
Authority
CN
China
Prior art keywords
data
tune
buffer area
circle queue
data buffer
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
CN201410779390.7A
Other languages
Chinese (zh)
Other versions
CN104503907A (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.)
Shenzhen Sinexcel Electric Co Ltd
Original Assignee
Shenzhen Sinexcel Electric 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 Shenzhen Sinexcel Electric Co Ltd filed Critical Shenzhen Sinexcel Electric Co Ltd
Priority to CN201410779390.7A priority Critical patent/CN104503907B/en
Publication of CN104503907A publication Critical patent/CN104503907A/en
Application granted granted Critical
Publication of CN104503907B publication Critical patent/CN104503907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of application program remote debugging system based on Linux system.The system includes local commissioning device and distal displayed tune-up data terminal device, the commissioning device operation debugging server program and debugged application program.The debugging server program creates shared circle queue data buffer zone, and be supplied to other applications to access, manage the various function interfaces of shared circle queue data buffer zone and open TCP/IP service functions when commissioning device starts.The application program writes circle queue data buffer area by writing the tune-up data that interface unit is generated, and the write data bits confidence breath in spatial cache administrative unit is updated.The IP address and port numbers that the long-range display tune-up data terminal device is provided according to debugging server program are attached with commissioning device, equipment running status, fault message and the tune-up data passed back by commissioning device are received, to reach the target of remote diagnosis commissioning device.

Description

A kind of application program remote adjustment method and system based on Linux system
Technical field
The present invention relates to program debugging field, more specifically to a kind of application program remote based on Linux system Adjustment method and system.
Background technology
As the use of embedded Linux operating system is more and more extensive, software developer is operation Linux system The application program of embedded device exploitation is also more and more.And program debugging is essential link in program development process. At present, the conventional adjustment method of the application program based on Linux system have debugged by gdb, serial port terminal printing Debugging message, Working station indicator etc..These traditional debugging methods all can only scene locally debugging, and typically also need to extra debugging Instrument support (such as serial ports instrument, emulator), especially when program occur it is irregular abnormal when, these conventional methods be difficult to compared with Reason is oriented soon so that the debugging efficiency of the application program based on linux operating systems is extremely inefficient.
The content of the invention
The technical problem to be solved in the present invention is that the drawbacks described above for being directed to prior art is based on linux systems there is provided one kind The application program remote adjustment method and system of system.
The technical solution adopted for the present invention to solve the technical problems is:A kind of application journey based on Linux system of construction Sequence remote debugging method, it is characterised in that comprise the following steps;
S1, one or more application programs are debugged and are generated with one or more groups of tune-up datas, by this group or many The shared circle queue data buffer area of group tune-up data write-in, and the write data bits confidence in spatial cache administrative unit is ceased into Row updates;
S2, detect whether that distal displayed tune-up data terminal device is connected, and detected distal displayed tune-up data When terminal device is connected, spatial cache administrative unit is scanned and scanned to for shared circle queue data buffer area During data writing events, next step S3 is performed;
S3, the tune-up data that will write shared circle queue data buffer area by digital independent interface unit are read, and The tune-up data of reading is sent to distal displayed tune-up data terminal device.
In the above-mentioned application program remote adjustment method based on Linux system of the present invention, before the step S1 also Comprise the following steps:
S0, the shared circle queue data buffer storage for being used to keep in application program tune-up data for creating a designated memory space Area.
, will described in the step S1 in the above-mentioned application program remote adjustment method based on Linux system of the present invention The step of circle queue data buffer area is shared at least one set of tune-up data write-in includes:Connected by buffer area connecting interface unit Shared circle queue data buffer area is connected to, at least one set of tune-up data of generation is tagged as needed, and pass through data Write interface unit and tagged tune-up data is write shared circle queue data buffer area.
In the above-mentioned application program remote adjustment method based on Linux system of the present invention, pin described in the step S2 The data writing events for sharing circle queue data buffer area are included:
S21, Read-Write Locks are added to shared circle queue data buffer area;
S22, one of which tune-up data write into shared circle queue data buffer area;
S23, the spatial cache that this group of tune-up data is taken and the remaining storage of shared circle queue data buffer area are empty Between be compared;The remaining storage that the spatial cache that such as this group tune-up data takes is less than shared circle queue data buffer area is empty Between, then this group of tune-up data is write direct into annular data storage;The spatial cache that such as this group tune-up data takes is between altogether Enjoy between the residual memory space of circle queue data buffer area and the memory space of shared circle queue data buffer area, then first Part tune-up data is removed from shared circle queue data buffer area, is not less than this for shared circle queue data buffer area release The residual memory space for the spatial cache that group tune-up data takes, then this group of shared circle queue data of tune-up data write-in are delayed Deposit area;The spatial cache that such as this group tune-up data takes is more than the memory space of shared circle queue data buffer area, then first from The memory space part tune-up data equal with shared circle queue data buffer area memory space is intercepted in this group of tune-up data, The part tune-up data is write into shared circle queue data buffer area again;
S24, the write data bits of the shared circle queue data buffer area of modification are put, according to amended shared circle queue number The data in spatial cache management interface unit are updated according to the write data bits confidence breath of buffer area;
S25, the Read-Write Locks for removing shared circle queue data buffer area.
In the above-mentioned application program remote adjustment method based on Linux system of the present invention, after the step S25 also Comprise the following steps:
S26, pass through buffer area de-interfaced unit disconnect and Circular buffer area between connection.
In the above-mentioned application program remote adjustment method based on Linux system of the present invention, after the step S26 also Comprise the following steps:
S27, spatial cache management interface unit is scanned, judges whether that spatial cache management interface unit is arrived in scanning Write data bits confidence breath renewal.
In the above-mentioned application program remote adjustment method based on Linux system of the present invention, the step S2 with it is described Also comprise the following steps between step S3:
S23, judge whether the communication connection between commissioning device and distal displayed tune-up data terminal device is normal;As adjusted The communication connection tried between equipment and distal displayed tune-up data terminal device is normal, then directly performs next step S3;As adjusted Try equipment and interrupt communication connection with distal displayed tune-up data terminal device, then monitor whether the Service-Port bound in it has The communication connection request of distal displayed tune-up data terminal device, and recover logical in itself and distal displayed tune-up data terminal device During letter connection, next step S3 is performed.
In the above-mentioned application program remote adjustment method based on Linux system of the present invention, lead to described in the step S3 Crossing the step of digital independent interface unit reads one group of tune-up data of new write-in shared circle queue data buffer area includes:
S31, Read-Write Locks are added to shared circle queue data buffer area;
S32, by digital independent interface unit shared circle queue data buffer area is conducted interviews and from shared annular Queuing data buffer area reads this group of tune-up data;
S33, the read data bit confidence breath of the shared circle queue data buffer area of modification, the read data bit confidence of modification is ceased It is stored in spatial cache management interface unit;
S34, the Read-Write Locks for removing shared circle queue data buffer area.
In the above-mentioned application program remote adjustment method based on Linux system of the present invention, after the step S34 also Comprise the following steps:
S35, this group of tune-up data progress packing processing by reading, and the tune-up data of packing is sent to distal displayed Tune-up data terminal device.
The present invention also constructs a kind of application program remote debugging system based on Linux system, including local debugging is set Standby and distal displayed tune-up data terminal device, the commissioning device runs one or more debugged application programs, institute State debugged application program and constitute application program collection, the commissioning device also includes shared circle queue data buffer area and tune Try service module;
In described commissioning device one end, the application program collection needs to export corresponding tune-up data according to debugging, by this Tune-up data writes the circle queue data buffer area, and manages single to the spatial cache of the circle queue data buffer area Write data bits confidence breath in member is updated;
The debugging services module is used to the spatial cache administrative unit is scanned and scanned to for described common When enjoying the data writing events of circle queue data buffer area, the debugging number is read from the shared circle queue data buffer area The distal displayed tune-up data terminal device is sent to according to and by the tune-up data;
In described distal displayed tune-up data terminal device one end, the distal displayed tune-up data terminal device passes through TCP/IP is connected to the debugging services module, receives the tune-up data sent by the debugging services module, and this is debugged Data are printed out.
Implement application program remote adjustment method and system of the invention based on Linux system, can reach following beneficial effect Really:
1st, " the shared annular formation buffering area " that commissioning device of the present invention is created connects there is provided the access of corresponding system level Mouthful, and in the interface to " shared annular formation buffering area " by adding unblock to carry out the management to application routine access interface, can The debugging efforts of multiple application programs are supported simultaneously, are greatly improved maximum based on Linux system application program tune-up data The ability of output, maximum debugging distance and debugging efficiency.
2nd, commissioning device can manage single by debugging services module to the spatial cache for sharing circle queue data buffer area Member carries out real time scan to judge the reading and writing data situation of shared circle queue data buffer area, commissioning device once judging there is tune When trying the shared circle queue data buffer area of data write-in, the tune-up data of write-in is read immediately and will by Ethernet interface Tune-up data is sent to distal displayed tune-up data terminal device, realizes the remote debugging of application program.
3rd, commissioning device shared circle queue data buffer area tune-up data read-write link forbid other programs to its Operation is accessed, and at the end of the tune-up data read-write link of shared circle queue data buffer area, decontrols other programs to it Access, it is ensured that the uniformity of the reading and writing data of shared circle queue data buffer area.
4th, because the shared circle queue data buffer area of the present invention can be to write-in in the case of commissioning device not power down Application program tune-up data carry out interim storage, therefore the present invention based on Linux system application program remote debugging system tool Standby offline debugging function and history Debugging message writing function.
Brief description of the drawings
The knot for the application program remote debugging system based on Linux system that Fig. 1 provides for presently preferred embodiments of the present invention Structure block diagram;
Fig. 2 is the structural frames of the commissioning device of the application program remote debugging system based on Linux system shown in Fig. 1 Figure;
Fig. 3 is that the shared circle queue data of the application program remote debugging system based on Linux system shown in Fig. 1 are delayed Deposit the structured flowchart in area;
The stream for the application program remote adjustment method based on Linux system that Fig. 4 provides for presently preferred embodiments of the present invention Cheng Tu;
Fig. 5 is the application program tune-up data in the application program remote adjustment method based on Linux system shown in Fig. 4 Write the flow chart of link;
Fig. 6 is the application program tune-up data in the application program remote adjustment method based on Linux system shown in Fig. 4 Read the flow chart of link.
Embodiment
In order to solve complex operation in the existing application program debugging technique based on Linux system, to debugging hardware toolses It is required that it is high, can only locally debug online, and the defect of the linux program debugging inefficiencies to random unexpected abnormality, the present invention Innovative point be:
1st, the instrument of debugging demand of the present invention is simple, operating personnel's professional technique requires low.This adjustment method is also suitable for Field adjustable, when commissioning device can not access the internet of wide area, as long as one computer of debugging acid and a netting twine The collection of tune-up data is completed, linux application programs debugging complexity is greatly reduced.
2nd, " shared annular formation data buffer zone " that commissioning device of the present invention is created there is provided the access of corresponding system level Interface, and in the interface to " shared annular formation data buffer zone " by adding unblock to carry out the pipe to application routine access interface Reason, the debugging efforts of multiple application programs can be supported simultaneously, are greatly improved based on Linux system application program tune-up data The ability of maximum output, maximum debugging distance and debugging efficiency.
3rd, debugging services module 101 carries out reality to the spatial cache administrative unit 1036 of circle queue data buffer area 103 When scan to judge the reading and writing data situation of circle queue data buffer area 103, debugging services program once judging there is debugging number During according to write-in circle queue data buffer area 103, the tune-up data of write-in is read immediately and the terminal device of distal end is sent to 200, because being transmitted using Ethernet ICP/IP protocol, thus it is big, fast compared to having transmitted data amount for AccessPort equipment Rate is high, many advantages, such as realize the remote debugging of application program.
4th, debugging services module 101 is forbidden other in shared circle queue data buffer area 103 tune-up data read-write link Program is operated to its access, and at the end of the tune-up data read-write link of shared circle queue data buffer area 103, is decontroled Other programs are accessed it, that is, have used the exclusive reference mechanism to circle queue buffer area, to ensure circle queue buffer area The uniformity of reading and writing data.
5th, because the shared circle queue data buffer area 103 of the present invention can be to writing in the case of commissioning device not power down The application program tune-up data progress interim storage entered, therefore the application program remote debugging system of the invention based on Linux system Possess offline debugging function and history Debugging message writing function.
Due to present invention employs introducing multitasking mechanism in commissioning device, and create in commissioning device one The design of the individual circle queue data buffer area 103 with high data access efficiency, so solving in the prior art because being based on It is poor, poor to debugging acid requirement height, program operation stability to there is interface compatibility in the application development instrument of Linux system Cause the technical problem of linux program debugging inefficiencies, realize the application program based on Linux system remote debugging, Greatly improve application program debugging efficiency and application program tune-up data read-write speed and realize to debugging device memory The purpose made full use of of resource.
There is provided the access of corresponding system level for " the shared annular formation buffering area " that the debugging services program of the present invention is created Interface, and in the interface to " shared annular formation buffering area " by adding unblock to carry out the management to application routine access interface, The debugging efforts of multiple application programs can be supported simultaneously, and the debugging services program can create the annular with high data access efficiency Queuing data buffer area, the debugging terminal is set up with long-range terminal device by Ethernet and communicated, and greatly improves and is based on The ability of Linux system application program tune-up data output, debugging efficiency and realize remote debugging technology.
Below in conjunction with drawings and Examples, the invention will be further described:
As shown in figure 1, the application program remote debugging system of the invention based on Linux system includes being located locally and running The commissioning device 100 of Linux system and with the commissioning device 100 by Transmission Control Protocol set up communicate to connect, positioned at distal end Distal displayed tune-up data terminal device 200.
As shown in Fig. 2 the commissioning device 100 include shared circle queue data buffer area 103, application program collection 102 with And debugging services module 101.The application program collection 102 needs to debug at least a application program according to debugging, generates At least one set of tune-up data, and interface unit 1033 is write by respectively by the data of the shared circle queue data buffer area 103 Group tune-up data is respectively written into the shared circle queue data buffer area 103, and to the shared circle queue data buffer area 103 Spatial cache administrative unit 1036 in write data bits confidence breath be updated.
The debugging services module 101 is additionally operable to manage single to the spatial cache of the shared circle queue data buffer area 103 Member 1036 carries out real time scan and the tune-up data writing events for being directed to the shared circle queue data buffer area 103 are arrived in scanning When, the trigger signal that tune-up data is read from shared circle queue data buffer area 103 is received, passes through the shared circle queue number One group of tune of the shared circle queue data buffer area 103 will be newly write according to the digital independent interface unit 1034 of buffer area 103 Data read-out is tried, and this group of tune-up data of reading is sent to the distal displayed tune-up data terminal device 200.
As shown in figure 3, the shared circle queue data buffer area 103 further comprises caching 1035, caching connecting interface Unit 1031, caching de-interfaced unit 1033, data write-in interface unit 1033, digital independent interface unit 1034 and caching Space management unit 1036.Application program collection 102 is connected to caching connecting interface unit 1031, caching de-interfaced unit 1033 And data write interface unit 1033, debugging services module 101 is connected to digital independent interface unit 1034 and spatial cache pipe Manage unit 1036.
Below by by the present invention second better embodiment exemplified by, to application journey of the present invention based on Linux system The flow of sequence remote debugging method is illustrated:
As shown in figure 4, in step S101, upper electric power-on operation is performed to commissioning device.
In step s 102, debugging services module 101 creates being debugged for keeping in application program for a designated memory space The shared circle queue data buffer area 103 of data.
In step s 103, application program collection 102 performs the debugging efforts of at least a application program, and generation is at least one set of Tune-up data, and each group tune-up data is tagged respectively as desired by the title of each money application program.
In step S104, tagged one group of tune-up data is write and shares circle queue data buffer area 103, and When this group of tune-up data write operation is finished, the write data bits confidence breath of the shared circle queue data buffer area 103 of modification, Number to spatial cache administrative unit 1036 is ceased according to the write data bits confidence of the shared circle queue data buffer area 103 of modification According to being updated.
In step S105, judge between debugging services module 101 and distal displayed tune-up data terminal device 200 whether Interrupt communication connection.Such as judge that debugging services module 101 does not interrupt communication link with distal displayed tune-up data terminal device 200 Connect, then perform step S106.Such as judge that debugging services module 101 and distal displayed tune-up data terminal device 200 are open close in Letter connection, then perform step S108.
In step s 106, debugging services module 101 carries out real time scan to spatial cache administrative unit 1036, and judgement is The no data writing events generated for shared circle queue data buffer area 103.As pin is arrived in the scanning of debugging services module 101 Data writing events to sharing circle queue data buffer area 103, then receive by system generate from shared circle queue number The trigger signal of tune-up data is read according to buffer area 103.
In step s 107, debugging services module 101 passes through 1034 pairs of shared circle queue numbers of digital independent interface unit Conducted interviews according to buffer area 103, and read the one group of application program debugging for being newly written to shared circle queue data buffer area 103 Data.
In step S108, periodically sent to commissioning device 100 by distal displayed tune-up data terminal device 200 Communication connection request.When distal displayed tune-up data terminal device 200 and commissioning device 100 re-establish communication connection, adjust Examination service module 101 is conducted interviews by 1034 pairs of shared circle queue data buffer areas 103 of digital independent interface unit, and will One group of tune-up data of the new shared circle queue data buffer area 103 of write-in is read.
Step S107 or step S108 continue executing with step S109 after being finished.
In step S109,101 pairs of this group of tune-up datas of debugging services module carry out packing processing, and by the tune after packing Examination data, which are sent on distal displayed tune-up data terminal device 200, to be shown.
Because local commissioning device 100 of the invention creates the shared circle queue data buffer area for having high data access efficiency 103 and multitasking mechanism is employed, therefore in the present invention, program debugging personnel can debug number by the distal displayed of distal end Carry out operating in multiple application program debugging efforts of commissioning device 100 simultaneously according to terminal device 200, and real-time reception is by this Multigroup application program tune-up data that ground commissioning device 100 is passed back.The present invention not only realizes the remote debugging of application program, is Program debugging personnel provide the work facility handled official business in strange land, also drastically increase the debugging efficiency of application program.
Below by by taking the 3rd better embodiment of the present invention as an example, circle queue data buffer area is shared to the present invention 103 tune-up data write-in link is illustrated:
As shown in figure 5, in step S1041, the program process by cache connecting interface unit 1031 be connected to it is shared Circle queue data buffer area 103.
In step S1042, to shared circle queue data buffer area 103 plus Read-Write Locks, to avoid on commissioning device 100 Other application program synchronization to share circle queue data buffer area 103 data access caused by software rush It is prominent.
In step S1043, judge whether the spatial cache that this group of tune-up data takes is less than shared circle queue data The residual memory space of buffer area 103.The spatial cache that such as this group tune-up data takes is less than or equal to shared circle queue number According to the residual memory space of buffer area 103, then step S1044 is performed.The spatial cache that such as this group tune-up data takes is more than altogether The residual memory space of circle queue data buffer area 103 is enjoyed, then performs step S1045.
In step S1044, directly write interface unit 1033 by data and write this group of tune-up data and share annular Queuing data buffer area 103.
In step S1045, this group of tune-up data and the memory space of shared circle queue data buffer area are compared Compared with.Residual memory space and shared circle queue data of such as this group tune-up data between shared circle queue data buffer area delay Between the memory space for depositing area, then part tune-up data first is removed from shared circle queue data buffer area 103, for shared annular Queuing data buffer area 103 discharges certain memory space so that the remaining storage of shared circle queue data buffer area 103 is empty Between be not less than the caching space-consuming of this group of tune-up data, then write interface unit 1033 by data and write this group of tune-up data Enter shared circle queue data buffer area 103.The storage that such as this group tune-up data is more than shared circle queue data buffer area is empty Between, then a memory space is intercepted from this group of tune-up data equal with the shared memory space of circle queue data buffer area 103 Part tune-up data, then the part tune-up data is write into shared circle queue data buffer area 103.
In step S1046, the Read-Write Locks of shared circle queue data buffer area 103 are removed, i.e., to sharing circle queue Data buffer area 103 is unlocked, so as to decontrol other application program on commissioning device 100 to sharing circle queue data Buffer area 103 carries out the operating right of data access.
In step S1047, stop the data write operation for shared circle queue data buffer area 103, and pass through Cache the interruption of de-interfaced unit 1033 and the connection of shared circle queue data buffer area 103.
Below by by taking the 4th better embodiment of the present invention as an example, the present invention is delayed for shared circle queue data The tune-up data reading link for depositing area 103 is illustrated:
As shown in fig. 6, in step S1071, to shared circle queue data buffer area 103 plus Read-Write Locks, to forbid adjusting Try the operation that other programs in equipment 100 carry out data access in synchronization to sharing circle queue data buffer area 103 Authority.
In step S1072, debugging services module 101 passes through 1034 pairs of shared circle queue numbers of digital independent interface unit Conducted interviews according to buffer area 103, this group of tune-up data is read from shared circle queue data buffer area 103.
In step S1073, the read data bit confidence breath of the shared circle queue data buffer area 103 of modification.
In step S1074, the read data bit confidence breath of the shared circle queue data buffer area 103 of modification is stored in Spatial cache administrative unit 1036.
In step S1075, the Read-Write Locks of shared circle queue data buffer area 103 are removed, to decontrol commissioning device 100 On other programs to share circle queue data buffer area 103 data access operation authority.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (9)

1. a kind of application program remote adjustment method based on Linux system, it is characterised in that comprise the following steps;
S1, commissioning device are debugged and generated one or more groups of tune-up datas to one or more application programs, by this group Or multigroup shared circle queue data buffer area of tune-up data write-in, and to the write data bits confidence in spatial cache administrative unit Breath is updated;
S2, detect whether that distal displayed tune-up data terminal device is connected, and detected distal displayed tune-up data terminal When equipment is connected, spatial cache administrative unit is scanned and scanned to the data for shared circle queue data buffer area During writing events, next step S3 is performed;
S3, by digital independent interface unit the tune-up data for writing shared circle queue data buffer area is read, and will read The tune-up data gone out is sent to distal displayed tune-up data terminal device;
Wherein, the distal displayed tune-up data terminal device is connected to the debugging services module of commissioning device by TCP/IP, The tune-up data sent by the debugging services module is received, and the tune-up data is printed out;
Wherein, include described in the step S2 for the data writing events of shared circle queue data buffer area:
S21, Read-Write Locks are added to shared circle queue data buffer area;
S22, one of which tune-up data write into shared circle queue data buffer area;
S23, spatial cache and the residual memory space of shared circle queue data buffer area that this group of tune-up data is taken enter Row compares;The spatial cache that such as this group tune-up data takes is less than the residual memory space of shared circle queue data buffer area, This group of tune-up data is then write direct into annular data storage;The spatial cache that such as this group tune-up data takes is between shared ring Between the residual memory space of shape queuing data buffer area and the memory space of shared circle queue data buffer area, then first from altogether Enjoy circle queue data buffer area and remove part tune-up data, being not less than the group for shared circle queue data buffer area release adjusts The residual memory space for the spatial cache that data take is tried, then this group of tune-up data is write into shared circle queue data buffer storage Area;The spatial cache that such as this group tune-up data takes is more than the memory space of shared circle queue data buffer area, then first from this The interception memory space part tune-up data equal with shared circle queue data buffer area memory space in group tune-up data, then By the shared circle queue data buffer area of part tune-up data write-in;
S24, the write data bits of the shared circle queue data buffer area of modification are put, slow according to amended shared circle queue data The write data bits confidence breath for depositing area is updated to the data in spatial cache management interface unit;
S25, the Read-Write Locks for removing shared circle queue data buffer area.
2. the application program remote adjustment method according to claim 1 based on Linux system, it is characterised in that in institute Also comprise the following steps before stating step S1:
S0, the shared circle queue data buffer area for being used to keep in application program tune-up data for creating a designated memory space.
3. the application program remote adjustment method according to claim 1 based on Linux system, it is characterised in that described The step of at least one set of tune-up data is write into shared circle queue data buffer area described in step S1 includes:Pass through buffer area Connecting interface unit is connected to shared circle queue data buffer area, as needed at least one set of tune-up data mark-on of generation Label, and interface unit is write the shared circle queue data buffer area of tagged tune-up data write-in by data.
4. the application program remote adjustment method according to claim 1 based on Linux system, it is characterised in that in institute State and also comprise the following steps after step S25:
S26, pass through buffer area de-interfaced unit disconnect and Circular buffer area between connection.
5. the application program remote adjustment method according to claim 4 based on Linux system, it is characterised in that in institute State and also comprise the following steps after step S26:
S27, spatial cache management interface unit is scanned, judges whether to scan writing to spatial cache management interface unit The renewal of data positional information.
6. the application program remote adjustment method according to claim 5 based on Linux system, it is characterised in that in institute State and also comprise the following steps between step S2 and the step S3:
S23, judge whether the communication connection between commissioning device and distal displayed tune-up data terminal device is normal;As debugging is set The standby communication connection between distal displayed tune-up data terminal device is normal, then directly performs next step S3;As debugging is set Standby interrupted with distal displayed tune-up data terminal device communicates to connect, then monitors whether the Service-Port bound in it has distal end The communication connection request of tune-up data terminal device is shown, and recovers communication link with distal displayed tune-up data terminal device at it When connecing, next step S3 is performed.
7. the application program remote adjustment method according to claim 6 based on Linux system, it is characterised in that described One group of debugging number of the shared circle queue data buffer area of new write-in is read described in step S3 by digital independent interface unit According to the step of include:
S31, Read-Write Locks are added to shared circle queue data buffer area;
S32, by digital independent interface unit shared circle queue data buffer area is conducted interviews and from shared circle queue Data buffer area reads this group of tune-up data;
S33, the read data bit confidence breath of the shared circle queue data buffer area of modification, the read data bit confidence of modification is ceased and stored In spatial cache management interface unit;
S34, the Read-Write Locks for removing shared circle queue data buffer area.
8. the application program remote adjustment method according to claim 7 based on Linux system, it is characterised in that in institute State and also comprise the following steps after step S34:
S35, this group of tune-up data progress packing processing by reading, and the tune-up data of packing is sent to distal displayed debugging Data terminal equipment.
9. a kind of application program remote debugging system of the Linux system of the method based on described in claim 1, including it is local Commissioning device and distal displayed tune-up data terminal device, it is characterised in that the commissioning device runs one or more quilts The application program of debugging, the debugged application program constitute application program collection, and the commissioning device also includes shared annular Queuing data buffer area and debugging services module;
In described commissioning device one end, the application program collection needs to export corresponding tune-up data according to debugging, this is debugged Data write the circle queue data buffer area, and in the spatial cache administrative unit of the circle queue data buffer area Write data bits confidence breath be updated;
The debugging services module is used to the spatial cache administrative unit is scanned and scanned to for the shared ring During the data writing events of shape queuing data buffer area, the tune-up data is read simultaneously from the shared circle queue data buffer area The tune-up data is sent to the distal displayed tune-up data terminal device;
In described distal displayed tune-up data terminal device one end, the distal displayed tune-up data terminal device passes through TCP/IP The debugging services module is connected to, the tune-up data sent by the debugging services module is received, and the tune-up data is entered Row printout;
Wherein, the described data writing events for the shared circle queue data buffer area comprise the following steps:
S21, Read-Write Locks are added to shared circle queue data buffer area;
S22, one of which tune-up data write into shared circle queue data buffer area;
S23, spatial cache and the residual memory space of shared circle queue data buffer area that this group of tune-up data is taken enter Row compares;The spatial cache that such as this group tune-up data takes is less than the residual memory space of shared circle queue data buffer area, This group of tune-up data is then write direct into annular data storage;The spatial cache that such as this group tune-up data takes is between shared ring Between the residual memory space of shape queuing data buffer area and the memory space of shared circle queue data buffer area, then first from altogether Enjoy circle queue data buffer area and remove part tune-up data, being not less than the group for shared circle queue data buffer area release adjusts The residual memory space for the spatial cache that data take is tried, then this group of tune-up data is write into shared circle queue data buffer storage Area;The spatial cache that such as this group tune-up data takes is more than the memory space of shared circle queue data buffer area, then first from this The interception memory space part tune-up data equal with shared circle queue data buffer area memory space in group tune-up data, then By the shared circle queue data buffer area of part tune-up data write-in;
S24, the write data bits of the shared circle queue data buffer area of modification are put, slow according to amended shared circle queue data The write data bits confidence breath for depositing area is updated to the data in spatial cache management interface unit;
S25, the Read-Write Locks for removing shared circle queue data buffer area.
CN201410779390.7A 2014-12-15 2014-12-15 A kind of application program remote adjustment method and system based on Linux system Active CN104503907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410779390.7A CN104503907B (en) 2014-12-15 2014-12-15 A kind of application program remote adjustment method and system based on Linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410779390.7A CN104503907B (en) 2014-12-15 2014-12-15 A kind of application program remote adjustment method and system based on Linux system

Publications (2)

Publication Number Publication Date
CN104503907A CN104503907A (en) 2015-04-08
CN104503907B true CN104503907B (en) 2017-08-29

Family

ID=52945306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410779390.7A Active CN104503907B (en) 2014-12-15 2014-12-15 A kind of application program remote adjustment method and system based on Linux system

Country Status (1)

Country Link
CN (1) CN104503907B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049217A (en) * 2015-06-17 2015-11-11 上海斐讯数据通信技术有限公司 Method and system for controlling debugging interface of intelligent network equipment
CN105808463A (en) * 2016-02-29 2016-07-27 惠州市德赛西威汽车电子股份有限公司 Serial port output method for debugging information in embedded system
CN106292518B (en) * 2016-09-21 2019-01-08 深圳市汇川技术股份有限公司 Remote PLC monitoring and debugging system and method
CN106547670A (en) * 2016-10-10 2017-03-29 许昌许继软件技术有限公司 The method and device of long-range reading and writing built-in Linux application program memory variable value
CN108255692B (en) * 2016-12-28 2021-02-26 新华三技术有限公司 Information processing method and device
CN106970878B (en) * 2017-03-27 2019-11-12 北京深思数盾科技股份有限公司 A kind of debugging event monitoring method and debugging event monitoring system
CN107277107B (en) * 2017-05-15 2020-11-13 深信服科技股份有限公司 Application debugging method, device and system
GB201808519D0 (en) 2018-05-24 2018-07-11 Undo Ltd Debugging Systems
CN108924951B (en) * 2018-06-01 2021-11-26 晶晨半导体(上海)股份有限公司 Information interaction method
CN109120665B (en) * 2018-06-20 2020-05-29 中国科学院信息工程研究所 High-speed data packet acquisition method and device
CN109684222A (en) * 2018-12-27 2019-04-26 上海数果科技有限公司 A kind of user terminal application software remote failure diagnosis system and method
CN111124321B (en) * 2019-11-04 2020-09-08 深圳市金城保密技术有限公司 Debugging method and system of laser printer
CN111143218B (en) * 2019-12-27 2024-03-26 深圳市共进电子股份有限公司 Log debugging method and device suitable for 5G embedded equipment and readable storage medium
CN114153383A (en) * 2021-11-05 2022-03-08 广州文远知行科技有限公司 Data compression storage method and device for automatic vehicle driving system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201869223U (en) * 2010-09-01 2011-06-15 华为终端有限公司 Machine to machine terminal, communication module and data sending device
CN103049385A (en) * 2012-12-29 2013-04-17 百度在线网络技术(北京)有限公司 PHP (professional hypertext preprocessor) code debugging method and PHP code debugging system in cloud environment
CN103856361A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Method and system for realizing remote debugging

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070055957A1 (en) * 2005-09-07 2007-03-08 Richard Birenheide Remote debugging proxy

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201869223U (en) * 2010-09-01 2011-06-15 华为终端有限公司 Machine to machine terminal, communication module and data sending device
CN103856361A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Method and system for realizing remote debugging
CN103049385A (en) * 2012-12-29 2013-04-17 百度在线网络技术(北京)有限公司 PHP (professional hypertext preprocessor) code debugging method and PHP code debugging system in cloud environment

Also Published As

Publication number Publication date
CN104503907A (en) 2015-04-08

Similar Documents

Publication Publication Date Title
CN104503907B (en) A kind of application program remote adjustment method and system based on Linux system
CN105959151B (en) A kind of Stream Processing system and method for High Availabitity
CN103856361A (en) Method and system for realizing remote debugging
CN102521137B (en) Debugging in multicore architecture
CN108132873A (en) Systematic procedure daily record prints and long-range multiple terminals daily record debugging control system
CN105530220B (en) The interface method of two kinds of different agreement system communications is realized based on OPC
CN110209386A (en) The acquisition methods and device that data bury setting method a little, bury point data
CN106162219A (en) Video cloud stores the method and system of the video of method and system, preview cloud storage
CN106656846A (en) Construction method of coordination layer in software defined network (SDN) architecture
CN105490876A (en) Method for automatic testing of server performance through packet sending linkage and concurrent monitoring
CN103699063A (en) Device and method for acquiring off-line data of MES (Manufacturing Execution Method) system
CN107682460A (en) A kind of distributed storage trunked data communication method and system
CN108614450A (en) Mechanical system and its method under a kind of Internet of Things
CN101355777B (en) Remote mobile phone test system and method based on bus interception and video acquisition
CN112783455B (en) Data transmission control method, device, medium and electronic equipment
CN105993148A (en) Network interface
AU751703B2 (en) Method and apparatus for providing error correction
CN109474670A (en) A kind of information interacting method and system
CN104038314B (en) A kind of new safety supervision networking dynamic data RTTS and method
CN104967667A (en) Software stability test remote monitoring system based on cloud service
CN106789449A (en) A kind of CAN exploitation and method of testing and system
CN107301125A (en) A kind of method, device and electronic equipment for finding root mistake
CN110198186A (en) It is a kind of can off-line working high speed SpaceWire optical fibre link circuit testing card
CN109245941A (en) A kind of service compensation method and device
CN104683731B (en) A kind of method and system for being communicated between heterogeneous platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: Nanshan District Xili street of Shenzhen city in Guangdong province 518054 White Pine Road No. 1002, Piovan letter High-tech Industrial Park District 2 Building 6

Applicant after: SHENZHEN SINEXCEL ELECTRIC CO., LTD.

Address before: 518054 Guangdong city of Shenzhen province Nanshan District Baiwang letter Industrial Park Second District 6.

Applicant before: Shenzhen City Shenghong Electric Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN CITY SHENGHONG ELECTRIC CO., LTD. TO: SHENZHEN SINEXCEL ELECTRIC CO., LTD.

GR01 Patent grant
GR01 Patent grant