CN110825443A - Information interaction method of intelligent sound box and terminal equipment - Google Patents

Information interaction method of intelligent sound box and terminal equipment Download PDF

Info

Publication number
CN110825443A
CN110825443A CN201810917531.5A CN201810917531A CN110825443A CN 110825443 A CN110825443 A CN 110825443A CN 201810917531 A CN201810917531 A CN 201810917531A CN 110825443 A CN110825443 A CN 110825443A
Authority
CN
China
Prior art keywords
operating system
receiving module
type
message
information
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.)
Pending
Application number
CN201810917531.5A
Other languages
Chinese (zh)
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.)
Shenzhen Grandsun Electronics Co Ltd
Original Assignee
Shenzhen Grandsun Electronics 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 Shenzhen Grandsun Electronics Co Ltd filed Critical Shenzhen Grandsun Electronics Co Ltd
Priority to CN201810917531.5A priority Critical patent/CN110825443A/en
Publication of CN110825443A publication Critical patent/CN110825443A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The invention is suitable for the technical field of information interaction, and provides an information interaction method, an information interaction device and terminal equipment of an intelligent sound box, wherein the method comprises the following steps: when receiving a wake-up instruction, waking up the current equipment; and detecting the type of the operating system, and starting a corresponding initialization program according to the type of the operating system. The invention can realize the initialization of different operating systems by detecting the operating systems, so that the method can be operated on different operating systems and has stronger transportability and expandability.

Description

