CN111787446B - Electronic equipment, data processing method and device - Google Patents
Electronic equipment, data processing method and device Download PDFInfo
- Publication number
- CN111787446B CN111787446B CN202010622388.4A CN202010622388A CN111787446B CN 111787446 B CN111787446 B CN 111787446B CN 202010622388 A CN202010622388 A CN 202010622388A CN 111787446 B CN111787446 B CN 111787446B
- Authority
- CN
- China
- Prior art keywords
- state
- interface
- firmware data
- storage device
- processing
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 9
- 238000012545 processing Methods 0.000 claims abstract description 163
- 230000005540 biological transmission Effects 0.000 claims description 6
- 230000003993 interaction Effects 0.000 claims description 5
- 230000006870 function Effects 0.000 description 20
- 238000010586 diagram Methods 0.000 description 12
- 230000008676 import Effects 0.000 description 12
- 238000000034 method Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1091—Details not provided for in groups H04R1/1008 - H04R1/1083
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2460/00—Details of hearing devices, i.e. of ear- or headphones covered by H04R1/10 or H04R5/033 but not provided for in any of their subgroups, or of hearing aids covered by H04R25/00 but not provided for in any of its subgroups
- H04R2460/03—Aspects of the reduction of energy consumption in hearing devices
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Power Sources (AREA)
Abstract
The embodiment of the application discloses an electronic device, a data processing method and a data processing device, wherein the electronic device comprises: an interface; a first storage device for storing firmware data of the first processing device; second storage means for storing firmware data of the second processing means; the switching device at least has a first state and a second state, wherein, in the first state, the firmware data from the interface can be transmitted to the first storage device, and in the second state, the firmware data from the interface can be transmitted to the second storage device, thereby realizing the purpose of importing data to different storage devices in the electronic equipment through one interface, and further improving the convenience of using the electronic equipment by a user.
Description
Technical Field
The present application relates to the field of information processing technologies, and in particular, to an electronic device, a data processing method, and an apparatus.
Background
When a user uses a small electronic device (such as a bluetooth headset), there is a need to import data into a storage device in the electronic device, and importing data into the electronic device through an interface is a common data import method. In some cases, different storage devices may exist in an electronic device, and each storage device requires a separate interface to import data. However, due to the limitation of the volume of the electronic device, the number of interfaces that can be provided to the user is limited, and in some cases, only some interfaces required by the storage device can be provided to the user, and some interfaces required by another storage device cannot be provided to the user, so that the user can only import data into another storage device by other means, which causes inconvenience to the user.
Disclosure of Invention
The application aims to provide an electronic device, a data processing method and a data processing device, and the technical scheme comprises the following steps:
an electronic device, comprising:
an interface;
a first storage device for storing firmware data of a first processing device;
a second storage device for storing firmware data of a second processing device;
a switching device having at least a first state and a second state,
wherein in the first state firmware data from the interface is transferable to the first storage device and in the second state firmware data from the interface is transferable to the second storage device.
In the above electronic apparatus, it is preferable that the first storage device and the second storage device are different storage devices, or the first storage device and the second storage device are different areas of the same storage device.
Preferably, in the electronic device, the firmware data from the interface can be transmitted to the first storage device, and the method includes: firmware data from the interface can be transferred to the first storage device by the first processing device;
the firmware data from the interface is transferable to the second storage device, including: firmware data from the interface can be transferred to the second storage device by the second processing device.
In the above electronic device, preferably, the switching device has a first path and a second path, and a common end of the first path and the second path is connected to the interface;
in the first state, the first path is in a connected state, the second path is in a disconnected state, and the firmware data from the interface can be transmitted to the first storage device through the first path;
in the second state, the second path is in a connected state, the first path is in a disconnected state, and the firmware data from the interface can be transmitted to the second storage device through the second path.
The electronic device preferably further includes:
and the input device is connected with the switching device and is used for controlling the state of the switching device.
In the electronic device, preferably, the input device is a device for controlling the electronic device to switch from a first power consumption state to a second power consumption state, and power consumption of the electronic device in the first power consumption state is different from power consumption of the electronic device in the second power consumption state;
when the electronic equipment is in a first power consumption state, the switching device is in a first state;
and when the electronic equipment is in a second power consumption state, the switching device is in a second state.
In the above electronic device, preferably, the first processing device is a first audio processing device having at least the interface, and the second processing device is a second audio processing device having at least a first type of interface and a second type of interface; the type of the first type interface is the same as that of the interface, and the type of the second type interface is different from that of the interface;
the electronic device further includes: and the audio interaction device is connected with the first audio processing device.
In the electronic device, preferably, the interface and the first type interface are both wired transmission interfaces for transmitting digital signals; the second type interface is a wireless transmission interface for transmitting digital signals.
A data processing method is applied to electronic equipment and comprises the following steps:
if the switching device in the electronic equipment is in a first state, transmitting firmware data from an interface of the electronic equipment to a first storage device through the switching device; the first storage device is used for storing firmware data of the first processing device;
if the switching device is in the second state, the firmware data from the interface of the electronic equipment is transmitted to a second storage device through the switching device; the second storage device is used for storing the firmware data of the second processing device.
A data processing apparatus applied to an electronic device, the apparatus comprising:
the first processing module is used for transmitting the firmware data from the interface of the electronic equipment to the first storage device if the data processing device is in a first state; the first storage device is used for storing firmware data of the first processing device;
the second processing module is used for transmitting the firmware data from the interface of the electronic equipment to a second storage device if the data processing device is in a second state; the second storage device is used for storing the firmware data of the second processing device.
According to the above scheme, the electronic device, the data processing method and the data processing device provided by the application comprise: an interface; a first storage device for storing firmware data of the first processing device; second storage means for storing firmware data of the second processing means; the switching device at least has a first state and a second state, wherein, in the first state, the firmware data from the interface can be transmitted to the first storage device, and in the second state, the firmware data from the interface can be transmitted to the second storage device, thereby realizing the purpose of importing data to different storage devices in the electronic equipment through one interface, and further improving the convenience of using the electronic equipment by a user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required 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 application, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is another schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic overall architecture diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic internal architecture diagram of a bluetooth headset according to an embodiment of the present application;
fig. 7 is an example of a power switch key in a bluetooth headset according to an embodiment of the present disclosure.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than described or illustrated herein.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 inventive step, are within the scope of the present disclosure.
The electronic device provided by the present application may be a small electronic device such as a headset, an in-ear headset, a wrist-worn device such as a wrist-worn watch, etc.
As shown in fig. 1, a schematic structural diagram of an electronic device provided in an embodiment of the present application may include:
an interface 11, a first storage device 12, a second storage device 13, and a switching device 14; wherein,
the interface 11 is partially exposed from the electronic device housing and partially located inside the electronic device. The first storage means 12, the second storage means 13 and the switching means 14 are all located inside the electronic device.
The first storage means 12 is used for storing firmware data of first processing means of the electronic device. The firmware data of the first processing device is a program for causing the first processing device to achieve a specific purpose (for convenience of description, referred to as a first specific purpose). The first specific purpose may include, but is not limited to: the signal of the input/output first processor device is reacted or controlled, and the hardware such as an interface, a key and the like of the electronic equipment is reacted or controlled.
The second storage means 13 is used for storing firmware data of the second processing means of the electronic device. The firmware data of the second processing device is a program for causing the second processing device to achieve a specific purpose (for convenience of description, referred to as a second specific purpose). The second specific purpose may include, but is not limited to: and the signal of the input/output second processing device is reacted or controlled, and the hardware such as an interface, a key and the like of the electronic equipment is reacted or controlled.
The first storage means 12 and the second storage means 13 may be different storage means, i.e. the first storage means 12 and the second storage means 13 are two separate storage means within the electronic device, or the first storage means 12 and the second storage means 13 are different areas of the same storage means.
The switching device 14 has at least a first state and a second state, i.e. the switching device 14 may have only a first state and a second state, or may have three or more states. Wherein in the first state firmware data from the interface 11 can be transferred to the first storage means 12 but not to the second storage means 13; in the second state, the firmware data from the interface 11 can be transferred to the second storage means 13 but not to the first storage means 12.
Whether the state of the switching device 14 is specifically in the first state or the second state may be implemented in a software control manner, or may be implemented in a hardware control manner, and the specific implementation manner may refer to the following embodiments.
The electronic device provided by the embodiment of the application comprises an interface, a first storage device and a second storage device, wherein the first storage device is used for storing firmware data of a first processing device; the switching device at least has a first state and a second state, wherein in the first state, the firmware data from the interface can be transmitted to the first storage device, and in the second state, the firmware data from the interface can be transmitted to the second storage device, so that the purpose of importing data to different storage devices in the electronic equipment through one interface is realized, and the convenience of using the electronic equipment by a user is improved.
As shown in fig. 1, as an alternative embodiment, the firmware data from the interface 11 can be transmitted to the first storage device 12 specifically by: the firmware data from the interface 11 can be transmitted to the first storage device 12 through the first processing device, that is, the firmware data from the interface 11 is first transmitted to the first processing device, and then transmitted to the first storage device 12 by the first processing device.
The firmware data from the interface 11 can be transmitted to the second storage device 13 specifically as follows: the firmware data from the interface 11 can be transmitted to the second storage device 13 through the second processing device, that is, the firmware data from the interface 11 is transmitted to the second processing device first, and then transmitted to the second storage device 13 by the second processing device.
As shown in fig. 2, another schematic structural diagram of an electronic device is provided in the embodiment of the present application, different from the embodiment shown in fig. 1, in the embodiment,
the firmware data from the interface 11 can be transmitted to the first storage device 12 specifically as follows: the firmware data from the interface 11 can be transferred directly to the first memory means 12, i.e. the firmware data from the interface 11 is transferred directly to the first memory means 12 without passing through the first processing means.
The firmware data from the interface 11 can be transmitted to the second storage device 13 specifically: the firmware data from the interface 11 can be transferred directly to the second storage means 13, i.e. the firmware data from the interface 11 is transferred directly to the second storage means 13 without passing through the second processing means.
In an alternative embodiment, the switching device 14 has a first path 141 and a second path 142, and a common end of the first path 141 and the second path 142 is connected to the interface 11. Then the user can use the device to make a visual display,
in the first state, the first path 141 is in a connected state, the second path 142 is in a disconnected state, and the firmware data from the interface 11 can be transmitted to the first storage device 12 through the first path 141.
In the second state, the second path 142 is in a connected state, the first path 141 is in a disconnected state, and the firmware data from the interface 11 can be transferred to the second storage device 13 through the second path 142.
Based on the switching device 14, a schematic structural diagram of an electronic device provided in an embodiment of the present application is shown in fig. 3, in this example,
when the switching device 14 is in the first state, the firmware data from the interface 11 can be transmitted to the first processing device through the first path 141, and then the firmware data is transmitted to the first storage device 12 by the first processing device.
When the switching device 14 is in the second state, the firmware data from the interface 11 can be transmitted to the second processing device through the second path 142, and then the firmware data is transmitted to the second storage device 13 by the second processing device.
Based on the switching device 14, a schematic structural diagram of an electronic device provided in an embodiment of the present application is shown in fig. 4, in this example,
when the switching device 14 is in the first state, the firmware data from the interface 11 can be directly transmitted to the first storage device 12 through the first path 141 without passing through the first processing device.
When the switching device 14 is in the second state, the firmware data from the interface 11 can be directly transmitted to the second storage device 13 through the second path 142 without passing through the second processing device.
Alternatively, the on-off states of the first path 141 and the second path 142 may be controlled by an input device, that is, the electronic apparatus may further include an input device connected to the switching device 14 for controlling the state of the switching device 14. Specifically, the on-off states of the first path 141 and the second path 142 are controlled, so as to control the state of the switching device 14.
Alternatively, the switching device 14 may be a single pole double throw switch. Wherein,
the moving end of the single-pole double-throw switch is connected to the interface 11, one of the stationary ends (for convenience of description, referred to as a first stationary end) is connected to the first processing device, and the other stationary end (for convenience of description, referred to as a second stationary end) is connected to the second processing device, and is used for the electronic apparatus shown in fig. 3. Or,
the moving end of the single-pole double-throw switch is connected with the interface 11, the first fixed end is connected with the first storage device, and the second fixed end is connected with the second storage device, so that the electronic device is used as the electronic device shown in fig. 4.
Wherein the input device may be a device dedicated to controlling the switching device 14. For example, the input device may be a slider that is coupled to the moving end of the single pole double throw switch, and the user may operate the slider to change the position of the slider, which in turn changes the position of the moving end of the single pole double throw switch. When the sliding block slides to the first position, the moving end of the single-pole double-throw switch is connected with the first moving end, so that the first passage 141 is communicated, the second passage 142 is provided with a port, so that the interface 11 is connected with the first processing device or the first storage device 12, and when the sliding block slides to the second position, the moving end of the single-pole double-throw switch is connected with the second moving end, so that the first passage 141 is disconnected, and the second passage 142 is communicated, so that the interface 11 is connected with the second processing device or the second storage device 13.
Since the electronic device needs to reserve the position of the input device when the input device is a device dedicated to controlling the switching device 14, on one hand, the cost of the electronic device is increased, on the other hand, the volume of the electronic device may be increased, and even the arrangement of the layout of the components of the electronic device may be disturbed. In order to avoid the above problems, the present application proposes a preferred solution, the basic idea of which is to multiplex the existing input means of the electronic device to control the switching means 14. On the basis of this, it is possible to provide,
in an alternative embodiment, the input device may be a device for controlling the electronic apparatus to switch from a first power consumption state to a second power consumption state, the power consumption of the electronic apparatus in the first power consumption state being different from the power consumption in the second power consumption state;
when the electronic device is in the first power consumption state, the switching device 14 is in the first state;
when the electronic device is in the second power consumption state, the switching device 14 is in the second state.
For example, the input device may be a power switch key of the electronic device. The user operates the power switch key to change the position of the power switch key, when the power switch key is at the first position, the power of the electronic device is in the on state, and the switching device 14 is in the first state; when the power switch key is in the second position, the power of the electronic device is in the off state, and the switching device 14 is in the second state. In this embodiment, the power switch key is connected to the switching device 14 on the basis of an original circuit of the electronic device for controlling the power switch, that is, the power switch key is connected to the moving end of the single-pole double-throw switch, so that the power switch key is used to control the power supply of the electronic device and the state of the switching device 14.
The input device may be a device for controlling the electronic device to switch from a first power consumption state to a second power consumption state, or may be a function switch key of the electronic device, for example, a user may toggle between two functions or three functions by left and right, for example, when the function switch key is in a first position, the electronic device may implement a first function (for example, returning to a desktop), when the function switch key is in a second position, the electronic device may implement a second function (for example, a radio), and when the function switch key is in a third position, the electronic device may implement a third function (for example, a music player), where the second position is between the first position and the second position. In the embodiment of the present application, the function switching key increases the connection relationship with the switching device on the basis of the original circuit for controlling function switching of the electronic device, that is, the function switching key increases the connection relationship with the moving end of the single-pole double-throw switch, so that the function switching key not only realizes control over function switching of the electronic device, but also realizes control over the state of the switching device 14.
In the above embodiments, the input device is manually operated by the user, and in some embodiments, the input device may be a component that does not require manual operation by the user, such as a microphone. At this time, the electronic device may be a device having an audio processing function, based on which the microphone of the electronic device may be multiplexed to perform state switching of the switching unit 14 by voice. If the switching device 14 itself has an audio processing function, the microphone may be directly connected to the switching device 14 so that the switching device 14 switches its state in accordance with the voice. If the switching device 14 does not have an audio processing function, the microphone may be connected through a control chip of the electronic device, so as to switch the state of the switching device 14 through the control chip.
In the foregoing embodiments, the input device is required for the state control of the switching device 14, and in some embodiments, the state control of the switching device 14 may be implemented without the aid of the input device, that is, the state control of the switching device 14 may be implemented by a pure software control. Alternatively to this, the first and second parts may,
the state of the switching means may be determined according to the operating states of the first processing means and the second processing means, for example, if the first processing means is in the operating state, the switching means 14 is controlled to be in the first state regardless of whether the second processing means is in the operating state, and if only the second processing means is in the operating state, the switching means 14 is controlled to be in the first state. In order to make the user know the current operating states of the first processing device and the second processing device, prompt information may be output to inform the user of the current operating states of the first processing device and the second processing device.
However, whether the first processing device and the second processing device are in the operating state is determined by the function implementation requirement of the electronic device itself, so that when a user needs to import firmware data into the electronic device, the user can only import the firmware data into the electronic device until the corresponding processing device is in the operating state. In order to overcome this problem, before the firmware data is imported into the electronic device, a data import request may be sent to the electronic device, where the import request carries identification information of a processing device to which the firmware data to be imported belongs, and after the electronic device receives the import request, the electronic device adjusts operating states of the first processing device and the second processing device according to the identification information of a target processing device to which the firmware data to be imported belongs, so as to enable the firmware data to be imported into the target processing device. When the operating states of the first processing device and the second processing device are adjusted, if the operating state of the processing device needs to be switched to the non-operating state, the operating state of the processing device may be suspended, and after the firmware data is imported, the operating state of the processing device may be resumed.
In a preferred embodiment, the switching device 14 may determine the state of the switching device 14 according to the identifier of the processing device carried in the firmware data from the interface 11, and control the switching device 14 to be in the first state if the identifier of the processing device carried in the firmware data is the identifier of the first handling device, otherwise control the switching device 14 to be in the second state. In this embodiment, the switching device 14 has a data processing function, and can analyze the identifier of the processing device carried in the firmware data. Based on this, the first passage and the second passage in the above-described switching device 14 may be always in a communicating state.
When the first path and the second path may be always in a connected state, when receiving the firmware data from the interface 11, the switching device 14 first parses the received firmware data to determine the identifier of the processing device carried in the received firmware data, if the identifier of the processing device is the identifier of the first processing device, the switching device only transmits the firmware data through the first path to transmit the firmware data to the first processing device or the first storage device 12, and if the identifier of the processing device is the identifier of the second processing device, the switching device only transmits the firmware data through the second path to transmit the firmware data to the second processing device or the second storage device 13.
In an optional embodiment, the first processing device is a first audio processing device having at least an interface 11, and the second processing device is a second audio processing device having at least a first type of interface and a second type of interface; wherein the type of the first type interface is the same as the type of the interface 11, and the type of the second type interface is different from the type of the interface 11.
Accordingly, the electronic device may further include: and the audio interaction device is connected with the first audio processing device.
The audio interaction device may be an audio output device (e.g., a speaker) and an audio capture device (e.g., a microphone).
Optionally, the interface 11 and the first type interface may both be wired transmission interfaces for transmitting digital signals, such as a universal serial bus interface USB; the second type of interface is a wireless transmission interface for transmitting digital signals, such as a bluetooth interface or other short-range wireless communication interface.
An overall architecture of the electronic device provided in the embodiments of the present application is described below, where the electronic device provided in the embodiments of the present application at least includes:
a first body and a second body; wherein,
the first body is provided with a first audio output device, and the second body is provided with a second audio output device. The first body and the second body can maintain the position relation of the electronic equipment and the head of a user of the electronic equipment, so that the first audio output device and the second audio output device face the ear of the user.
As an alternative embodiment, the electronic device may further include a connecting body to cooperate with the first body and the second body to maintain the positional relationship of the electronic device and the head of the user. As shown in fig. 5, an overall architecture diagram of an electronic device provided in the embodiment of the present application may include:
a first body 51, a second body 52 and a connecting body 53; wherein, the connecting body 53 has two opposite ends, a first end of the connecting body 53 is connected to the first body 51, a second end of the connecting body 53 is connected to the second body 52, and the first audio output device in the first body 51 and the second audio output device in the second body 52 are oppositely oriented.
As an alternative embodiment, the electronic device may not include a connector. For example, the first body is provided with a first fixing structure, and the first fixing structure can fix the first body to the ear part on one side of a user; the above-mentioned second fixed knot that sets up of second body constructs, and this second fixed knot constructs can be fixed the ear to user's opposite side with the second body. For another example, the electronic device may not include a fixing structure, for example, the first body and the second body are both shaped to a predetermined shape, so that the first body can be inserted into an ear of one side of the user, and the second body can be inserted into an ear of the other side of the user.
In an alternative embodiment, the interface 11 may be disposed on the first body, and correspondingly, the input device (such as the aforementioned power switch key) is also disposed on the first body. Alternatively to this, the first and second parts may,
the second processing device and the second storage device may be provided in the first body or in the second body.
In a preferred embodiment, the first processing means and the second storage means are provided in the first body, and the second processing means and the second storage means are provided in the second body. Taking the interface 11 as a USB interface, the first processing device is a first audio processing device with a USB, and the second processing device is a second audio processing device with a USB interface and a bluetooth interface as an example, the USB interface provided for the user is disposed on the first body, and the bluetooth interface is disposed on the second body.
An alternative implementation of the embodiment of the present application is described below by taking a bluetooth headset as an example. Fig. 6 is a schematic diagram of an internal architecture of a bluetooth headset according to an embodiment of the present application. In this example, the bluetooth headset has two voice processing chips, namely a first voice processing chip (USB Audio SOC) having a USB interface and a second voice processing chip (BT Audio SOC) having a USB interface and a bluetooth interface, wherein the first voice processing chip is connected with a flash memory for storing firmware data of the first voice processing chip, and further, a voice signal processing unit, such as a DSP, is disposed in the first voice processing chip and can perform optimized processing of noise reduction, power amplification, and the like on voice signals of the input/output chip, so that the first voice processing chip is further connected with a speaker and a microphone, and if the bluetooth headset has a first body and a second body, since Audio output devices are required in both the first body and the second body, the first voice processing chip can be connected (wired connection or wireless connection) with two speakers, one speaker is provided in the first body and the other speaker is provided in the second body. The second voice processing chip is connected with another flash memory and used for storing firmware data of the second voice processing chip. The voice processing chip and the flash memory can interact through an SPI bus.
The first voice processing chip and the second voice processing chip can interact with each other through an I2C bus, or the first voice processing chip and the second voice processing chip can interact with each other in a wireless mode, and the interaction content includes but is not limited to that the second voice processing chip can call a loudspeaker mounted on the first voice processing chip to output voice, or call a microphone mounted on the first voice processing chip to collect voice.
Before this application, a common solution for those skilled in the art is that the first voice processing chip can import the firmware data (denoted as FW1 for easy distinction) required by the first voice processing chip into the first voice processing chip through the USB interface, while the second voice processing chip can only import the firmware data (denoted as FW2 for easy distinction) required by the second voice processing chip into the second voice processing chip through the bluetooth interface, and compared with the USB interface, the data processing speed of bluetooth is very slow, which brings inconvenience to the user.
In this example, the power switch key of the bluetooth headset is multiplexed to assist the first voice processing chip and the second voice processing chip to import the firmware data through the USB interface. As shown in fig. 7, an example of a power switch key in a bluetooth headset according to an embodiment of the present application is provided, in which the power switch key has two selectable positions, when the power switch key is located in one of the positions (for convenience of description, the position is denoted as position No. 1), a power supply of an electronic device is turned on, and the electronic device is turned on, and only a first voice processing chip can be communicated with an external device of the electronic device through a USB interface; when the power switch key is located at another position (for convenience of description, it is denoted as position 2), the power of the electronic device is turned off, and only the second voice processing chip can be connected with the external device of the electronic device through the USB interface. Although the electronic device is powered off, when the external device is connected to the electronic device through the USB port, the external power is provided to the electronic device, so that the second voice processing chip can also operate, and the firmware data can be imported into the second voice processing chip.
Corresponding to the foregoing electronic device, an embodiment of the present application provides a data processing method, which may specifically include:
if the switching device in the electronic equipment is in a first state, transmitting firmware data from an interface of the electronic equipment to a first storage device through the switching device; the first storage device is used for storing firmware data of the first processing device;
if the switching device is in the second state, the firmware data from the interface of the electronic equipment is transmitted to a second storage device through the switching device; the second storage device is used for storing the firmware data of the second processing device.
The specific implementation manner can refer to the foregoing embodiments, and details are not repeated here.
An embodiment of the present application further provides a data processing apparatus, which may include:
the first processing module is used for transmitting the firmware data from the interface of the electronic equipment to the first storage device if the data processing device is in a first state; the first storage device is used for storing firmware data of the first processing device;
the second processing module is used for transmitting the firmware data from the interface of the electronic equipment to a second storage device if the data processing device is in a second state; the second storage device is used for storing the firmware data of the second processing device.
For a specific implementation manner, reference may be made to the foregoing embodiments, which are not described in detail herein.
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.
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. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units 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 position, or may be distributed on multiple 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.
It should be understood that the technical problems can be solved by combining and combining the features of the embodiments from the claims.
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 network device) 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: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (8)
1. An electronic device, comprising:
an interface;
a first storage device for storing firmware data of a first processing device;
a second storage device for storing firmware data of a second processing device;
a switching device having at least a first state in which firmware data from the interface is transferable to the first storage device and a second state in which firmware data from the interface is transferable to the second storage device;
the input device is connected with the switching device and is used for controlling the state of the switching device and controlling the power supply of the electronic equipment to be switched between an on state and an off state; when the power supply of the electronic equipment is in an on state, the switching device is in a first state; when the power supply of the electronic equipment is in a closed state, the switching device is in a second state; the input device is a power switch.
2. The electronic device of claim 1, wherein the first storage device and the second storage device are different storage devices, or wherein the first storage device and the second storage device are different areas of a same storage device.
3. The electronic device of claim 1, the firmware data from the interface being transferable to the first storage device, comprising: firmware data from the interface can be transferred to the first storage device by the first processing device;
the firmware data from the interface is transferable to the second storage device, including: firmware data from the interface can be transferred to the second storage device by the second processing device.
4. The electronic device of claim 1, the switching device having a first path and a second path, a common end of the first path and the second path being connected to the interface;
in the first state, the first path is in a connected state, the second path is in a disconnected state, and the firmware data from the interface can be transmitted to the first storage device through the first path;
in the second state, the second path is in a connected state, the first path is in a disconnected state, and the firmware data from the interface can be transmitted to the second storage device through the second path.
5. The electronic device of claim 1, the first processing device being a first audio processing device having at least the interface, the second processing device being a second audio processing device having at least a first type of interface and a second type of interface; the type of the first type of interface is the same as the type of the interface of the first audio processing device, and the type of the second type of interface is different from the type of the interface of the first audio processing device;
the electronic device further includes: and the audio interaction device is connected with the first audio processing device.
6. The electronic device of claim 5, the interface of the first audio processing apparatus and the first type interface each being a wired transmission interface for transmitting digital signals; the second type interface is a wireless transmission interface for transmitting digital signals.
7. A data processing method is applied to electronic equipment and comprises the following steps:
if the switching device in the electronic equipment is in a first state, transmitting firmware data from an interface of the electronic equipment to a first storage device through the switching device; the first storage device is used for storing firmware data of the first processing device;
if the switching device is in the second state, the firmware data from the interface of the electronic equipment is transmitted to a second storage device through the switching device; the second storage device is used for storing the firmware data of the second processing device;
the state of the switching device is controlled by an input device connected with the switching device; the input device is used for controlling the power supply of the electronic equipment to be switched between an on state and an off state; when the power supply of the electronic equipment is in an on state, the switching device is in a first state; when the power supply of the electronic equipment is in a closed state, the switching device is in a second state; the input device is a power switch.
8. A data processing apparatus applied to an electronic device, the apparatus comprising:
the first processing module is used for transmitting firmware data from an interface of the electronic equipment to the first storage device if a switching device in the data processing device is in a first state; the first storage device is used for storing firmware data of the first processing device;
the second processing module is used for transmitting the firmware data from the interface of the electronic equipment to the second storage device if the switching device in the data processing device is in a second state; the second storage device is used for storing the firmware data of the second processing device;
the state of the switching device is controlled by an input device connected with the switching device; the input device is used for controlling the power supply of the electronic equipment to be switched between an on state and an off state; when the power supply of the electronic equipment is in an on state, the switching device is in a first state; when the power supply of the electronic equipment is in a closed state, the switching device is in a second state; the input device is a power switch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010622388.4A CN111787446B (en) | 2020-06-30 | 2020-06-30 | Electronic equipment, data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010622388.4A CN111787446B (en) | 2020-06-30 | 2020-06-30 | Electronic equipment, data processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111787446A CN111787446A (en) | 2020-10-16 |
CN111787446B true CN111787446B (en) | 2022-07-26 |
Family
ID=72760485
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010622388.4A Active CN111787446B (en) | 2020-06-30 | 2020-06-30 | Electronic equipment, data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111787446B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112905117A (en) * | 2021-02-08 | 2021-06-04 | 青岛九日软件科技服务有限责任公司 | Data storage method with double-interface memory |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104080027A (en) * | 2013-03-26 | 2014-10-01 | Gn奈康有限公司 | Headset firmware update from headset base unit |
CN204440378U (en) * | 2015-02-10 | 2015-07-01 | 上海天奕达电子科技有限公司 | Communication transfer switching device shifter and electronic system |
CN205408165U (en) * | 2016-03-09 | 2016-07-27 | 深圳市美格智能技术股份有限公司 | Realize AP dual system firmware online upgrade's device |
JP2016157337A (en) * | 2015-02-25 | 2016-09-01 | アイコム株式会社 | Multifunctional microphone and firmware updating method of radio communication device using the same |
CN108874421A (en) * | 2018-06-15 | 2018-11-23 | 歌尔科技有限公司 | A kind of TWS earphone and its upgrade method, device, storage medium |
CN110719542A (en) * | 2019-10-31 | 2020-01-21 | 歌尔科技有限公司 | TWS earphone, upgrading method and device thereof, and computer storage medium |
CN111338671A (en) * | 2020-02-18 | 2020-06-26 | 闻泰通讯股份有限公司 | Hardware upgrading device of mobile terminal, mobile terminal and hardware upgrading method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111198832B (en) * | 2020-01-02 | 2022-09-23 | 联想(北京)有限公司 | Processing method and electronic equipment |
-
2020
- 2020-06-30 CN CN202010622388.4A patent/CN111787446B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104080027A (en) * | 2013-03-26 | 2014-10-01 | Gn奈康有限公司 | Headset firmware update from headset base unit |
CN204440378U (en) * | 2015-02-10 | 2015-07-01 | 上海天奕达电子科技有限公司 | Communication transfer switching device shifter and electronic system |
JP2016157337A (en) * | 2015-02-25 | 2016-09-01 | アイコム株式会社 | Multifunctional microphone and firmware updating method of radio communication device using the same |
CN205408165U (en) * | 2016-03-09 | 2016-07-27 | 深圳市美格智能技术股份有限公司 | Realize AP dual system firmware online upgrade's device |
CN108874421A (en) * | 2018-06-15 | 2018-11-23 | 歌尔科技有限公司 | A kind of TWS earphone and its upgrade method, device, storage medium |
CN110719542A (en) * | 2019-10-31 | 2020-01-21 | 歌尔科技有限公司 | TWS earphone, upgrading method and device thereof, and computer storage medium |
CN111338671A (en) * | 2020-02-18 | 2020-06-26 | 闻泰通讯股份有限公司 | Hardware upgrading device of mobile terminal, mobile terminal and hardware upgrading method |
Also Published As
Publication number | Publication date |
---|---|
CN111787446A (en) | 2020-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112789866B (en) | Audio data transmission method and equipment applied to TWS earphone single-ear and double-ear switching | |
CN104581479B (en) | A kind of detachable wireless headphone system | |
US20050181826A1 (en) | Handheld personal digital assistant for communicating with a mobile in music-playing operation | |
US20050186993A1 (en) | Communication apparatus for playing sound signals | |
EP1635546A1 (en) | Combined and stand-alone hand-held mobile communication system | |
US7660602B2 (en) | Full-duplex radio speaker system and associated method | |
US20070060195A1 (en) | Communication apparatus for playing sound signals | |
US20100190438A1 (en) | Universal mutilmedia bluetooth car handsfree device | |
US20060044120A1 (en) | Car audio system and method combining with MP3 player | |
CN111787446B (en) | Electronic equipment, data processing method and device | |
CN204559840U (en) | A kind of earphone with Data Control plate | |
CN205987282U (en) | Digit headset and headset system | |
KR200397845Y1 (en) | Wireless audio signal transferring apparatus | |
CN107529353B (en) | Hearing aid device based on mobile terminal | |
CN201957216U (en) | Bluetooth earphone with sound recording function | |
CN204046790U (en) | Baffle Box of Bluetooth | |
US8655417B2 (en) | Video/audio playing apparatus with wireless signal transmission function and wireless video/audio transmission module thereof | |
CN106101903B (en) | Digital headset, headset system and control method thereof | |
US20110105197A1 (en) | Universal mutilmedia bluetooth car handsfree device | |
WO2022041681A1 (en) | Wireless earpieces, method for controlling wireless earpieces, and storage medium | |
CN110381418B (en) | Loudspeaking device, relay device and mobile terminal | |
CN101009897A (en) | Apparatus and method for outputting audio data using wireless terminal | |
CN211089936U (en) | Control circuit, charging circuit, earphone and charging wire | |
KR20010059527A (en) | Ear microphone of mobile phone | |
WO2008064514A1 (en) | Information terminal and information communicating method by the same |
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 |