Disclosure of Invention
The technical problem that this application will be solved is for providing a debugging device for wiFi module, and this debugging device simple manufacture, low cost satisfies the research and development personnel and downloads the firmware and snatchs the demand of working log. In addition, another technical problem to be solved by the present application is a debugging method for a WiFi module.
In order to solve the technical problem, the application provides a debugging device for a WiFi module, wherein the WiFi module is provided with a power supply pin, a grounding pin, a first downloading trigger pin, a second downloading trigger pin, a receiving serial port and a sending serial port, wherein the receiving serial port and the sending serial port are used for downloading software or grabbing a working log;
the power supply pin is used for being connected with an external power supply through a connecting circuit, and a first switch is arranged on the connecting circuit between the power supply pin and the external power supply; the first download trigger pin and the second download trigger pin are connected through a connecting line, and a second switch is arranged on the connecting line between the first download trigger pin and the second download trigger pin; so as to download software or capture a working log through the receiving serial port and the sending serial port by controlling the on or off of the first switch and the second switch.
In one embodiment of the present invention, the substrate is,
the second switch is a spring switch.
In one embodiment of the present invention, the substrate is,
the spring switch is provided with a spring button so as to realize the connection and disconnection between the first download trigger pin and the second download trigger pin by pressing or returning the spring button.
In one embodiment of the present invention, the substrate is,
the ground pin is connected with an external power supply through a connecting line.
In one embodiment of the present invention, the substrate is,
the receiving serial port is communicated with an external microcomputer client through a connecting line.
In one embodiment of the present invention, the substrate is,
the sending serial port is communicated with an external microcomputer client through a connecting line.
In addition, in order to solve the above technical problem, the present application also provides a debugging method for a WiFi module, where the WiFi module is provided with a power pin, a ground pin, a first download trigger pin, a second download trigger pin, and a receiving serial port and a sending serial port for downloading software or capturing a work log;
the power supply pin is used for being connected with an external power supply through a connecting circuit, and a first switch is arranged on the connecting circuit between the power supply pin and the external power supply; the first download trigger pin and the second download trigger pin are connected through a connecting line, and a second switch is arranged on the connecting line between the first download trigger pin and the second download trigger pin; so as to download software or capture a working log through the receiving serial port and the sending serial port by controlling the on or off of the first switch and the second switch;
the development and debugging method comprises the following steps:
closing the second switch;
closing the first switch;
opening the second switch;
and the software is downloaded by connecting the receiving serial port and the sending serial port with an external microcomputer client.
In one embodiment of the present invention, the substrate is,
the second switch is a spring switch, and the spring switch is provided with a spring button;
when the second switch is switched on or switched off, the first download trigger pin and the second download trigger pin are switched on and off by pressing or returning the spring button.
Moreover, in order to solve the above technical problem, the present application further provides a debugging method for a WiFi module, where the WiFi module is provided with a power pin, a ground pin, a first download trigger pin, a second download trigger pin, and a receiving serial port and a sending serial port for downloading software or capturing a work log;
the power supply pin is used for being connected with an external power supply through a connecting circuit, and a first switch is arranged on the connecting circuit between the power supply pin and the external power supply; the first download trigger pin and the second download trigger pin are connected through a connecting line, and a second switch is arranged on the connecting line between the first download trigger pin and the second download trigger pin; so as to download software or capture a working log through the receiving serial port and the sending serial port by controlling the on or off of the first switch and the second switch;
the development and debugging method comprises the following steps:
closing the first switch;
and the working logs are grabbed by connecting the receiving serial port and the sending serial port with an external microcomputer client.
The technical effects of the embodiments of the present application are described below:
in an embodiment, in the debugging device for the WiFi module provided by the present application, the WiFi module is provided with a power pin, a ground pin, a first download trigger pin, a second download trigger pin, and a receiving serial port and a sending serial port for downloading software or capturing a working log; on the basis of the above-mentioned pin definition,
an external power supply is connected with the power supply pin through a connecting circuit, and a first switch is arranged on the connecting circuit between the external power supply and the power supply pin;
the first download trigger pin and the second download trigger pin are connected through a connecting line, and a second switch is arranged on the connecting line between the first download trigger pin and the second download trigger pin, so that the first switch and the second switch are controlled to be opened or closed, and the serial port receiving and serial port sending download software or the working log grabbing are realized.
Based on the technical scheme provided by the embodiment, the development and debugging of the WiFi module mainly involve two operations: downloading firmware and capturing log. Downloading firmware is to download written software to a WiFi module for operation; and the log capturing is to use serial port software to receive information output by the serial port so as to observe whether the software runs normally or is used for problem analysis.
The method comprises the following steps of downloading the firmware, wherein the first step is to short-circuit the first download trigger pin and the second download trigger pin, the second step is to switch on the power supply, and the third step is to disconnect the first download trigger pin and the second download trigger pin, so that the module enters a download mode, and then the firmware can be downloaded to the Wi-Fi module by using the firmware download software.
And the log capturing step is to keep the first download trigger pin and the second download trigger pin in an off state, and switch on a power supply, so that log information can be output by the receiving serial port and the sending serial port, and log software can be used for capturing and analyzing.
In conclusion, the debugging device provided by the application is simple to manufacture, simple in technology and low in cost, and meets the requirements of research personnel for downloading firmware and grabbing work logs.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
In some of the flows described in the present specification and claims and in the above figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, with the order of the operations being indicated as 101, 102, etc. merely to distinguish between the various operations, and the order of the operations by themselves does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic pin definition diagram of a WiFi module; fig. 2 is a schematic structural diagram of a commissioning apparatus for a WiFi module shown in an exemplary embodiment of the present application.
In one embodiment, in the debugging apparatus for the WiFi module 10 provided in the present application, as shown in fig. 1, the WiFi module 10 is provided with a power pin 1, a ground pin 2, a first download trigger pin 3, a second download trigger pin 4, a receiving serial port 5, and a sending serial port 6; the pin of the WiFi module 10 is defined as follows: no. 1 pin is the power, can be 3.3V or 5V etc., and No. 2 pin is GND, and ground connection promptly, and No. 3 and No. 4 are download trigger pin, can trigger when the two short circuit and enter the download mode. No. 5 and No. 6 are serial port receiving and transmitting respectively. The power supply and the GND belong to a power supply system, and serial port receiving and transmitting can be used for downloading firmware and capturing logs, namely a receiving serial port 5 and a sending serial port 6.
Based on the above pin definitions, as shown in figure 2,
an external power supply is connected with the power supply pin 1 through a connecting line, and a first switch 31 is arranged on the connecting line between the external power supply and the power supply pin 1;
the first download trigger pin 3 and the second download trigger pin 4 are connected through a connecting line, and a second switch 32 is arranged on the connecting line between the first download trigger pin and the second download trigger pin, so that software is downloaded or a working log is captured through the receiving serial port and the sending serial port by controlling the opening or closing of the first switch and the second switch.
Based on the technical solution provided by the above embodiment, the development and debugging of the WiFi module 10 mainly involves two operations: downloading firmware and capturing log. Downloading firmware is to download the written software into the WiFi module 10 for operation; and the log capturing is to use serial port software to receive information output by the serial port so as to observe whether the software runs normally or is used for problem analysis.
The firmware is downloaded in several steps, wherein the first step is to short-circuit the first download trigger pin 3 and the second download trigger pin 4, the second step is to switch on the power supply, and the third step is to disconnect the first download trigger pin 3 and the second download trigger pin 4, so that the module enters a download mode, and then the firmware can be downloaded to the Wi-Fi module by using the firmware download software.
And the log capturing step is that the first downloading trigger pin 3 and the second downloading trigger pin 4 are kept in an off state, the power supply is switched on, log information is output by the receiving serial port 5 and the sending serial port 6, and log software can be used for capturing and analyzing.
To sum up, the debugging device that this application provided simple manufacture, low cost can personally assemble by oneself, satisfies the research and development personnel and downloads the firmware and snatchs the demand of working journal.
Referring to fig. 3 to fig. 6, fig. 3 is a schematic structural diagram of the debugging apparatus for the WiFi module in fig. 2 when the second switch is closed; fig. 4 is a schematic structural diagram of the debugging apparatus for the WiFi module in fig. 3 when the first switch is closed again; fig. 5 is a schematic structural diagram of the debugging apparatus for the WiFi module in fig. 4 when the second switch is turned off; fig. 6 is a schematic structural diagram of a commissioning apparatus for a WiFi module shown in another exemplary embodiment of the present application.
In some embodiments, as shown in fig. 6, the second switch 32 is a spring switch. The spring switch is provided with a spring button so as to realize connection and disconnection between the first download trigger pin 3 and the second download trigger pin 4 through pressing or returning of the spring button. Obviously, this structure can conveniently realize the on and off of the second switch 32.
Further, as shown in fig. 2 to 6, the power supply 20 is connected to the ground pin 2 through a connection line. The external microcomputer client 40 is connected to the receiving serial port 5. The external microcomputer client 40 is connected to the transmission serial port 6.
In addition, the application also provides a debugging method for the WiFi module 10, specifically, the WiFi module 10 is provided with a power pin 1, a ground pin 2, a first download trigger pin 3, a second download trigger pin 4, a receiving serial port 5 and a sending serial port 6;
the debugging device comprises a power supply and a microcomputer client 40;
the power supply pin 1 is used for being connected with an external power supply 20 through a connecting line, and a first switch 31 is arranged on the connecting line between the power supply pin and the external power supply; the first download trigger pin 3 and the second download trigger pin 4 are connected through a connection line, and a second switch 32 is arranged on the connection line between the first download trigger pin and the second download trigger pin; so as to download software or capture a work log through the receiving serial port 5 and the sending serial port 6 by controlling the on or off of the first switch 31 and the second switch 32;
on the basis of the above-mentioned technical scheme,
as shown in fig. 3, the second switch 32 is closed;
then, as shown in fig. 4, the first switch 31 is closed;
next, as shown in fig. 5, the second switch 32 is turned off;
the software is downloaded by connecting the microcomputer client 40 with the receiving serial port 5 and the sending serial port 6.
In the above method embodiment, a further improved design can be made. For example, the second switch 32 is a spring switch, and the spring switch is provided with a spring button; when the second switch 32 is closed or opened, the first download trigger pin 3 and the second download trigger pin 4 are connected or disconnected through the pressing or returning of the spring button. This method is designed to enable the second switch 32 to be turned on and off very conveniently.
In addition, the present application also provides another debugging method for the WiFi module 10,
the WiFi module is provided with a power supply pin, a grounding pin, a first downloading trigger pin, a second downloading trigger pin, a receiving serial port and a sending serial port, wherein the receiving serial port and the sending serial port are used for downloading software or grabbing a working log;
the power supply pin 1 is used for being connected with an external power supply 20 through a connecting line, and a first switch 31 is arranged on the connecting line between the power supply pin and the external power supply; the first download trigger pin 3 and the second download trigger pin 4 are connected through a connection line, and a second switch 32 is arranged on the connection line between the first download trigger pin and the second download trigger pin; so as to download software or capture a work log through the receiving serial port 5 and the sending serial port 6 by controlling the on or off of the first switch 31 and the second switch 32;
the debugging method comprises the following steps:
closing the first switch 31;
the working log is grabbed by connecting the microcomputer client 40 with the receiving serial port 5 and the sending serial port 6.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Reference throughout this specification to "embodiments," "some embodiments," "one embodiment," or "an embodiment," etc., means that a particular feature, component, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, appearances of the phrases "in various embodiments," "in some embodiments," "in at least one other embodiment," or "in an embodiment," or the like, throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, components, or characteristics may be combined in any suitable manner in one or more embodiments. Thus, without limitation, a particular feature, component, or characteristic illustrated or described in connection with one embodiment may be combined, in whole or in part, with a feature, component, or characteristic of one or more other embodiments. Such modifications and variations are intended to be included within the scope of the present application.
Moreover, those skilled in the art will appreciate that aspects of the present application may be illustrated and described in terms of several patentable species or situations, including any new and useful combination of processes, machines, manufacture, or materials, or any new and useful improvement thereon. Accordingly, various aspects of the present application may be embodied entirely in hardware, entirely in software (including firmware, resident software, micro-code, etc.) or in a combination of hardware and software. The above hardware or software may be referred to as "data block," module, "" engine, "" terminal, "" component, "or" system. Furthermore, aspects of the present application may be represented as a computer product, including computer readable program code, embodied in one or more computer readable media.
It is to be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that an article or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.