Information interaction method of intelligent sound box and terminal equipment
Technical Field
The invention belongs to the technical field of information interaction, and particularly relates to an information interaction method of an intelligent sound box and terminal equipment.
Background
Along with people's demand, the application of intelligent audio amplifier is more and more extensive, and at present, the operating system of intelligent audio amplifier mainly has two kinds: android or Linux operating systems.
However, the existing smart speaker can only be customized, developed and used based on one of the operating systems, and has low portability and expandability, and cannot meet the requirements of users.
Disclosure of Invention
In view of this, embodiments of the present invention provide an information interaction method and apparatus for a smart speaker, and a terminal device, so as to solve the problems that in the prior art, a smart speaker can only be customized, developed, and used based on one of operating systems, portability and expandability are low, and the requirements of users cannot be met.
The first aspect of the embodiment of the invention provides an information interaction method for an intelligent sound box, which comprises the following steps:
when receiving a wake-up instruction, waking up the current equipment;
detecting the type of an operating system;
and starting a corresponding initialization program according to the type of the operating system.
Optionally, the detecting the type of the operating system includes:
determining whether a first definition is detected;
if the first definition is detected, the type of the operating system is judged to be the first operating system.
Optionally, the starting a corresponding initialization program according to the type of the operating system includes:
if the type of the operating system is a first operating system, starting an initialization program corresponding to the first operating system;
and if the type of the operating system is not the first operating system, starting a preset daemon process, and entering an initialization program corresponding to the non-first operating system.
Optionally, after the corresponding initialization program is started according to the type of the operating system, the method includes:
acquiring data sent by an information receiving module, and analyzing a first field;
if the analysis result is the registration message, controlling the information receiving module to register;
and if the analysis result is the common message, controlling the information receiving module to process the message.
Optionally, controlling the information receiving module to perform message processing includes:
the second field is analyzed again;
judging the state of the information receiving module according to the re-analysis result, and changing the working state of the system according to the state of the information receiving module;
and calling a corresponding processing function to process the message according to the parameters of the information receiving module.
Optionally, the invoking a corresponding processing function according to the parameter of the information receiving module to perform message processing includes:
determining a message source according to the parameters of the information receiving module;
and calling a corresponding message processing function according to the message source to process the message.
Optionally, after calling the corresponding processing function according to the parameter of the information receiving module to perform message processing, the method includes:
and controlling an interaction module to perform information interaction with the operating system according to a preset rule corresponding to the type of the operating system.
A second aspect of the embodiments of the present invention provides an information interaction device for a smart speaker, including:
the wake-up module is used for waking up the current equipment when receiving the wake-up instruction;
the detection module is used for detecting the type of the operating system;
and the initialization module is used for starting a corresponding initialization program according to the detected type of the operating system.
A third aspect of an embodiment of the present invention provides a terminal device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method as described above when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method as described above.
The embodiment of the invention realizes the initialization of different operating systems by detecting the operating systems, so that the method of the invention can be operated on different operating systems and has stronger transportability and expandability.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of an information interaction method for a smart sound box according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an information interaction method for a smart sound box according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of an information interaction method for a smart sound box according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an information interaction device of an intelligent sound box according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an information interaction device of an intelligent sound box according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a second control module according to a sixth embodiment of the present invention;
fig. 7 is a schematic diagram of a terminal device according to a seventh embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this invention and the above-described drawings are intended to cover non-exclusive inclusions. For example, a process, method, or system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
As shown in fig. 1, the present embodiment provides an information interaction method for a smart sound box, which can be applied to terminal devices such as a smart sound box. The information interaction method for the intelligent sound box provided by the embodiment comprises the following steps:
and S101, awakening the current equipment when receiving the awakening instruction.
In specific application, if a wake-up instruction is received, the current terminal device is awakened to enter a working state according to the wake-up instruction. For example, if the received wake-up command is "hi, smart speaker please play the news simulcast of today", the current smart speaker is woken up to enter the working state according to the wake-up command, and a subsequent series of operations are performed, so that the smart speaker plays the news simulcast of the current day to the user.
S102, detecting the type of the operating system.
In a specific application, an operating system is detected, in this embodiment, the type of the current operating system is mainly determined according to whether a preset definition is detected, which may specifically include: and judging whether the current operating system is an ANDROID (ANDROID) operating system or other operating systems according to whether the macro _ ANDROID _ definition is detected, and entering a corresponding initialization program according to a detection result. And if the macro _ ANDROID definition is detected, the current operating system is the ANDROID operating system. In the initialization process, a preset file (such as a master. json file) is read, the file is analyzed, initialization is performed according to the preset content of the file, and a help module and a state machine are initialized. The help module is used for communicating with the main controller and processing specific data and work; for example, a timer is created when a certain event needs to be delayed, and when the timer is finished, the help module sends a json message to the main controller to perform corresponding processing operation. The state machine is used for maintaining and using the current intelligent sound box system state, processing the information of each module and carrying out corresponding operation; and creating a socket (socket) connection and binding a UDP port for data monitoring. According to the actual situation, the set sound box can comprise other detection operating systems, and the type of the current operating system is judged according to the detection result, and corresponding processing operation is carried out. In this case, two programs on the network exchange data via a bidirectional communication link, one end of which is referred to as a socket. The system operating state may include, but is not limited to: the system is in an initialized state (UNDEFINED state), is in an online state (LINE state) when an audio LINE (aux LINE) is inserted, is in a Bluetooth state (BT state) after being connected with Bluetooth, is in a Bluetooth & online state (BT _ LINE state) when the audio LINE and the Bluetooth are in a connected state, is in a networking state (CVS state) after being connected with the Internet, is in a network configuration state (WIFI _ SETUP state) when a network is configured, and is in an IDLE state when the system is in an IDLE state currently.
The following is a program that starts a socket for data snooping
config_init();
log_init();
sm_mul_timer_init();
master_init();
status_machine_init();
queue_init();
if(!get_master_first_start())
restore_config();
udp_main();
The following is a procedure to identify the system operating state:
typedef enum device_state{
DEVICE_STATE_UNDEFINED=-1,
DEVICE_STATE_LINEIN=0,
DEVICE_STATE_BT,
DEVICE_STATE_BT_LINEIN,
DEVICE_STATE_CVS,
DEVICE_STATE_WIFI_SETUP,
DEVICE_STATE_IDLE,
}DEVICE_STATE_T;
and S103, starting a corresponding initialization program according to the type of the operating system.
In a specific application, generally, there are two main types of operating systems of the smart speaker: android or Linux operating systems. If the macro _ ANDROID definition is detected in the detected operating system, the current operating system is detected to be the ANDROID operating system, an initialization process corresponding to the ANDROID operating system is started, a log (log) is printed in the log (log) system of the ANDROID, and a user can check log (log) information through logcat operation. If the macro _ ANDROID definition is not found in the detected operating system, the current operating system is a non-first operating system (in this embodiment, set as a Linux operating system), a daemon process (daemon) is started, an initialization process corresponding to the Linux operating system is performed, and a log is printed in a default console (console) system. Daemon is a continuously running program that processes the periodic service demand that the computer system wishes to receive. The daemon program segment submits requests to other suitable programs (or processes).
In one embodiment, step S102 includes:
determining whether a first definition is detected;
if the first definition is detected, the type of the operating system is judged to be the first operating system.
In specific application, whether the current operating system is an ANDROID operating system or other operating systems is judged according to whether macro _ ANDROID _ definition is detected or not, and a corresponding initialization program is entered according to a detection result. And if the macro _ ANDROID definition is detected, the current operating system is the ANDROID operating system. It should be noted that, if the macro _ ANDROID _ definition is not detected, the type of the current os is a non-first os (in this embodiment, set as a Linux os).
In one embodiment, step S103 includes:
if the type of the operating system is a first operating system, starting an initialization program corresponding to the first operating system;
and if the type of the operating system is not the first operating system, starting a preset daemon process, and entering an initialization program corresponding to the non-first operating system.
In a specific application, if the type of the operating system is a first operating system, an initialization program corresponding to the first operating system is started, in an initialization process, a preset file (for example, a master. json file) is read, the file is analyzed, initialization is performed according to the preset content of the file, a help module and a state machine are initialized, a log (log) is printed in a log (log) system of Android, and a user can check log (log) information through logcat operation. If the operating system is of a non-first operating system (in this embodiment, the operating system is set as a Linux operating system), an initialization program corresponding to the non-first operating system is started, in an initialization process, a preset daemon (daemon) needs to be started, an initialization process corresponding to the Linux operating system is started, a preset file (e.g., a master.
In this embodiment, initialization of different operating systems is implemented by detecting the operating systems, so that the method of the present invention can be operated on different operating systems, and has strong portability and expandability.
Example two
As shown in fig. 2, this embodiment is a further description of the method steps in the first embodiment. In this embodiment, the information interaction method for a smart speaker provided in the first embodiment further includes:
and S104, acquiring the data sent by the information receiving module, and analyzing the first field.
In a specific application, if data sent by an information receiving module is received, a lightweight data interchange format (JSON) database is called to analyze values of a first preset field and a second preset field, such as sub-field names of an action field and a source field, if the value of the action field is analyzed to be registered (register), current information is a registration message, and if the current information is not registered, subsequent registration operation is required; if the current information is registered, updating operation is carried out according to the current information; if the value of the analysis action field is a message (message), the current information is a common message, whether the message is registered or not is detected, and if the message is registered, the message processing needs to be carried out on the common message; and then matching the processing function name with the same name in the message processing function list according to the module name of the name field, and calling the message processing function with the same name to perform data processing. If not, not processing the common message. The specific function of the information receiving module can be executed by modules such as an input module, an audio input module, a sound module, a cloud platform interaction module and the like, and is used for receiving information set by a user or sent by a cloud platform. In specific application, if an updating message is received, an updating module is called to update the system; when network setting information is received, calling a wireless module to carry out network connection and setting operation; when receiving the text information conversion message, the text-to-speech module can be called to perform text conversion operation, and when receiving the light control information, the light module is called to execute light setting and switching operation; and when the volume adjusting information is received, calling the sound module to perform volume adjusting operation. And performing data interaction with the information receiving module, the interaction module or other modules of the information interaction system through the socket by using a udp protocol.
And S105, if the analysis result is the registration message, controlling the information receiving module to register.
In specific application, if the value of the analysis action field is a register, the current information is a register message, and if the register is not carried out, the current information receiving module is controlled to carry out register operation; and if the current information receiving module is registered, controlling the current information receiving module to carry out updating operation.
The following is the registration message procedure:
{
"action":"register",
"source":{
"name":module_name,
"version":module_version,
"commitId":message_commit_id,
"date":message_date
},
"body":{
"ip":module_listen_ip,
"port":module_listen_port
}
}
and S106, if the analysis result is the common message, controlling the information receiving module to process the message.
In specific application, if the value of the analysis action field is a message (message), the current information is a common message, whether the message is registered or not is detected, and if the message is registered, the message processing needs to be carried out on the common message; and then matching the processing function name with the same name in the message processing function list according to the module name of the name field, and calling the message processing function with the same name to perform data processing. If not, not processing the common message. The following is a procedure for interacting messages in the message processing process:
{
"action":"message",
"source":{
"name":module_name,
"version":module_version,
"commitId":message_commit_id,
"date":message_date
},
"body":{
"key1":value1,
"key2":value2,
……,
"keyn":valuen,
}
}
according to the embodiment, the fields of the information sent by the information receiving module are analyzed, and corresponding registration or message processing operation is performed according to different analysis results, so that the received data can be timely and effectively processed, and the information processing efficiency of the intelligent sound box is improved.
EXAMPLE III
As shown in fig. 3, this embodiment is a further description of the method steps in the second embodiment. In this embodiment, step S106 includes:
s1061, parsing the second field again.
In a specific application, if the value of the action field is analyzed as message, and the module name of the name field and the processing function name with the same name are matched in the message processing function list, the corresponding message processing function is executed. The message handling function, such as a key value and a value, may be matched by a first specific value and a second specific value of the body subfield in the name field.
And S1062, judging the state of the information receiving module according to the re-analysis result, and changing the working state of the system according to the state of the information receiving module.
In a specific application, the message processing function updates the state of the current information receiving module according to the acquired data of the body field, and changes the working state of the system.
And S1063, calling a corresponding processing function according to the parameter of the information receiving module to perform message processing.
In specific application, the state machine determines an information source according to the parameters of the information receiving module, determines a corresponding module to be called through the information source, and selects a corresponding message processing function to process the message according to the called module.
In this embodiment, the step S1063 includes:
determining a message source according to the parameters of the information receiving module;
and calling a corresponding message processing function according to the message source to process the message.
In specific application, the state machine determines an information source according to the parameters of the information receiving module, determines a corresponding module to be called through the information source, selects a corresponding message processing function according to the called module to perform message processing, and calls other corresponding processing modules to perform corresponding data processing according to the information source. For example, if the information receiving module sends information that the current terminal device is connected with the bluetooth, the state of the current information receiving module is changed to be a bluetooth state according to the information that the bluetooth is connected, the state of the system is changed to be a bluetooth state, and meanwhile, the bluetooth processing function calls the corresponding bluetooth processing function to perform operations such as bluetooth connection, bluetooth LED lamp starting, bluetooth playing and the like.
The following is a program for selecting a corresponding processing function in a state machine function processing list to perform message processing:
static status_changed_t status_changed_list[]={
{INPUT_NAME,sm_input_status_changed},
{AIRPLAY_NAME,sm_airplay_status_changed},
{AUX_NAME,sm_aux_status_changed},
{WAKEWORD_NAME,sm_wake_word_status_changed},
{OTA_NAME,sm_ota_status_changed},
{VOL_NAME,sm_vol_status_changed},
{LED_NAME,sm_led_status_changed},
{ALEXA_NAME,sm_alexa_status_changed},
{TTS_NAME,sm_tts_status_changed},
{WIFI_NAME,sm_wifi_status_changed},
{BT_NAME,sm_bt_status_changed},
{ALISERVICE_MODULE_NAME,sm_ali_status_changed},
{AUDIO_SERVICE_NAME,sm_audioservice_status_changed},
{HELPER_NAME,sm_helper_status_changed},
{NULL,NULL}
};
in one embodiment, after the step S1063, the method includes:
and controlling an interaction module to perform information interaction with the operating system according to a preset rule corresponding to the type of the operating system.
In specific application, the interaction module is controlled to perform information interaction with the operating system according to a preset specification corresponding to the type of the operating system. For example, if the current operating system is an Android operating system, the control interaction module interacts with the Android operating system according to a preset Android interaction rule, in this embodiment, it may be set to call an Android api to perform an interaction operation, so that information interaction between the current terminal device and different operating systems is facilitated.
In the embodiment, the fields are analyzed again and matched with the names of the message processing functions, so that the matched message processing functions can be quickly found out, data is processed, and the message processing efficiency is improved; and according to the detected type of the operating system, interaction is carried out with the operating system through a preset interaction rule, so that the current terminal equipment can be applied to different types of operating systems.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example four
As shown in fig. 4, the present embodiment provides an information interaction device 100 of a smart sound box, configured to execute the method steps in the first embodiment. The information interaction device 100 of the smart speaker provided in this embodiment includes:
the wake-up module 101 is configured to wake up a current device when receiving a wake-up instruction;
a detection module 102, configured to detect a type of an operating system;
and the initialization module 103 is configured to start a corresponding initialization program according to the detected type of the operating system.
In one embodiment, the detection module 102 includes:
a first judgment unit configured to judge whether the first definition is detected;
and the second judging unit is used for judging the type of the operating system to be the first operating system if the first definition is detected.
In one embodiment, the initialization module 103 includes:
the first initialization unit is used for starting an initialization program corresponding to a first operating system if the type of the operating system is the first operating system;
and the second initialization unit is used for starting the preset daemon process if the type of the operating system is not the first operating system, and entering an initialization program corresponding to the non-first operating system.
In this embodiment, initialization of different operating systems is implemented by detecting the operating systems, so that the method of the present invention can be operated on different operating systems, and has strong portability and expandability.
EXAMPLE five
As shown in fig. 5, in this embodiment, the information interaction device 100 of the smart speaker in the fourth embodiment further includes the following structure for executing the steps of the method in the second embodiment:
the obtaining module 104 is configured to obtain the data sent by the information receiving module, and analyze the first field;
a first control module 105, configured to control the information receiving module to register if the analysis result is a registration message;
and a second control module 106, configured to control the information receiving module to perform message processing if the parsing result is an ordinary message.
According to the embodiment, the fields of the information sent by the information receiving module are analyzed, and corresponding registration or message processing operation is performed according to different analysis results, so that the received data can be timely and effectively processed, and the information processing efficiency of the intelligent sound box is improved.
EXAMPLE six
As shown in fig. 6, in the present embodiment, the second control module 106 in the third embodiment further includes the following structure for executing the steps of the method in the third embodiment:
a re-parsing unit 1061, configured to perform re-parsing on the second field;
a third determining unit 1062, configured to determine the state of the information receiving module according to a re-analysis result, and change a working state of the system according to the state of the information receiving module;
the calling unit 1063 is configured to call a corresponding processing function according to the parameter of the information receiving module to perform message processing.
In one embodiment, the call unit 1063 includes:
the determining subunit is used for determining a message source according to the parameter of the information receiving module;
and the calling subunit is used for calling the corresponding message processing function according to the message source to process the message.
In one embodiment, the apparatus 100 further comprises:
and the third control module is used for controlling the interaction module to perform information interaction with the operating system according to a preset rule corresponding to the type of the operating system.
In the embodiment, the fields are analyzed again and matched with the names of the message processing functions, so that the matched message processing functions can be quickly found, data are processed, and the improvement is realized; the processing efficiency of messages; and according to the detected type of the operating system, interaction is carried out with the operating system through a preset interaction rule, so that the current terminal equipment can be applied to different types of operating systems.
EXAMPLE seven
Fig. 7 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 7, the terminal device 7 of this embodiment includes: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and operable on the processor 70, such as an information interaction program of a smart sound box. When the processor 70 executes the computer program 72, the steps in the above-mentioned information interaction method embodiments of the smart sound boxes, such as steps S101 to S103 shown in fig. 1, are implemented. Alternatively, the processor 70, when executing the computer program 72, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the modules 101 to 103 shown in fig. 4.
Illustratively, the computer program 72 may be partitioned into one or more modules/units that are stored in the memory 71 and executed by the processor 70 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 72 in the terminal device 7. For example, the computer program 72 may be divided into a wake-up module, a detection module and an initialization module, and the specific functions of each module are as follows:
the wake-up module is used for waking up the current equipment when receiving the wake-up instruction;
the detection module is used for detecting the type of the operating system;
and the initialization module is used for starting a corresponding initialization program according to the detected type of the operating system.
The terminal device 7 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of a terminal device 7 and does not constitute a limitation of the terminal device 7 and may comprise more or less components than shown, or some components may be combined, or different components, for example the terminal device may further comprise input output devices, network access devices, buses, etc.
The Processor 70 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7. The memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD), a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used for storing the computer program and other programs and data required by the terminal device. The memory 71 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain 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 invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, 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.
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 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 invention 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 integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (14)

