CN114416173A - Version switching method and terminal equipment - Google Patents

Version switching method and terminal equipment Download PDF

Info

Publication number
CN114416173A
CN114416173A CN202210309023.5A CN202210309023A CN114416173A CN 114416173 A CN114416173 A CN 114416173A CN 202210309023 A CN202210309023 A CN 202210309023A CN 114416173 A CN114416173 A CN 114416173A
Authority
CN
China
Prior art keywords
version
indication information
terminal device
switch
partition
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
CN202210309023.5A
Other languages
Chinese (zh)
Other versions
CN114416173B (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.)
Xi'an Honor Device Co ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210309023.5A priority Critical patent/CN114416173B/en
Publication of CN114416173A publication Critical patent/CN114416173A/en
Application granted granted Critical
Publication of CN114416173B publication Critical patent/CN114416173B/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/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a version switching method and terminal equipment, which can reduce version burning time, are beneficial to improving the efficiency of an automatic line body and increasing the productivity of the automatic line body. The method can be applied to terminal equipment of which the system version is a first version, the terminal equipment comprises a first switch, the first switch is used for controlling the switching of the system version, and the first switch is in an open state, and the method comprises the following steps: acquiring first indication information, wherein the first indication information is used for indicating that the system version is switched to a second version; controlling the first switch to be in a closed state according to the first indication information; when the first switch is in the closed state, the system version is switched from the first version to the second version.

Description

Version switching method and terminal equipment
Technical Field
The present application relates to the field of terminals, and in particular, to a version switching method and a terminal device.
Background
When the automatic line body of a factory is used for processing terminal equipment, the productivity is an important evaluation index. The terminal equipment with a large screen is large in size and heavy in weight, and the number of the terminal equipment processed by one station in the automatic line body is small, so that the capacity of the automatic line body is influenced. In addition, the upgrading station of the automation line body also affects the productivity of the automation line body.
Specifically, the large-screen terminal device needs to burn the production version before entering the automation line, and needs to burn the user version again at the upgrading station after entering the automation line, wherein the user version has complete functions compared with the production version, the burning time is long, and the time consumption can be as long as 3 minutes. When the large-screen terminal equipment is switched among different system versions, the system versions need to be re-burned, and the efficiency of an automation line body is seriously reduced.
Therefore, a version switching method is needed to reduce the version burning time and improve the efficiency of the automation line.
Disclosure of Invention
The application provides a version switching method and terminal equipment, which can reduce version burning time, are beneficial to improving the efficiency of an automatic line body and increasing the productivity of the automatic line body.
In a first aspect, a version switching method is provided, where the method may be applied to a terminal device whose system version is a first version, where the terminal device includes a first switch, the first switch is used to control switching of the system version, and the first switch is in an open state, and the method includes: acquiring first indication information, wherein the first indication information is used for indicating that the system version is switched to a second version; controlling the first switch to be in a closed state according to the first indication information; when the first switch is in the closed state, the system version is switched from the first version to the second version.
The first version is one of system versions, which may be a user version or a production version, and this application does not limit this. The terminal device may be a large-screen terminal device or a small-screen terminal device, which is not limited in this application.
The first indication information is used for indicating that the system version is switched to the second version, and the first indication information may comprise information related to the second version and used for indicating switching to the second version; an identifier of the second version may also be included to indicate a switch to the second version, but the application is not limited thereto.
The first switch is used for controlling the switching of the system version, and when the first switch is in an open state, the system version of the terminal equipment is the first version. And when the first switch is in a closed state, the system version of the terminal equipment is the second version. Therefore, when the first indication information received by the terminal device is used for indicating that the system version is switched to the second version, the terminal device controls the first switch to be in the closed state.
According to the version switching method, the terminal equipment only needs to burn one system version, the system version is enabled to be the first version by controlling the first switch to be in the on state, the first switch is controlled to be closed, the system version is switched to the second version, burning is not needed to be conducted again when the versions are switched, version burning time can be shortened, the efficiency of an automatic line body is improved, and the productivity of the automatic line body is increased.
With reference to the first aspect, in some implementations of the first aspect, the first indication information is an identifier of a second version; acquiring first indication information, including: and receiving first indication information from the production equipment, wherein the production equipment responds to input operation of a worker to obtain the first indication information, and the input operation is used for inputting the identification of the second version.
The terminal device may preset a parameter, and the value of the parameter may be used to indicate the switching system version. And when the value of the parameter is the identifier of the second version, the parameter is used for indicating the terminal equipment to switch to the first version. The parameter value may also be understood as an attribute of the parameter, which is not limited in the present application. The parameter may also be referred to as a mode switching parameter or a version switching parameter, which is not limited in this application.
The name of the production equipment, namely the equipment used by workers working at the automatic wire body upgrading station, is merely an example, and the application does not limit the equipment. When the terminal equipment arrives at the upgrading station, the worker operates on a human-computer interaction interface provided by the production equipment, and the production equipment responds to the operation of the worker and sends first indication information to the terminal equipment.
With reference to the first aspect, in certain implementation manners of the first aspect, the first indication information is stored in a first partition in a preset memory, and the preset memory is used for storing a single-board bar code, a complete machine bar code, and a physical address.
Information such as a single-board barcode (SN), a complete machine Barcode (BSN), and a physical address (LANMAC) may be referred to as key information, and the key information is generally stored in a specific memory space in a memory, and has high confidentiality. The preset memory refers to a memory for storing key information. The preset memory can be divided into a plurality of partitions, the functions of each partition in the plurality of partitions can be different, and the specific number of the partitions is not limited in the application. The preset memory may include a first partition, and the first partition is a partition that is divided from the preset memory and is dedicated to storing the first indication information.
According to the version switching method, the first indication information is stored in the first partition in the preset memory, so that confidentiality can be improved, and the method is safer.
With reference to the first aspect, in some implementations of the first aspect, before the obtaining the first indication information, the method further includes: when the first indication information is stored in a first partition of a preset memory, entering a kernel state by restarting; acquiring first indication information, including: in the kernel state, first indication information is read in the first partition.
According to the version switching method, when the first indication information is stored in the preset memory, the core state can be entered through restarting, and in the core state, the information is read in the preset memory to confirm the switched version so as to ensure the switched version after subsequent startup.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: and uploading the first indication information as an environment variable to an upper layer interface so as to be convenient for a worker to check.
According to the version switching method, the first indication information is uploaded to the upper layer interface as the environment variable, so that a user can conveniently check the system version, and the user experience is improved.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: acquiring second indication information, wherein the second indication information is used for indicating that the system version is switched into the first version; controlling the first switch to be in an open state according to the second indication information; and when the first switch is in an open state, switching the system version from the second version to the first version.
According to the version switching method, the system version of the terminal equipment can be the first version or the second version by controlling the opening and closing of the first switch, the switching between different versions can be realized without burning the versions again, the version burning time can be reduced, the efficiency of an automatic line body is improved, and the productivity of the automatic line body is increased.
With reference to the first aspect, in certain implementations of the first aspect, the first version is a production version, the second version is a user version, and the first version is lower than the second version.
In a second aspect, a terminal device is provided, where a system version of the terminal device is a first version, the terminal device includes a first switch, the first switch is used to control switching of the system version, and the first switch is in an open state, and the terminal device includes: the device comprises an acquisition module and a processing module. Wherein the acquisition module is configured to: acquiring first indication information, wherein the first indication information is used for indicating that the system version is switched to a second version; the processing module is used for: controlling the first switch to be in a closed state according to the first indication information; and switching the system version from the first version to the second version when the first switch is in the off state.
With reference to the second aspect, in some implementation manners of the second aspect, the first indication information is an identifier of a second version, and the terminal device further includes a receiving module; the receiving module is used for: and receiving first indication information from the production equipment, wherein the production equipment responds to input operation of a worker to obtain the first indication information, and the input operation is used for inputting the identification of the second version.
With reference to the second aspect, in some implementation manners of the second aspect, the first indication information is stored in a first partition in a preset memory, and the preset memory is used for storing a single-board bar code, a complete machine bar code, and a physical address.
With reference to the second aspect, in some implementations of the second aspect, the processing module is further configured to: when the first indication information is stored in a first partition of a preset memory, entering a kernel state by restarting; in the kernel state, first indication information is read in the first partition.
With reference to the second aspect, in some implementations of the second aspect, the processing module is further configured to: and uploading the first indication information as an environment variable to an upper layer interface so as to be convenient for a worker to check.
With reference to the second aspect, in some implementations of the second aspect, the obtaining module is further configured to: acquiring second indication information, wherein the second indication information is used for indicating that the system version is switched into the first version; the processing module is further configured to: controlling the first switch to be in an open state according to the second indication information; and when the first switch is in an open state, switching the system version from the second version to the first version.
With reference to the second aspect, in some implementations of the second aspect, the first version is a production version, the second version is a user version, and the first version is lower than the second version.
In a third aspect, the present application provides a terminal device, including a processor, coupled to a memory, and configured to execute instructions in the memory to implement the method in any one of the possible implementations of the first aspect. Optionally, the terminal device further comprises a memory. Optionally, the terminal device further comprises a communication interface, the processor being coupled to the communication interface.
In a fourth aspect, the present application provides a processor comprising: input circuit, output circuit and processing circuit. The processing circuit is configured to receive a signal via the input circuit and transmit a signal via the output circuit, so that the processor performs the method of any one of the possible implementations of the first aspect.
In a specific implementation process, the processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a flip-flop, various logic circuits, and the like. The input signal received by the input circuit may be received and input by, for example and without limitation, a receiver, the signal output by the output circuit may be output to and transmitted by a transmitter, for example and without limitation, and the input circuit and the output circuit may be the same circuit that functions as the input circuit and the output circuit, respectively, at different times. The specific implementation of the processor and various circuits are not limited in this application.
In a fifth aspect, the present application provides a processing apparatus comprising a processor and a memory. The processor is configured to read instructions stored in the memory, and may receive signals via the receiver and transmit signals via the transmitter to perform the method of any one of the possible implementations of the first aspect.
Optionally, there are one or more processors and one or more memories.
Alternatively, the memory may be integrated with the processor, or provided separately from the processor.
In a specific implementation process, the memory may be a non-transitory (non-transitory) memory, such as a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips.
It will be appreciated that the associated data interaction process, for example, sending the indication information, may be a process of outputting the indication information from the processor, and receiving the capability information may be a process of receiving the input capability information from the processor. In particular, the data output by the processor may be output to a transmitter and the input data received by the processor may be from a receiver. The transmitter and receiver may be collectively referred to as a transceiver, among others.
The processing device in the fifth aspect may be a chip, the processor may be implemented by hardware or software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated with the processor, located external to the processor, or stand-alone.
In a sixth aspect, the present application provides a computer-readable storage medium storing a computer program (which may also be referred to as code or instructions) which, when run on a computer, causes the computer to perform the method of any one of the possible implementations of the first aspect described above.
In a seventh aspect, the present application provides a computer program product comprising: computer program (also called code, or instructions), which when executed, causes a computer to perform the method of any of the possible implementations of the first aspect described above.
Drawings
Fig. 1 is a schematic view of an automated wire body provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
fig. 3 is a schematic block diagram of a software structure of a terminal device according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a version switching method provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a human-computer interaction interface provided by an embodiment of the present application;
fig. 6 is a schematic diagram of a default memory according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a system version provided by an embodiment of the present application;
fig. 8 is a schematic flowchart of another version switching method provided in an embodiment of the present application;
fig. 9 is a schematic flowchart of another version switching method provided in an embodiment of the present application;
fig. 10 is a schematic block diagram of a terminal device provided in an embodiment of the present application;
fig. 11 is a schematic block diagram of another terminal device provided in an embodiment of the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
When the automatic line body of a factory is used for processing terminal equipment, the productivity is an important evaluation index. The terminal equipment with the large screen (namely, the large screen terminal equipment) is large in size and heavy in weight, and the capacity of the automatic line body can be influenced due to the fact that the number of the large screen terminal equipment processed by one station in the automatic line body is small.
It should be understood that the area of each work of the automation line is constant, and when processing large-screen terminal devices, the number of large-screen terminal devices that can be processed by one station is smaller than that of small-screen terminal devices, which may affect the productivity of the automation line. The large-screen terminal device refers to a terminal device with a large display screen, such as a flat panel. The small-screen terminal device refers to a terminal device with a small display screen, such as a mobile phone.
In addition, the upgrading station of the automation line body also affects the productivity of the automation line body. The upgrading station is used for upgrading the system version of the large-screen terminal device to the user version.
Specifically, at other stations before the upgrade station, the system version of the large-screen terminal device is the production version, and at the upgrade station and other stations after the upgrade station, the large-screen terminal device needs to burn the user version again, and the user version has full functions compared with the production version, so that the burning time is long, the consumed time can be as long as 3 minutes, and the productivity of the automation line body is further affected. The user version may also be referred to as an upgraded version, which is not limited in this embodiment of the application.
Exemplarily, fig. 1 shows a schematic view of an automated wire body. As shown in fig. 1, the automated line body includes 9 stations, which are station 1, station 2, station 3, station 4, station 5, station 6, station 7, station 8 and station 9, wherein station 5 is an upgrade station. The number of stations is merely an example, and the embodiment of the present application is not limited thereto.
The large-screen terminal equipment needs to burn production versions before entering an automation line, after entering the automation line, the system versions are all production versions when working positions 1 to 4, when the system versions reach a working position 5, the user versions are burned, the time is about 3 minutes, and after the burning is completed, the system versions are all user versions when the working positions 6 to 9.
In the whole process of the automation line body, the time consumed for burning the user version is long, and in addition, the number of large-screen terminal devices which can be processed by each station is small, so that the productivity of the automation line body is low.
In view of this, the present disclosure provides a version switching method, which can reduce the version burning time, and is beneficial to improving the efficiency of an automation cable and increasing the productivity of the automation cable.
It should be noted that, when the automation line body is processing the small-screen terminal device, the small-screen terminal device also needs to burn the user version at the upgrade station, which takes a long time. The method provided by the embodiment of the application can also be applied to the scene of small-screen terminal equipment, the burning time of the station version is shortened, the efficiency of the automation line is improved, and the productivity of the automation line is increased.
In order to better understand the embodiments of the present application, the following describes the hardware structure of the terminal device according to the embodiments of the present application. Exemplarily, fig. 2 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
The terminal device may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a key 190, an indicator 192, a camera 193, a display 194, and the like.
Alternatively, the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the terminal device. In other embodiments of the present application, a terminal device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components may be used. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units. The different processing units may be separate devices or may be integrated into one or more processors. A memory may also be provided in processor 110 for storing instructions and data.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the terminal device, and may also be used to transmit data between the terminal device and the peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other terminal devices, such as AR devices and the like.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. The power management module 141 is used for connecting the charging management module 140 and the processor 110.
The wireless communication function of the terminal device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Antennas in terminal devices may be used to cover single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied on the terminal device. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation.
The wireless communication module 160 may provide a solution for wireless communication applied to a terminal device, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), and the like.
The terminal device realizes the display function through the GPU, the display screen 194, the application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. In some embodiments, the terminal device may include 1 or N display screens 194, with N being a positive integer greater than 1.
The terminal device can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The camera 193 is used to capture still images or video. In some embodiments, the terminal device may include 1 or N cameras 193, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the terminal device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area.
The terminal device may implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The terminal device can listen to music through the speaker 170A, or listen to a handsfree call. The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the terminal device answers a call or voice information, it is possible to answer a voice by bringing the receiver 170B close to the human ear. The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The gyro sensor 180B may be used to determine the motion attitude of the terminal device. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a hall sensor. The acceleration sensor 180E can detect the magnitude of acceleration of the terminal device in various directions (generally, three axes). A distance sensor 180F for measuring a distance. The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense the ambient light level. The fingerprint sensor 180H is used to collect a fingerprint. The temperature sensor 180J is used to detect temperature. The touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The bone conduction sensor 180M may acquire a vibration signal.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The terminal device may receive a key input, and generate a key signal input related to user setting and function control of the terminal device. Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The software system of the terminal device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The layered architecture may adopt an Android (Android) system, an apple (IOS) system, and other operating systems, which is not limited in the embodiments of the present application. The following takes an Android system with a layered architecture as an example to exemplarily illustrate a software structure of a terminal device.
Fig. 3 is a block diagram of a software structure of a terminal device to which the embodiment of the present application is applied. The layered architecture divides the software system of the terminal device into a plurality of layers, and each layer has clear roles and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may be divided into four layers, from top to bottom, an application layer (applications), an application framework layer (application framework), an Android runtime (Android runtime) and system library, and a kernel layer (kernel).
The application layer may include a series of application packages, and the application layer runs the application by calling an Application Programming Interface (API) provided by the application framework layer. As shown in fig. 3, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, bluetooth, music, video, short message, etc.
The application framework layer provides an API and programming framework for the applications of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 3, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures. The telephone manager is used for providing a communication function of the terminal equipment. Such as management of call status (including on, off, etc.). The resource manager provides various resources, such as localized strings, icons, pictures, layout files, video files, etc., to the application. The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the terminal device vibrates, an indicator light flickers, and the like.
The android system runtime includes a core library and a virtual machine. And the android system is responsible for scheduling and managing the android system during operation. The core library comprises two parts: one part is the function that the Java language needs to call, and the other part is the kernel library of android. The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like. The system library may contain modules for a plurality of functions, such as: surface manager, media library, and three-dimensional graphics processing library, etc.
The surface manager is used for managing the display subsystem and providing fusion of the two-dimensional layer and the three-dimensional layer for a plurality of application programs. The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as: JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, composition, layer processing and the like.
The kernel layer is a layer between hardware and software. The kernel layer is used for driving hardware so that the hardware works. The kernel layer at least includes a display driver, a screen driver, a camera driver, a sensor driver, and the like, which is not limited in the embodiment of the present application.
The terminal device according to the embodiment of the present application may be a wearable terminal device such as a mobile phone, a tablet PC, a Personal Computer (PC), and a smart watch, and may also be various teaching aids (e.g., a learning machine and an early education machine), a smart toy, a portable robot, a Personal Digital Assistant (PDA), an Augmented Reality (AR) device, a Virtual Reality (VR) device, and the like.
In the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same or similar items having substantially the same function and action. For example, the first indication information and the second indication information are for distinguishing different indication information, and the order of the indication information is not limited. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
It is noted that the words "exemplary," "for example," and "such as" are used herein to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
Further, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, and c, may represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b and c can be single or multiple.
Fig. 4 is a schematic diagram of a version switching method 400 provided in an embodiment of the present application, where the method may be applied to a terminal device whose system version is a first version, where the terminal device includes a first switch, and the first switch is used to control switching of the system version and is in an open state. The first version is one of system versions, which may be the user version or the production version, and this is not limited in this embodiment of the application. The first switch may also be referred to as a burning piece macro, which is not limited in the embodiments of the present application. The method 400 may be applied to the above-described automation line scene shown in fig. 1, but the embodiment of the present application does not limit this.
The terminal device may be the large-screen terminal device or the small-screen terminal device, which is not limited in this application embodiment. The hardware structure diagram of the terminal device may be as shown in fig. 2, and the software structure diagram of the terminal device may be as shown in fig. 3, which is not limited in this embodiment.
As shown in fig. 4, the method 400 may include the steps of:
s401, first indication information is obtained, and the first indication information is used for indicating that the system version is switched to the second version.
The first indication information is used for indicating that the system version is switched to the second version, and the first indication information may comprise information related to the second version and used for indicating switching to the second version; an identifier of the second version may also be included to indicate switching to the second version, but the embodiment of the present application is not limited thereto.
In the above-described automation line scenario shown in fig. 1, the first version is a production version, and the second version is a user version. The method comprises the steps that before a station is upgraded, a system version is a production version, and at the station is upgraded, first indication information is obtained and used for indicating that the system version is switched to a user version.
Optionally, the first indication information may be an identifier of the second version; the acquiring of the first indication information may include: and receiving first indication information from the production equipment, wherein the production equipment responds to input operation of a worker to obtain the first indication information, and the input operation is used for inputting the identification of the second version.
The terminal device may preset a parameter, and the value of the parameter may be used to indicate the switching system version. And when the value of the parameter is the identifier of the second version, the parameter is used for indicating the terminal equipment to switch to the first version. The parameter value may also be understood as an attribute of the parameter, which is not limited in the embodiment of the present application. The parameter may also be referred to as a mode switching parameter or a version switching parameter, which is not limited in the embodiments of the present application.
Illustratively, the preset parameter may be runmode, and the value of the parameter may be normal or factor, where normal corresponds to the second version, i.e., the identifier of the second version, and factor corresponds to the first version, i.e., the identifier of the first version. When the parameter value of the preset parameter is normal, the terminal device obtains the value of the preset parameter, and the first indication information can be obtained.
The name of the production equipment, namely the equipment used by a worker working at the automation line body upgrading station, is merely an example, and the embodiment of the application is not limited thereto. When the terminal equipment arrives at the upgrading station, the worker operates on a human-computer interaction interface provided by the production equipment, and the production equipment responds to the operation of the worker and sends first indication information to the terminal equipment. The production equipment may be a computer, but the embodiment of the present application is not limited thereto.
Illustratively, FIG. 5 shows a schematic diagram of a human-machine interface. A computer (i.e., a production facility) may provide a human-machine interface as shown in fig. 5 to personnel at the upgrade station. As shown in fig. 5, the advanced function options include an operation type and its corresponding text box, an input value and its corresponding text box, and a write control. The text box corresponding to the operation type comprises a pull-down key 501, a worker can select a preset parameter runmode through the pull-down key 501, then a parameter value normal (an identifier of a second version) of the preset parameter runmode is input into the text box corresponding to the input box, then a writing control is clicked through a keyboard or a mouse, the computer responds to the operation of the worker, and sends first indication information to the terminal equipment, wherein the first indication information is used for indicating that the system version is switched to the second version.
Alternatively, the production equipment may install a production tool such as a dongle, and the preset parameter runmode may be written by the dongle, so that the confidentiality of the operation may be increased. In order to prevent the operator from writing the parameter value of runmode with disorder, the terminal device can also sign the parameter value. For example, the terminal device may sign the written parameter values using the facsigndata interface.
Optionally, the terminal device may store the first indication information in a first partition in a preset memory, where the preset memory is used to store the single-board bar code, the whole barcode, and the physical address.
Information such as a single-board barcode (SN), a complete machine Barcode (BSN), and a physical address (LANMAC) may be referred to as key information, and the key information is generally stored in a specific memory space in a memory, and has high confidentiality. For example, key information of a mobile phone may be stored in oeminfo, which is one of the memories, similar to the storage medium.
The preset memory refers to a memory for storing key information. The preset memory may be divided into a plurality of partitions, each of the plurality of partitions may have a different function, and the specific number of the partitions is not limited in the embodiment of the present application. The preset memory may include a first partition, where the first partition is a partition that is partitioned from the preset memory and is dedicated to storing the first indication information, and the first indication information may also be understood as an identifier of a system version, which is not limited in this embodiment of the present application.
In order to distinguish different partitions, each partition may have a partition identifier, which may be a number, a symbol, a letter, or any combination of the three, and this is not limited in this application.
Illustratively, the partition identification may be a number. Fig. 6 is a schematic diagram of a default memory. As shown in fig. 6, the preset memory is a specific memory in the memory of the terminal device, and may include 4 partitions, and the partition identifiers of the 4 partitions may be 1, 2, 3, and 4, respectively. The partition with the partition identification 1 may be used to store a single-board bar code, the partition with the partition identification 2 may be used to store a complete machine bar code, the partition with the partition identification 3 may be the first partition described above and is used to store the first indication information, and the partition with the partition identification 4 may be used to store a physical address.
S402, controlling the first switch to be in a closed state according to the first indication information.
The first switch is used for controlling the switching of the system version, and when the first switch is in an open state, the system version of the terminal equipment is the first version. And when the first switch is in a closed state, the system version of the terminal equipment is the second version. Therefore, when the first indication information received by the terminal device is used for indicating that the system version is switched to the second version, the terminal device controls the first switch to be in the closed state.
And S403, when the first switch is in a closed state, switching the system version from the first version to the second version.
In the above-described automation line scenario shown in fig. 1, the first version is a production version, and the second version is a user version. When the first switch is in a closed state, the terminal device switches the system version from the production version to the user version. The method is characterized in that the user version is a full version of mirror image burning generated by all modules of the terminal equipment, the full function burning time is long, the production version is a reduced version of the user version, the function unique to an automatic line is provided, the burning time is short, the function is short, although the function is few, the application to the automatic line production is enough, only one user version needs to be burned, on the basis, the method is introduced, before the station is upgraded, the system version of the terminal equipment is the production version, and after the station is upgraded and the station is upgraded, the system version of the terminal equipment is the user version.
Illustratively, fig. 7 shows a schematic diagram of a system version. As shown in fig. 7. The user version is a full version including full mirror images and comprises 9 mirror images, namely mirror image 1, mirror image 2, mirror image 3, mirror image 4, mirror image 5, mirror image 6, mirror image 7, mirror image 8 and mirror image 9. The production version is a subset of the customer version and comprises a total of 4 mirrors, including mirror 2, mirror 3, mirror 5, and mirror 6, respectively. The production version is controlled by a first switch (or called burning piece macro), when the first switch is in an open state, the mirror image included in the production version is in effect, other mirror images are not in effect, the system version of the terminal equipment is the production version, when the terminal equipment receives first indication information, the first switch is closed according to the first indication information, all the mirror images are enabled to take effect, and the system version of the terminal equipment is the user version.
According to the version switching method provided by the embodiment of the application, the terminal equipment only needs to burn one system version, the system version is enabled to be the first version by controlling the first switch to be in the on state, the first switch is controlled to be closed to be switched to the second version, burning is not needed to be conducted again when the versions are switched, version burning time can be shortened, the efficiency of an automatic line body is improved, and the productivity of the automatic line body is increased.
As an optional embodiment, before acquiring the first indication information at S401, the method 400 may further include: when the first indication information is stored in a first partition of a preset memory, entering a kernel state by restarting; acquiring first indication information, including: in the kernel state, first indication information is read in the first partition.
The terminal device stores the first indication information in the first partition in the preset memory, in the example shown in fig. 5, that is, stores the normal in the first partition in the preset memory. And after the storage is successful, the terminal equipment performs the kernel state through restarting, and then can enter a mboot stage, wherein the mboot stage is a stage in which the terminal equipment is powered on to enter the kernel state. After restarting, the switched version can be ensured to enter after starting. The terminal device may switch the system version to the second version in the process of the kernel mode, that is, may read the first indication information from the first partition of the preset memory, and then execute the above S402 and S403.
Illustratively, the production device may send a parameter value (i.e., first indication information) of the runmode to the terminal device through the dongle, after receiving the parameter value of the runmode, the terminal device stores the parameter value in the first partition with partition identifier 3 in the preset memory oeminfo, and then restarts the terminal device, during the restarting process, the parameter value of the runmode in the oeminfo is read through the preset interface in the mboot stage, and if the parameter value is read as normal, the foregoing S402 and S403 are executed.
According to the version switching method provided by the embodiment of the application, when the first indication information is stored in the preset memory, the core state can be entered through restarting, and in the core state, the information is read in the preset memory to confirm the switched version so as to ensure that the switched version is the switched version after subsequent startup.
As an alternative embodiment, the method 400 may further include: and uploading the first indication information as an environment variable to an upper layer interface so as to be convenient for a worker to check.
The terminal device may save the first indication information as an environment variable and upload the environment variable to an upper layer interface, for example, the upper layer interface may be cmdline, and the interface may save the version key information. And the staff checks the version information through the cat cmdlene or proc cmdlene instruction after the terminal equipment is started.
Illustratively, fig. 8 shows a schematic flow diagram of a version switching method 800. As shown in fig. 8, the method 800 may include the steps of:
s801, acquiring first indication information, wherein the first indication information is used for indicating that the system version is switched to the second version.
The first indication information may be normal, which indicates that the system version is switched to the second version.
S802, storing the first indication information in a first partition in a preset memory.
The terminal device may store the first indication information normal in the first partition in the preset memory.
And S803, when the first indication information is stored in the first partition of the preset memory, entering a kernel state by restarting.
And when the terminal equipment detects that the first partition has the information, restarting and entering a kernel state through restarting.
S804, in the state of the kernel mode, reading first indication information in the first partition.
In the kernel state, the terminal device reads the information in the first partition, and may read the first indication information normal.
And S805, controlling the first switch to be in a closed state according to the first indication information.
The first switch is turned on, the system version of the terminal device is the first version, the first switch is turned off, and the system version of the terminal device is the second version. The first indication information is used for indicating that the system version is switched to the second version, and the terminal device can control the first switch to be in a closed state.
And S806, when the first switch is in a closed state, switching the system version from the first version to the second version.
And when the first switch is in a closed state, the system version of the terminal equipment is the second version.
S807, the first instruction information is saved as an environment variable.
The terminal device saves the first indication information normal as an environment variable.
And S808, uploading the environment variable to an upper layer interface.
The terminal equipment uploads the environment variable normal to the upper layer interface cmdline. After the terminal equipment is started, the worker instructs the version information of the terminal equipment to be normal through cat cmdlene, namely the current version is the user version.
According to the version switching method provided by the embodiment of the application, the first indication information is uploaded to the upper layer interface as the environment variable, so that a user can conveniently check the system version, and the user experience is improved.
As an alternative embodiment, the method 400 may further include: acquiring second indication information, wherein the second indication information is used for indicating that the system version is switched into the first version; controlling the first switch to be in an open state according to the second indication information; and when the first switch is in an open state, switching the system version from the second version to the first version.
And the system version of the terminal equipment is a second version, and when the first switch is in a closed state, second indication information is acquired and used for indicating that the system version is switched into the first version.
When the second version is a user version, the first version may be a production version, and when the second version is a production version, the first version may be a user version, which is not limited in this embodiment of the application.
When the second version is the user version, the first version is the production version, the terminal device acquires second indication information, the second indication information may be factory and used for indicating that the system version is switched to the first version, and the terminal device may control the first switch to be turned on, so that the system version is switched to the first version from the second version.
Optionally, the terminal device may also store the second indication information in a first partition of a preset memory, and when it is detected that the first partition has information, restart is performed, and the core state is entered by restarting. In the kernel state, the terminal device reads the information in the first partition, and may read the second indication information factor. The terminal device may control the first switch to be in an open state. When the first switch is in an open state, the system version of the terminal device is the first version. And the terminal equipment saves the second indication information factor as an environment variable. And the terminal equipment uploads the environment variable factor to the upper-layer interface cmdlene. The worker instructs the version information of the terminal equipment to be factory, namely the current production version, through cat cmdlene after the terminal equipment is started.
According to the version switching method provided by the embodiment of the application, the system version of the terminal equipment is the first version or the second version by controlling the opening and closing of the first switch, the switching between different versions can be realized without burning the versions again, the version burning time can be reduced, the efficiency of an automatic line body is improved, and the productivity of the automatic line body is increased.
In the method, the terminal device may store the first indication information and/or the second indication information in a first partition of a preset memory, and the terminal device may change a system version of the terminal device by reading information in the first partition.
Illustratively, fig. 9 shows a schematic flow diagram of a version switching method 900. As shown in fig. 9, the method 900 may include the steps of:
s901, reading information of a first partition in a preset memory.
The information of the first partition may be the first indication information normal or the second indication information factor, which is not limited in this embodiment of the present application.
S902, judging whether the information in the first partition is first indication information, wherein the first indication information is used for indicating that the system version is switched to the second version.
And judging whether the information in the first partition is the first indication information normal, if so, executing S903, and if not, executing S904.
And S903, when the information in the first partition is the first indication information, switching the system version to the second version.
And when the information in the first partition is the first indication information normal, closing the first switch to switch the system version to the second version.
And S904, when the information in the first partition is not the first indication information, switching the system version to the first version.
When the information in the first partition is not the first indication information normal, it may be second indication information factor for indicating that the system version is switched to the first version.
And when the information in the first partition is the second indication information factor, the first switch is opened, so that the system version is switched into the first version.
According to the version switching method provided by the embodiment of the application, the version of the system version needing to be switched can be determined by reading the information of the first partition in the preset memory, and switching between different versions is achieved.
The sequence numbers of the above processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not be limited in any way to the implementation process of the embodiments of the present application.
The version switching method provided in the embodiment of the present application is described in detail above with reference to fig. 1 to 9, and the terminal device provided in the embodiment of the present application is described in detail below with reference to fig. 10 and 11.
Fig. 10 shows a terminal device 1000 according to an embodiment of the present application, where the terminal device 1000 includes: an acquisition module 1010 and a processing module 1020. The obtaining module 1010 is configured to: acquiring first indication information, wherein the first indication information is used for indicating that the system version is switched to a second version; the processing module 1020 is configured to: controlling the first switch to be in a closed state according to the first indication information; and switching the system version from the first version to the second version when the first switch is in the off state.
Optionally, the first indication information is an identifier of a second version, and the terminal device further includes a receiving module; the receiving module is used for: and receiving first indication information from the production equipment, wherein the production equipment responds to input operation of a worker to obtain the first indication information, and the input operation is used for inputting the identification of the second version.
Optionally, the first indication information is stored in a first partition in a preset memory, where the preset memory is used for storing a single-board bar code, a whole machine bar code, and a physical address.
Optionally, the processing module 1020 is further configured to: when the first indication information is stored in a first partition of a preset memory, entering a kernel state by restarting; in the kernel state, first indication information is read in the first partition.
Optionally, the processing module 1020 is further configured to: and uploading the first indication information as an environment variable to an upper layer interface so as to be convenient for a worker to check.
Optionally, the obtaining module 1010 is further configured to: acquiring second indication information, wherein the second indication information is used for indicating that the system version is switched into the first version; the processing module 1020 is further configured to: controlling the first switch to be in an open state according to the second indication information; and when the first switch is in an open state, switching the system version from the second version to the first version.
Optionally, the first version is a production version, the second version is a user version, and the first version is lower than the second version.
It should be understood that the terminal apparatus 1000 herein is embodied in the form of functional modules. The term module herein may refer to an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality. In an optional example, as can be understood by those skilled in the art, terminal device 1000 may specifically be the terminal device in the foregoing method embodiment, or the functions of the terminal device in the foregoing method embodiment may be integrated in terminal device 1000, and terminal device 1000 may be configured to execute each process and/or step corresponding to the terminal device in the foregoing method embodiment, and in order to avoid repetition, details are not described here again.
The terminal device 1000 has a function of implementing corresponding steps executed by the terminal device in the method embodiment; the above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
In the embodiment of the present application, the terminal device 1000 in fig. 10 may also be a chip or a chip system, for example: system on chip (SoC).
Fig. 11 is a schematic block diagram of another terminal device 1100 provided in an embodiment of the present application. The terminal device 1100 includes a processor 1110, a communication interface 1120, and a memory 1130. The processor 1110, the communication interface 1120 and the memory 1130 are in communication with each other through an internal connection path, the memory 1130 is used for storing instructions, and the processor 1120 is used for executing the instructions stored in the memory 1130 to control the communication interface 1120 to transmit and/or receive signals.
It should be understood that the terminal device 1100 may be embodied as the terminal device in the foregoing method embodiment, or the functions of the terminal device in the foregoing method embodiment may be integrated in the terminal device 1100, and the terminal device 1100 may be configured to execute each step and/or flow corresponding to the terminal device in the foregoing method embodiment. Alternatively, the memory 1130 may include both read-only memory and random access memory, and provides instructions and data to the processor. The portion of memory may also include non-volatile random access memory. For example, the memory may also store device type information. The processor 1110 may be configured to execute the instructions stored in the memory, and when the processor executes the instructions, the processor may perform the steps and/or processes corresponding to the terminal device in the foregoing method embodiments.
It should be understood that, in the embodiment of the present application, the processor 1110 may be a Central Processing Unit (CPU), and the processor may also be other general processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and so on. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor executes instructions in the memory, in combination with hardware thereof, to perform the steps of the above-described method. To avoid repetition, it is not described in detail here.
The application also provides a computer-readable storage medium for storing a computer program, where the computer program is used to implement the method corresponding to the terminal device in the above method embodiments.
The application also provides a chip system, which is used for supporting the terminal equipment in the method embodiment to realize the functions shown in the embodiment of the application.
The present application also provides a computer program product, which includes a computer program (also referred to as code, or instructions), when the computer program runs on a computer, the computer can execute the method corresponding to the terminal device shown in the above method embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components 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.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a receiving end) to execute all or part of the steps of the method according to the embodiments of the present application. 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.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (17)

1. A version switching method is applied to a terminal device with a system version being a first version, the terminal device comprises a first switch, the first switch is used for controlling switching of the system version, and the first switch is in an open state, and the method comprises the following steps:
acquiring first indication information, wherein the first indication information is used for indicating that the system version is switched to a second version;
controlling the first switch to be in a closed state according to the first indication information;
switching the system version from the first version to the second version when the first switch is in an off state.
2. The method of claim 1, wherein the first indication information is an identification of the second version;
the acquiring of the first indication information includes:
receiving the first indication information from a production device, wherein the production device responds to an input operation of a worker to obtain the first indication information, and the input operation is used for inputting the identifier of the second version.
3. The method of claim 1, wherein the first indication information is stored in a first partition of a preset memory, and the preset memory is used for storing a single-board bar code, a complete machine bar code and a physical address.
4. The method of claim 3, wherein prior to obtaining the first indication information, the method further comprises:
when the first indication information is stored in the first partition, entering a kernel state through restarting;
the acquiring the first indication information includes:
and reading the first indication information in the first partition in the state of the kernel state.
5. The method of claim 1, further comprising:
and uploading the first indication information serving as an environment variable to an upper layer interface so as to be convenient for a worker to check.
6. The method of claim 1, further comprising:
acquiring second indication information, wherein the second indication information is used for indicating that the system version is switched to the first version;
controlling the first switch to be in an open state according to the second indication information;
switching the system version from the second version to the first version when the first switch is in an open state.
7. The method of any one of claims 1 to 6, wherein the first version is a production version and the second version is a user version, the first version being lower than the second version.
8. A terminal device, wherein a system version of the terminal device is a first version, the terminal device includes a first switch, the first switch is used for controlling switching of the system version, the first switch is in an open state, and the terminal device includes:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring first indication information which is used for indicating that the system version is switched to a second version;
the processing module is used for controlling the first switch to be in a closed state according to the first indication information; and switching the system version from the first version to the second version when the first switch is in an off state.
9. The terminal device according to claim 8, wherein the first indication information is an identifier of the second version, and the terminal device further comprises a receiving module;
the receiving module is used for:
receiving the first indication information from a production device, wherein the production device responds to an input operation of a worker to obtain the first indication information, and the input operation is used for inputting the identifier of the second version.
10. The terminal device according to claim 8, wherein the first indication information is stored in a first partition in a preset memory, and the preset memory is used for storing a single-board bar code, a complete machine bar code and a physical address.
11. The terminal device of claim 10, wherein the processing module is further configured to:
when the first indication information is stored in the first partition, entering a kernel state through restarting;
and reading the first indication information in the first partition in the state of the kernel state.
12. The terminal device of claim 8, wherein the processing module is further configured to:
and uploading the first indication information serving as an environment variable to an upper layer interface so as to be convenient for a worker to check.
13. The terminal device of claim 8, wherein the obtaining module is further configured to:
acquiring second indication information, wherein the second indication information is used for indicating that the system version is switched to the first version;
the processing module is further configured to:
controlling the first switch to be in an open state according to the second indication information;
switching the system version from the second version to the first version when the first switch is in an open state.
14. The terminal device according to any of claims 8 to 13, wherein the first version is a production version and the second version is a user version, the first version being lower than the second version.
15. A terminal device, comprising: a processor coupled to a memory for storing a computer program that, when invoked by the processor, causes the terminal device to perform the method of any of claims 1 to 7.
16. A chip system, comprising: a processor for calling and running a computer program from a memory so that a device on which the system-on-chip is installed implements the method of any one of claims 1 to 7.
17. A computer-readable storage medium for storing a computer program comprising instructions for implementing the method of any one of claims 1 to 7.
CN202210309023.5A 2022-03-28 2022-03-28 Version switching method and terminal equipment Active CN114416173B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210309023.5A CN114416173B (en) 2022-03-28 2022-03-28 Version switching method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210309023.5A CN114416173B (en) 2022-03-28 2022-03-28 Version switching method and terminal equipment

