CN109257652B - Configuration information switching method and device, electronic device, system and storage medium - Google Patents

Configuration information switching method and device, electronic device, system and storage medium Download PDF

Info

Publication number
CN109257652B
CN109257652B CN201810852101.XA CN201810852101A CN109257652B CN 109257652 B CN109257652 B CN 109257652B CN 201810852101 A CN201810852101 A CN 201810852101A CN 109257652 B CN109257652 B CN 109257652B
Authority
CN
China
Prior art keywords
switching
configuration information
configuration
file
current
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
CN201810852101.XA
Other languages
Chinese (zh)
Other versions
CN109257652A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810852101.XA priority Critical patent/CN109257652B/en
Publication of CN109257652A publication Critical patent/CN109257652A/en
Application granted granted Critical
Publication of CN109257652B publication Critical patent/CN109257652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a switching method of configuration information, which comprises the following steps: in response to access of a storage device, identifying the storage device; when the storage equipment is identified, detecting whether a preset switching file exists in the storage equipment; when the switching file is detected to exist, reading switching data in the switching file; and switching the current configuration information according to the switching data. The invention also provides a device, an electronic device, a system and a storage medium for switching the configuration information, which can solve the problem that the configuration information of the electronic device cannot be switched back to the original configuration after being changed, and improve the user experience.

Description

Configuration information switching method and device, electronic device, system and storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method, an apparatus, an electronic apparatus, a system, and a storage medium for switching configuration information.
Background
With the social development and the advancement of science and technology, electronic products are increasing day by day, and the functions and models of the electronic products are also abundant and diverse, for example, televisions with different functions and various models gradually enter common people. Generally, each television is configured with a remote controller of one model, in order to meet the needs of users, some customers or manufacturers may use different remote controllers to respectively correspond to different configurations in the same television, and in the using process, configuration information (for example, a remote controller protocol) in the television needs to be switched to enable the remote controller corresponding to the configuration information to control the television.
However, in the process of implementing the present invention, the inventor finds that, at present, during switching, a remote controller corresponding to current configuration information of a television is used to send a switching instruction through a menu, and the television switches the configuration information after the instruction is sent, however, after switching, the current remote controller cannot continue to control the television, so that the original remote controller cannot be used to switch back to the original configuration information, and the user experience is reduced.
Disclosure of Invention
In view of the foregoing problems, an object of the present invention is to provide a method, an apparatus, an electronic apparatus, a system, and a storage medium for switching configuration information, which can solve the problem that the configuration information of the electronic apparatus cannot be switched back to the original configuration after being changed, and improve the user experience.
In a first aspect, an embodiment of the present invention provides a method for switching configuration information, where the method includes:
in response to access of a storage device, identifying the storage device;
when the storage equipment is identified, detecting whether a preset switching file exists in the storage equipment;
when the switching file is detected to exist, reading switching data in the switching file;
and switching the current configuration information according to the switching data.
In a first implementation manner of the first aspect, the detecting whether a preset switching file exists in the storage device specifically includes:
searching whether a file which is consistent with a preset naming rule exists in all files of the storage device, if so, judging that a preset switching file exists, and if not, judging that no preset switching file exists.
In a second implementation form of the first aspect, the handover data includes a first configuration number; the switching the current configuration information according to the switching data specifically includes:
acquiring a current configuration number in the current configuration information;
judging whether the first configuration number is consistent with the current configuration number;
if the first configuration number is consistent with the current configuration number, the switching operation of the current configuration information is not executed;
and if the first configuration number is not consistent with the current configuration number, switching the current configuration information into the configuration information corresponding to the first configuration number according to the first configuration number.
According to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the switching, according to the first configuration number of the switching data, the current configuration information to the configuration information corresponding to the first configuration number specifically includes:
judging whether a first configuration file corresponding to the first configuration number exists in the system or not according to the first configuration number;
if the first configuration file exists in the system, reading configuration information in the first configuration file, and switching the current configuration information into the configuration information of the first configuration file;
if the first configuration file does not exist in the system, judging whether the first configuration file exists in the storage equipment or not;
if the first configuration file exists in the storage device, reading configuration information from the first configuration file in the storage device, and switching the current configuration information into the configuration information in the first configuration file;
and if the first configuration file does not exist in the storage equipment, sending a prompt of switching failure.
In a fourth implementation form of the first aspect, the handover data comprises forced handover data; the switching the configuration information of the current system according to the switching data specifically includes:
acquiring a configuration file corresponding to the current configuration information according to the forced switching data;
and resetting the current configuration information according to the configuration file.
In a fifth implementation manner of the first aspect, after the switching the current configuration information according to the switching data, the method further includes:
and restarting the system when the current configuration information is detected to be switched, so that the system loads the configuration information corresponding to the switching data after the system is restarted.
In a second aspect, an embodiment of the present invention further provides a device for switching configuration information, where the device includes:
the device identification module is used for identifying the storage device when responding to the access of the storage device;
the file detection module is used for detecting whether a preset switching file exists in the storage equipment or not when the storage equipment is identified;
the data reading module is used for reading the switching data in the switching file when the switching file is detected to exist;
and the configuration switching module is used for switching the current configuration information according to the switching data.
In a third aspect, an embodiment of the present invention further provides an electronic apparatus, including an interface for connecting with a storage device, a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the method for switching configuration information described in any one of the above items when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a system for switching configuration information, including the above electronic apparatus and a storage device for storing a switching file; wherein the electronic apparatus comprises an interface for connecting with the storage device; the storage device is connected with the electronic device through the interface.
In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute any one of the above configuration information switching methods.
One of the above technical solutions has the following advantages: the preset switching file is stored by using the storage equipment, and the storage equipment is connected with the electronic device, so that the electronic device can switch the configuration information of the current system after reading the switching file, the problem that the current remote controller cannot be normally used after the configuration information of the electronic device is changed can be solved, meanwhile, a user can switch the configuration information of the electronic device according to actual conditions, the operation process is simple and convenient, and the user experience is improved. Of course, it is not necessary for any product in which the invention is practiced to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in 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 it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for switching configuration information according to a preferred embodiment of the present invention.
Fig. 2 is a switching flow chart of a switching method of configuration information according to a preferred embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a switching apparatus for configuration information according to a preferred 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.
Referring to fig. 1, a preferred embodiment of the present invention provides a method for switching configuration information, which can be executed on an electronic device having an interface, and includes the following steps:
s10, responding to the access of the storage device, and identifying the storage device.
In this embodiment, the storage device is a device for storing information, and preferably, the storage device is a removable storage device, wherein the removable storage device has the properties of high integration, fast access, convenience and flexibility, excellent performance, easy storage, and the like. The removable storage device is roughly divided into three types, namely magnetic medium storage (such as ZIP, LS-120, USB mobile hard disk, etc.), optical medium storage (such as CD-RW, DVD, MO), and flash memory medium storage (such as USB flash disk, various flash memory cards), wherein a USB disk (USB flash disk) has become the mainstream product in the mobile storage market, and is a miniature high-capacity mobile storage product using a USB interface without a physical drive, and is connected with a computer through the USB interface to realize plug and play.
In this embodiment, the electronic apparatus includes, but is not limited to, various electronic apparatuses with interfaces, such as a TV product (e.g., a television), a desktop computer, or a notebook, where the interface of the electronic apparatus may be a physical interface or a virtual interface, and is used for connecting with the storage device. The user can perform different configurations on the software system of the electronic device, for example, different configurations are set in a television, each configuration includes information such as a startup logo, user-defined information, a supported remote controller protocol and the like, the television can be controlled only by using a remote controller corresponding to the remote controller protocol supported by the current configuration of the television, if the current remote controller cannot control the current television, the configuration information or switching data and the like corresponding to the current remote controller can be stored in a U disk, and the U disk is inserted into the television, so that the current television can identify the U disk and mount the U disk on a file system, and thus, a specific path of the U disk, namely a specific path where a file in the U disk is located, can be obtained.
It should be noted that the connection mode between the storage device and the electronic apparatus may be a wireless connection, in addition to a wired connection (e.g., a USB connection).
The remote controller mentioned in this embodiment may be a mobile device (for example, a mobile phone equipped with an infrared transmitter) equipped with remote control software, besides the conventional remote controller, as long as the device can realize remote control of the electronic apparatus of this embodiment.
S20, when the storage device is identified, detecting whether a preset switching file exists in the storage device.
And S30, reading the switching data in the switching file when the switching file is detected to exist.
In this embodiment, in response to access of a storage device (e.g., a usb disk), the system automatically initiates identification of the storage device; after the system identifies the inserted storage device, the system can search each file in the storage device to judge whether a preset switching file exists.
Preferably, in all files of the storage device, whether a file conforming to a preset naming rule exists is searched, if so, it is determined that a preset switching file exists, and if not, it is determined that a preset switching file does not exist. It should be noted that the switching file is named according to a preset naming rule and stored in a storage device, after the electronic device identifies the storage device, whether a file which conforms to the naming rule exists in all files of the storage device is searched according to the preset naming rule, if yes, the file which conforms to the naming rule is determined to be the switching file, and if not, the switching file does not exist in the storage device. And when detecting that the switching file exists in the storage equipment, reading switching data in the switching file from the switching file.
As an example, a switching file named id.cvt containing switching data is stored in a usb disk in advance, after the electronic device obtains a specific path of the usb disk, all files in the specific path are searched, whether a file named id.cvt exists in each searched file is determined, and if a switching file named id.cvt exists in the usb disk, switching data for triggering configuration switching is read from the switching file. Here, the switching file is a text file, and a user may create a text file by himself, write a target configuration number in the text file, and modify a file name as the switching file.
And S40, switching the current configuration information according to the switching data.
In this embodiment, the switching data is used to trigger switching of the current configuration information of the electronic apparatus, for example, a switching instruction is generated according to the switching data, and a configuration file corresponding to the switching data is obtained according to the switching instruction to reconfigure the electronic apparatus, for example, to change configurations such as a boot logo, a remote controller protocol, and an interface display, so as to implement switching operation of the current configuration information.
In an implementation manner of this embodiment, after step S40, the method further includes: and restarting the system when the current configuration information is detected to be switched, so that the system loads the configuration information corresponding to the switching data after the system is restarted. Here, when the electronic apparatus completes the configuration change, the operation of restarting the electronic apparatus is automatically performed, so that the electronic apparatus loads the switched configuration information after the restart to enable the switching to be effective, for example, when the television is switched and restarted, a user can use a remote controller corresponding to the switched configuration information to operate the television.
In summary, a storage device is used for storing a preset switching file, and the storage device is connected with an electronic apparatus, so that the electronic apparatus switches the configuration information of the current system after reading the switching file, the problem that the current remote control device cannot be used normally after the configuration information of the electronic apparatus is changed can be solved, and meanwhile, a user can switch the configuration information of the electronic apparatus according to actual conditions, the operation process is simple and convenient, and the user experience is improved.
Referring to fig. 2, in another preferred embodiment of the present invention, the switching data includes a first configuration number; the step S40 specifically includes:
acquiring a current configuration number in the current configuration information;
judging whether the first configuration number is consistent with the current configuration number; if the first configuration number is consistent with the current configuration number, the switching operation of the current configuration information is not executed; and if the first configuration number is not consistent with the current configuration number, switching the current configuration information into the configuration information corresponding to the first configuration number according to the first configuration number.
In this embodiment, since different customers have different requirements for the software system of the electronic device, such as different boot logos, different user interfaces, different remote controllers, and the like, different configuration numbers are set by defining the software system in the electronic device to meet different customer requirements, so as to facilitate management and control of the software, that is, each configuration in the electronic device has a configuration number (i.e., ID), for example, each configuration number represents a customer, or each model of remote controller corresponds to a configuration number. In this embodiment, a user writes a first configuration number (i.e., switching data) required by the user in a switching file in advance, after the usb disk is inserted into the electronic device, the electronic device reads the first configuration number in the switching file and obtains a current configuration number of current configuration information of the system, matches the first configuration number with the current configuration number, determines whether the first configuration number is consistent with the current configuration number, and if so, determines that the current configuration information meets the requirements of the user and does not need to perform a switching operation; and if the configuration information is inconsistent with the first configuration number, executing switching operation, and switching the current configuration information into the configuration information corresponding to the first configuration number.
In an implementation manner of this embodiment, specifically, according to the first configuration number, it is determined whether a first configuration file corresponding to the first configuration number exists in a system; if the first configuration file exists in the system, reading configuration information in the first configuration file, and switching the current configuration information into the configuration information of the first configuration file; if the first configuration file does not exist in the system, judging whether the first configuration file exists in the storage equipment or not;
if the first configuration file exists in the storage device, reading configuration information from the first configuration file in the storage device, and switching the current configuration information into the configuration information in the first configuration file; and if the first configuration file does not exist in the storage equipment, sending a prompt of switching failure.
As an example, assuming that the configuration number of the current configuration information of the television is 2, and the user wants to switch to 10 (i.e. the first configuration number), the file id.cvt is put into the usb disk, and a number "10" is written into the file id.cvt, after the usb disk is inserted into the television, the television identifies the usb disk and reads the first configuration number "10" from the file id.cvt, because the first configuration number "10" is not consistent with the current configuration number "2", at this time, it is determined whether a first configuration file corresponding to the first configuration number "10" exists in the system, and if so, the relevant configuration information in the first configuration file is read to configure the current television information, such as changing a power-on logo, switching a remote controller protocol, and the like; if the current configuration information of the television is switched to the configuration information in the first configuration file, judging whether the first configuration file exists in the U disk, if the first configuration file exists in the U disk, calling the first configuration file in the U disk, reading the relevant configuration information, and switching the current configuration information of the television to the configuration information in the first configuration file; if the first configuration file does not exist in the U disk, the current configuration information of the television cannot be switched, and a prompt of switching failure is sent for a user to check.
It should be noted that, when it is detected that the first configuration file does not exist in both the current system and the storage device, the first configuration file may be further acquired from a server or a cloud to switch the current configuration information of the electronic apparatus.
Through the mode, the related configuration information or the configuration file is preset in the electronic device or the U disk, and when the first configuration number is detected to be inconsistent with the current configuration number in matching, the related configuration file is called quickly and the switching operation of the configuration information is executed on the electronic device, so that the operation process is simple and convenient, and the user experience is improved.
In a further preferred embodiment of the invention, the handover data comprises forced handover data; the step S40 specifically includes:
acquiring a configuration file corresponding to the current configuration information according to the forced switching data; and resetting the current configuration information according to the configuration file.
In this embodiment, the forced switching data is used to repair the electronic device when the electronic device has a fault or an abnormality, and preferably, the forced switching data includes forced switching information related to the current configuration number, for example, when a user wants to repair the electronic device, the forced switching data in the switching file is set to be 100 added to the current configuration number, and if the current configuration number is 1, the forced switching data is 101, or switching data suitable for the configuration number 1 and configured with the configuration number 101 in advance by a merchant may be acquired. As an example, assuming that the current configuration number of the television is "2", when the remote controller is not usable due to an abnormality of the television, a file id.cvt is put in the usb disk, and a numeral "102" is written in the file id.cvt. After the U disk is inserted into the television, the television recognizes the U disk and reads forced switching data 102 from the file ID. cvt, then it can be judged that forced switching operation needs to be executed on the television, that is, current configuration information of the television is reset, here, when the number 102 is read, the digital configuration information is analyzed, then a configuration file with a configuration number 2 is obtained from the television system, and the television information is configured according to the configuration file, so that the reset operation of the current configuration information is realized, and thus the abnormality is repaired.
By the mode, the switching file containing the forced switching data is put into the storage device, so that the electronic device can forcibly execute the switching operation, the fault or the abnormity of the electronic device can be repaired, the problem that the remote controller cannot be used when the electronic device is abnormal can be solved, and the user experience is improved.
Referring to fig. 3, a preferred embodiment of the present invention provides a device for switching configuration information, including:
the device identification module 10 is used for identifying the storage device when the storage device is accessed;
the file detection module 20 is configured to detect whether a preset switching file exists in the storage device when the storage device is identified;
a data reading module 30, configured to read switching data in the switching file when the switching file is detected to exist;
and the configuration switching module 40 is configured to switch the current configuration information according to the switching data.
Preferably, the file detection module 20 specifically includes:
the detection unit is used for searching whether a file which conforms to a preset naming rule exists in all files of the storage device, if so, judging that a preset switching file exists, and if not, judging that the preset switching file does not exist.
Preferably, the handover data comprises a first configuration number; the configuration switching module 40 specifically includes:
the acquisition unit is used for acquiring a current configuration number in the current configuration information;
the configuration number matching unit is used for judging whether the first configuration number is consistent with the current configuration number or not;
a switching prohibition unit, configured to not execute a switching operation on the current configuration information if the first configuration number is consistent with the current configuration number;
and a switching execution unit, configured to switch the current configuration information to the configuration information corresponding to the first configuration number according to the first configuration number if the first configuration number is not consistent with the current configuration number.
Further, the handover performing unit specifically includes:
the first judging unit is used for judging whether a first configuration file corresponding to the first configuration number exists in the system or not according to the first configuration number;
a first configuration unit, configured to, if the first configuration file exists in the system, read configuration information in the first configuration file, and switch the current configuration information to configuration information of the first configuration file;
a second determining unit, configured to determine whether the first configuration file exists in the storage device if the first configuration file does not exist in the system;
a second configuration unit, configured to, if the first configuration file exists in the storage device, read configuration information from the first configuration file in the storage device, and switch the current configuration information to configuration information in the first configuration file;
and the prompting unit is used for sending out a prompt of switching failure if the first configuration file does not exist in the storage equipment.
Preferably, the handover data comprises forced handover data; the configuration switching module 40 specifically includes:
the file acquisition unit is used for acquiring a configuration file corresponding to the current configuration information according to the forced switching data;
and the forced switching unit is used for resetting the current configuration information according to the configuration file.
Preferably, the switching device of the configuration information further includes:
and the system restarting module is used for restarting the system when the current configuration information is detected to be switched completely, so that the system loads the configuration information corresponding to the switching data after the system is restarted.
A preferred embodiment of the present invention also provides an electronic device. The electronic device of this embodiment includes: an interface for connecting with a storage device (e.g. a USB interface), a display screen, a processor, a display, a memory, and a computer program stored in the memory and executable on the processor, such as a program for switching configuration information. The processor implements the steps in the embodiment of the switching method of the various configuration information described above when executing the computer program, for example, step S10 shown in fig. 1. Alternatively, the processor, when executing the computer program, implements the functions of the units in the above-mentioned apparatus embodiments, such as the device identification module 10 shown in fig. 3.
Illustratively, the computer program may be partitioned into one or more modules that are stored in the memory and executed by the processor to implement the invention. The one or more modules may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program in the electronic device.
The electronic device can be a computing device such as an intelligent television, an intelligent panel, an intelligent mirror, a desktop computer, a notebook, a palm computer and a cloud server. The electronic device may include, but is not limited to, a processor, memory, a display. It will be appreciated by those skilled in the art that the above components are merely examples of an electronic apparatus, and do not constitute a limitation of the electronic apparatus, and may include more or less components than those described above, or some components in combination, or different components, for example, the electronic apparatus may further include an input-output device, a network access device, a bus, and the like.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like that is the control center for the electronic device and that connects the various parts of the overall electronic device using various interfaces and wires.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the electronic device by executing or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, a text conversion function, etc.), and the like; the storage data area may store data (such as audio data, text message data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
In this embodiment, a system for switching configuration information is further provided, which includes the electronic apparatus described above and a storage device for storing a switching file; wherein the electronic apparatus comprises an interface for connecting with the storage device; the storage device is connected with the electronic device through the interface. The storage device may be a removable storage device, for example, a USB disk storing a switching file is connected to the television through a USB interface of the television, and the television reads the switching file in the USB disk to perform a switching operation of configuration information. It should be noted that the configuration information switching system further includes a remote control device for remotely controlling the electronic apparatus, wherein the switching file or switching data stored in the storage device matches with the remote control device, and when the electronic apparatus reads the switching data in the storage device, the current configuration information is switched (for example, a remote control protocol is switched), so that after the switching is successful, the remote control device can operate and control the electronic apparatus.
Wherein the module integrated with the electronic device may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (9)

1. A method for switching configuration information is characterized by comprising the following steps:
in response to access of a storage device, identifying the storage device;
when the storage equipment is identified, detecting whether a preset switching file exists in the storage equipment;
when the switching file is detected to exist, reading switching data in the switching file;
switching the current configuration information according to the switching data;
the current configuration information comprises a current configuration number, the switching data comprises forced switching data, the forced switching data comprises forced switching information related to the current configuration number, and the forced switching information is used for repairing the electronic device when the electronic device fails or is abnormal; the switching the configuration information of the current system according to the switching data specifically includes:
acquiring a configuration file corresponding to the current configuration information according to the forced switching data;
and resetting the current configuration information according to the configuration file.
2. The method for switching configuration information according to claim 1, wherein the detecting whether the preset switching file exists in the storage device specifically includes:
searching whether a file which is consistent with a preset naming rule exists in all files of the storage device, if so, judging that a preset switching file exists, and if not, judging that no preset switching file exists.
3. The method according to claim 1, wherein the switching data includes a first configuration number; the switching the current configuration information according to the switching data specifically includes:
acquiring a current configuration number in the current configuration information;
judging whether the first configuration number is consistent with the current configuration number;
if the first configuration number is consistent with the current configuration number, the switching operation of the current configuration information is not executed;
and if the first configuration number is not consistent with the current configuration number, switching the current configuration information into the configuration information corresponding to the first configuration number according to the first configuration number.
4. The method for switching configuration information according to claim 3, wherein the switching the current configuration information to the configuration information corresponding to the first configuration number according to the first configuration number of the switching data specifically comprises:
judging whether a first configuration file corresponding to the first configuration number exists in the system or not according to the first configuration number;
if the first configuration file exists in the system, reading configuration information in the first configuration file, and switching the current configuration information into the configuration information of the first configuration file;
if the first configuration file does not exist in the system, judging whether the first configuration file exists in the storage equipment or not;
if the first configuration file exists in the storage device, reading configuration information from the first configuration file in the storage device, and switching the current configuration information into the configuration information in the first configuration file;
and if the first configuration file does not exist in the storage equipment, sending a prompt of switching failure.
5. The method for switching configuration information according to claim 1, further comprising, after the switching the current configuration information according to the switching data:
and restarting the system when the current configuration information is detected to be switched, so that the system loads the configuration information corresponding to the switching data after the system is restarted.
6. An apparatus for switching configuration information, comprising:
the device identification module is used for identifying the storage device when responding to the access of the storage device;
the file detection module is used for detecting whether a preset switching file exists in the storage equipment or not when the storage equipment is identified;
the data reading module is used for reading the switching data in the switching file when the switching file is detected to exist;
the configuration switching module is used for switching the current configuration information according to the switching data;
the current configuration information comprises a current configuration number, the switching data comprises forced switching data, the forced switching data comprises forced switching information related to the current configuration number, and the forced switching information is used for repairing the electronic device when the electronic device fails or is abnormal; the configuration switching module comprises:
the file acquisition unit is used for acquiring a configuration file corresponding to the current configuration information according to the forced switching data;
and the forced switching unit is used for resetting the current configuration information according to the configuration file.
7. An electronic apparatus, comprising an interface for connecting with a storage device, a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the switching method of the configuration information according to any one of claims 1 to 5 when executing the computer program.
8. A switching system of configuration information, comprising an electronic apparatus according to claim 7, and a storage device for storing a switching file; wherein the electronic apparatus comprises an interface for connecting with the storage device; the storage device is connected with the electronic device through the interface.
9. A computer-readable storage medium, comprising a stored computer program, wherein when the computer program runs, the computer-readable storage medium controls a device to execute the method for switching configuration information according to any one of claims 1 to 5.
CN201810852101.XA 2018-07-27 2018-07-27 Configuration information switching method and device, electronic device, system and storage medium Active CN109257652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810852101.XA CN109257652B (en) 2018-07-27 2018-07-27 Configuration information switching method and device, electronic device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810852101.XA CN109257652B (en) 2018-07-27 2018-07-27 Configuration information switching method and device, electronic device, system and storage medium

Publications (2)

Publication Number Publication Date
CN109257652A CN109257652A (en) 2019-01-22
CN109257652B true CN109257652B (en) 2021-04-06

Family

ID=65049941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810852101.XA Active CN109257652B (en) 2018-07-27 2018-07-27 Configuration information switching method and device, electronic device, system and storage medium

Country Status (1)

Country Link
CN (1) CN109257652B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110379375B (en) * 2019-06-25 2021-05-07 深圳市金锐显数码科技有限公司 Automatic switching method and automatic switching system for backlight current gears
CN110456972A (en) * 2019-06-25 2019-11-15 杭州句力科技有限公司 A method of it arbitrarily changing elevator operation panel touch screen by USB flash disk and shows
CN112199122A (en) * 2020-09-29 2021-01-08 厦门四信通信科技有限公司 Method, device and equipment for configuring display screen parameters

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7620711B2 (en) * 2005-03-18 2009-11-17 Siemens Aktiengesellschaft Method of using configuration files for configuring technical devices
CN101867690A (en) * 2009-04-17 2010-10-20 深圳Tcl新技术有限公司 Method for setting personalized information of television
CN102014305A (en) * 2010-10-28 2011-04-13 冠捷显示科技(厦门)有限公司 Method for editing television configuration parameters and data
CN102420948A (en) * 2011-08-26 2012-04-18 厦门华侨电子股份有限公司 Method used for cross-platform television setting cloning by adopting USB (Universal Serial Bus) mobile storage device
CN103595892A (en) * 2006-11-20 2014-02-19 株式会社Pfu External device configuration apparatus and external device configuration method
CN105187854A (en) * 2015-07-30 2015-12-23 深圳Tcl数字技术有限公司 Method and device for dynamically configuring remote control function data
CN105744366A (en) * 2016-02-22 2016-07-06 深圳创维数字技术有限公司 Data configuration sharing method and system of set top box

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7620711B2 (en) * 2005-03-18 2009-11-17 Siemens Aktiengesellschaft Method of using configuration files for configuring technical devices
CN103595892A (en) * 2006-11-20 2014-02-19 株式会社Pfu External device configuration apparatus and external device configuration method
CN101867690A (en) * 2009-04-17 2010-10-20 深圳Tcl新技术有限公司 Method for setting personalized information of television
CN102014305A (en) * 2010-10-28 2011-04-13 冠捷显示科技(厦门)有限公司 Method for editing television configuration parameters and data
CN102420948A (en) * 2011-08-26 2012-04-18 厦门华侨电子股份有限公司 Method used for cross-platform television setting cloning by adopting USB (Universal Serial Bus) mobile storage device
CN105187854A (en) * 2015-07-30 2015-12-23 深圳Tcl数字技术有限公司 Method and device for dynamically configuring remote control function data
CN105744366A (en) * 2016-02-22 2016-07-06 深圳创维数字技术有限公司 Data configuration sharing method and system of set top box

Also Published As

Publication number Publication date
CN109257652A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
US11086596B2 (en) Electronic device, server and control method thereof
TWI510913B (en) Testing device and testing method thereof
US8874953B2 (en) System and method of cloud testing and remote monitoring for integrated circuit components in system validation
CN109257652B (en) Configuration information switching method and device, electronic device, system and storage medium
US20210191741A1 (en) Window Switching Method, Terminal and Non-Transitory Computer-Readable Storage Medium
CN109976816B (en) Computer system configuration method and server
CN106648685B (en) Intelligent terminal system application processing method and device and intelligent terminal
CN106528158B (en) The method, device and mobile terminal of carry storage card
CN107577472B (en) Software installation method and device and computer readable storage medium
US20130166895A1 (en) Electronic device and method for setting boot parameters
CN110244963B (en) Data updating method and device and terminal equipment
CN108829423A (en) Method for upgrading system, device, equipment and the storage medium of Android device
CN111324378A (en) Custom H5 page parameter configuration applied to playing of video monitoring equipment in APP
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
US20180089045A1 (en) Method and device for performing hardware module diagnostics
CN112463199A (en) System upgrading method and terminal
US10007529B2 (en) Data terminal running mode switching method, device, and data terminal
CN110515662B (en) Remote control method, system, equipment and readable storage medium for dual-system equipment
CN115495161B (en) BIOS option modification validation method and device and storage medium
US20200081597A1 (en) Application program management method and apparatus
CN111130856A (en) Server configuration method, system, equipment and computer readable storage medium
CN108536512B (en) Interface switching method and device and terminal equipment
EP4284006A1 (en) Abnormal state processing method, server, and electronic device
CN108958823B (en) Method for modifying set value of basic input and output system
CN113849379B (en) Method, device, equipment and readable medium for collecting server asset information

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