1. An information interaction method of an intelligent sound box is characterized by comprising the following steps:
when receiving a wake-up instruction, waking up the current equipment;
detecting the type of an operating system;
and starting a corresponding initialization program according to the type of the operating system.
2. The method for information interaction of a smart sound box according to claim 1, wherein the detecting the type of the operating system comprises:
determining whether a first definition is detected;
if the first definition is detected, the type of the operating system is judged to be the first operating system.
3. The method for information interaction of a smart sound box according to claim 2, wherein the starting of the corresponding initialization program according to the type of the operating system comprises:
if the type of the operating system is a first operating system, starting an initialization program corresponding to the first operating system;
and if the type of the operating system is not the first operating system, starting a preset daemon process, and entering an initialization program corresponding to the non-first operating system.
4. The method for information interaction of a smart sound box according to claim 3, wherein after the starting of the corresponding initialization program according to the type of the operating system, the method comprises:
acquiring data sent by an information receiving module, and analyzing a first field;
if the analysis result is the registration message, controlling the information receiving module to register;
and if the analysis result is the common message, controlling the information receiving module to process the message.
5. The information interaction method of the smart sound box according to claim 4, wherein controlling the information receiving module to perform message processing comprises:
the second field is analyzed again;
judging the state of the information receiving module according to the re-analysis result, and changing the working state of the system according to the state of the information receiving module;
and calling a corresponding processing function to process the message according to the parameters of the information receiving module.
6. The information interaction method of an intelligent sound box according to claim 5, wherein calling the corresponding processing function to perform message processing according to the parameter of the information receiving module comprises:
determining a message source according to the parameters of the information receiving module;
and calling a corresponding message processing function according to the message source to process the message.
7. The information interaction method of an intelligent sound box according to claim 5, wherein after calling the corresponding processing function according to the parameter of the information receiving module to perform message processing, the method comprises the following steps:
and controlling an interaction module to perform information interaction with the operating system according to a preset rule corresponding to the type of the operating system.
8. The utility model provides an information interaction device of intelligence audio amplifier which characterized in that includes:
the wake-up module is used for waking up the current equipment when receiving the wake-up instruction;
the detection module is used for detecting the type of the operating system;
and the initialization module is used for starting a corresponding initialization program according to the detected type of the operating system.
9. The information interaction device of claim 8, wherein the detection module comprises:
a first judgment unit configured to judge whether the first definition is detected;
and the second judging unit is used for judging the type of the operating system to be the first operating system if the first definition is detected.
10. The apparatus for information interaction of a smart speaker as recited in claim 9, wherein the starting of the corresponding initialization program according to the type of the operating system comprises:
the first initialization unit is used for starting an initialization program corresponding to a first operating system if the type of the operating system is the first operating system;
and the second initialization unit is used for starting the preset daemon process if the type of the operating system is not the first operating system, and entering an initialization program corresponding to the non-first operating system.
11. The apparatus for information interaction of a smart sound box according to claim 8, wherein said apparatus further comprises;
the acquisition module is used for acquiring the data sent by the information receiving module and analyzing the first field;
the first control module is used for controlling the information receiving module to register if the analysis result is a registration message;
and the second control module is used for controlling the information receiving module to process the information if the analysis result is the common information.
12. The information interaction device of a smart sound box according to claim 11, wherein said second control module comprises;
the second field analyzing unit is used for analyzing the second field again;
the third judging unit is used for judging the state of the information receiving module according to the re-analysis result and changing the working state of the system according to the state of the information receiving module;
and the calling unit is used for calling the corresponding processing function to process the message according to the parameter of the information receiving module.
13. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
14. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201810917531.5A 2018-08-13 2018-08-13 Information interaction method of intelligent sound box and terminal equipment Pending CN110825443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810917531.5A CN110825443A (en) 2018-08-13 2018-08-13 Information interaction method of intelligent sound box and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810917531.5A CN110825443A (en) 2018-08-13 2018-08-13 Information interaction method of intelligent sound box and terminal equipment

Publications (1)

Publication Number Publication Date
CN110825443A true CN110825443A (en) 2020-02-21

Family

ID=69546887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810917531.5A Pending CN110825443A (en) 2018-08-13 2018-08-13 Information interaction method of intelligent sound box and terminal equipment

Country Status (1)

Country Link
CN (1) CN110825443A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111415666A (en) * 2020-04-09 2020-07-14 西安电子科技大学 Method, equipment and system capable of extending voice interaction distance of intelligent sound box

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040103331A1 (en) * 2002-11-27 2004-05-27 Barnes Cooper Method for reducing BIOS resume time from a sleeping state
US6772417B1 (en) * 1999-09-10 2004-08-03 Lg Electronics Inc. Method for processing receiving message of monitor terminal in communication operating system
US20060036846A1 (en) * 2004-07-30 2006-02-16 Zhiyuan Zhong Method for auto-executing and booting-host computer through semiconductor storage device
CN1755628A (en) * 2004-09-30 2006-04-05 联想(北京)有限公司 Method of automatically installing software during operation system startup
JP2008217440A (en) * 2007-03-05 2008-09-18 Nec Corp Automatic os type identification device and automatic os start-up device
CN102314379A (en) * 2011-09-08 2012-01-11 福州博远无线网络科技有限公司 Method for making PC (Personal Computer) operating system interact with intelligent mobile equipment operating system
US20130010335A1 (en) * 2011-07-07 2013-01-10 Fuji Xerox Co., Ltd. Power supply control device and method thereof, image processing apparatus, and non-transitory computer readable medium storing power supply control program
CN104243274A (en) * 2013-06-14 2014-12-24 亿览在线网络技术(北京)有限公司 Message processing method and message center system
CN104252363A (en) * 2013-06-25 2014-12-31 上海博泰悦臻电子设备制造有限公司 Rapid starting method for vehicle-mounted system based on Android system
CN106126389A (en) * 2016-06-23 2016-11-16 上海爱数信息技术股份有限公司 Hardware detection method and system
CN107423064A (en) * 2017-07-26 2017-12-01 广东欧珀移动通信有限公司 Message treatment method, device, terminal device and storage medium
CN107919119A (en) * 2017-11-16 2018-04-17 百度在线网络技术(北京)有限公司 Method, apparatus, equipment and the computer-readable medium of more equipment interaction collaborations
CN108082074A (en) * 2017-12-19 2018-05-29 深圳市沃特沃德股份有限公司 The method and device that Android onboard systems ACC wakes up
CN108170482A (en) * 2018-01-17 2018-06-15 联想(北京)有限公司 Information processing method and computer equipment

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6772417B1 (en) * 1999-09-10 2004-08-03 Lg Electronics Inc. Method for processing receiving message of monitor terminal in communication operating system
US20040103331A1 (en) * 2002-11-27 2004-05-27 Barnes Cooper Method for reducing BIOS resume time from a sleeping state
US20060036846A1 (en) * 2004-07-30 2006-02-16 Zhiyuan Zhong Method for auto-executing and booting-host computer through semiconductor storage device
CN1755628A (en) * 2004-09-30 2006-04-05 联想(北京)有限公司 Method of automatically installing software during operation system startup
JP2008217440A (en) * 2007-03-05 2008-09-18 Nec Corp Automatic os type identification device and automatic os start-up device
US20130010335A1 (en) * 2011-07-07 2013-01-10 Fuji Xerox Co., Ltd. Power supply control device and method thereof, image processing apparatus, and non-transitory computer readable medium storing power supply control program
CN102314379A (en) * 2011-09-08 2012-01-11 福州博远无线网络科技有限公司 Method for making PC (Personal Computer) operating system interact with intelligent mobile equipment operating system
CN104243274A (en) * 2013-06-14 2014-12-24 亿览在线网络技术(北京)有限公司 Message processing method and message center system
CN104252363A (en) * 2013-06-25 2014-12-31 上海博泰悦臻电子设备制造有限公司 Rapid starting method for vehicle-mounted system based on Android system
CN106126389A (en) * 2016-06-23 2016-11-16 上海爱数信息技术股份有限公司 Hardware detection method and system
CN107423064A (en) * 2017-07-26 2017-12-01 广东欧珀移动通信有限公司 Message treatment method, device, terminal device and storage medium
CN107919119A (en) * 2017-11-16 2018-04-17 百度在线网络技术(北京)有限公司 Method, apparatus, equipment and the computer-readable medium of more equipment interaction collaborations
CN108082074A (en) * 2017-12-19 2018-05-29 深圳市沃特沃德股份有限公司 The method and device that Android onboard systems ACC wakes up
CN108170482A (en) * 2018-01-17 2018-06-15 联想(北京)有限公司 Information processing method and computer equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111415666A (en) * 2020-04-09 2020-07-14 西安电子科技大学 Method, equipment and system capable of extending voice interaction distance of intelligent sound box
CN111415666B (en) * 2020-04-09 2023-03-24 西安电子科技大学 Method, equipment and system capable of extending voice interaction distance of intelligent sound box

