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

Control method and device of embedded equipment Download PDF

Info

Publication number
CN112988180A
CN112988180A CN201911208004.8A CN201911208004A CN112988180A CN 112988180 A CN112988180 A CN 112988180A CN 201911208004 A CN201911208004 A CN 201911208004A CN 112988180 A CN112988180 A CN 112988180A
Authority
CN
China
Prior art keywords
storage medium
removable storage
embedded device
network
embedded
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.)
Granted
Application number
CN201911208004.8A
Other languages
Chinese (zh)
Other versions
CN112988180B (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

Images

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 comprises the following steps: monitoring a removable storage medium plugging event of the embedded equipment; in response to monitoring the insertion event of the removable storage medium, reading the storage content of the inserted removable storage medium; if the read storage content of the removable storage medium is a network mode switching command, setting a network mode and network connection information of the embedded device according to the network mode switching command, so as to connect the embedded device to a target network according to the network connection information. The embedded device of the embodiment of the invention realizes network mode switching through the movable storage medium without operations such as connection with a wired network or direct connection, and the like.

Description

Control method and device of embedded equipment
Technical Field
The invention relates to the technical field of embedded platform application software, in particular to a control method and a control device of embedded equipment.
Background
With the development of information technology, embedded devices have higher requirements on data processing efficiency when sending programs and controlling the use of the embedded devices.
At present, most of embedded devices must have a network when sending programs and controlling the use, and an upper computer matched with the embedded devices is used, the upper computer establishes network connection with the embedded devices through a local area network at first, then sends programs and controls the use, and under the condition of no network, a network cable direct connection mode is usually used, the network connection with the embedded devices is established first, and after the network connection is successful, the programs are issued, or some control commands are issued.
However, if the current network environment is poor and the delivered program is also large, the time required for delivering the program is long and time-consuming, and some control commands are delivered, such as software package upgrading, and a software upgrading package is required in the upgrading process, so that the software package upgrading is painful and long under the condition that the software upgrading 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 the operations of connecting a wired network or directly connecting the embedded equipment and the like.
On one hand, a method for controlling an embedded device provided by the embodiment of the present invention includes:
monitoring a removable storage medium plugging event of the embedded equipment;
in response to monitoring the insertion event of the removable storage medium, reading the storage content of the inserted removable storage medium;
if the read storage content of the removable storage medium is a network mode switching command, setting a network mode and network connection information of the embedded device according to the network mode switching command, so as to connect the embedded device to a target network according to the network connection information.
The embedded device of the embodiment of the invention realizes network mode switching through the movable storage medium without operations such as connection with a wired network or direct connection, and the like.
In one embodiment of the invention, the network mode of the embedded device at least comprises a WIFI-AP mode and a WIFI-STATION mode.
In an embodiment of the present invention, the network connection information includes an SSID of WIFI and a WIFI password.
In one embodiment of the present invention, further comprising:
and if the read storage content of the removable storage medium is a 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 monitoring the pull-out event of the removable storage media.
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 device, and upgrading the embedded device according to the upgrade package after copying is completed.
In one embodiment of the present invention, further comprising:
in response to the fact that the pull-out event of the removable storage medium is monitored, whether the upgrade package is copied is detected;
and if the upgrade package is detected to be copied completely, continuing to upgrade the embedded equipment according to the upgrade package, or if the upgrade package is detected to be copied incompletely, stopping copying.
On the other hand, a control apparatus for an embedded device provided in an embodiment of the present invention includes:
the data monitoring module is used for monitoring a plugging event of a removable storage medium of the embedded equipment;
the data reading module is used for reading the storage content of the inserted removable storage medium in response to monitoring the insertion event of the 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 removable 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 an embodiment of the present invention, the data response module is further configured to: if the read storage content of the removable storage medium is a to-be-played medium, playing the to-be-played medium; and stopping playing the media to be played in response to monitoring the pull-out event of the removable storage media.
In an embodiment of the present invention, the data response module is further configured to: if the read storage content of the removable storage medium is an upgrade package, copying the upgrade package to embedded equipment, and upgrading the embedded equipment according to the upgrade package after copying is finished; in response to the fact that the pull-out event of the removable storage medium is monitored, whether the upgrade package is copied is detected; and if the upgrade package copy is detected to be completed, continuing to upgrade the embedded equipment according to the upgrade package, or if the upgrade package copy is detected to be incomplete, stopping copying.
The embedded device of the embodiment of the invention realizes network mode switching, media playing and software upgrading through the movable storage medium without connecting with a wired network or directly connecting and other operations.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
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 embedded device control method according to the first embodiment of the present invention.
Fig. 1C is a flowchart of a content generating 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 block diagram of a control apparatus 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 embedded device control method according to a third embodiment of the present invention.
Fig. 3C is a flowchart of a content generating 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 block diagram of a control apparatus 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 method for controlling an embedded device according to a fifth embodiment of the present invention.
Fig. 5C is a flowchart of a content generating 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 block diagram illustrating a control apparatus 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 diagram of a storage medium according to an eighth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
[ first embodiment ] A method for manufacturing a semiconductor device
Under the traditional connection mode of an upper computer and an embedded device, the embedded device and the upper computer are connected in a network cable direct connection mode, then the upper computer is used for searching the embedded device through UDP, TCP connection is established, a WIFI network mode switching command is sent, after the embedded device receives the WIFI network mode switching command, the WIFI mode is switched from a WIFI-AP mode to a WIFI-STATION mode, after the switching is successful, WIFI can not be used normally, because WIFI is not connected, the upper computer is required to send SSID and password required to be connected again, after the embedded device receives the command, WIFI connection can be carried out according to the SSID and the password, because the current network cable is in a direct connection state and the network priority is wired network > WIFI > mobile network, the connection can not be successful, the network cable needs to be pulled out first, and then the WIFI can be connected normally and used, therefore, when WIFI network connection, media playing and software upgrading are carried out between a traditional upper computer and embedded equipment, time is consumed, operation is complex, and steps are complex.
In order to make the WIFI network mode switching function more convenient and implement fast connection of the network, as shown in fig. 1A, 1B, and 1C, a first embodiment of the present invention provides a control method for an embedded device, including the following steps:
and S11, monitoring the plug event of the removable storage medium of the embedded device.
Specifically, the embedded device of the first embodiment continuously monitors the event of plugging and unplugging the removable storage medium, and determines whether the embedded device can perform the network mode switching operation according to the event of plugging and unplugging the removable storage medium. The mobile storage medium plugging event comprises a mobile storage medium plugging event and a mobile storage medium pulling event, the mobile storage medium plugging event represents that the mobile storage medium is plugged into the embedded device, the mobile storage medium pulling event represents that the mobile storage medium is pulled out of the embedded device, and when the mobile storage medium is plugged into the embedded device and the mobile storage medium is pulled out of the embedded device, the embedded device respectively receives a broadcast that the mobile storage medium is plugged into the embedded device and a broadcast that the mobile storage medium is pulled out of the embedded device.
And S13, in response to the monitoring of the removable storage medium insertion event, reading the storage content of the inserted removable storage medium.
Specifically, when the embedded device monitors the event of inserting the removable storage medium, the embedded device receives a broadcast (message) indicating that the embedded device can perform subsequent further network mode switching operations via the removable storage medium, and at this time, the embedded device can read the content stored in the currently inserted removable storage medium.
S15, if the read storage content of the removable storage medium is a network mode switching command, setting a network mode and network connection information of the embedded device according to the network mode switching command, so as to connect the embedded device to a target network according to the network connection information.
Specifically, after the embedded device receives a broadcast of a 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, the network mode of the embedded device is set according to the network mode switching command, the specific network mode at least includes a WIFI-AP mode and a WIFI-status mode, and the network mode switching is realized by switching the current network mode from the WIFI-AP mode to the WIFI-status mode and providing network connection information to the embedded device, where the specific network connection information includes an SSID and a WIFI password of WIFI, and network connection between the embedded device and a target network is realized through the SSID and the WIFI password of WIFI. The network mode switching command generation process stored in the removable storage medium comprises the following sub-steps:
and S151, the first visualization command generation software pre-constructs a network mode switching command.
S153, the removable storage medium is connected with the first visualization command generation software.
S155, a network mode switching command is derived (acquired) from the first visualization command generation software.
And S157, storing the network mode switching command in a removable storage medium.
Through substeps S151 to S157, the related network mode switching command at the time of network mode switching is stored in the removable storage medium in advance for subsequent network connection of the embedded device with the target network. Wherein, the removable storage medium comprises a U disk, an SD card, a removable hard disk, a magnetic disk or an optical disk and the like; the network mode switching command comprises a network mode and network connection information, the network mode at least comprises a WIFI-AP mode and a WIFI-STATION mode, and the network connection information comprises an SSID (service set identifier) and a WIFI password of WIFI.
Further, S17, in response to the monitoring of the removable storage medium unplugging event, detecting whether the embedded device is connected to the target network; and responding to the embedded equipment being connected to the target network, continuing to connect the embedded equipment to the target network according to the network connection information, or responding to the embedded equipment not being connected to the target network, and stopping network connection.
Specifically, in the first embodiment, when the embedded device monitors that the removable storage medium is pulled out, the embedded device receives a broadcast (message) that the removable storage medium is pulled out from the embedded device, and at this time, if it is detected that the embedded device has already established network connection with the target network, the pulling-out of the removable storage medium does not affect the network connection state of the embedded device, and the embedded device continues to maintain network connection with the target network, and if it is detected that the embedded device has not established network connection with the target network yet, because the network switching command of the embedded device is stored in the removable storage medium, the pulling-out of the removable storage medium causes the embedded device to fail to acquire network connection information, and thus cannot establish network connection with the target network.
To sum up, the embedded device realizes network mode switching through the removable storage medium without being connected with a wired network or directly connecting and other operations.
[ second embodiment ]
As shown in fig. 2, a second embodiment of the present invention provides a control apparatus 20 for 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 plugging event of the embedded device;
a data reading module 23, configured to read storage content of the inserted removable storage medium in response to monitoring a 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 a 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 may be made to the related descriptions of the steps S11, S13, S15, and S17 in the foregoing first embodiment, which are not repeated 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 non-volatile memory and executed by one or more processors to perform the operations of steps S11, S13, S15, and S17 in the first embodiment.
[ third embodiment ]
In order to solve the problems of long time and time consumption for issuing programs when the network environment is poor and the issued programs are also large, and to implement fast playing of media, as shown in fig. 3A, 3B, and 3C, a third embodiment of the present invention provides a control method for an embedded device, for example, including the following steps:
and S31, monitoring the plug event of the removable storage medium of the embedded device.
Specifically, like step S11 in the first embodiment, the embedded device does not listen to the removable storage medium plugging event.
And S33, in response to the monitoring of the removable storage medium insertion event, reading the storage content of the inserted removable storage medium.
Specifically, as in step S13 of the first embodiment, when the embedded device monitors that the removable storage medium plugging event is an insertion event, the storage content of the inserted removable storage medium can be read.
And S35, if the read storage content of the removable storage medium is a to-be-played medium, playing the to-be-played medium.
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 visualization command generation software pre-constructs media to be played.
And S353, the removable storage medium is connected with the second visualization command generation software.
S355, deriving (acquiring) the media to be played from the second visualization command generating software.
S357, storing the media to be played in the removable storage medium.
Through sub-steps S351 to S357, the playing data related to the media to be played is stored in the removable storage medium in advance for the subsequent playing of the media data to be played. The removable storage medium includes a U disk, an SD card, a removable hard disk, a magnetic disk or an optical disk, etc.
Further, S37, in response to the monitoring of the removable storage medium unplugging event, stopping playing the media to be played.
Specifically, the media to be played, which is played by the embedded device in the third embodiment, is stored in the removable storage medium, and when it is monitored that the removable storage medium plug event is a plug-out event, it indicates that the removable storage medium is plugged out from the embedded device, and the embedded device receives the broadcast of the removable storage medium plug-out embedded device, and at this time, the embedded device does not perform the playing operation, such as step S35, on the media to be played, which is stored in the removable storage medium any more.
To sum up, the embedded device realizes media data playing through the removable storage medium without operations such as connection with a wired network or direct connection, and compared with the traditional network connection mode, the embedded device is simple in operation, simplifies steps, greatly reduces time cost and improves media data playing efficiency.
[ fourth example ] A
As shown in fig. 4, a fourth embodiment of the present invention provides a control apparatus 40 for 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 plugging event of the embedded device;
a data reading module 43, configured to read the storage content of the inserted removable storage medium in response to the monitoring of the removable storage medium insertion event;
a data response module 45, configured to play the to-be-played media if the read storage content of the removable storage medium is the to-be-played media; and stopping playing the media to be played in response to monitoring the pull-out event of the removable storage media.
For the specific functional details of the data monitoring module 41, the data reading module 43, and the data responding module 45, reference may be made to the related descriptions of steps S31, S33, S35, and S37 in the foregoing third embodiment, which are not repeated herein. Further, 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 non-volatile memory and executed by one or more processors to perform the operations of steps S31, S33, S35, and S37 in the third embodiment.
[ fifth embodiment ]
In order to solve the problems of poor network environment, long time required for upgrading a software package and time consumption when some commands are issued, such as software package upgrading and the software upgrading package is large, and improve the upgrading efficiency of the software package, as shown in fig. 5A, 5B, and 5C, a fifth embodiment of the present invention provides a control method for an embedded device, including the following steps:
and S51, monitoring the plug event of the removable storage medium of the embedded device.
Specifically, the embedded device does not listen to the removable storage medium plugging event as in the first embodiment step S11 and the second embodiment step S31.
And S53, in response to the monitoring of the removable storage medium insertion event, reading the storage content of the inserted removable storage medium.
Specifically, like the first embodiment step S13 and the second embodiment step S33, when the embedded device monitors that the removable storage medium insertion/extraction event is an insertion event, the storage content of the inserted removable storage medium can be read.
S55, if the read storage content of the removable storage medium is an upgrade patch, copying the upgrade patch to the embedded device, and upgrading the embedded device according to the upgrade patch after copying.
Specifically, when the storage content of the removable storage medium read by the embedded device is an upgrade package, the upgrade package is firstly copied to a cache region under a specified directory of the embedded device, and a software upgrade package is acquired from the cache region in the subsequent upgrade process and the embedded device is upgraded. The upgrade package generation process of the removable storage medium storage comprises the following sub-steps:
s551, generating a software pre-constructed upgrade package by the third visualization command.
S553, the removable storage medium establishes a connection with the third visual command generating software.
S555, deriving (acquiring) the upgrade package from the third visualization command generation software.
And S557, storing the upgrade package in a removable storage medium.
Through substeps S551-S557, the upgrade package is stored in advance in a removable storage medium for subsequent upgrade of the embedded device. The removable storage medium includes a U disk, an SD card, a removable hard disk, a magnetic disk or an optical disk, etc.
Further, S57, in response to the monitoring of the removable storage medium unplugging event, detecting whether the upgrade package is copied completely; and in response to detecting that the upgrade package is copied, continuing to upgrade the embedded device according to the upgrade package, or in response to detecting that the upgrade package is copied incompletely, stopping copying.
Specifically, the software package for upgrading the embedded device in the fifth embodiment is stored in the removable storage medium, and when the embedded device monitors an event that the removable storage medium is pulled out, the embedded device receives a broadcast that the removable storage medium is pulled out from the embedded device, and at this time, the embedded device further detects whether the upgrade package is copied, and determines whether to continue to upgrade the embedded device, and specifically, when it detects that the upgrade package is copied, the upgrade operation of the embedded device, for example, in step S55, is continuously performed; and when the upgrade package is detected to be not copied, stopping copying to prevent the integrity of the upgrade package from being influenced by the non-copied completion and further influence the upgrade of the embedded equipment.
To sum up, the embedded device realizes the upgrading of the embedded device through the movable storage medium without the operations of connecting with a wired network or directly connecting and the like.
[ 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 plugging 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 the embedded device and upgrade the embedded device according to the upgrade package after the copy is completed if the read storage content of the removable storage medium is the upgrade package; in response to the fact that the pull-out event of the removable storage medium is monitored, whether the upgrade package is copied is detected; and if the upgrade package copy is detected to be completed, continuing to upgrade the embedded equipment according to the upgrade package, or if the upgrade package copy is detected to be incomplete, stopping copying.
For the detailed functional details of the data monitoring module 61, the data reading module 63, and the data responding module 65, reference may be made to the related descriptions of steps S51, S53, S55, and S57 in the fifth embodiment, which are not repeated herein. Further, 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 the non-volatile memory and executed by one or more processors to perform the operations of steps S51, S53, S55, and S57 in the fifth embodiment.
[ seventh example ]
As shown in fig. 7, a seventh embodiment of the present invention provides a control system 70 of an embedded device, where the control system 70 of the embedded device includes: a processor 71 and a memory 73; the memory 73 stores instructions executed by the processor 71, and the instructions cause the processor 71 to perform operations to perform the control method of the embedded device according to the 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 non-volatile memory and stores program codes, and when the program codes are executed by one or more processors, the control method of the embedded device according to the first, third, and fifth embodiments is implemented.
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 can be arbitrarily combined and collocated without conflict between technical features and structural contradictions, which do not violate the purpose of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and/or method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units/modules is only one logical division, and there may be other divisions in actual implementation, for example, multiple units or modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units/modules described as separate parts may or may not be physically separate, and parts displayed as units/modules may or may not be physical 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 solution of the present embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated into one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated into one unit/module. The integrated units/modules may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units/modules.
The integrated units/modules, which are implemented in the form of software functional units/modules, may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing one or more processors of a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A control method of an embedded device is characterized by comprising the following steps:
monitoring a removable storage medium plugging event of the embedded equipment;
in response to monitoring the insertion event of the removable storage medium, reading the storage content of the inserted removable storage medium;
if the read storage content of the removable storage medium is a network mode switching command, setting a network mode and network connection information of the embedded device according to the network mode switching command, so as to connect the embedded device to a target network according to the network connection information.
2. The method of controlling an embedded device according to claim 1, wherein the network mode of the embedded device includes at least a WIFI-AP mode and a WIFI-status mode.
3. The control method of the embedded device according to claim 1, wherein the network connection information includes an SSID of WIFI and a WIFI password.
4. The method for controlling an embedded device according to claim 1, further comprising:
and if the read storage content of the removable storage medium is a medium to be played, playing the medium to be played.
5. The method for controlling an embedded device according to claim 4, further comprising:
and stopping playing the media to be played in response to monitoring the pull-out event of the removable storage media.
6. The method for controlling 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 device, and upgrading the embedded device according to the upgrade package after copying is completed.
7. The method for controlling an embedded device according to claim 6, further comprising:
in response to the fact that the pull-out event of the removable storage medium is monitored, whether the upgrade package is copied is detected; and
and if the upgrade package is detected to be copied completely, continuing to upgrade the embedded equipment according to the upgrade package, or if the upgrade package is detected to be copied incompletely, stopping copying.
8. A control device of an embedded device, comprising:
the data monitoring module is used for monitoring a plugging event of a removable storage medium of the embedded equipment;
the data reading module is used for reading the storage content of the inserted removable storage medium in response to monitoring the insertion event of the 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 removable 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 an embedded device according to claim 8, wherein the data response module is further configured to: if the read storage content of the removable storage medium is a to-be-played medium, playing the to-be-played medium; and stopping playing the media to be played in response to monitoring the pull-out event of the removable storage media.
10. The control apparatus of an embedded device according to claim 8, wherein the data response module is further configured to: if the read storage content of the removable storage medium is an upgrade package, copying the upgrade package to embedded equipment, and upgrading the embedded equipment according to the upgrade package after copying is finished; in response to the fact that the pull-out event of the removable storage medium is monitored, whether the upgrade package is copied is detected; and if the upgrade package copy is detected to be completed, continuing to upgrade the embedded equipment according to the upgrade package, or if the upgrade package copy 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 true CN112988180A (en) 2021-06-18
CN112988180B 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 (9)

* 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
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

Patent Citations (9)

* 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
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
PATRIK SPIESS ET AL.: "SOA-based Integration of the Internet of Things in Enterprise Services", 《2009 IEEE INTERNATIONAL CONFERENCE ON WEB SERVICES》, pages 968 - 975 *
杨刚 等: "嵌入式设备与网络数据库交互的中间件设计", 《计算机工程与设计》, vol. 34, no. 11, pages 3878 - 3882 *

Also Published As

Publication number Publication date
CN112988180B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN103186394B (en) A kind of software installation method and device
CN103748569A (en) System and methods for driverless operation of USB device
CN112328440B (en) Hard disk physical position determining method and device
CN110069288B (en) USB equipment sharing method, device and system
CN104737135A (en) Information processing terminal, synchronization control method, and synchronization control program
CN105488000A (en) Method and system for achieving rapid accessing of USB devices
CN112732616A (en) BMC starting method, device and equipment based on SPI controller
CN106990986B (en) Software upgrading control method and device and audio playing equipment
CN111181781A (en) Vdbench test configuration method, system, terminal and storage medium
CN114327664A (en) Software management method for card-insertion type case equipment, computer equipment and storage medium
CN104216728A (en) Method for connecting USB network card, USB network card and PC
CN112988180A (en) Control method and device of embedded equipment
US10007529B2 (en) Data terminal running mode switching method, device, and data terminal
CN111753309A (en) Display card switching method, server and storage medium
CN103475521A (en) Method and device for deploying server
CN103870564A (en) Data updating method and electronic equipment
CN116737211A (en) Method, system, device and medium for prompting upgrading state of embedded system
CN115061976A (en) Address configuration method, device, carrier board, core board, server and medium
CN110958122A (en) Network equipment rapid production system and production method
CN114064065A (en) Program upgrading method and program upgrading system
CN105867961A (en) System upgrading and degrading method and device
CN114449554B (en) Equipment upgrading method, device, equipment and storage medium
CN105282614B (en) A kind of upgrade method of module TV, module TV and upgrade-system
CN107147712A (en) Update the method and device of web application
CN114613421A (en) Test system, test method, and computer-readable 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