Disclosure of Invention
The invention aims to provide a method and a device for modifying the state of electronic equipment, which aim at low-power-consumption electronic equipment which has a severe working environment and is not easy to replace a battery after being put into use, solve the problems caused by the adoption of schemes such as Bluetooth and the like in the related art, greatly reduce the electric quantity loss in the storage and transportation processes and improve the usability and the user experience of the equipment.
In one aspect, the present invention provides a method for modifying a state of an electronic device, which is characterized by comprising the following steps:
Receiving magnetically encoded information;
inquiring equipment state information corresponding to the magnetic coding information in a magnetic coding information equipment state mapping relation according to the magnetic coding information;
Setting the electronic equipment to a second state, wherein the second state is a state corresponding to the equipment state information;
And feeding back the electronic equipment state modification result.
Preferably, before the step of setting the electronic device to the second state, the method further includes:
Obtaining a first state of the electronic equipment, wherein the first state is a state corresponding to original equipment state information of the electronic equipment;
Judging whether the original equipment state information is consistent with the equipment state information or not;
and if the set state is inconsistent, the step of setting the electronic equipment to the second state is executed.
Preferably, after the step of feeding back the electronic device state modification result, the method further includes storing the current state information of the electronic device as original device state information of the electronic device.
Specifically, the feedback of the electronic device state modification result only feeds back the modification success, and if the modification fails or is not modified, no feedback is provided.
In another aspect, the present invention provides an electronic device state modifying apparatus, including: the information processing device comprises an information storage device, an information sensing device, an information processing device and a result feedback device;
The information storage device is used for storing different coded information, and transmitting the coded information to the information sensing device in a non-contact mode corresponding to different working states;
The information sensing device is arranged in the electronic device and is used for sensing the coded information stored by the information storage device in a non-contact mode and transmitting the coded information to the information processing device;
The information processing equipment is arranged in the electronic equipment and is used for receiving and processing the coded information transmitted by the information sensing equipment;
the result feedback device is arranged in the electronic device and is used for receiving the execution result sent by the electronic device and carrying out corresponding feedback according to the execution result.
Further, the electronic device state modifying apparatus further includes a power supply interface respectively connecting the information sensing device and the information processing device to a power supply port of the electronic device, for respectively providing electric energy for the information sensing device and the information processing device.
Specifically, the information storage device is a magnetic coding tag, and the stored coding information is magnetic coding information.
Specifically, the information sensing device is magnetic induction equipment, and senses the magnetic coding information.
Further, the non-contact mode is that the magnetic coding label is uniformly scratched within the range of 1cm (+ -0.5 cm) above the magnetic induction device at the speed of 2cm/s (+ -10%).
Further, the result prompting device is a buzzer.
The method and the device for modifying the state of the electronic equipment solve the problems caused by modifying the state of the electronic equipment by using schemes such as Bluetooth and the like in the related technology, greatly reduce the electric quantity loss of the low-power-consumption electronic equipment which has a severe working environment and is difficult to replace a battery after being put into use in the storage and transportation processes, and improve the usability and the user experience of the equipment.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
Embodiment 1, an electronic device state modification method, as shown in fig. 1, includes the following steps:
Step S101, receiving magnetic coding information;
step S102, inquiring equipment state information corresponding to the magnetic coding information in a magnetic coding information equipment state mapping relation according to the magnetic coding information;
step S103, modifying the state of the electronic equipment into a state corresponding to the equipment state information;
Step S104, waiting for the electronic device status modification result:
if the modification is successful, step S105 is executed;
if the modification fails or is not modified, executing step S101;
Step S105, feeding back the electronic device status modification result.
Through the steps, the state of the electronic equipment is modified according to the magnetic coding information, and the modification result is fed back, so that the problems of accidental triggering of a magnetic object, poor portability, low reliability, poor user experience and the like caused by modifying the state of the electronic equipment by using schemes such as Bluetooth and the like in the related technology are avoided, a new modification mode is provided, the electric quantity loss of low-power-consumption electronic equipment which has a severe working environment and is difficult to replace a battery after the electronic equipment is put into use is greatly reduced, and the usability and the user experience of the equipment are improved.
Embodiment 2. A method for modifying a state of an electronic device, as shown in fig. 2, includes the steps of:
Step S201, receiving magnetic coding information;
Step S202, inquiring equipment state information corresponding to the magnetic coding information in a magnetic coding information equipment state mapping relation according to the magnetic coding information;
step S203, original equipment state information of the electronic equipment is read;
Step S204, determining whether the original device state information of the electronic device is consistent with the queried device state information:
If so, executing step S201;
if not, executing step S205;
step S205, modifying the state of the electronic device to a state corresponding to the device state information;
step S206, waiting for the electronic device status modification result:
if the modification is successful, step S207 is performed;
if the modification fails or is not modified, step S201 is executed;
step S207, feeding back the electronic equipment state modification result;
Step S208, storing the current state information of the electronic device as the original device state information.
Corresponding to fig. 2 described above, embodiment 3 provides an electronic device state modifying apparatus, as shown in fig. 3, including: a magnetic coded label 31, a magnetic induction device 32, an information processing device 33, a buzzer 34.
The magnetic encoding tag 31 is configured to store different magnetic encoding information, and transmit the information to the magnetic induction device 32 in a magnetic induction manner, corresponding to different working states.
The magnetic induction device 32 is installed in the electronic device, and is configured to induce the magnetic encoded information stored in the magnetic encoded tag 31 by magnetic induction, and transmit the magnetic encoded information to the information processing device 33.
The information processing device 33 is installed in the electronic device and is used for receiving and processing the magnetic coding information transmitted by the magnetic induction device 32.
The buzzer 34 is installed in the electronic device, and is configured to receive an execution result sent by the electronic device, and perform corresponding feedback according to the execution result.
Further, the electronic device state modifying apparatus also has a power supply interface, which connects the magnetic induction device 32 and the information processing device 33 to power supply ports of the electronic device, respectively, for supplying electric power to the magnetic induction device 32 and the information processing device 33, respectively.
Specifically, the magnetic encoding tag 31 is composed of a plurality of small magnetic strips with the width of 0.5cm x 3cm and a 3cm wide ruler made of hard non-magnetic materials, and the length of the small magnetic strips is the same as the width of the ruler, so that the small magnetic strips are transversely attached to the ruler. On the ruler, each small magnetic stripe represents a binary 1, each 0.5cm void represents a binary 0, and no more than 3 consecutive occurrences are allowed, either binary 1 or binary 0.
Further, the magnetically encoded tag 31 is composed of two parts: an active segment and a data segment. For different magnetically encoded tags 31 applied to a certain determined electronic device, the active segments should be identical, but only the data segments differ, and the active segments and the data segments each start with one binary 1 and end with four binary 0 s. The specific codes in the activation section and the data section can be designed by a manufacturer according to the requirements. By adopting the sectional design, the false triggering of the magnetic object can be effectively avoided, the probability of the MCU in the electronic equipment being awakened by mistake is greatly reduced, and the corresponding electric quantity loss is reduced.
Specifically, the magnetic induction device 32 adopts a PNI triaxial high-precision magnetic induction module. The X, Y two-axis sensor is 6.0 x 2.1 x 2.2mm,Z-axis sensor is 3.0 x 3.0 x 5.75mm, so the magnetic induction device 32 can be made small in size without taking up much space inside the electronic device.
Further, the magnetic induction device 32 has three states: working state, standby state, dormant state. When in the operating state, the sampling frequency of the magnetic induction device 32 is 4Hz; when in the standby state, the sampling frequency of the magnetic induction device 32 is 1Hz; when in the sleep state, the sampling frequency of the magnetic induction device 32 is 0.5Hz. Correspondingly, the higher the sampling frequency of the magnetic induction device 32 is, the higher the power consumption is, but even in the working state with the sampling frequency of 4Hz, the peak current is smaller than 10uA, which is far smaller than the working current of the bluetooth module in the related technical scheme. The magnetic induction device 32 can be set by the MCU in which state it is not operating, and is typically set to the sleep state with a sampling frequency of 0.5Hz when the electronic device is in the sleep state with ultra-low power consumption; when the electronic equipment is in a normal standby state, the magnetic induction equipment is also set to be in the standby state with the sampling frequency of 1 Hz. Whatever the state of the magnetic induction device 32 was previously, it is immediately switched to the operating state with a sampling frequency of 4Hz when it is detected that the ambient magnetic field strength exceeds a given threshold value; when the detected surrounding magnetic field intensity is lower than the preset threshold again, the state is switched back to the original state immediately.
When the magnetically encoded tag 31 is placed in the vicinity of the magnetic induction device 32, the surrounding field strength exceeds a given threshold value of the magnetic induction device 32, and thus immediately switches to the operating state with a sampling frequency of 4 Hz. Since the minimum width of the small magnetic stripe or gap on the magnetic encoding tag 31 is 0.5cm, when the magnetic encoding tag 31 is uniformly marked from the area 1cm (+ -0.5 cm) above the magnetic induction device 32 at a speed of 2cm/s (+ -10%), the encoding rate of the magnetic encoding tag 31 is also 4Hz, so that the encoding rate is exactly matched with the sampling frequency of the magnetic induction device 32, and the magnetic encoding information carried by the magnetic encoding tag 31 can be transferred to the magnetic induction device 32 by magnetic induction.
Specifically, the information processing device 33 also employs a PNI processing chip, and may receive the magnetically encoded information induced by the magnetic induction device 32. Since the active segment and the data segment of the magnetic encoding tag 31 are both started with a binary 1 and ended with four binary 0's, the information processing apparatus 33 processes the magnetic encoding information in a segmented manner, and first determines whether the active segment encoding is consistent with a predetermined encoding, and then continues to determine the data segment; if the two types of data are inconsistent, no judgment is performed. When judging the data segment, the information processing device 33 will first query the device state information corresponding to the magnetic coding information of the data segment in the mapping relationship of the magnetic coding information device state, and if the device state information is consistent with the original device state information stored in the information processing device 33 in advance, no operation is performed; if the information is inconsistent, the I/O port corresponding to the equipment state information is pulled up, so that the MCU of the electronic equipment is awakened, and the state of the electronic equipment is modified.
Further, after the electronic device MCU modifies the state of the electronic device, the I/O interface connected to the buzzer 34 is pulled up, so that the buzzer 34 sends out a sharp prompt tone for feeding back the modification result to the manufacturer or the user. If the electronic device status is not modified or fails, the electronic device MCU will not pull up the I/O port of the buzzer 34, and therefore will not have a warning sound.
Further, the electronic device will store the current device status information into the information processing device 33 as the original device status information after pulling up the I/O interface of the buzzer 34.
In this embodiment, after the electronic device is assembled, the manufacturer may modify the electronic device in the normal working state into the sleep state by using the magnetic encoding tag stored with the sleep information in a magnetic induction manner, and feed back the electronic device through the buzzer; when a user needs to use the electronic equipment, the electronic equipment in a dormant state is modified into a normal working state through a magnetic induction mode by the magnetic coding label stored with normal working information and is fed back through the buzzer, so that the problems of accidental triggering of a magnetic object, poor portability, low reliability, poor user experience and the like caused by modifying the state of the electronic equipment by using a Bluetooth scheme and the like in the related technology are solved, a new modification mode is provided, the electric quantity loss of the low-power electronic equipment which is severe in working environment and is difficult to replace a battery after the electronic equipment is put into use is greatly reduced, and the usability and the user experience of the equipment are improved.
The reader will appreciate that in the description of this specification, a description of terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the various embodiments or examples described in this specification and the features of the various embodiments or examples may be combined and combined by those skilled in the art without contradiction.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.