Similar Documents

Publication Publication Date Title
CN110459222A (en) Sound control method, phonetic controller and terminal device
US11150896B2 (en) Automated generation of service definitions for message queue application clients
CN111091813B (en) Voice wakeup model updating and wakeup method, system, device, equipment and medium
CN112445147A (en) Awakening method, system and device of intelligent equipment, electronic equipment and storage medium
EP3516850B1 (en) Systems and methods for sharing application data between isolated applications executing on one or more application platforms
WO2020019723A1 (en) Initialization method for bios mirror image and bios mirror image
CN110765195A (en) Data analysis method and device, storage medium and electronic equipment
CN110111789A (en) Voice interactive method, calculates equipment and computer-readable medium at device
CN113765714A (en) Equipment network distribution method and device, storage medium and electronic equipment
US20190342737A1 (en) Remote bluetooth communication system
CN112131015B (en) Information processing method and device, cloud server and storage medium
CN111965989A (en) System updating method and device, smart home control panel and storage medium
CN110825443A (en) Information interaction method of intelligent sound box and terminal equipment
CN109389977B (en) Voice interaction method and device
CN107295618A (en) Multimode terminal communication means, multimode terminal and computer-readable recording medium
CN113986349A (en) Data processing method, data processing device, computer readable storage medium and computer equipment
CN111147530B (en) System, switching method, intelligent terminal and storage medium of multi-voice platform
CN111475175A (en) Method, device and medium for installing and guiding operation system based on ARM server
CN116755828A (en) Parameter value configuration method, analysis method, electronic device and storage medium
CN113179181B (en) Data acquisition method, device and system, data processing device and electronic equipment
CN107769947B (en) Method, device and equipment for replacing customized skin
CN115167351A (en) Controller function updating method and system, vehicle and server
CN116257427A (en) Heterogeneous test method, heterogeneous test system, heterogeneous test equipment and heterogeneous test storage medium for federal learning task
CN110781014A (en) Recording data multi-process distribution method and system based on Android device
CN111506966B (en) Discriminating method and device of process coordination model, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200221