CN107562571B - Intelligent express cabinet operating system capable of being automatically restarted, intelligent express cabinet and equipment - Google Patents
Intelligent express cabinet operating system capable of being automatically restarted, intelligent express cabinet and equipment Download PDFInfo
- Publication number
- CN107562571B CN107562571B CN201710687485.XA CN201710687485A CN107562571B CN 107562571 B CN107562571 B CN 107562571B CN 201710687485 A CN201710687485 A CN 201710687485A CN 107562571 B CN107562571 B CN 107562571B
- Authority
- CN
- China
- Prior art keywords
- restart
- intelligent express
- operating system
- android system
- state signal
- 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
Links
Images
Landscapes
- Retry When Errors Occur (AREA)
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the technical field of cabinets, and particularly provides an intelligent express cabinet operating system capable of being automatically restarted, an intelligent express cabinet and equipment, aiming at solving the problem that the system can be restarted timely and quickly when an intelligent express cabinet adopting an Android system is in an abnormal state. The intelligent express cabinet operating system capable of being automatically restarted is created, a state signal sending thread is arranged on a JNI part in the operating system based on an Android system and sends state signals to a state signal receiving module in a main thread of the Android system according to a preset time interval, a restarting control module is arranged in the main thread and judges whether the state signal receiving module receives the state signals in a detection period of each preset time length, and when the judgment result is negative, the system is restarted, wherein the state signals are preset information. According to the invention, the intelligent express cabinet adopting the Android system can be timely and quickly restarted when an abnormal state occurs, so that the long-term stable operation of the intelligent express cabinet is ensured.
Description
Technical Field
The invention relates to the technical field of cabinets, in particular to an intelligent express cabinet operation system capable of being automatically restarted, an intelligent express cabinet and equipment.
Background
The intelligent express cabinet solves the problem of pain point of the last kilometer in the logistics industry, not only solves the problem of poor time and space for receiving and sending express for a user, but also saves time for a courier to send a package, improves the working efficiency, and reduces the working pressure for the courier to send the package by family.
The intelligent express cabinet adopts an Android system as an operating system, and is mature and stable day by day. However, people who have experience in using Android mobile phones have the sense of touch, and the mobile phones gradually become stuck, blank and even dead along with the increase of the starting time. Once the general abnormal state of the Android system occurs in the intelligent express cabinet based on the Android system, great influence is caused to couriers and users.
Aiming at the abnormal states of blockage, black screen and even crash and the like in the intelligent express cabinet adopting the Android system, a common processing method is to solve the problem in a mode of manual restart by maintainers, but the method not only increases the cost of manpower and material resources for operation of the intelligent express cabinet, but also cannot meet the requirement on the timeliness of processing the abnormal states.
Disclosure of Invention
In order to solve the above problems in the prior art, that is, to solve the problem that the system can be restarted quickly and timely in the abnormal states such as the stuck state, the black screen and even the crash of the intelligent express cabinet adopting the Android system, the invention provides an intelligent express cabinet operating system capable of being restarted automatically, which comprises:
the operating system is an Android system, a JNI part of the Android system is provided with a state signal sending thread, and the state signal sending thread sends state signals to an Android system main thread according to a preset time interval;
a state signal receiving module and a restarting control module are arranged in the main thread of the Android system; the state signal receiving module is used for receiving the state signal sent by the state signal sending thread; the restarting control module is used for judging whether the state signal receiving module receives the state signal in each detection period with preset duration, and restarting the Android system when the judgment result is negative;
the state signal is preset information.
Preferably, a user data storage module is further arranged in the Android system main thread; the user data storage module is used for storing the user data in the current Android system before the Android system is restarted by the restart control module.
Preferably, the status signaling thread includes a first counter, and the first counter is used to set the preset time interval.
Preferably, the Android system main thread further includes a second counter, and the second counter is used for setting a preset duration of the detection period.
Preferably, the state signal sending thread and the Android system main thread run in parallel.
Preferably, the Android system main thread further includes a restart recording module, where the restart recording module is configured to store restart data, and the restart data includes restart time, total restart times, and system data before restart.
Preferably, the Android system main thread further comprises a restart alarm module; and the restart alarm module is used for sending alarm information to a remote server or terminal equipment when the restart times in the preset restart detection duration is greater than a set time threshold.
Preferably, the alarm information sent by the restart alarm module to the remote server or the terminal device includes an alarm signal and/or restart data of each restart in the preset restart detection duration.
In a second aspect of the present invention, an intelligent express delivery cabinet is provided, including:
the intelligent express delivery cabinet comprises a cabinet body control system, wherein an operating system in the control system is the intelligent express delivery cabinet operating system capable of being automatically restarted.
In a third aspect of the present invention, a storage device is provided, in which a plurality of programs are stored, and the programs are suitable for being loaded and executed by a processor to implement the operation of the above-mentioned automatically rebooteable intelligent express cabinet operating system.
In a fourth aspect of the invention, a processing apparatus is presented, comprising
A processor adapted to execute various programs; and
a storage device adapted to store a plurality of programs;
the program is suitable for being loaded and executed by a processor to realize the operation of the intelligent express delivery cabinet operating system capable of being automatically restarted.
Compared with the closest prior art, the technical scheme at least has the following beneficial effects:
1. according to the intelligent express cabinet operating system capable of being automatically restarted, a state signal sending thread is arranged on a JNI part in the operating system based on an Android system, the signal sending thread sends state signals to a state signal receiving module in a main thread of the Android system according to a preset time interval, a restarting control module is arranged in the main thread and judges whether the state signal receiving module receives the state signals in a detection period of each preset time length, and when the judgment result is no, the system is restarted, wherein the state signals are preset information. Through the self-restarting mode of the operating system of the intelligent express cabinet, the intelligent express cabinet adopting the Android system can be timely and quickly restarted when abnormal states such as blockage, black screen and even crash occur, and therefore long-term stable operation of the intelligent express cabinet is guaranteed.
2. By arranging the user data storage module in the Android system main thread, the user data in the current Android system can be stored before the Android system is restarted, so that inconvenience caused by user data loss is avoided.
3. By arranging the restart recording module in the Android system main thread, the system restart time, the restart times and system data before restart can be stored, and the operating system fault of the intelligent express cabinet can be conveniently analyzed.
4. The restarting alarm module is arranged in the Android system main thread, so that when the restarting times in the preset restarting detection duration are larger than the set times threshold value, alarm information can be sent to a remote server or a terminal device, and when the system is in an abnormal state of frequent restarting due to fault reasons, a backstage manager can conveniently find the frequent restarting condition of the intelligent express cabinet in time, and can maintain the intelligent express in time.
Drawings
Fig. 1 is a schematic diagram of a restart detection and judgment flow of an automatically-restarted intelligent express delivery cabinet operating system according to an embodiment of the present invention.
Detailed Description
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only for explaining the technical principle of the present invention, and are not intended to limit the scope of the present invention.
In order to more clearly describe the technical solution of the present invention, a preferred embodiment of the present invention is explained in detail.
The automatic-restarting intelligent express cabinet operating system provided by the embodiment of the invention is designed based on an Android system, and compared with the existing Android system, the automatic-restarting intelligent express cabinet operating system is characterized in that: a state signal sending thread is arranged on a JNI part of the Android system and sends state signals to a main thread of the Android system according to a preset time interval; a state signal receiving module and a restarting control module are arranged in the main thread of the Android system; the state signal receiving module is used for receiving the state signal sent by the state signal sending thread; the restarting control module is used for judging whether the state signal receiving module receives the state signal in each detection period with preset duration, and restarting the Android system when the judgment result is negative.
The status signal in this embodiment is preset information, and may be any instruction identifier determined by a user, or a program instruction, as long as the Android system main thread can receive and identify the status signal.
When abnormal states such as stuck, blank screen, even crash and the like occur in the intelligent express cabinet adopting the Android system, user data which is not stored may exist, so in order to avoid data loss, in this embodiment, a user data storage module is further arranged in the Android system main thread, the user data in the Android system is stored through the user data storage module before the Android system is restarted through the restart control module, and the user data may include names, addresses, express bill numbers, distribution personnel, logistics information and the like of recipients. Certainly, the information stored at the same time also includes system data before restarting, so as to avoid loss of non-user data (such as cabinet state parameters, control parameters and the like which change in the using process); more optimally, the system state before restarting can be recovered in time after restarting, thereby achieving better system experience.
In this embodiment, the state signal sending thread sends the state signal to the Android system main thread according to a preset time interval, and the setting is performed by the first counter, so as to realize periodic time triggering.
In this embodiment, the restart control module sets, by using the second counter, the periodic timing and zero clearing by determining whether the state signal receiving module receives the detection period of the preset duration set by the state signal. In this embodiment, whether the Android system is restarted is determined by determining whether a status signal is received before the second counter is cleared.
In order to ensure timeliness and accuracy of restart monitoring, the state signal sending thread and the Android system main thread of the embodiment run in parallel.
Abnormal states such as a stuck state, a black screen and even a crash occurring in an intelligent express cabinet adopting an Android system may be accidental faults, and may also be caused by a part of hardware or software problems, and if the abnormal states are caused by the part of hardware or software problems, the fault cause can be analyzed through fault data.
In addition, an abnormal state frequently restarted due to a fault exists, and if the abnormal state occurs, the use of the intelligent express cabinet is greatly influenced, so that the abnormal state needs to be found and solved in time, and therefore, the restart alarm module is further arranged on the Android system main thread. And the restart alarm module is used for sending alarm information to a remote server or terminal equipment when the restart times in the preset restart detection duration is greater than a set time threshold. Therefore, the maintenance personnel can be timely sent to the site for fault maintenance. In this embodiment, the restart alarm module sends alarm information including an alarm signal and/or restart data of each restart in the preset restart detection duration to the remote server or the terminal device.
In order to more clearly explain the embodiment of the present invention, a restart detection and judgment process of the intelligent express delivery cabinet operating system capable of automatically restarting according to the present invention is further described, which includes:
step 1, after the system is started, a main thread of an Android system and a state signal sending thread run simultaneously;
step 2, the state signal sending thread sends a state signal to the Android system main thread according to a preset time interval;
step 3, a restart control module in the Android system main thread judges whether a state signal receiving module receives the state signal sent in the step 1 in a detection period of a preset duration, if not, the step 4 is executed, and if so, the step 2 is executed;
and 4, restarting the Android system and executing the step 1.
Based on the embodiment of the intelligent express cabinet operation system capable of being automatically restarted, the invention further provides an intelligent express cabinet.
In this embodiment, the operating system in the intelligent express delivery cabinet is the above-mentioned intelligent express delivery cabinet operating system that can be automatically restarted.
In the embodiment of the intelligent express delivery cabinet, the technical principle, the solved technical problems, and the generated technical effects are similar, and it can be clearly understood by those skilled in the art that for convenience and simplicity of description, the specific working process and the related description of the intelligent express delivery cabinet described above may refer to the aforementioned intelligent express delivery cabinet operating system capable of being automatically restarted, and are not described herein again.
Those skilled in the art will appreciate that the above-described intelligent courier cabinet operating system capable of automatic restart also includes some other well-known structures, such as processors, controllers, memories, etc., wherein the memories include, but are not limited to, ram, flash memory, rom, prom, eprom, volatile memory, non-volatile memory, serial memory, parallel memory, registers, etc., and the processors include, but are not limited to, CPLD/FPGA, DSP, ARM processor, MIPS processor, etc., and these well-known structures are not shown in the figures in order to unnecessarily obscure embodiments of the present disclosure.
Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Based on the embodiment of the intelligent express cabinet operation system capable of being automatically restarted, the invention further provides a storage device. In this embodiment, a plurality of programs are stored in the storage device, and the storage device is suitable for being loaded and executed by the processor to implement the contents in the above automatic-restart intelligent express delivery cabinet operating system.
Based on the embodiment of the intelligent express cabinet operation system capable of being automatically restarted, the invention further provides processing equipment. The processing device in this embodiment may include a memory, a processor, and a program stored in the memory and executable on the processor, and when the processor executes the program, the processor implements the contents in the intelligent express delivery cabinet operating system that can be automatically restarted.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes and related descriptions of the storage device and the processing device described above may refer to the corresponding processes in the foregoing system embodiments, and are not described herein again.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in a server, client, or the like, according to embodiments of the present invention. The present invention may also be embodied as an apparatus or device program (e.g., PC program and PC program product) for carrying out a portion or all of the methods described herein. Such a program implementing the invention may be stored on a PC readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims of the present invention, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed PC. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.
Claims (11)
1. An intelligent express cabinet operating system capable of being automatically restarted is an Android system, and is characterized in that a state signal sending thread is arranged on a JNI part of the Android system and sends state signals to an Android system main thread according to a preset time interval;
a state signal receiving module and a restarting control module are arranged in the main thread of the Android system; the state signal receiving module is used for receiving the state signal sent by the state signal sending thread; the restarting control module is used for judging whether the state signal receiving module receives the state signal in each detection period with preset duration, and restarting the Android system when the judgment result is negative;
the state signal is preset information.
2. The intelligent express delivery cabinet operating system according to claim 1, wherein a user data storage module is further arranged in the Android system main thread; the user data storage module is used for storing the user data in the current Android system before the Android system is restarted by the restart control module.
3. The intelligent courier cabinet operating system of claim 2, where the status signaling thread includes a first counter, the first counter configured to set the preset time interval.
4. The intelligent express delivery cabinet operating system according to claim 2, wherein the Android system main thread further comprises a second counter, and the second counter is used for setting a preset duration of the detection period.
5. The intelligent express delivery cabinet operating system according to any one of claims 1 to 4, wherein the status signal sending thread runs in parallel with the Android system main thread.
6. The intelligent express delivery cabinet operating system according to claim 5, wherein the Android system main thread further comprises a restart recording module, the restart recording module is configured to store restart data, and the restart data includes restart time, total restart times, and system data before restart.
7. The intelligent express delivery cabinet operating system of claim 6, wherein the Android system main thread further comprises a restart alarm module; and the restart alarm module is used for sending alarm information to a remote server or terminal equipment when the restart times in the preset restart detection duration is greater than a set time threshold.
8. The intelligent express cabinet operating system according to claim 7, wherein the alarm information sent by the restart alarm module to the remote server or the terminal device includes an alarm signal and/or restart data of each restart in the preset restart detection duration.
9. An intelligent express delivery cabinet, which comprises a cabinet body control system, and is characterized in that an operating system in the control system is the automatically-rebooted intelligent express delivery cabinet operating system of any one of claims 1-8.
10. A storage device having a plurality of programs stored therein, wherein the programs are adapted to be loaded and executed by a processor to implement the operation of the automatically rebooteable intelligent courier cabinet operating system of any of claims 1-8.
11. A treatment apparatus comprises
A processor adapted to execute various programs; and
a storage device adapted to store a plurality of programs;
wherein the program is adapted to be loaded and executed by a processor to perform: operation of the automatically rebootable intelligent courier cabinet operating system of any of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710687485.XA CN107562571B (en) | 2017-08-11 | 2017-08-11 | Intelligent express cabinet operating system capable of being automatically restarted, intelligent express cabinet and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710687485.XA CN107562571B (en) | 2017-08-11 | 2017-08-11 | Intelligent express cabinet operating system capable of being automatically restarted, intelligent express cabinet and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107562571A CN107562571A (en) | 2018-01-09 |
CN107562571B true CN107562571B (en) | 2020-06-16 |
Family
ID=60975550
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710687485.XA Active CN107562571B (en) | 2017-08-11 | 2017-08-11 | Intelligent express cabinet operating system capable of being automatically restarted, intelligent express cabinet and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107562571B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109635963A (en) * | 2018-12-18 | 2019-04-16 | 深圳市丰巢科技有限公司 | Method, apparatus, express delivery cabinet and the storage medium of remote repairing express delivery cabinet failure |
CN110413450A (en) * | 2019-07-22 | 2019-11-05 | 河南翔宇医疗设备股份有限公司 | Method, device and equipment for processing application program crash |
CN110674952A (en) * | 2019-10-09 | 2020-01-10 | 深圳市丰巢科技有限公司 | Remote express cabinet fault repairing method and device, server and storage medium |
CN112150033A (en) * | 2020-10-12 | 2020-12-29 | 江苏云柜网络技术有限公司 | Express cabinet system management method and device and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101201770A (en) * | 2006-12-15 | 2008-06-18 | 大唐移动通信设备有限公司 | Method and system for storing important information before system collapse |
CN103345401A (en) * | 2013-07-30 | 2013-10-09 | 禹芙蓉 | Intelligent mobile phone and performance optimization method for same |
CN103902316A (en) * | 2012-12-27 | 2014-07-02 | 联想(北京)有限公司 | Switching method and electronic device |
CN104657228A (en) * | 2015-03-04 | 2015-05-27 | 深圳市欧珀通信软件有限公司 | Method and device for processing system exceptions of mobile terminal |
CN104794016A (en) * | 2015-04-23 | 2015-07-22 | 惠州Tcl移动通信有限公司 | Mobile terminal crash testing and processing method and system |
CN105930283A (en) * | 2016-04-12 | 2016-09-07 | 珠海市魅族科技有限公司 | Information storage method and mobile terminal |
CN106201825A (en) * | 2016-07-13 | 2016-12-07 | 深圳市爱培科技术股份有限公司 | A kind of intelligent back vision mirror running state monitoring method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10268476B2 (en) * | 2015-03-20 | 2019-04-23 | ZeroTurnaround AS | System and method for fast restarting of user apps |
-
2017
- 2017-08-11 CN CN201710687485.XA patent/CN107562571B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101201770A (en) * | 2006-12-15 | 2008-06-18 | 大唐移动通信设备有限公司 | Method and system for storing important information before system collapse |
CN103902316A (en) * | 2012-12-27 | 2014-07-02 | 联想(北京)有限公司 | Switching method and electronic device |
CN103345401A (en) * | 2013-07-30 | 2013-10-09 | 禹芙蓉 | Intelligent mobile phone and performance optimization method for same |
CN104657228A (en) * | 2015-03-04 | 2015-05-27 | 深圳市欧珀通信软件有限公司 | Method and device for processing system exceptions of mobile terminal |
CN104794016A (en) * | 2015-04-23 | 2015-07-22 | 惠州Tcl移动通信有限公司 | Mobile terminal crash testing and processing method and system |
CN105930283A (en) * | 2016-04-12 | 2016-09-07 | 珠海市魅族科技有限公司 | Information storage method and mobile terminal |
CN106201825A (en) * | 2016-07-13 | 2016-12-07 | 深圳市爱培科技术股份有限公司 | A kind of intelligent back vision mirror running state monitoring method and system |
Also Published As
Publication number | Publication date |
---|---|
CN107562571A (en) | 2018-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107562571B (en) | Intelligent express cabinet operating system capable of being automatically restarted, intelligent express cabinet and equipment | |
US8473789B2 (en) | Memory leak monitoring system and associated methods | |
CN102663288B (en) | Virus killing method and device thereof | |
CN110309029B (en) | Abnormal data acquisition method and device, computer equipment and storage medium | |
CN105404581B (en) | A kind of evaluating method and device of database | |
CN109873853B (en) | Equipment key parameter early warning system, implementation method thereof and electronic device | |
CN105429801B (en) | A kind of flux monitoring method and device | |
CN110826965B (en) | Intelligent warehouse management method and device, handheld device and storage medium | |
CN106656604A (en) | Microservice request management method, microservice controller and high-concurrence microservice architecture | |
CN105528277A (en) | Method and equipment for monitoring target device | |
CN109582486A (en) | A kind of house dog monitoring method, system and equipment and storage medium | |
CN104850460A (en) | Service program thread management method | |
CN106658381B (en) | A kind of landslide method for early warning based on wireless sensor network | |
US11770199B2 (en) | Traffic data self-recovery processing method, readable storage medium, server and apparatus | |
CN104461563A (en) | Method for remotely and regularly detecting newly added file of FTP server under linux | |
US20180330086A1 (en) | Method, device and program for checking and killing a backdoor file, and readable medium | |
US10136279B2 (en) | Terminal peripheral management method and M2M gateway | |
CN105278521A (en) | Method and device for diagnosing fault cause of unit and air conditioning unit | |
CN111756778B (en) | Method, device and storage medium for pushing server disk cleaning script | |
CN111611057A (en) | Distributed retry method, device, electronic equipment and storage medium | |
CN110806924B (en) | Network processing method and device based on CPU occupancy rate | |
CN108536545B (en) | Information processing method and device for terminal equipment | |
CN108363658B (en) | User behavior data acquisition method, intelligent terminal, server and system | |
WO2017059778A1 (en) | Method, device and system for detecting shell website | |
CN107729207B (en) | Application program main thread monitoring method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |