Electronic equipment state modification method and device

文档序号:681848 发布日期:2021-04-30 浏览:12次 中文

阅读说明:本技术 一种电子设备状态修改方法和装置 (Electronic equipment state modification method and device ) 是由 彭宏伟 詹远文 朱宗意 于 2021-02-20 设计创作,主要内容包括:本发明提供了一种电子设备状态修改方法和装置,该方法包括:接收磁性编码信息;依据所述磁性编码信息在磁性编码信息设备状态映射关系中查询与所述磁性编码信息对应的设备状态信息;将所述电子设备设置为第二状态,所述第二状态是所述设备状态信息对应的状态;反馈所述电子设备状态修改结果。通过本发明提供的一种电子设备状态修改方法和装置,解决了相关技术中使用蓝牙等方案来修改电子设备状态所带来的问题,极大限度地降低了那些工作环境较为恶劣且投入使用后就不易更换电池的低功耗电子设备在仓储及运输过程中的电量损耗,提高了设备的易用性和用户体验。(The invention provides a method and a device for modifying the state of electronic equipment, wherein the method comprises 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 be in a second state, wherein the second state is a state corresponding to the equipment state information; and feeding back the state modification result of the electronic equipment. 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 batteries after being used in storage and transportation processes, and improve the usability and the user experience of the equipment.)

1. A method for modifying the state of an electronic device, comprising the steps of:

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 be in a second state, wherein the second state is a state corresponding to the equipment state information;

and feeding back the state modification result of the electronic equipment.

2. The electronic device state modification method of claim 1, further comprising, prior to the setting the electronic device to the second state step:

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 not, executing the step of setting the electronic equipment to the second state.

3. The method according to claim 2, further comprising storing the current status information of the electronic device as the original device status information of the electronic device after the step of feeding back the status modification result of the electronic device.

4. The method according to claim 1 or 3, wherein the feedback of the electronic device status modification result is only a feedback of successful modification, and no feedback is provided if the modification fails or is not performed.

5. An electronic device state modification apparatus, comprising: the system 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, corresponds to different working states and transmits the coded information to the information induction device in a non-contact mode;

the information sensing equipment is arranged in the electronic equipment and used for sensing the coded information stored by the information storage equipment in a non-contact mode and transmitting the coded information to the information processing equipment;

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 equipment is installed in the electronic equipment and used for receiving the execution result sent by the electronic equipment and carrying out corresponding feedback according to the execution result.

6. The apparatus according to claim 5, further comprising a power supply interface for connecting the information sensing device and the information processing device to a power supply port of an electronic device, respectively, for supplying power to the information sensing device and the information processing device, respectively.

7. The electronic device state modifying apparatus of claim 6, wherein the information storage device is a magnetically encoded tag and the stored encoded information is magnetically encoded information.

8. The electronic device state modifying apparatus of claim 7, wherein the information sensing device is a magnetic induction device, and the magnetically encoded information is sensed.

9. The electronic device status modifying apparatus according to claim 8, wherein the non-contact manner is that the magnetically encoded tag is stroked at a uniform speed of 2cm/s (± 10%) within 1cm (± 0.5 cm) above the magnetic induction device.

10. The electronic device state modifying apparatus of claim 9, wherein the result feedback device is a buzzer.

Technical Field

The invention relates to the field of electronic equipment control, in particular to a method and a device for modifying the state of electronic equipment.

Background

With the development of scientific technology, low-power-consumption electronic equipment increasingly enters the lives of people to provide convenience for various aspects of people such as clothes, eating, housing, and the like, wherein the low-power-consumption equipment which uses batteries and is not easy to replace the batteries after being put into a use environment occupies a large proportion, such as various internet of things terminal products and the like. In the life cycle of such products, the assembly process may be lengthy during storage and transportation process from the time of the assembly process to the time of the actual use of the user, so that the manufacturer and the user need to use a certain technique to modify the state of the electronic device, so as to achieve the lowest power consumption and reduce the power consumption during the storage and transportation process, and the user is switched to a normal working state to complete the intended function when using the electronic device.

Some low power electronic devices (e.g., smoke alarms, bluetooth tags, etc.) use physical switches to modify the state of the electronic device. However, the physical switch needs to be exposed out of the casing of the electronic device, or a light and thin casing material is used, so that the physical switch is soft and easy to deform to achieve the operation of pressing the switch, and therefore, the physical button is not feasible for outdoor low-power consumption electronic devices which are in severe working environments and need high protection levels.

It is now common practice to use bluetooth to switch the state of such low power electronic devices. Some manufacturers add a bluetooth module in the electronic equipment, set the bluetooth module as a normally open mode, connect the bluetooth through the mobile phone and send a command to make the bluetooth enter a low power consumption mode when the equipment is assembled, and then use the mobile phone to connect the bluetooth and send a command to make the bluetooth switch to a normal mode when a user takes the equipment. Although this kind of mode can reduce the consumption to a certain extent, because the bluetooth is in the mode of normally opening, still have certain extra loss, consequently there is the firm to revise again on this basis, increase a hall element again in equipment inside to set up the bluetooth to normally closed mode, when using strong magnetism or active magnetic signal generator transmission magnetic signal outside electronic equipment, just can trigger hall element and break off, awaken electronic equipment MCU, and then make it open the bluetooth, then firm or user reuse cell-phone connection bluetooth, send the instruction is in order to revise the equipment state. Although the extra loss of bluetooth normally open is reduced by the improvement, the problems of accidental triggering of a magnetic object, poor portability of an active magnetic signal generator, poor reliability, poor user experience and the like still exist.

Disclosure of Invention

The invention aims to provide a method and a device for modifying the state of electronic equipment, which solve the problems caused by the scheme of using Bluetooth and the like in the related technology aiming at low-power-consumption electronic equipment with severe working environment and difficult battery replacement after being put into use, greatly reduce the electric quantity loss of the electronic equipment 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, including 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 be in a second state, wherein the second state is a state corresponding to the equipment state information;

and feeding back the state modification result of the electronic equipment.

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 not, executing the step of setting the electronic equipment to the second state.

Preferably, after the step of feeding back the status modification result of the electronic device, the method further includes storing the current status information of the electronic device as the original device status information of the electronic device.

Specifically, the feedback of the state modification result of the electronic device is only to perform feedback on successful modification, and if the modification fails or is not performed, no feedback is performed.

In another aspect, the present invention provides an electronic device status modification apparatus, including: the system 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, corresponds to different working states and transmits the coded information to the information induction device in a non-contact mode;

the information sensing equipment is arranged in the electronic equipment and used for sensing the coded information stored by the information storage equipment in a non-contact mode and transmitting the coded information to the information processing equipment;

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 equipment is installed in the electronic equipment and used for receiving the execution result sent by the electronic equipment and carrying out corresponding feedback according to the execution result.

Furthermore, the electronic device state modification apparatus further includes a power supply interface, which connects the information sensing device and the information processing device to a power supply port of the electronic device, respectively, and is configured to provide electric energy for the information sensing device and the information processing device, respectively.

Specifically, the information storage device is a magnetically encoded tag, and the stored encoded information is magnetically encoded information.

Specifically, the information sensing device is a magnetic induction device that senses the magnetically encoded information.

Further, the non-contact mode is that the magnetic coding labels are uniformly scratched at a speed of 2cm/s (+ -10%) within a range of 1cm (+ -0.5 cm) above the magnetic induction device.

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 batteries after being used in storage and transportation processes, and improve the usability and the user experience of the equipment.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:

fig. 1 is a flowchart of an electronic device status modification method according to an embodiment of the present invention;

fig. 2 is a flowchart of an electronic device status modification method according to an embodiment of the present invention;

fig. 3 is a block diagram of an electronic device status modification apparatus according to an embodiment of the present invention.

Detailed Description

In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution 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 scope of protection of the present invention.

Embodiment 1, a method for modifying a state of an electronic device, 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 equipment state modification result:

if the modification is successful, executing step S105;

if the modification fails or is not modified, executing step S101;

and step S105, feeding back the state modification result of the electronic equipment.

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 of an active magnetic signal generator, poor 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 solved, a new modification mode is provided, 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 is greatly reduced, and the usability and the user experience of the equipment are improved.

Embodiment 2, an electronic device state modification method, as shown in fig. 2, includes the following steps:

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, reading original equipment state information of the electronic equipment;

step S204, determining whether the original device status information of the electronic device is consistent with the queried device status information:

if yes, executing step S201;

if not, go to step S205;

step S205, modifying the state of the electronic equipment into a state corresponding to the equipment state information;

step S206, waiting for the electronic device status modification result:

if the modification is successful, go to step S207;

if the modification fails or is not modified, executing step S201;

step S207, feeding back the state modification result of the electronic equipment;

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 modification apparatus, as shown in fig. 3, the apparatus including: a magnetic coded label 31, a magnetic induction device 32, an information processing device 33, and a buzzer 34.

The magnetic encoding tag 31 is configured to store different magnetic encoding information, and transmit the different magnetic encoding information to the magnetic induction device 32 in a magnetic induction manner corresponding to different operating states.

The magnetic induction device 32 is installed in the electronic device, and is configured to sense the magnetic encoding information stored in the magnetic encoding tag 31 through a magnetic induction manner, and transmit the magnetic encoding information to the information processing device 33.

The information processing device 33, installed in the electronic device, is configured to receive and process the magnetically encoded 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 status modifying device further includes a power supply interface, which connects the magnetic induction device 32 and the information processing device 33 to a power supply port of the electronic device, respectively, and is configured to provide electric energy for the magnetic induction device 32 and the information processing device 33, respectively.

Specifically, the magnetic coding label 31 is composed of a plurality of small magnetic strips of 0.5cm x 3cm and a ruler made of hard non-magnetic material and 3cm wide, the length of each small magnetic strip is the same as the width of the ruler, and therefore the small magnetic strips are transversely attached to the ruler. On the ruler, each small magnetic strip represents a binary 1, each 0.5cm gap represents a binary 0, and no matter whether the small magnetic strips are binary 1 or binary 0, more than 3 continuous magnetic strips are allowed to appear.