Publications (2)

Publication Number Publication Date
CN114416173A true CN114416173A (en) 2022-04-29
CN114416173B CN114416173B (en) 2022-10-25

Family

ID=81262846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210309023.5A Active CN114416173B (en) 2022-03-28 2022-03-28 Version switching method and terminal equipment

Country Status (1)

Country Link
CN (1) CN114416173B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020194389A1 (en) * 2001-06-08 2002-12-19 Worley William S. Secure machine platform that interfaces to operating systems and customized control programs
US20080318616A1 (en) * 2007-06-21 2008-12-25 Verizon Business Network Services, Inc. Flexible lifestyle portable communications device
CN101667140A (en) * 2008-09-03 2010-03-10 联想(北京)有限公司 Method, device and system for controlling switching of operating systems
CN102572093A (en) * 2010-12-21 2012-07-11 Lg电子株式会社 Mobile terminal and method of controlling a mode switching therein
CN109766221A (en) * 2019-01-09 2019-05-17 郑州云海信息技术有限公司 A kind of BMC mirror image switch method and apparatus
CN111104149A (en) * 2018-10-25 2020-05-05 华为技术有限公司 Firmware upgrading method and device and terminal
CN113094101A (en) * 2019-12-19 2021-07-09 成都鼎桥通信技术有限公司 Control method and device of dual-domain system, electronic equipment and storage medium
CN113360213A (en) * 2021-06-30 2021-09-07 中国农业银行股份有限公司 Application program version switching method, device, equipment and system
CN113656063A (en) * 2021-07-30 2021-11-16 苏宁智能终端有限公司 System version replacing method, device, equipment and computer readable medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020194389A1 (en) * 2001-06-08 2002-12-19 Worley William S. Secure machine platform that interfaces to operating systems and customized control programs
US20080318616A1 (en) * 2007-06-21 2008-12-25 Verizon Business Network Services, Inc. Flexible lifestyle portable communications device
CN101667140A (en) * 2008-09-03 2010-03-10 联想(北京)有限公司 Method, device and system for controlling switching of operating systems
CN102572093A (en) * 2010-12-21 2012-07-11 Lg电子株式会社 Mobile terminal and method of controlling a mode switching therein
CN111104149A (en) * 2018-10-25 2020-05-05 华为技术有限公司 Firmware upgrading method and device and terminal
CN109766221A (en) * 2019-01-09 2019-05-17 郑州云海信息技术有限公司 A kind of BMC mirror image switch method and apparatus
CN113094101A (en) * 2019-12-19 2021-07-09 成都鼎桥通信技术有限公司 Control method and device of dual-domain system, electronic equipment and storage medium
CN113360213A (en) * 2021-06-30 2021-09-07 中国农业银行股份有限公司 Application program version switching method, device, equipment and system
CN113656063A (en) * 2021-07-30 2021-11-16 苏宁智能终端有限公司 System version replacing method, device, equipment and computer readable medium

