Detailed description of the invention
Below by drawings and Examples, technical scheme is described in further detail.
The one wireless SD card structure schematic diagram that Fig. 1 provides for the embodiment of the present invention, as it is shown in figure 1, should
Wireless SD card includes main control unit 10 and wireless transmission unit 20, and it is defeated that main control unit 10 is provided with GPIO
Inbound port, this GPIO input port is connected a switching device 30, can be arranged by switching device 30
The level value of the GPIO input port of main control unit 10.Main control unit 10 is according to GPIO input port
Level value reads corresponding configuration parameter from nonvolatile memory 40, and controls wireless transmission unit 20
Start corresponding mode of operation.For example, when the level value of the GPIO input port of main control unit 10 is set to
Gao Shi, main control unit 10 will be configured to AP mould the mode of operation of wireless transmission unit 20 when powering on
Formula.
It should be noted that above-mentioned nonvolatile memory 40 runs phase for storage with main control unit 10
The program closed and parameter, it can be integrated in main control unit 10, it is also possible to independent of main control unit 10
Outside (as shown in Figure 3).
In one example, switching device 30 can use an electrical connection physical switch, by control electricity
Connect physical switch, the level value of the GPIO input port of main control unit 10 can be set high or set low.
For example, when the default value of GPIO input port is high level, by electrical connection physical switch by GPIO
Input port and a low level are connected, and when electrically connecting physical switch Guan Bi, GPIO input port is in
Low level state;When electrically connecting physical switch and opening, GPIO input port is in high level state.With
Sample, when the default value of GPIO input port is low level, then by electrical connection physical switch by GPIO
Input port and a high level are connected, and when electrically connecting physical switch Guan Bi, GPIO input port is in
High level state;When electrically connecting physical switch and opening, GPIO input port is in low level state.
The another kind wireless SD card structure schematic diagram that Fig. 2 provides for the embodiment of the present invention, as in figure 2 it is shown,
This is wireless, and SD card is with the difference of the wireless SD card shown in Fig. 1, and wireless SD card is wirelessly transferred list
Unit 20 is built in main control unit 10, thus effectively saves the inner space of wireless SD card.
Fig. 4 is wireless SD card course of work schematic diagram.As shown in Figure 4, the course of work of wireless SD card
As follows:
Wireless SD card powers on, and Bootloader program starts, and first Bootloader program detects GPIO
The level value of input port, when the level value of GPIO input port is high level, Bootloader program
The AP parameter preserving in nonvolatile memory will be accessed, and call AP startup program, make wireless SD card
It is operated in ap mode (the numbered mode of operation 1 of ap mode).
Under ap mode, wireless SD card will be self-built according to Default Value or user-defined parameter
Wi-Fi Hotspot and the webserver, Default Value or User Defined parameter include: SSID(Service Set
Identifier, service set), cipher mode, access key, working channel, signal strength signal intensity etc..
Other Wi-Fi Station equipment can be linked on this Wi-Fi Hotspot, and accesses this nothing according to authority
The data of line SD card.
In one example, other Wi-Fi Station equipment can be by the mode such as webpage, client
Access the configuration page of AP, and the running parameter of self-defined Wi-Fi Hotspot and AP.These parameters are protected
Deposit in the nonvolatile memory.When system restarts, wireless SD card will set according to new configuration
Determine the running parameter of AP.After by formatting or alternate manner factory reset, wireless SD card
All parameters will return to the default setting that dispatches from the factory.
In another example, other Wi-Fi Station equipment can be by the side such as the page, client
Formula access AP the configuration page, this configuration page can set when electrical connection physical switch be switched to by
When GPIO sets low, the mode of operation of wireless SD card, and running parameter in this mode.These parameters
Will be stored on nonvolatile memory.
As shown in Figure 4, when detected GPIO input port is low level, Bootloader program will
Nonvolatile memory can be accessed, and according to the parameter on nonvolatile memory, call corresponding program,
And allowing wireless SD card be operated in corresponding mode of operation, its running parameter is also by being saved in non-volatile depositing
Parameter on reservoir determines.These mode of operations include Station pattern (mode of operation 2), Wi-Fi
Direct pattern (mode of operation 3), Ad-hoc pattern (mode of operation 4), another ap mode
(mode of operation 5), or close one or more in wireless module (mode of operation 6).
Fig. 5 is the running parameter switching schematic diagram under wireless SD card AP mode of operation.As it is shown in figure 5,
When wireless SD be stuck under mode of operation 1 receive need to change the request of corresponding running parameter when, Ke Yitong
Cross Wi-Fi Station equipment and access AP, enter the configuration page, and changed by configuring the page and preserve
AP parameter, after automatic or manual restarts wireless SD card, wireless SD card will be operated according to new parameter
Under ap mode.
Fig. 6 is the running parameter switching schematic diagram under wireless other mode of operations of SD card.As shown in Figure 6,
When wireless SD card be operated in mode of operation the 2nd, mode of operation the 3rd, mode of operation the 4th, mode of operation 5 or
One (being set as mode of operation A) in mode of operation 6, needs the parameter of modification Mode A,
Or need the another kind (being set as mode of operation B) mode of operation being adjusted in above-mentioned mode of operation
When, by stirring electrical connection physical switch, GPIO input port can be set to high level, allow wireless
SD card enters mode of operation 1, i.e. ap mode after restarting, and then uses other Wi-Fi Station
Equipment accesses this AP, after corresponding parameter is modified and is saved on nonvolatile memory,
By electrically connecting physical switch, GPIO input port is set to low level again, after restarting wireless SD card,
Now wireless SD card will be operated according to new mode of operation or new running parameter.
When needs are switched to mode of operation 1 from other patterns, i.e. during ap mode, it is only necessary to will electrical connection
Physical switch pushes the position setting high GPIO, restarts wireless SD card, and system will be operated in
Mode of operation 1, i.e. ap mode.
The application example of the present invention is not limited to by electrical connection physical switch setting high GPIO
Realize wireless SD card is configured to ap mode, GPIO is set low and realizes SD card is configured to other
Mode of operation;It is equally applicable to realize wireless by electrical connection physical switch by setting low of GPIO
SD card is configured to ap mode, sets high GPIO and realizes wireless SD card is configured to other patterns.
The application example of the present invention is not limited under ap mode change the ginseng under all working pattern
Number, when setting a kind of mode of operation as default operating mode, equally also can change in this mode
The parameter of all working pattern.
The wireless SD card that the embodiment of the present invention provides electrically connects physical switch by increasing by one, and wireless
Software merit rating within SD card, it is achieved that wireless SD is stuck in the switching between different mode.
Above-described detailed description of the invention, is carried out to the purpose of the present invention, technical scheme and beneficial effect
Further describe, be it should be understood that the foregoing is only the present invention detailed description of the invention and
, the protection domain being not intended to limit the present invention, all within the spirit and principles in the present invention, done
Any modification, equivalent substitution and improvement etc., should be included within the scope of the present invention.