Further, the magnetically encoded tag 31 is composed of two parts: an active segment and a data segment. For different magnetically encoded tags 31 to be applied to a certain electronic device, the active segments should all be the same, but only the data segments differ, and both the active segments and the data segments start with a binary 1 and end with four binary 0 s. The specific codes in the activation segment and the data segment can be designed by a manufacturer according to the requirements. By adopting the segmented design, the magnetic object can be effectively prevented from being triggered by mistake, the probability that the MCU in the electronic equipment is awakened by mistake is greatly reduced, and the corresponding electric quantity loss is reduced.

Specifically, the magnetic induction device 32 adopts a PNI three-axis high-precision magnetic induction module. Wherein the X, Y two-axis sensor has dimensions of 6.0 x 2.1 x 2.2mm and the Z-axis sensor has dimensions of 3.0 x 3.0 x 5.75mm, the magnetic induction device 32 can be made small in size without occupying much space inside the electronic device.

Further, the magnetic induction device 32 has three states: working state, standby state and dormant state. When in the working state, the sampling frequency of the magnetic induction device 32 is 4 Hz; when in the standby state, the sampling frequency of the magnetic induction device 32 is 1 Hz; when in the sleep state, the sampling frequency of the magnetic induction device 32 is 0.5 Hz. Correspondingly, the higher the sampling frequency of the magnetic induction device 32 is, the higher the power consumption thereof is, but even in the operating state where the sampling frequency is 4Hz, the peak current is less than 10uA, which is much less than the operating current of the bluetooth module in the related art. What state the magnetic induction device 32 is in when not operating can be set by the electronic device MCU, and generally when the electronic device is in a sleep state with ultra-low power consumption, the magnetic induction device is also set to the sleep state with a sampling frequency of 0.5 Hz; 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. No matter what state the magnetic induction device 32 is in, when it is detected that the surrounding magnetic field strength exceeds a predetermined threshold, switching to the operating state with a sampling frequency of 4Hz is immediately performed; when the detected ambient magnetic field strength is lower than the set threshold value again, the state is switched back to the original state immediately.

When the magnetically encoded tag 31 is placed near the magnetic induction device 32, the ambient field strength exceeds the predetermined threshold of the magnetic induction device 32, and the operating state with a sampling frequency of 4Hz is immediately switched. Since the minimum width of the small magnetic stripe or gap on the magnetic encoding label 31 is 0.5cm, when the magnetic encoding label 31 is stroked at a constant speed of 2cm/s (± 10%) within a range of 1cm (± 0.5 cm) above the magnetic induction device 32, the encoding rate of the magnetic encoding label 31 is also 4Hz, and thus the encoding rate is exactly matched with the sampling frequency of the magnetic induction device 32, so that the magnetic encoding information carried by the magnetic encoding label 31 can be transmitted to the magnetic induction device 32 by a magnetic induction manner.

Specifically, the information processing device 33 also employs a PNI processing chip, and can receive the magnetically encoded information sensed by the magnetic induction device 32. Since the active segment and the data segment of the magnetic encoding tag 31 both start with one binary 1 and end with four binary 0, the information processing device 33 is also segmented when processing the magnetic encoding information, and first determines whether the active segment code is consistent with the preset code, and then continues to determine the data segment if consistent; if not, no judgment is made. When the data segment is determined, the information processing device 33 may first query device state information corresponding to the data segment magnetic encoding information in a magnetic encoding information device state mapping relationship, and if the device state information is consistent with the original device state information pre-stored in the information processing device 33, no operation is performed; if the current state information is inconsistent with the current state information, the I/O port corresponding to the equipment state information is pulled up, the MCU of the electronic equipment is awakened, and the state of the electronic equipment is modified.

Further, after the state of the electronic device is modified by the MCU, the I/O interface connected to the buzzer 34 is pulled up, so that the buzzer 34 emits a sharp prompt sound for feeding back the modification result to the manufacturer or the user. If the state of the electronic device is not modified or fails to be modified, the electronic device MCU will not pull up the I/O port of the buzzer 34, and thus there will be no warning tone.

Further, after the I/O interface of the buzzer 34 is pulled up, the electronic device stores the current device status information into the information processing device 33 as the original device status information.

In this embodiment, after the electronic device is assembled, a manufacturer may modify the electronic device in a normal operating state into a sleep state by using a magnetic encoding tag storing sleep information through a magnetic induction method, and perform feedback through a buzzer; when a user wants to use the electronic equipment, the electronic equipment in the dormant state is modified into the normal working state in a magnetic induction mode through the magnetic coding label stored with the normal working information, and the feedback is carried out through the buzzer, so that the problems of accidental triggering of a magnetic object, poor portability of an active magnetic signal generator, poor 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 solved, a new modification mode is provided, the electric quantity loss of the low-power electronic equipment with the harsh working environment and difficult battery replacement after being put into use in storage and transportation processes is greatly reduced, and the usability and the user experience of the equipment are improved.

The reader should understand that in the description of this specification, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example" 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, the schematic representations of the terms used above are not necessarily intended to refer 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, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.

Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种具有定位功能的OCR扫描装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!