CN113132961B - Internet of things complete machine equipment debugging method and device, computer equipment and storage medium - Google Patents

Internet of things complete machine equipment debugging method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113132961B
CN113132961B CN202110275986.3A CN202110275986A CN113132961B CN 113132961 B CN113132961 B CN 113132961B CN 202110275986 A CN202110275986 A CN 202110275986A CN 113132961 B CN113132961 B CN 113132961B
Authority
CN
China
Prior art keywords
communication module
wireless communication
internet
things
log file
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
CN202110275986.3A
Other languages
Chinese (zh)
Other versions
CN113132961A (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 Neoway Technology Co Ltd
Original Assignee
Shenzhen Neoway 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 Shenzhen Neoway Technology Co Ltd filed Critical Shenzhen Neoway Technology Co Ltd
Priority to CN202110275986.3A priority Critical patent/CN113132961B/en
Publication of CN113132961A publication Critical patent/CN113132961A/en
Application granted granted Critical
Publication of CN113132961B publication Critical patent/CN113132961B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/10Detection; Monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The present application relates to the field of computer technologies, and in particular, to a method and apparatus for debugging an entire device of an internet of things, a computer device, and a storage medium. The whole equipment of the Internet of things is loaded with a communication module, the communication module comprises a Bluetooth communication module and a wireless communication module, the wireless communication module stores operation log files of the whole equipment of the Internet of things through a file system, and the method comprises the following steps: receiving a debugging request for debugging the whole equipment of the Internet of things; establishing connection with the Bluetooth communication module, and forwarding a debugging request to the wireless communication module through Bluetooth communication; acquiring an operation log file fed back by a wireless communication module; and according to the operation log file, performing equipment debugging on the whole equipment of the Internet of things. By adopting the method, the debugging efficiency of the whole equipment of the Internet of things can be improved.

Description

Internet of things complete machine equipment debugging method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for debugging an entire device of an internet of things, a computer device, and a storage medium.
Background
In the whole equipment of the internet of things, the wireless communication module is an indispensable component, and in the running process or the field test stage of the whole equipment, the debugging work of the wireless communication module is unavoidable, and is particularly important.
In the traditional mode, the general RTOS system adopted by the wireless communication module has no strong function support of an operating system, history log storage and export cannot be completed, and when the wireless communication module is debugged, the debugging is usually carried out through a reserved UART interface or a reserved USB interface, or when equipment needs to be debugged, the machine disassembly operation is firstly carried out, and then the debugging is carried out.
However, in the above manner, the reserved interface can only capture the real-time running log, when the data in a period of time needs to be analyzed, the real-time running log needs to be obtained and stored through the interface all the time, then debugging is performed, the debugging waiting time is long, and the processing process efficiency is low; the whole machine needs to be disassembled for disassembly and debugging, and after the test is finished, the whole machine needs to be recombined, welded or glue filled, so that the whole machine structure of the whole equipment of the Internet of things is damaged, the whole machine needs to be debugged again for use, and the meaning of debugging is lost.
Disclosure of Invention
Based on the above, it is necessary to provide a method, a device, a computer device and a storage medium for debugging complete equipment of the internet of things, which are convenient and can improve the debugging efficiency.
The utility model provides a debugging method of complete machine equipment of the Internet of things, the complete machine equipment of the Internet of things is loaded with a communication module, the communication module comprises a Bluetooth communication module and a wireless communication module, the wireless communication module stores the operation log file of the complete machine equipment of the Internet of things through a file system, and the method comprises the following steps:
receiving a debugging request for debugging the whole equipment of the Internet of things;
establishing connection with the Bluetooth communication module, and sending a debugging request to the wireless communication module through Bluetooth communication;
acquiring an operation log file fed back by a wireless communication module;
and according to the operation log file, performing equipment debugging on the whole equipment of the Internet of things.
In one embodiment, the method further comprises:
receiving a real-time log file sent by the wireless communication module through Bluetooth communication, wherein the real-time log file is sent in real time by the wireless communication module when the abnormality of the whole equipment of the Internet of things is detected;
and determining an abnormal module in the whole equipment of the Internet of things based on the real-time log file, and performing abnormal debugging on the abnormal module.
In one embodiment, the method further comprises:
generating a filtering instruction corresponding to the target module, and sending the filtering instruction to the wireless communication module, wherein the filtering instruction is used for instructing the wireless communication module to filter the real-time log of the non-target module from the real-time log data, so as to generate a real-time log file corresponding to the target module;
receiving a real-time log file sent by a wireless communication module through Bluetooth communication, wherein the real-time log file comprises:
and receiving the real-time log file of the corresponding target module sent by the wireless communication module through Bluetooth communication.
In one embodiment, after receiving the real-time log file sent by the wireless communication module through bluetooth communication, the method further includes:
sending a network inquiry instruction to the wireless communication module and receiving network data fed back by the wireless communication module;
based on the network data, a network state of the wireless communication module is determined.
In one embodiment, the method further comprises:
receiving a log deleting instruction, sending the log deleting instruction to the wireless communication module through Bluetooth communication, wherein the log deleting instruction is used for indicating the wireless communication module to delete an operation log file and generating corresponding feedback information;
And receiving feedback information fed back by the wireless communication module, and determining whether deletion of the running log file is executed or not based on the feedback information.
In one embodiment, the method further comprises:
acquiring an upgrade file for upgrading the whole equipment of the Internet of things;
and the wireless communication module performs equipment upgrading on the whole equipment of the Internet of things through the upgrade file.
The utility model provides an internet of things complete machine equipment debugging device, internet of things complete machine equipment loads communication module, and communication module includes bluetooth communication module and wireless communication module, and wireless communication module passes through file system storage internet of things complete machine equipment's operation log file, the device includes:
the system comprises a debugging request receiving module, a debugging request processing module and a debugging module, wherein the debugging request receiving module is used for receiving a debugging request for debugging the whole equipment of the Internet of things;
the connection and forwarding module is used for establishing connection with the Bluetooth communication module and sending a debugging request to the whole machine module of the Internet of things through Bluetooth communication;
the operation log file acquisition module is used for acquiring the operation log file fed back by the wireless communication module;
the first debugging module is used for debugging the whole equipment of the Internet of things according to the operation log file.
In one embodiment, the apparatus further includes:
the system comprises a wireless communication module, a real-time log file receiving module and a real-time log file sending module, wherein the wireless communication module is used for sending a real-time log file to the real-time log file receiving module through Bluetooth communication;
the second debugging module is used for determining an abnormal module in the whole equipment of the Internet of things based on the real-time log file and carrying out abnormal debugging on the abnormal module.
A computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods of the embodiments described above when the processor executes the computer program.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the embodiments described above.
According to the method, the device, the computer equipment and the storage medium for debugging the whole equipment of the Internet of things, the whole equipment of the Internet of things is loaded with the communication module, the communication module comprises the Bluetooth communication module and the wireless communication module, the wireless communication module stores the operation log file of the whole equipment of the Internet of things through the file system, a debugging request for debugging the whole equipment of the Internet of things is received, then connection with the Bluetooth communication module is established, the debugging request is forwarded to the wireless communication module through the Bluetooth communication module, the operation log file fed back by the wireless communication module is further acquired, and equipment debugging is performed on the whole equipment of the Internet of things according to the operation log file. Therefore, when the whole machine debugging is needed, communication with the Bluetooth communication module in the whole machine equipment of the Internet of things is established, the operation log file stored in the wireless communication module is acquired in a Bluetooth communication mode, and debugging analysis is performed.
Drawings
Fig. 1 is an application scenario diagram of a method for debugging complete equipment of the internet of things in one embodiment;
fig. 2 is a flow chart of a method for debugging the whole equipment of the internet of things in one embodiment;
fig. 3 is a block diagram of a device for debugging the whole equipment of the internet of things in one embodiment;
fig. 4 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The method for debugging the whole equipment of the Internet of things can be applied to an application environment shown in fig. 1. The whole equipment of the internet of things is provided with the communication module 10, the communication module 10 comprises a Bluetooth communication module 102 and a wireless communication module 104, and the Bluetooth communication module 102 and the wireless communication module 104 are connected through a uart or spi interface. The wireless communication module 104 stores the operation log file of the whole equipment of the internet of things through a file system. The terminal 20 establishes communication with the whole equipment of the internet of things through the Bluetooth communication module 102, so that when the whole equipment of the internet of things is abnormal in network, the local near-field connection with the whole equipment of the internet of things can be realized through a Bluetooth communication mode, and the whole equipment of the internet of things is tested. Specifically, the terminal 20 may receive a debug request for debugging the entire internet of things device, establish a connection with the bluetooth communication module 102, and send the debug request bluetooth communication to the wireless communication module 104. Further, the terminal 20 may obtain the running log file fed back by the wireless communication module 104, and debug the whole equipment of the internet of things according to the running log file. The terminal 20 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, portable wearable devices, etc. with near field connection modes such as bluetooth communication, etc., and the whole internet of things device may be a device in various application scenarios.
In one embodiment, as shown in fig. 2, a method for debugging an entire device of the internet of things is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
step S202, a debugging request for debugging the whole equipment of the Internet of things is received.
The debugging request refers to a request for debugging the whole equipment of the Internet of things. In particular, the debugging may be factory debugging or periodic debugging performed after a certain time of use, which is not limited by the present application.
In this embodiment, the user may generate a debug request for debugging the whole internet of things device by triggering an Application (APP) displayed on the terminal interface.
Specifically, the APP may be a program specifically developed for performing communication and debugging on the whole equipment of the internet of things.
In this embodiment, different users have the authority to debug different complete equipment of the internet of things, for example, some users may only have a data acquisition function and not have a modification function, and some users may have multiple functions of modification, deletion, addition and the like.
In this embodiment, a user may input a corresponding user name and a corresponding password in an application program, so as to display, through a terminal interface, the whole internet of things equipment operable by the user. The number of the whole equipment of the Internet of things which can be operated by the user can be multiple, and the user can generate a debugging request by selecting or inputting equipment identifiers, such as equipment IDs, of the whole equipment of the Internet of things.
Step S204, connection with the Bluetooth communication module is established, and the debugging request is forwarded to the wireless communication module through the Bluetooth communication module.
The bluetooth communication module may be a single mode bluetooth or a dual mode bluetooth, and is specifically classified into a classical bluetooth and a low energy bluetooth, which is not limited in the present application.
In this embodiment, when the bluetooth communication module is classical bluetooth, the bluetooth communication module can perform the corresponding functions through two specifications/protocols, namely, an object storage specification (Object push profile, OPP) and a bluetooth serial protocol (Serial Port Profile, SPP) provided by bluetooth. OPP is an object oriented transport protocol for transferring files, SPP is a serial configuration specification defining how to establish a virtual serial port between two Bluetooth devices and conduct data communications. Specifically, the data export and transmission function of the air interface upgrade (Firmware Over The Air, FOTA) file is completed through the OPP function, and the real-time log acquisition and AT (Attention) instruction channel function is realized through the SPP.
In this embodiment, when the bluetooth communication module is bluetooth low energy, the definition of the service may be implemented by defining a universal unique identification code (Universally Unique Identifier, UUID), and the specific definition may refer to the following table one:
Table-one Bluetooth function definition
UUID Attributes of UUID description Description of the invention
0xFFE0 Read-only memory Service UUID Debugging a main service
0xFFE1 Read-only notification LogFile UUID Historical log derived UUID
0xFFE2 Read-only notification LogData UUID Real-time log UUID
0xFFE3 Reading and writing AT UUID AT channel UUID
0xFFE4 Write only FOTA UUID FOTA upgrade UUID
The wireless communication module may refer to an NB-IoT module or a cat.1 module, etc. The RTOS system adopted by the wireless communication module has no strong function support of an operating system, meanwhile, the storage resources of the module are limited, the reserved space can not store massive log information, and means such as file export and real-time log acquisition are relatively poor.
In this embodiment, after receiving a trigger from a user to a terminal page and generating a corresponding debug request, the terminal may establish connection with the bluetooth communication module, so as to establish connection with the whole device of the internet of things, that is, establish local near-field connection.
Further, the terminal may send the generated debug request to the wireless communication module through a data channel established by bluetooth, that is, send the debug request to the wireless communication module through bluetooth communication, so as to request to obtain a running log file stored in the wireless communication module.
Step S206, obtaining a running log file fed back by the wireless communication module.
The running log file refers to a file stored in a file system of the wireless communication module, and specifically refers to a running log generated by the wireless communication module in the running process. The travel log may include a specific generation time, etc.
In this embodiment, the wireless communication module may use a File System (FS) inside the module to establish a corresponding history log storage mechanism, and store important information in the running process, which may include, but is not limited to, startup information of the whole equipment of the internet of things, sweep-frequency network injection information, public land mobile network (Public Land Mobile Network, PLMN) information, air interface signaling information, radio resource control (Radio Resource Control, RRC) link information, air interface traffic information, stack information when an error or a dead halt occurs in the equipment, and the like, and may respectively store the history log storage upper limit value and periodically clear out the overrun log.
In this embodiment, the debug request may include a specific time interval of the running log that the terminal needs to obtain, for example, the running log of 2021.01.01-2021.02.01, etc.
In this embodiment, after receiving the debug request forwarded by the bluetooth communication module, the wireless communication module may obtain a corresponding running log file based on the debug request, and send the running log file to the terminal through bluetooth communication, that is, send the running log file to the terminal through a bluetooth data channel.
In this embodiment, the debug request may also include the data format requirements of the terminal-viewable log file. After the wireless communication module acquires the operation log file corresponding to the request, the wireless communication module can convert the data format of the acquired operation log file to obtain the operation log file required by the corresponding data format, so that the operation log file is more adaptive to the terminal, and the data processing amount of the terminal after receiving the operation log file can be reduced.
And step S208, performing equipment debugging on the whole equipment of the Internet of things according to the operation log file.
Specifically, after the terminal obtains the operation log file, the operation state of each execution component of the whole equipment of the internet of things can be determined according to each operation data in the operation log file, so that equipment debugging is performed on each execution component.
Specifically, the terminal performs device debugging on the whole internet of things device, which can include but is not limited to device inspection, single-point testing, functional testing, simulation joint debugging, light-load joint debugging, full-load debugging and the like.
Those skilled in the art can understand that the debug contents corresponding to different internet of things complete equipment may not be the same, and the application is not limited to this.
According to the method for debugging the whole equipment of the Internet of things, the whole equipment of the Internet of things is loaded with the communication module, the communication module comprises the Bluetooth communication module and the wireless communication module, the wireless communication module stores the operation log file of the whole equipment of the Internet of things through the file system, the whole equipment of the Internet of things is debugged through receiving the debugging request, then connection with the Bluetooth communication module is established, the debugging request is sent to the wireless communication module through Bluetooth communication, the operation log file fed back by the wireless communication module is further obtained, and equipment debugging is carried out on the whole equipment of the Internet of things according to the operation log file. Therefore, when the whole machine debugging is needed, communication with the Bluetooth communication module in the whole machine equipment of the Internet of things is established, the operation log file stored in the wireless communication module is acquired in a Bluetooth communication mode, and debugging analysis is performed.
In one embodiment, the method may further include: receiving a real-time log file sent by the wireless communication module through the Bluetooth communication module, wherein the real-time log file is sent in real time by the wireless communication module when the abnormality of the whole equipment of the Internet of things is detected; and determining an abnormal module in the whole equipment of the Internet of things based on the real-time log file, and performing abnormal debugging on the abnormal module.
The real-time log file refers to real-time log data of the whole equipment of the internet of things in the operation process, or can be just real-time log data of the wireless communication module in the operation process.
In this embodiment, when the wireless communication module determines that the operation of the module is abnormal, the wireless communication module may send a real-time log file of the whole equipment of the internet of things to the terminal in a bluetooth communication manner, so as to request the terminal to perform abnormal debugging, for example, a certain area cannot perform network injection, cannot acquire downlink data, and the like.
In this embodiment, after receiving the real-time log file sent by the wireless communication module, the terminal may determine an abnormal module in the whole equipment of the internet of things by analyzing log data in the real-time log file, and debug the abnormal module by using a bluetooth communication mode.
In the above embodiment, the real-time log file sent by the physical network whole machine module through bluetooth communication is received, and the abnormal module which is abnormal in the whole machine equipment of the internet of things is determined, and is debugged, so that the whole machine equipment of the internet of things which is abnormal can be debugged in a bluetooth communication mode, compared with the traditional mode in which the whole machine equipment of the internet of things is debugged in a disassembling mode, the integrity of the whole machine equipment of the internet of things is ensured, the disassembling and assembling processes can be reduced, the processing time is saved, and the processing efficiency is improved.
In one embodiment, the method may further include: and generating a filtering instruction corresponding to the target module, and sending the filtering instruction to the wireless communication module, wherein the filtering instruction is used for indicating the wireless communication module to filter the real-time log of the non-target module from the real-time log data, so as to generate a real-time log file corresponding to the target module.
In this embodiment, the terminal may generate, based on the instruction of the user, a filtering instruction corresponding to the instruction to request the wireless communication module to perform filtering of the log file data.
Specifically, after the wireless communication module obtains the corresponding filtering instruction, the real-time log generated in real time by the wireless communication module can be filtered, the real-time log corresponding to the non-target module is removed, for example, the user only wants to check the log corresponding to the network abnormality, the wireless communication module can filter the real-time log of other modules, only the real-time log corresponding to the network connection module or the network injection module is reserved, and a corresponding real-time log file is generated and fed back to the terminal.
In this embodiment, receiving the real-time log file sent by the wireless communication module through bluetooth communication may include: and receiving the real-time log file of the corresponding target module sent by the wireless communication module through Bluetooth communication.
Specifically, after receiving the real-time log file of the corresponding target module through the bluetooth communication formula, the terminal may perform corresponding debugging processing according to the corresponding real-time log file.
In the above embodiment, the filtering instruction is sent to the wireless communication module, so that the wireless communication module can filter out the real-time data of the non-target module based on the instruction of the filtering instruction, and the real-time log file fed back to the terminal can meet the requirement of the terminal, so that the number of data received by the terminal is reduced, the data transmission resource is saved, and the processing efficiency of the terminal can be improved.
In one embodiment, after receiving the real-time log file sent by the wireless communication module through bluetooth communication, the method may further include: sending a network inquiry instruction to the wireless communication module and receiving network data fed back by the wireless communication module; based on the network data, a network state of the wireless communication module is determined.
The network query instruction refers to an instruction for requesting to query the environment network where the wireless communication module is located.
In this embodiment, after receiving the network query instruction, the wireless communication module may acquire corresponding network data based on the network query instruction, which may include, for example, but not limited to, network operators, such as a communication, a mobile, or a telecommunication, and may also include network types, such as a 4G network, a 5G network, and the like, and whether the network is available, whether the network is normal, and the like.
In this embodiment, after the wireless communication module acquires the corresponding network data, the corresponding network data may be fed back to the terminal through a bluetooth communication manner, so that the terminal checks the network environment in which the wireless communication module is located according to the acquired network data, and further determines the network state.
In one embodiment, the method may further include: receiving a log deleting instruction, sending the log deleting instruction to the wireless communication module through Bluetooth communication, wherein the log deleting instruction is used for indicating the wireless communication module to delete an operation log file and generating corresponding feedback information; and receiving feedback information fed back by the wireless communication module, and determining whether deletion of the running log file is executed or not based on the feedback information.
In this embodiment, the user may generate the log deletion instruction periodically or aperiodically and transmit the log deletion instruction to the terminal, so that the terminal transmits the log file deletion instruction to the wireless communication module.
In this embodiment, after receiving the log deletion instruction, the wireless communication module may determine the running log file stored in the file system, and determine whether to delete part or all of the running log file.
Specifically, the wireless communication module may obtain the number of files of the running log file that have been stored from the file system, and determine whether the number of files is greater than or equal to a preset threshold.
The preset threshold may be a threshold that is sent by the terminal when the log deletion instruction is sent, or may be a threshold that is determined by the file system according to its own storage capability, for example, 80% of the storage capacity of the file system.
In this embodiment, when determining that the number of the running log files already stored in the file system is smaller than the preset threshold, the wireless communication module may not process the file system, generate feedback information that is not processed, and send the feedback information to the terminal.
Alternatively, when the wireless communication module determines that the number of the running log files already stored in the file system is greater than or equal to the preset threshold, the wireless communication module may determine to delete part or all of the running log files according to the generation time of the running log files already stored in the file system. For example, if all the files are determined to be one month or two months ago, all the files may be deleted, and if some are recent, such as the last worship's log file, the one worship's log file is retained.
Alternatively, the wireless communication module may delete a part of the running log files according to the generating time of the running log files already stored in the file system and the sequence of the generating time, for example, delete the running log files 40% of the running log files with the generating time being the first.
It will be appreciated by those skilled in the art that these are merely examples, and that in practical applications, the deletion of these log files may be determined based on other factors, and the present application is not limited in this respect.
In this embodiment, after deleting the corresponding running log file, the wireless communication module may generate corresponding feedback information, for example, the feedback information may include that all the running log files are deleted or that the running log files are deleted one month ago, and the like, and feed back the corresponding feedback information to the terminal.
In this embodiment, after receiving the corresponding feedback information, the terminal may analyze the feedback information and determine whether the running log files have been deleted, and determine which running log files have been deleted.
In one embodiment, the log deletion instruction may also include specific deletion information, for example, deleting the running log file one month before the current time, and then sending the deletion information to the wireless communication module. After receiving the log deleting instruction, the wireless communication module can delete the corresponding operation log file according to the deleting information, generate deleted or undeleted feedback information and feed back the feedback information to the terminal.
In one embodiment, the method may further include: acquiring an upgrade file for upgrading the whole equipment of the Internet of things; and the wireless communication module performs equipment upgrading on the whole equipment of the Internet of things through the upgrade file.
In this embodiment, when the whole equipment of the internet of things is abnormal and repair is completed, or after the whole equipment of the internet of things is used for a certain time interval, equipment upgrading can be performed through the terminal.
Specifically, the terminal may receive an upgrade file sent by the upper computer, for example, the upgrade file may be an upgrade file corresponding to the whole equipment of the internet of things, or an upgrade file corresponding to the wireless communication module, and send the upgrade file to the wireless communication module through the bluetooth communication module, so as to upgrade the whole equipment of the internet of things and/or the wireless communication module through the wireless communication module.
In this embodiment, the bluetooth communication module and the terminal mainly implement an AT instruction function through a bluetooth channel, and when necessary, a client may send an AT instruction through the bluetooth channel, where the channel function is the same as the main AT channel function, and may implement standard AT instruction interaction, so as to implement a request and obtain of an operation log file in the terminal wireless communication module, and perform debugging.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
In an embodiment, as shown in fig. 3, there is provided a debugging device for an internet of things complete machine device, where, as described above, the internet of things complete machine device is loaded with a communication module, the communication module includes a bluetooth communication module and a wireless communication module, the wireless communication module stores an operation log file of the internet of things complete machine device through a file system, and the device may include a debugging request receiving module 100, a connection and forwarding module 200, an operation log file obtaining module 300, and a first debugging module 400, where:
The debug request receiving module 100 is configured to receive a debug request for debugging the whole internet of things device.
The connection and forwarding module 200 is configured to establish a connection with the bluetooth communication module and send a debug request to the wireless communication module through bluetooth communication.
The operation log file obtaining module 300 is configured to obtain an operation log file fed back by the wireless communication module.
The first debugging module 400 is configured to debug the whole equipment of the internet of things according to the running log file.
In one embodiment, the apparatus may further include:
the system comprises a wireless communication module, a real-time log file receiving module and a real-time log file sending module, wherein the wireless communication module is used for sending a real-time log file to the real-time log file receiving module through Bluetooth communication;
the second debugging module is used for determining an abnormal module in the whole equipment of the Internet of things based on the real-time log file and carrying out abnormal debugging on the abnormal module.
In one embodiment, the apparatus may further include:
the filtering instruction generation and transmission module is used for generating a filtering instruction corresponding to the target module and transmitting the filtering instruction to the wireless communication module, wherein the filtering instruction is used for indicating the wireless communication module to filter the real-time log of the non-target module from the real-time log data so as to generate a real-time log file corresponding to the target module.
In this embodiment, the real-time log file receiving module is configured to receive a real-time log file of a corresponding target module sent by the wireless communication module through bluetooth communication.
In one embodiment, the apparatus may further include:
and the network inquiry instruction sending module is used for sending a network inquiry instruction to the wireless communication module after receiving the real-time log file sent by the wireless communication module through Bluetooth communication and receiving network data fed back by the wireless communication module.
And the network state determining module is used for determining the network state of the wireless communication module based on the network data.
In one embodiment, the apparatus may further include:
the system comprises a deletion instruction receiving and sending module, a wireless communication module and a log deletion instruction receiving and sending module, wherein the deletion instruction receiving and sending module is used for receiving a log deletion instruction and sending the log deletion instruction to the wireless communication module through Bluetooth communication, and the log deletion instruction is used for indicating the wireless communication module to delete an operation log file and generating corresponding feedback information.
The feedback information receiving and processing module is used for receiving the feedback information fed back by the wireless communication module and determining whether the deletion of the operation log file is executed or not based on the feedback information.
In one embodiment, the apparatus may further include:
The upgrade file acquisition module is used for acquiring an upgrade file for upgrading the whole equipment of the Internet of things.
The upgrade file forwarding module is used for sending the upgrade file to the wireless communication module through the Bluetooth communication module, and the wireless communication module performs equipment upgrade on the whole equipment of the Internet of things through the upgrade file.
The specific limitation of the device for debugging the whole equipment of the internet of things can be referred to the limitation of the method for debugging the whole equipment of the internet of things, and the description thereof is omitted herein. All or part of the modules in the whole equipment debugging device of the Internet of things can be realized through software, hardware and a combination of the software and the hardware. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as debugging requests, running log files and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a debugging method of the whole equipment of the Internet of things.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 4 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory storing a computer program and a processor that when executing the computer program performs the steps of: receiving a debugging request for debugging the whole equipment of the Internet of things; establishing connection with the Bluetooth communication module, and forwarding a debugging request to the wireless communication module through the Bluetooth communication module; acquiring an operation log file fed back by a wireless communication module; and according to the operation log file, performing equipment debugging on the whole equipment of the Internet of things.
In one embodiment, the following steps may also be implemented when the processor executes the computer program: receiving a real-time log file sent by the wireless communication module through the Bluetooth communication module, wherein the real-time log file is sent in real time by the wireless communication module when the abnormality of the whole equipment of the Internet of things is detected; and determining an abnormal module in the whole equipment of the Internet of things based on the real-time log file, and performing abnormal debugging on the abnormal module.
In one embodiment, the processor when executing the computer program further performs the steps of: and generating a filtering instruction corresponding to the target module, and sending the filtering instruction to the wireless communication module, wherein the filtering instruction is used for indicating the wireless communication module to filter the real-time log of the non-target module from the real-time log data, so as to generate a real-time log file corresponding to the target module.
In this embodiment, receiving the real-time log file sent by the wireless communication module through bluetooth communication may include: and receiving the real-time log file of the corresponding target module sent by the wireless communication module through Bluetooth communication.
In one embodiment, after the processor executes the computer program to receive the real-time log file sent by the wireless communication module through bluetooth communication, the following steps may be further implemented: sending a network inquiry instruction to the wireless communication module and receiving network data fed back by the wireless communication module; based on the network data, a network state of the wireless communication module is determined.
In one embodiment, the processor when executing the computer program further performs the steps of: receiving a log deleting instruction, sending the log deleting instruction to the wireless communication module through Bluetooth communication, wherein the log deleting instruction is used for indicating the wireless communication module to delete an operation log file and generating corresponding feedback information; and receiving feedback information fed back by the wireless communication module, and determining whether deletion of the running log file is executed or not based on the feedback information.
In one embodiment, the following steps may also be implemented when the processor executes the computer program: acquiring an upgrade file for upgrading the whole equipment of the Internet of things; and the wireless communication module performs equipment upgrading on the whole equipment of the Internet of things through the upgrade file.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a debugging request for debugging the whole equipment of the Internet of things; establishing connection with the Bluetooth communication module, and forwarding a debugging request to the wireless communication module through the Bluetooth communication module; acquiring an operation log file fed back by a wireless communication module; and according to the operation log file, performing equipment debugging on the whole equipment of the Internet of things.
In one embodiment, the computer program when executed by the processor may further implement the steps of: receiving a real-time log file sent by the wireless communication module through Bluetooth communication, wherein the real-time log file is sent in real time by the wireless communication module when the abnormality of the whole equipment of the Internet of things is detected; and determining an abnormal module in the whole equipment of the Internet of things based on the real-time log file, and performing abnormal debugging on the abnormal module.
In one embodiment, the computer program when executed by the processor further performs the steps of: and generating a filtering instruction corresponding to the target module, and sending the filtering instruction to the wireless communication module, wherein the filtering instruction is used for indicating the wireless communication module to filter the real-time log of the non-target module from the real-time log data, so as to generate a real-time log file corresponding to the target module.
In this embodiment, receiving the real-time log file sent by the wireless communication module through bluetooth communication may include: and receiving the real-time log file of the corresponding target module sent by the wireless communication module through Bluetooth communication.
In one embodiment, after the computer program is executed by the processor to implement receiving the real-time log file sent by the wireless communication module through bluetooth communication, the following steps may be implemented: sending a network inquiry instruction to the wireless communication module and receiving network data fed back by the wireless communication module; based on the network data, a network state of the wireless communication module is determined.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a log deleting instruction, sending the log deleting instruction to the wireless communication module through Bluetooth communication, wherein the log deleting instruction is used for indicating the wireless communication module to delete an operation log file and generating corresponding feedback information; and receiving feedback information fed back by the wireless communication module, and determining whether deletion of the running log file is executed or not based on the feedback information.
In one embodiment, the computer program when executed by the processor may further implement the steps of: acquiring an upgrade file for upgrading the whole equipment of the Internet of things; and the wireless communication module performs equipment upgrading on the whole equipment of the Internet of things through the upgrade file.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. The utility model provides a debugging method of complete machine equipment of the Internet of things, its characterized in that, complete machine equipment of the Internet of things is loaded with communication module, and communication module includes bluetooth communication module and wireless communication module, wireless communication module passes through file system storage the operation log file of complete machine equipment of the Internet of things, the method includes:
receiving a debugging request for debugging the whole Internet of things equipment;
Establishing connection with the Bluetooth communication module, and sending the debugging request to the wireless communication module through Bluetooth communication;
after the wireless communication module acquires the operation log file corresponding to the request, converting the data format of the acquired operation log file to acquire the operation log file required by the corresponding data format;
and determining the running state of each execution component of the whole equipment of the Internet of things according to the running log file, and debugging the whole equipment of the Internet of things based on the running state.
2. The method according to claim 1, wherein the method further comprises:
receiving a real-time log file sent by the wireless communication module through Bluetooth communication, wherein the real-time log file is sent in real time by the wireless communication module when the abnormality of the whole equipment of the Internet of things is detected;
and determining an abnormal module in the whole equipment of the Internet of things, which is abnormal, based on the real-time log file, and performing abnormal debugging on the abnormal module.
3. The method according to claim 2, wherein the method further comprises:
generating a filtering instruction corresponding to a target module, and sending the filtering instruction to the wireless communication module, wherein the filtering instruction is used for indicating the wireless communication module to filter a real-time log of a non-target module from real-time log data, and generating a real-time log file corresponding to the target module;
The receiving the real-time log file sent by the wireless communication module through Bluetooth communication comprises the following steps:
and receiving a real-time log file corresponding to the target module, which is sent by the wireless communication module through Bluetooth communication.
4. The method of claim 2, wherein after receiving the real-time log file transmitted by the wireless communication module through bluetooth communication, further comprising:
sending a network inquiry instruction to the wireless communication module and receiving network data fed back by the wireless communication module;
based on the network data, a network state of the wireless communication module is determined.
5. The method according to claim 1, wherein the method further comprises:
receiving a log deleting instruction, and sending the log deleting instruction to the wireless communication module through Bluetooth communication, wherein the log deleting instruction is used for indicating the wireless communication module to delete an operation log file and generating corresponding feedback information;
and receiving feedback information fed back by the wireless communication module, and determining whether deletion of the running log file is executed or not based on the feedback information.
6. The method according to claim 1, wherein the method further comprises:
Acquiring an upgrade file for upgrading the whole equipment of the Internet of things;
and the Bluetooth communication module sends the upgrade file to the wireless communication module, and the wireless communication module performs equipment upgrade on the whole equipment of the Internet of things through the upgrade file.
7. The utility model provides a complete machine equipment debugging device of thing networking, its characterized in that, complete machine equipment of thing networking is loaded with communication module, communication module includes bluetooth communication module and wireless communication module, wireless communication module passes through file system storage the operation log file of complete machine equipment of thing networking, the device includes:
the debugging request receiving module is used for receiving a debugging request for debugging the whole equipment of the Internet of things;
the connection and forwarding module is used for establishing connection with the Bluetooth communication module and sending the debugging request to the wireless communication module through Bluetooth communication;
the operation log file acquisition module is used for converting the data format of the acquired operation log file after the wireless communication module acquires the operation log file corresponding to the request so as to acquire the operation log file required by the corresponding data format;
The first debugging module is used for determining the running states of all execution components of the whole equipment of the Internet of things according to the running log file and debugging the whole equipment of the Internet of things based on the running states.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the real-time log file receiving module is used for receiving a real-time log file sent by the wireless communication module through Bluetooth communication, wherein the real-time log file is sent in real time when the wireless communication module detects that the whole equipment of the Internet of things is abnormal;
the second debugging module is used for determining an abnormal module in the whole equipment of the Internet of things, which is abnormal, based on the real-time log file, and carrying out abnormal debugging on the abnormal module.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202110275986.3A 2021-03-15 2021-03-15 Internet of things complete machine equipment debugging method and device, computer equipment and storage medium Active CN113132961B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110275986.3A CN113132961B (en) 2021-03-15 2021-03-15 Internet of things complete machine equipment debugging method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110275986.3A CN113132961B (en) 2021-03-15 2021-03-15 Internet of things complete machine equipment debugging method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113132961A CN113132961A (en) 2021-07-16
CN113132961B true CN113132961B (en) 2023-11-24

Family

ID=76773171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110275986.3A Active CN113132961B (en) 2021-03-15 2021-03-15 Internet of things complete machine equipment debugging method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113132961B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135532A (en) * 2013-01-30 2013-06-05 陈海波 Device and method for wireless debugging fault diagnosis
CN105550109A (en) * 2015-12-11 2016-05-04 四川长虹电器股份有限公司 Equipment debugging method and electronic equipment
CN110932887A (en) * 2019-11-15 2020-03-27 苏州浪潮智能科技有限公司 BMC debugging method, system and device
CN112148518A (en) * 2020-11-02 2020-12-29 深圳市九九互动科技有限公司 Log file processing method and device, computer equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070207800A1 (en) * 2006-02-17 2007-09-06 Daley Robert C Diagnostics And Monitoring Services In A Mobile Network For A Mobile Device
US9020463B2 (en) * 2011-12-29 2015-04-28 The Nielsen Company (Us), Llc Systems, methods, apparatus, and articles of manufacture to measure mobile device usage
WO2014094981A2 (en) * 2012-12-20 2014-06-26 Abb Ag Process automation system and commissioning method for a field device in a process automation system
US10764734B2 (en) * 2016-09-28 2020-09-01 Intel Corporation Service operation management using near-field communications
CN107273280B (en) * 2017-06-30 2021-02-09 百度在线网络技术(北京)有限公司 Log processing method and device, electronic equipment and storage medium
CN107360477B (en) * 2017-07-04 2020-09-11 北京理工大学 Multifunctional remote debugging device
CN108363667A (en) * 2018-02-27 2018-08-03 广州视源电子科技股份有限公司 A kind of log information capture apparatus
CN112423281B (en) * 2020-10-30 2023-11-24 深圳市广和通无线股份有限公司 Wireless module upgrading method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135532A (en) * 2013-01-30 2013-06-05 陈海波 Device and method for wireless debugging fault diagnosis
CN105550109A (en) * 2015-12-11 2016-05-04 四川长虹电器股份有限公司 Equipment debugging method and electronic equipment
CN110932887A (en) * 2019-11-15 2020-03-27 苏州浪潮智能科技有限公司 BMC debugging method, system and device
CN112148518A (en) * 2020-11-02 2020-12-29 深圳市九九互动科技有限公司 Log file processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113132961A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
CN110647438B (en) Event monitoring method and device, computer equipment and storage medium
CN109446068B (en) Interface test method, device, computer equipment and storage medium
CN110290212B (en) Service call recording method, device, computer equipment and storage medium
CN111143163B (en) Data monitoring method, device, computer equipment and storage medium
CN111475376B (en) Method, apparatus, computer device and storage medium for processing test data
CN110689232A (en) Workflow configuration optimization processing method and device and computer equipment
CN110677317B (en) Test method, test device, test equipment and storage medium
CN109460252B (en) Configuration file processing method and device based on git and computer equipment
CN109726134B (en) Interface test method and system
CN110704095A (en) Workflow-based configuration processing method and device, computer equipment and storage medium
WO2023168926A1 (en) Method and apparatus for determining software anomaly, storage medium, and electronic apparatus
CN109325058B (en) Rule batch comparison method, device, computer equipment and storage medium
CN112350861A (en) Log obtaining method and device, computer equipment and storage medium
CN110727581A (en) Collapse positioning method and electronic equipment
CN109802842B (en) Application topology generation method and related equipment
CN110780950B (en) Interface metadata management method, device, computer equipment and storage medium
CN111190609B (en) Service processing method, device, equipment and storage medium
CN110460668B (en) File uploading method and device, computer equipment and storage medium
CN111124872A (en) Branch detection method and device based on difference code analysis and storage medium
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN111538754A (en) Data collection management system, method, device, equipment and storage medium
CN114201511A (en) Project management and control method and device, computer equipment and storage medium
CN113821254A (en) Interface data processing method, device, storage medium and equipment
CN113132961B (en) Internet of things complete machine equipment debugging method and device, computer equipment and storage medium

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