Also Published As

Publication number Publication date
CN114416173B (en) 2022-10-25

Similar Documents

Publication Publication Date Title
EP3811191B1 (en) Electronic device for displaying list of executable applications on split screen and operating method thereof
CN110910872A (en) Voice interaction method and device
KR20150025290A (en) An electronic device and operating metod thereof
CN113986092B (en) Message display method and device
CN115904208A (en) Split screen display method and device
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
KR20160042739A (en) Method for sharing a display and electronic device thereof
CN113835569A (en) Terminal device, quick start method for internal function of application and storage medium
CN114371985A (en) Automated testing method, electronic device, and storage medium
CN111966491A (en) Method for counting occupied memory and terminal equipment
CN114020379A (en) Terminal device, information feedback method and storage medium
CN111949350A (en) Interface display method and equipment
CN114398296B (en) Method and terminal equipment for problem location
CN114416173B (en) Version switching method and terminal equipment
CN114371895B (en) Terminal equipment, mail marking method and storage medium
CN113380240B (en) Voice interaction method and electronic equipment
CN114675786A (en) Large-capacity storage mounting method, device, terminal and medium
CN113467821A (en) Application program repairing method, device, equipment and readable storage medium
CN112286596A (en) Message display method and electronic equipment
CN116088955B (en) Process processing method and terminal equipment
EP4354915A1 (en) Method for detecting embedded subscriber identity module (esim) card, and terminal device
CN116088943B (en) Control method of backlight module and terminal equipment
CN116088726B (en) Application icon display method and terminal equipment
CN114979949B (en) Flight state identification method and flight state identification device
CN116095685B (en) Protection method of key information and terminal equipment

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
TR01 Transfer of patent right

Effective date of registration: 20240110

Address after: No. 9, Xingyao Road, Chang'an District, Xi'an, Shaanxi Province 710000

Patentee after: Xi'an Honor Device Co.,Ltd.

Address before: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee before: Honor Device Co.,Ltd.

TR01 Transfer of patent right