CN112988180B - Control method and device of embedded equipment - Google Patents

Control method and device of embedded equipment Download PDF

Info

Publication number
CN112988180B
CN112988180B CN201911208004.8A CN201911208004A CN112988180B CN 112988180 B CN112988180 B CN 112988180B CN 201911208004 A CN201911208004 A CN 201911208004A CN 112988180 B CN112988180 B CN 112988180B
Authority
CN
China
Prior art keywords
storage medium
removable storage
embedded
network
embedded device
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
CN201911208004.8A
Other languages
Chinese (zh)
Other versions
CN112988180A (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.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201911208004.8A priority Critical patent/CN112988180B/en
Publication of CN112988180A publication Critical patent/CN112988180A/en
Application granted granted Critical
Publication of CN112988180B publication Critical patent/CN112988180B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a control method and a control device of embedded equipment. A control method of the embedded device, comprising: monitoring a removable storage medium plugging event of the embedded equipment; reading the storage content of the inserted removable storage medium in response to monitoring the removable storage medium insertion event; and if the read storage content of the removable storage medium is a network mode switching command, setting the network mode and network connection information of the embedded equipment according to the network mode switching command so as to connect the embedded equipment to a target network according to the network connection information. The embedded device realizes network mode switching through the movable storage medium, does not need to be connected with a wired network or directly connected and the like, and has simple operation, simplified steps, greatly reduced time cost and improved network connection efficiency compared with the traditional network connection mode.

Description

Control method and device of embedded equipment
Technical Field
The present invention relates to the field of embedded platform application software technologies, and in particular, to a control method of an embedded device and a control apparatus of an embedded device.
Background
With the development of information technology, embedded devices have higher requirements on data processing efficiency when sending programs and controlling and using.
At present, most embedded devices must have a network when sending programs and controlling the use, and an upper computer matched with the embedded devices is used, firstly, the upper computer establishes network connection with the embedded devices through a local area network, then sends programs and controls the use, and under the condition of no network, a network cable direct connection mode is generally used, firstly, the network connection with the embedded devices is established, and after the network connection is successful, the programs are issued or some control commands are issued.
However, if the current network environment is relatively poor and the issued program is relatively large, the time required for issuing the program is relatively long and time is relatively consuming, and some control commands, such as software package upgrade, are issued, and a software upgrade package is required in the upgrade process, the software package upgrade is also a painful and long event under the condition that the software upgrade package is large.
Disclosure of Invention
The embodiment of the invention provides a control method and a control device of embedded equipment, which can realize the effects of network connection, media playing and software upgrading of the embedded equipment without connecting a wired network or directly connecting the embedded equipment.
In one aspect, a control method for an embedded device provided by an embodiment of the present invention includes:
monitoring a removable storage medium plugging event of the embedded equipment;
reading the storage content of the inserted removable storage medium in response to monitoring the removable storage medium insertion event;
and if the read storage content of the removable storage medium is a network mode switching command, setting the network mode and network connection information of the embedded equipment according to the network mode switching command so as to connect the embedded equipment to a target network according to the network connection information.
The embedded device realizes network mode switching through the movable storage medium, does not need to be connected with a wired network or directly connected and the like, and has simple operation, simplified steps, greatly reduced time cost and improved network connection efficiency compared with the traditional network connection mode.
In one embodiment of the present invention, the network modes of the embedded device at least include a WIFI-AP mode and a WIFI-state mode.
In one embodiment of the present invention, the network connection information includes SSID of WIFI and WIFI password.
In one embodiment of the present invention, further comprising:
and if the read storage content of the movable storage medium is the medium to be played, playing the medium to be played.
In one embodiment of the present invention, further comprising:
and stopping playing the media to be played in response to the monitored pull-out event of the removable storage medium.
In one embodiment of the present invention, further comprising:
if the read storage content of the removable storage medium is an upgrade package, copying the upgrade package to the embedded equipment, and upgrading the embedded equipment according to the upgrade package after the copying is completed.
In one embodiment of the present invention, further comprising:
detecting whether copying of the upgrade package is completed or not in response to monitoring of a pull-out event of the removable storage medium;
if the upgrade package copying is detected to be completed, the embedded equipment is continuously upgraded according to the upgrade package, or if the upgrade package copying is detected to be incomplete, copying is stopped.
On the other hand, the control device of the embedded device provided by the embodiment of the invention comprises:
the data monitoring module is used for monitoring the removable storage medium plugging event of the embedded equipment;
the data reading module is used for responding to the detection of the insertion event of the removable storage medium and reading the storage content of the inserted removable storage medium;
and the data response module is used for setting the network mode and the network connection information of the embedded equipment according to the network mode switching command if the read storage content of the movable storage medium is the network mode switching command so as to connect the embedded equipment to a target network according to the network connection information.
In one embodiment of the present invention, the data response module is further configured to: if the read storage content of the movable storage medium is the medium to be played, playing the medium to be played; and stopping playing the media to be played in response to the monitored pull-out event of the removable storage medium.
In one embodiment of the present invention, the data response module is further configured to: if the read storage content of the movable storage medium is an upgrade package, copying the upgrade package to the embedded equipment, and upgrading the embedded equipment according to the upgrade package after the copying is completed; detecting whether copying of the upgrade package is completed or not in response to monitoring of a pull-out event of the removable storage medium; and if the upgrade package copying is detected to be completed, continuing to upgrade the embedded equipment according to the upgrade package, or if the upgrade package copying is detected to be incomplete, stopping copying.
The embedded device of the embodiment of the invention realizes network mode switching, media playing, software upgrading through the movable storage medium, does not need to be connected with a wired network or directly connected and the like, has simple operation, simplifies steps, greatly reduces time cost and improves the efficiency of network connection, media playing, software upgrading and the like compared with the traditional network connection mode.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1A is a flowchart of a control method of an embedded device according to a first embodiment of the present invention.
Fig. 1B is a flowchart of another control method of an embedded device according to the first embodiment of the present invention.
Fig. 1C is a flowchart of a content generation process of a removable storage medium in a control method of an embedded device according to a first embodiment of the present invention.
Fig. 2 is a schematic block diagram of a control device of an embedded device according to a second embodiment of the present invention.
Fig. 3A is a flowchart of a control method of an embedded device according to a third embodiment of the present invention.
Fig. 3B is a flowchart of another control method of an embedded device according to a third embodiment of the present invention.
Fig. 3C is a flowchart illustrating a content generation process of a removable storage medium in a control method of an embedded device according to a third embodiment of the present invention.
Fig. 4 is a schematic block diagram of a control device of an embedded device according to a fourth embodiment of the present invention.
Fig. 5A is a flowchart of a control method of an embedded device according to a fifth embodiment of the present invention.
Fig. 5B is a flowchart of another control method of an embedded device according to a fifth embodiment of the present invention.
Fig. 5C is a flowchart of a content generation process of a removable storage medium in a control method of an embedded device according to a fifth embodiment of the present invention.
Fig. 6 is a schematic block diagram of a control device of an embedded device according to a sixth embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a control system of an embedded device according to a seventh embodiment of the present invention.
Fig. 8 is a schematic structural view of a storage medium according to an eighth embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
[ first embodiment ]
Under the traditional connection mode of the upper computer and the embedded equipment, the embedded equipment and the upper computer are required to be connected in a network cable direct connection mode, then the upper computer is used for searching the embedded equipment through UDP, TCP connection is established, a WIFI network mode switching command is sent, after the embedded equipment receives the WIFI network mode switching command, the WIFI mode is switched from the WIFI-AP mode to the WIFI-state mode, after the switching is successful, WIFI cannot be normally used, because the WIFI is not connected, at the moment, the upper computer is required to send the SSID and the password required to be connected with the WIFI again, after the embedded equipment receives the command, the WIFI is connected according to the SSID and the password, and because the current network cable is in a direct connection state, the network priority is a wired network > WIFI > mobile network, therefore, the WIFI cannot be successfully connected, the WIFI can be normally connected and used, and therefore, the WIFI network connection, the media playing and the software upgrading are time-consuming, and complicated in operation, and steps are complicated.
In order to make the WIFI network mode switching function more convenient and realize the quick connection of the network, as shown in fig. 1A, 1B and 1C, a first embodiment of the present invention provides a control method of an embedded device, for example, including the following steps:
s11, monitoring a removable storage medium plug event of the embedded equipment.
Specifically, the embedded device of the first embodiment continuously monitors the removable storage medium plug event, and judges whether the embedded device can perform the network mode switching operation according to the removable storage medium plug event. The removable storage media insertion event includes a removable storage media insertion event and a removable storage media extraction event, the removable storage media insertion event indicating that the removable storage media is inserted into the embedded device, the removable storage media extraction event indicating that the removable storage media is extracted from the embedded device, and when the removable storage media is inserted into the embedded device and the removable storage media is extracted from the embedded device, the embedded device receives a broadcast of the removable storage media inserted into the embedded device and a broadcast of the removable storage media extracted from the embedded device, respectively.
S13, in response to monitoring the removable storage medium insertion event, the storage content of the inserted removable storage medium is read.
Specifically, when the embedded device monitors the event of inserting the removable storage medium, the embedded device receives a broadcast (message) that the storage medium is inserted into the embedded device, which indicates that the embedded device can perform a subsequent further network mode switching operation through the removable storage medium, and at this time, the embedded device can read the content stored in the currently inserted removable storage medium.
And S15, if the read storage content of the removable storage medium is a network mode switching command, setting the network mode and network connection information of the embedded equipment according to the network mode switching command so as to connect the embedded equipment to a target network according to the network connection information.
Specifically, after the embedded device receives the broadcast of the storage medium inserted into the embedded device, if the storage content of the removable storage medium read by the embedded device is a network mode switching command, setting a network mode of the embedded device according to the network mode switching command, wherein the specific network mode at least comprises a WIFI-AP mode and a WIFI-state mode, realizing network mode switching, namely switching the network mode at the moment from the WIFI-AP mode to the WIFI-state mode, providing network connection information for the embedded device, wherein the specific network connection information comprises an SSID (service set identifier) and a WIFI password of the WIFI, and realizing network connection between the embedded device and a target network through the SSID and the WIFI password of the WIFI. Wherein the network mode switching command generation process stored on the removable storage medium comprises the following sub-steps:
s151, the first visual command generating software builds a network mode switching command in advance.
And S153, the removable storage medium establishes connection with the first visual command generating software.
S155, deriving (acquiring) a network mode switching command from the first visual command generating software.
S157, the network mode switching command is stored in the removable storage medium.
Through sub-steps S151 to S157, the network mode switching command associated at the time of network mode switching is stored in advance in the removable storage medium for network connection of the subsequent embedded device with the target network. Wherein, the removable storage medium comprises a U disk, an SD card, a mobile hard disk, a magnetic disk or an optical disk, etc.; the network mode switching command comprises a network mode and network connection information, wherein the network mode at least comprises a WIFI-AP mode and a WIFI-state mode, and the network connection information comprises an SSID (service set identifier) of the WIFI and a WIFI password.
Further, S17, in response to monitoring the removable storage media unplugging event, detecting whether the embedded device is connected to a target network; and continuing to connect the embedded device to the target network according to the network connection information in response to the embedded device being connected to the target network, or stopping network connection in response to the embedded device not being connected to the target network.
Specifically, in the first embodiment, when the embedded device monitors that the removable storage medium is unplugged, the embedded device receives a broadcast (message) that the removable storage medium is unplugged from the embedded device, and if it is detected that the embedded device has already established a network connection with the target network, the network connection state of the embedded device is not affected by the unplugging of the removable storage medium, and if it is detected that the embedded device has not yet established a network connection with the target network, the embedded device continues to maintain the network connection with the target network, and if it is detected that the embedded device has not yet established a network connection with the target network, because a network switching command of the embedded device is stored in the removable storage medium, the embedded device cannot acquire network connection information, and thus cannot establish a network connection with the target network.
In summary, the embedded device realizes network mode switching through the removable storage medium, and does not need to be connected with a wired network or directly connected with other operations.
[ second embodiment ]
As shown in fig. 2, a second embodiment of the present invention provides a control apparatus 20 of an embedded device, which includes a data monitoring module 21, a data reading module 23, and a data responding module 25.
Specifically, the data monitoring module 21 is configured to monitor a removable storage medium plug event of the embedded device;
a data reading module 23 for reading the storage contents of the inserted removable storage medium in response to the interception of the removable storage medium insertion event;
and the data response module 25 is configured to set a network mode and network connection information of the embedded device according to the network mode switching command if the read storage content of the removable storage medium is the network mode switching command, so as to connect the embedded device to a target network according to the network connection information.
For the specific functional details of the data monitoring module 21, the data reading module 23 and the data responding module 25, reference is made to the related descriptions of the steps S11, S13, S15 and S17 in the foregoing first embodiment, and the detailed descriptions thereof are omitted herein. Furthermore, it should be noted that the data monitoring module 21, the data reading module 23, and the data responding module 25 may be software modules, stored in the nonvolatile memory and executed by one or more processors to perform the steps S11, S13, S15, and S17 in the foregoing first embodiment.
[ third embodiment ]
In order to solve the problem that when the network environment is relatively poor and the issued program is relatively large, the time required for issuing the program is relatively long and time is relatively long, and realize quick playing of media, as shown in fig. 3A, 3B and 3C, a third embodiment of the present invention provides a control method of an embedded device, for example, including the following steps:
s31, monitoring a removable storage medium plug event of the embedded equipment.
Specifically, as in step S11 of the first embodiment, the embedded device constantly listens for removable storage medium plug events.
S33, in response to monitoring the removable storage medium insertion event, the storage content of the inserted removable storage medium is read.
Specifically, as in step S13 of the first embodiment, when the embedded device monitors that the removable storage medium insertion event is an insertion event, the storage content of the inserted removable storage medium may be read.
And S35, if the read storage content of the movable storage medium is the medium to be played, playing the medium to be played.
Specifically, when the storage content of the removable storage medium read by the embedded device is a to-be-played medium, the to-be-played medium is played. The generation process of the media to be played stored in the removable storage medium comprises the following sub-steps:
s351, the second visual command generating software builds the media to be played in advance.
S353, the removable storage medium establishes a connection with the second visual command generating software.
S355, the media to be played is exported (acquired) from the second visualization command generation software.
S357, the media to be played is stored in the removable storage medium.
Through sub-steps S351 to S357, the play data related to the media to be played is stored in the removable storage medium in advance for the subsequent play of the media data to be played. Wherein, the removable storage medium comprises a U disk, an SD card, a mobile hard disk, a magnetic disk or an optical disk, and the like.
Further, S37, in response to the detection of the removable storage media extraction event, stopping playing the media to be played.
Specifically, the media to be played by the embedded device of the third embodiment is stored in the removable storage medium, when it is monitored that the removable storage medium plug event is a unplug event, it indicates that the removable storage medium is unplugged from the embedded device, and the embedded device receives a broadcast that the removable storage medium unplugs the embedded device, at this time, the embedded device does not perform the playing operation, such as step S35, on the media to be played stored in the removable storage medium.
In summary, the embedded device realizes media data playing through the removable storage medium, and does not need to be connected with a wired network or directly connected with other operations.
[ fourth embodiment ]
As shown in fig. 4, a fourth embodiment of the present invention provides a control apparatus 40 of an embedded device, which includes a data monitoring module 41, a data reading module 43, and a data responding module 45.
Specifically, the data monitoring module 41 is configured to monitor a removable storage medium plug event of the embedded device;
a data reading module 43 for reading the storage content of the inserted removable storage medium in response to monitoring the removable storage medium insertion event;
the data response module 45 is configured to play the media to be played if the read storage content of the removable storage medium is the media to be played; and stopping playing the media to be played in response to the monitored pull-out event of the removable storage medium.
For the specific functional details of the data monitoring module 41, the data reading module 43 and the data responding module 45, reference is made to the related descriptions of the steps S31, S33, S35 and S37 in the foregoing third embodiment, and the detailed descriptions thereof are omitted herein. Furthermore, it should be noted that the data monitoring module 41, the data reading module 43, and the data responding module 45 may be software modules, stored in the nonvolatile memory and executed by one or more processors to perform the steps S31, S33, S35, and S37 in the foregoing third embodiment.
[ fifth embodiment ]
In order to solve the problems that the network environment is relatively poor, and when some commands such as software package upgrade and the software upgrade package is relatively large, the time required for the software package upgrade is relatively long and time consuming, and improve the upgrade efficiency of the software package, as shown in fig. 5A, 5B and 5C, a fifth embodiment of the present invention provides a control method of an embedded device, for example, including the following steps:
s51, monitoring a removable storage medium plug event of the embedded equipment.
Specifically, as in the first embodiment step S11 and the second embodiment step S31, the embedded device continuously listens for removable storage medium plug events.
S53, in response to monitoring the removable storage medium insertion event, the storage content of the inserted removable storage medium is read.
Specifically, as in the first embodiment step S13 and the second embodiment step S33, when the embedded device monitors that the removable storage medium insertion event is an insertion event, the storage content of the inserted removable storage medium may be read.
And S55, if the read storage content of the removable storage medium is an upgrade package, copying the upgrade package to the embedded equipment, and upgrading the embedded equipment according to the upgrade package after the copying is completed.
Specifically, when the storage content of the removable storage medium read by the embedded device is an upgrade package, the upgrade package is copied to a buffer area under the specified directory of the embedded device, and the software upgrade package is acquired from the buffer area and is upgraded by the embedded device in the subsequent upgrade process. Wherein the upgrade package generation process stored by the removable storage medium comprises the following sub-steps:
s551, the third visual command generating software builds an upgrade package in advance.
S553, the removable storage medium establishes a connection with the third visual command generating software.
S555, the upgrade package is exported (acquired) from the third visual command generating software.
S557, the upgrade package is stored in the removable storage medium.
Through sub-steps S551-S557, the upgrade package is stored in advance on a removable storage medium for subsequent embedded device upgrades. Wherein, the removable storage medium comprises a U disk, an SD card, a mobile hard disk, a magnetic disk or an optical disk, and the like.
Further, S57, in response to monitoring the removable storage media extraction event, detecting whether the copy of the upgrade package is completed; and continuing to upgrade the embedded device according to the upgrade package in response to detecting that the upgrade package copying is completed, or stopping copying in response to detecting that the upgrade package copying is not completed.
Specifically, the software package updated by the embedded device in the fifth embodiment is stored in the removable storage medium, when the embedded device monitors that the removable storage medium is pulled out of the event, the embedded device receives a broadcast that the removable storage medium is pulled out of the embedded device, at this time, the embedded device further detects whether the copy of the update package is completed, determines whether to continue to update the embedded device, specifically, when detecting that the copy of the update package is completed, continues to execute the embedded device update operation in step S55, for example; and stopping copying when the copying of the upgrade package is detected to be incomplete, so as to prevent the incomplete copying from affecting the integrity of the upgrade package and further affecting the upgrade of the embedded equipment.
In summary, the embedded device realizes the upgrade of the embedded device through the movable storage medium, and the operation of connecting a wired network or directly connecting the embedded device is not needed.
[ sixth embodiment ]
As shown in fig. 6, a sixth embodiment of the present invention provides a control apparatus 60 for an embedded device, which includes a data monitoring module 61, a data reading module 63, and a data responding module 65.
Specifically, the data monitoring module 61 is configured to monitor a removable storage medium plug event of the embedded device;
a data reading module 63, configured to read the storage content of the inserted removable storage medium in response to monitoring the removable storage medium insertion event;
the data response module 65 is configured to copy the upgrade package to an embedded device if the read storage content of the removable storage medium is the upgrade package, and upgrade the embedded device according to the upgrade package after the copying is completed; detecting whether copying of the upgrade package is completed or not in response to monitoring of a pull-out event of the removable storage medium; and if the upgrade package copying is detected to be completed, continuing to upgrade the embedded equipment according to the upgrade package, or if the upgrade package copying is detected to be incomplete, stopping copying.
For the specific functional details of the data monitoring module 61, the data reading module 63 and the data responding module 65, reference is made to the related descriptions of the steps S51, S53, S55 and S57 in the fifth embodiment, and the detailed descriptions thereof are omitted herein. Furthermore, it should be noted that the data monitoring module 61, the data reading module 63, and the data responding module 65 may be software modules, stored in a nonvolatile memory and executed by one or more processors to perform the steps S51, S53, S55, S57 in the fifth embodiment.
[ seventh embodiment ]
As shown in fig. 7, a seventh embodiment of the present invention provides a control system 70 of an embedded device, the control system 70 of the embedded device comprising: a processor 71 and a memory 73; wherein the memory 73 stores instructions that are executed by the processor 71, and the instructions cause the processor 71 to perform operations to perform the control method of the embedded device described in the foregoing first, third, and fifth embodiments.
[ eighth embodiment ]
As shown in fig. 8, an eighth embodiment of the present invention provides a computer readable storage medium 80, which is a nonvolatile memory and stores program code that when executed by one or more processors, implements the control methods of the embedded devices described in the foregoing first, third, and fifth embodiments.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and the technical solutions of the embodiments may be arbitrarily combined and matched without conflict in technical features, contradiction in structure, and departure from the purpose of the present invention.
In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and/or methods may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and the division of the units/modules is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units/modules described as separate units may or may not be physically separate, and units/modules may or may not be physically units, may be located in one place, or may be distributed on multiple network units. Some or all of the units/modules may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated in one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated in one unit/module. The integrated units/modules may be implemented in hardware or in hardware plus software functional units/modules.
The integrated units/modules implemented in the form of software functional units/modules described above may be stored in a computer readable storage medium. The software functional units described above are stored in a storage medium and include instructions for causing one or more processors of a computer device (which may be a personal computer, a server, or a network device, etc.) to perform some steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A control method of an embedded device, comprising:
monitoring a removable storage medium plugging event of the embedded equipment;
reading the storage content of the inserted removable storage medium in response to monitoring the removable storage medium insertion event;
and if the read storage content of the removable storage medium is a network mode switching command, setting the network mode and network connection information of the embedded equipment according to the network mode switching command so as to connect the embedded equipment to a target network according to the network connection information.
2. The method for controlling an embedded device according to claim 1, wherein the network modes of the embedded device include at least a WIFI-AP mode and a WIFI-state mode.
3. The control method of an embedded device according to claim 1, wherein the network connection information includes an SSID of WIFI and a WIFI password.
4. The control method of an embedded device according to claim 1, further comprising:
and if the read storage content of the movable storage medium is the medium to be played, playing the medium to be played.
5. The control method of an embedded device according to claim 4, further comprising:
and stopping playing the media to be played in response to the monitored pull-out event of the removable storage medium.
6. The control method of an embedded device according to claim 1, further comprising:
if the read storage content of the removable storage medium is an upgrade package, copying the upgrade package to the embedded equipment, and upgrading the embedded equipment according to the upgrade package after the copying is completed.
7. The control method of an embedded device according to claim 6, further comprising:
detecting whether copying of the upgrade package is completed or not in response to monitoring of a pull-out event of the removable storage medium; and
if the upgrade package copying is detected to be completed, the embedded equipment is continuously upgraded according to the upgrade package, or if the upgrade package copying is detected to be incomplete, copying is stopped.
8. A control device of an embedded apparatus, characterized by comprising:
the data monitoring module is used for monitoring the removable storage medium plugging event of the embedded equipment;
the data reading module is used for responding to the detection of the insertion event of the removable storage medium and reading the storage content of the inserted removable storage medium;
and the data response module is used for setting the network mode and the network connection information of the embedded equipment according to the network mode switching command if the read storage content of the movable storage medium is the network mode switching command so as to connect the embedded equipment to a target network according to the network connection information.
9. The control apparatus of the embedded device of claim 8, wherein the data response module is further configured to: if the read storage content of the movable storage medium is the medium to be played, playing the medium to be played; and stopping playing the media to be played in response to the monitored pull-out event of the removable storage medium.
10. The control apparatus of the embedded device of claim 8, wherein the data response module is further configured to: if the read storage content of the movable storage medium is an upgrade package, copying the upgrade package to the embedded equipment, and upgrading the embedded equipment according to the upgrade package after the copying is completed; detecting whether copying of the upgrade package is completed or not in response to monitoring of a pull-out event of the removable storage medium; and if the upgrade package copying is detected to be completed, continuing to upgrade the embedded equipment according to the upgrade package, or if the upgrade package copying is detected to be incomplete, stopping copying.
CN201911208004.8A 2019-11-30 2019-11-30 Control method and device of embedded equipment Active CN112988180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911208004.8A CN112988180B (en) 2019-11-30 2019-11-30 Control method and device of embedded equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911208004.8A CN112988180B (en) 2019-11-30 2019-11-30 Control method and device of embedded equipment

Publications (2)

Publication Number Publication Date
CN112988180A CN112988180A (en) 2021-06-18
CN112988180B true CN112988180B (en) 2023-10-20

Family

ID=76330889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911208004.8A Active CN112988180B (en) 2019-11-30 2019-11-30 Control method and device of embedded equipment

Country Status (1)

Country Link
CN (1) CN112988180B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101194234A (en) * 2005-06-17 2008-06-04 微软公司 Serialization of media transfer communications
CN103092657A (en) * 2013-01-18 2013-05-08 郑州威科姆科技股份有限公司 Embedded device upgrade method based on peer-to-peer (P2P)
WO2013139303A1 (en) * 2012-03-23 2013-09-26 青岛海信移动通信技术股份有限公司 Method, device, and terminal for switching network access points
CN105554830A (en) * 2015-09-25 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Network mode switching protection method and device
CN107483618A (en) * 2017-09-01 2017-12-15 北京全域医疗技术有限公司 Radiotherapy Quality Control document transmission method, apparatus and system
CN107635262A (en) * 2017-09-20 2018-01-26 广东欧珀移动通信有限公司 Terminal connects switching method, device, electronic equipment and the storage medium of network
CN109089327A (en) * 2018-10-23 2018-12-25 Oppo(重庆)智能科技有限公司 wireless network connecting method, device, terminal and storage medium
CN109429293A (en) * 2017-08-31 2019-03-05 展讯通信(上海)有限公司 Network mode switching method, user terminal and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040140989A1 (en) * 2002-05-28 2004-07-22 John Papageorge Content subscription and delivery service

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101194234A (en) * 2005-06-17 2008-06-04 微软公司 Serialization of media transfer communications
WO2013139303A1 (en) * 2012-03-23 2013-09-26 青岛海信移动通信技术股份有限公司 Method, device, and terminal for switching network access points
CN103092657A (en) * 2013-01-18 2013-05-08 郑州威科姆科技股份有限公司 Embedded device upgrade method based on peer-to-peer (P2P)
CN105554830A (en) * 2015-09-25 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Network mode switching protection method and device
CN109429293A (en) * 2017-08-31 2019-03-05 展讯通信(上海)有限公司 Network mode switching method, user terminal and computer readable storage medium
CN107483618A (en) * 2017-09-01 2017-12-15 北京全域医疗技术有限公司 Radiotherapy Quality Control document transmission method, apparatus and system
CN107635262A (en) * 2017-09-20 2018-01-26 广东欧珀移动通信有限公司 Terminal connects switching method, device, electronic equipment and the storage medium of network
CN109089327A (en) * 2018-10-23 2018-12-25 Oppo(重庆)智能科技有限公司 wireless network connecting method, device, terminal and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SOA-based Integration of the Internet of Things in Enterprise Services;Patrik Spiess et al.;《2009 IEEE International Conference on Web Services》;第968-975页 *
嵌入式设备与网络数据库交互的中间件设计;杨刚 等;《计算机工程与设计》;第34卷(第11期);第3878-3882页 *

Also Published As

Publication number Publication date
CN112988180A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN102742303B (en) There is the message based mobile object that local PIM is integrated
CN110838953B (en) Test method, test system, electronic equipment and storage medium
WO2017133691A1 (en) Intelligent device networking method and apparatus
AU2019461393A1 (en) Screen sharing processing method, apparatus and device, and storage medium
CN102402441B (en) System and method for configuring multiple computers
CN105897461A (en) Multi-system OTA upgrading method and multi-system equipment
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN110891298A (en) Bluetooth connection method, device, Bluetooth equipment and system
CN110069288B (en) USB equipment sharing method, device and system
CN111176703A (en) In-band firmware upgrading method and device, computer system and storage medium
CN102063321A (en) Installation method, device and system of terminal software
US11256640B2 (en) File transfer method, apparatus, device between BMCs and storage medium
CN106990986B (en) Software upgrading control method and device and audio playing equipment
CN112988180B (en) Control method and device of embedded equipment
CN118981330A (en) A device firmware upgrade method, system, terminal and storage medium
CN107995033B (en) ONU configuration file upgrading method and device
WO2024207889A1 (en) Sim card information loading method and apparatus, storage medium, and electronic device
CN114064065A (en) Program upgrading method and program upgrading system
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN104348646A (en) Configuration data processing method, device and system
CN108848182B (en) Updating method of BMC firmware, related equipment and system
CN111753309A (en) Display card switching method, server and storage medium
CN114610446B (en) Method, device and system for automatically injecting probe
CN111092765B (en) Intelligent driving method, system, electronic device and readable storage medium
CN114745269A (en) Firmware upgrading method and device, electronic 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