CN112289431A - Home care terminal upgrading method and device, computer equipment and storage medium - Google Patents

Home care terminal upgrading method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112289431A
CN112289431A CN202011065933.0A CN202011065933A CN112289431A CN 112289431 A CN112289431 A CN 112289431A CN 202011065933 A CN202011065933 A CN 202011065933A CN 112289431 A CN112289431 A CN 112289431A
Authority
CN
China
Prior art keywords
resource
upgrading
microphone box
information
upgrade
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011065933.0A
Other languages
Chinese (zh)
Other versions
CN112289431B (en
Inventor
廖光朝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Audio Digital Huiyuan Shanghai Intelligent Technology Co ltd
Original Assignee
Audio Digital Huiyuan Shanghai Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Audio Digital Huiyuan Shanghai Intelligent Technology Co ltd filed Critical Audio Digital Huiyuan Shanghai Intelligent Technology Co ltd
Priority to CN202011065933.0A priority Critical patent/CN112289431B/en
Publication of CN112289431A publication Critical patent/CN112289431A/en
Application granted granted Critical
Publication of CN112289431B publication Critical patent/CN112289431B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/60ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices
    • G16H40/67ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices for remote operation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Biomedical Technology (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Computer Security & Cryptography (AREA)
  • General Health & Medical Sciences (AREA)
  • Epidemiology (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to an upgrading method and device of a home care terminal, computer equipment and a storage medium. The method comprises the following steps: receiving upgrade resource information sent by a home care server; sending a microphone box information acquisition request to a microphone box of the home care terminal; receiving microphone box information returned by the microphone box; judging whether the microphone box meets a resource upgrading condition or not according to the upgrading resource information and the microphone box information; if yes, sending a resource upgrading instruction to the microphone box; the resource upgrading instruction is used for indicating the microphone box to acquire a first resource upgrading packet, and upgrading a first resource to be upgraded of the microphone box according to the first resource upgrading packet. By adopting the method, the home care terminal can be upgraded.

Description

Home care terminal upgrading method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of home care technologies, and in particular, to an upgrade method and apparatus for a home care terminal, a computer device, and a storage medium.
Background
Home care is a care service that is mainly provided for people (service objects) living at home and having a need to solve difficulties in daily life, with the home as a core. The service contents of home care comprise living care, medical service, mental care service and the like, and the main form is that service personnel trained by professionals can carry out the care service for service objects.
In the scheme of supervising home care services, an informatization system which takes GPS positioning as a main supervision means is generally used to confirm whether a caregiver arrives at the service on time and signs out after the service duration is met. Since the supervision capability of the home care service supervision scheme is limited, and the service process cannot be supervised in real time, a home care terminal for acquiring information of the home care service process appears.
However, the home care terminal cannot be automatically upgraded, so that information generated in the home care service process cannot be efficiently collected.
Disclosure of Invention
Therefore, it is necessary to provide an upgrading method and apparatus, a computer device, and a storage medium for a home care terminal, aiming at the technical problem that the home care terminal cannot be automatically upgraded.
An upgrading method of a home care terminal is applied to a service host of the home care terminal, and the method comprises the following steps:
receiving upgrade resource information sent by a home care server;
sending a microphone box information acquisition request to a microphone box of the home care terminal;
receiving microphone box information returned by the microphone box;
judging whether the microphone box meets a resource upgrading condition or not according to the upgrading resource information and the microphone box information;
if yes, sending a resource upgrading instruction to the microphone box; the resource upgrading instruction is used for indicating the microphone box to acquire a first resource upgrading packet, and upgrading a first resource to be upgraded of the microphone box according to the first resource upgrading packet.
In one embodiment, the upgrade resource information includes a first resource upgrade package version number and a first resource upgrade package file size; the microphone box information comprises a first resource version number to be upgraded, a first residual memory space size and a first residual electric quantity of the microphone box;
the judging whether the microphone box meets the resource upgrading condition according to the upgrading resource information and the microphone box information comprises the following steps:
determining whether the version number of the first resource upgrading packet is the same as the version number of the first resource to be upgraded;
if not, determining whether the size of the first residual memory space is larger than the size of the first resource upgrade package file;
if yes, determining whether the first residual electric quantity is larger than a first upgrading electric quantity threshold value;
and if so, determining that the microphone box meets the resource upgrading condition.
In one embodiment, the method further comprises:
acquiring the size of a second memory space of the service host;
judging whether the size of the second memory space is larger than the size of the first resource upgrade package file;
if so, sending a first resource upgrading packet acquisition request to the home care server;
receiving and storing a first resource upgrading packet returned by the home care server;
and after sending a resource upgrading instruction to the microphone box, sending the first resource upgrading packet to the microphone box.
In one embodiment, the method further comprises:
acquiring service host information;
judging whether the service host meets the resource upgrading condition or not according to the upgrading resource information and the service host information;
if so, sending a second resource upgrading packet acquisition request to the home care server;
receiving a second resource upgrading packet returned by the home care server;
and upgrading the second resource to be upgraded of the service host according to the second resource upgrading packet.
In one embodiment, the upgrade resource information includes a second resource upgrade package version number and a second resource upgrade package file size; the service host information comprises a second resource version number to be upgraded, a second residual memory space size and a second residual electric quantity of the service host;
the judging whether the service host meets the resource upgrading condition according to the upgrading resource information and the service host information comprises the following steps:
determining whether the second resource upgrading packet version number is the same as the second resource version number to be upgraded;
if not, determining whether the size of the second residual memory space is larger than the size of the second resource upgrade package file;
if yes, determining whether the second residual electric quantity is larger than a second upgrading electric quantity threshold value;
and if so, determining that the service host meets the resource upgrading condition.
In one embodiment, the method further comprises:
if the size of the second residual memory space is larger than the size of the second resource upgrade package file, calculating the sum of the size of the first resource upgrade package file and the size of the second resource upgrade package file to obtain the size of a total upgrade resource file;
determining whether the size of the second remaining memory space is larger than the size of the total upgrade resource file;
if so, sending a first resource upgrading packet acquisition request to the home care server;
receiving and storing a first resource upgrading packet returned by the home care server;
and after sending a resource upgrading instruction to the microphone box, sending the first resource upgrading packet to the microphone box.
In one embodiment, before determining whether the microphone box meets the resource upgrading condition according to the upgrading resource information and the microphone box information, the method further includes:
if the second resource upgrade package version number in the service host information is greater than the first resource upgrade package version number in the microphone box information, executing a step of judging whether the microphone box meets a resource upgrade condition according to the upgrade resource information and the microphone box information;
if the version number of a second resource upgrade package in the service host information is equal to the version number of a first resource upgrade package in the microphone box information, executing the step of judging whether the service host meets the resource upgrade condition according to the upgrade resource information and the service host information;
if the second resource upgrade package version number in the service host information is smaller than the first resource upgrade package version number in the mike box information, sending a resource downgrading instruction to the mike box; the resource degradation instruction is used for indicating the microphone box to acquire a resource degradation package, and degrading the first resource to be upgraded of the microphone box according to the resource degradation package.
An upgrading method of a home care terminal is applied to a microphone box of the home care terminal, and the method comprises the following steps:
when a microphone box information acquisition request sent by a service host of the home care terminal is received, acquiring microphone box information;
sending the microphone box information to the service host;
when a resource upgrading instruction sent by the service host is received, a first resource upgrading packet is obtained;
and upgrading the first resource to be upgraded of the microphone box according to the first resource upgrading packet.
An upgrade apparatus of a home care terminal, the apparatus comprising:
the information receiving module is used for receiving the upgrading resource information sent by the home care server;
the request sending module is used for sending a microphone box information acquisition request to a microphone box of the home care terminal;
the information receiving module is also used for receiving the microphone box information returned by the microphone box;
the condition judgment module is used for judging whether the microphone box meets the resource upgrading condition or not according to the upgrading resource information and the microphone box information;
the instruction sending module is used for sending a resource upgrading instruction to the microphone box if the microphone box meets a resource upgrading condition; the resource upgrading instruction is used for indicating the microphone box to acquire a first resource upgrading packet, and upgrading a first resource to be upgraded of the microphone box according to the first resource upgrading packet.
In one embodiment, the upgrade resource information includes a first resource upgrade package version number and a first resource upgrade package file size; the microphone box information comprises a first resource version number to be upgraded, a first residual memory space size and a first residual electric quantity of the microphone box;
the condition judgment module is further configured to:
determining whether the version number of the first resource upgrading packet is the same as the version number of the first resource to be upgraded;
if not, determining whether the size of the first residual memory space is larger than the size of the first resource upgrade package file;
if yes, determining whether the first residual electric quantity is larger than a first upgrading electric quantity threshold value;
and if so, determining that the microphone box meets the resource upgrading condition.
In one embodiment, the apparatus further comprises:
the information acquisition module is used for acquiring the size of a second memory space of the service host;
the condition judgment module is further configured to judge whether the size of the second memory space is larger than the size of the first resource upgrade package file;
the request sending module is further configured to send a first resource upgrade package acquisition request to the home care server if the size of the second memory space is larger than the size of the first resource upgrade package file;
receiving and storing a first resource upgrading packet returned by the home care server;
and after sending a resource upgrading instruction to the microphone box, sending the first resource upgrading packet to the microphone box.
In one embodiment, the apparatus further comprises:
the information acquisition module is also used for acquiring the information of the service host;
the condition judging module is also used for judging whether the service host meets the resource upgrading condition according to the upgrading resource information and the service host information;
the request sending module is further configured to send a second resource upgrade package acquisition request to the home care server if the service host meets the resource upgrade condition;
the information receiving module is also used for receiving a second resource upgrading packet returned by the home care server;
and the upgrading module is used for upgrading the second resource to be upgraded of the service host according to the second resource upgrading packet.
In one embodiment, the upgrade resource information includes a second resource upgrade package version number and a second resource upgrade package file size; the service host information comprises a second resource version number to be upgraded, a second residual memory space size and a second residual electric quantity of the service host;
the condition judgment module is further configured to:
determining whether the second resource upgrading packet version number is the same as the second resource version number to be upgraded;
if not, determining whether the size of the second residual memory space is larger than the size of the second resource upgrade package file;
if yes, determining whether the second residual electric quantity is larger than a second upgrading electric quantity threshold value;
and if so, determining that the service host meets the resource upgrading condition.
In one embodiment, the apparatus further comprises:
the file size summing module is used for calculating the sum of the size of the first resource upgrade package file and the size of the second resource upgrade package file to obtain the size of a total upgrade resource file if the size of the second remaining memory space is larger than the size of the second resource upgrade package file;
the condition judgment module is further configured to determine whether the size of the second remaining memory space is larger than the size of the total upgrade resource file;
the request sending module is further configured to send a first resource upgrade package obtaining request to the home care server if the size of the second remaining memory space is larger than the size of the total upgraded resource file;
the information receiving module is also used for receiving and storing a first resource upgrading packet returned by the home care server;
the instruction sending module is further configured to send the first resource upgrade package to the microphone box after sending the resource upgrade instruction to the microphone box.
In an embodiment, the condition determining module is further configured to, if a second resource upgrade package version number in the service host information is greater than a first resource upgrade package version number in the microphone box information, execute a step of determining whether the microphone box meets a resource upgrade condition according to the upgrade resource information and the microphone box information;
the condition judging module is further configured to execute the step of judging whether the service host meets the resource upgrading condition according to the upgraded resource information and the service host information if the second resource upgrading package version number in the service host information is equal to the first resource upgrading package version number in the microphone box information;
the instruction sending module is further configured to send a resource downgrading instruction to the microphone box if a second resource upgrade package version number in the service host information is smaller than a first resource upgrade package version number in the microphone box information; the resource degradation instruction is used for indicating the microphone box to acquire a resource degradation package, and degrading the first resource to be upgraded of the microphone box according to the resource degradation package.
An upgrade apparatus of a home care terminal, the apparatus comprising:
the microphone box information acquisition module is used for acquiring microphone box information when receiving a microphone box information acquisition request sent by a service host of the home care terminal;
the microphone box information sending module is used for sending the microphone box information to the service host;
the resource upgrading packet acquisition module is used for acquiring a first resource upgrading packet when receiving a resource upgrading instruction sent by the service host;
and the microphone box upgrading module is used for upgrading the first resource to be upgraded of the microphone box according to the first resource upgrading package.
A computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the above.
After receiving the upgrade resource information sent by the home care server, the method, the device, the computer equipment and the storage medium for upgrading the home care terminal send a microphone box information acquisition request to a microphone box of the home care terminal, receive microphone box information returned by the microphone box, then judge whether the microphone box meets a resource upgrade condition according to the upgrade resource information and the microphone box information, if so, send a resource upgrade instruction to the microphone box, wherein the resource upgrade instruction is used for instructing the microphone box to acquire a first resource upgrade package, upgrade the first resource to be upgraded of the microphone box according to the first resource upgrade package, thereby realizing the upgrade of the microphone box to repair the leak of the microphone box or increase the function of the microphone box, and can more effectively collect the sound data generated in the service process through the upgraded microphone box, the service process is effectively supervised, and the supervision efficiency of the home care service is improved.
Drawings
FIG. 1 is a diagram of an application environment of a method for upgrading a home care terminal in one embodiment;
FIG. 2 is a flowchart illustrating a method for upgrading a home care terminal according to an embodiment;
FIG. 3 is a flow diagram that illustrates the upgrade steps for a service host, according to one embodiment;
FIG. 4 is a schematic flow chart showing the upgrading steps of the microphone box in another embodiment;
FIG. 5 is a flowchart illustrating an upgrade method of a home care terminal according to another embodiment;
FIG. 6 is a block diagram showing an upgrading apparatus of a home care terminal according to an embodiment;
FIG. 7 is a block diagram showing an upgrading apparatus of a home care terminal in another embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The upgrading method of the home care terminal can be applied to the application environment shown in fig. 1. Wherein the home care terminal 102 communicates with the home care server 104 through a network. The home care terminal 102 includes a service host 102a and a microphone box 102b, when a service person performs a home care service corresponding to a service order, the service person can wear the microphone box 102b on the service person, the service host 102a is placed beside a service object, the microphone box 102b and the service host 102a are both provided with microphone arrays, when the microphone box 102b is opened, the microphone box 102b can access the network through the service host 102a and establish a communication connection with the service host 102a, the microphone box 102b and the service host 102a can collect sound data generated during the home care service execution process through the microphone arrays, the microphone box 102b can transmit the collected sound data to the service host 102a through the communication connection established with the service host 102a after collecting the sound data, so that the service host 102a can identify the collected sound data, thereby realizing the supervision of the home care service. Taking the example that the upgrading method of the home care terminal is applied to the service host 102a of the home care terminal, the service host 102a receives upgrading resource information sent by the home care server; sending a microphone box information acquisition request to a microphone box of a home care terminal; receiving microphone box information returned by a microphone box; judging whether the microphone box meets the resource upgrading condition or not according to the upgrading resource information and the microphone box information; if yes, sending a resource upgrading instruction to the microphone box; the resource upgrading instruction is used for indicating the microphone box to acquire a first resource upgrading packet, and upgrading a first resource to be upgraded of the microphone box according to the first resource upgrading packet. The service host 102a of the home care terminal 102 may be, but is not limited to, various portable devices, and the home care server 104 may be implemented by a separate server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, an upgrading method for a home care terminal is provided, which is described by taking the method as an example of being applied to a service host of the home care terminal in fig. 1, and includes the following steps:
and S202, receiving upgrade resource information sent by the home care server.
The upgrade resource information is information of upgrade resources, the upgrade resources may be upgrade packages, the upgrade resource information may be sizes of the upgrade packages and version information of the upgrade packages, and the version information may specifically be version numbers. The upgrade resource information comprises upgrade resource information corresponding to the microphone box and upgrade resource information corresponding to the service host, the upgrade resource information corresponding to the microphone box comprises a first resource upgrade package version number and a first resource upgrade package file size, and the upgrade resource information corresponding to the service host comprises a second resource upgrade package version number and a second resource upgrade package file size.
In one embodiment, the home care terminal sends an upgrade resource information acquisition request to the home care server through the service host, the home care server queries corresponding upgrade resource information according to the upgrade resource information acquisition request after receiving the upgrade resource information acquisition request sent by the home care terminal, and returns the queried upgrade resource information to the home care terminal, and the service host of the home care terminal receives the upgrade resource information returned by the home care server.
In one embodiment, when detecting that the upgrade resource is updated, the home care server obtains updated upgrade resource information and actively sends the upgrade resource information to the service host of the home care terminal, and the service host of the home care terminal receives the upgrade resource information sent by the home care server.
In one embodiment, when the home care server detects that the home care terminal is turned on, the home care server obtains the upgrade resource information, and after the service host of the home care establishes a communication connection with the home care server, the upgrade resource information is sent to the home care terminal through the communication connection, and the service host of the home care terminal receives the upgrade resource information.
And S204, sending a microphone box information acquisition request to a microphone box of the home care terminal.
And S206, receiving the microphone box information returned by the microphone box.
The microphone box information acquisition request is used for requesting information of a microphone box, and the information is used for judging whether the microphone box can be upgraded or not.
In one embodiment, after receiving upgrade resource information sent by a home care server, a service host judges whether the service host establishes a communication connection with a microphone box, if so, a microphone box information acquisition request is sent to the microphone box through the established communication connection, after receiving the request, the microphone box acquires information of the service host, namely the microphone box information, according to the request, and returns the microphone box information to the service host through the established communication connection, and the service host receives the microphone box information returned by the microphone box. The microphone box information comprises a first resource version number to be upgraded of the microphone box, a first residual memory space of the microphone box and a first residual electric quantity of the microphone box.
And S208, judging whether the microphone box meets the resource upgrading condition according to the upgrading resource information and the microphone box information.
The resource upgrading condition is used for judging whether the service host or the microphone box can be upgraded or not.
In one embodiment, after receiving the information of the microphone box returned by the microphone box, the service host of the home care terminal determines whether the microphone box meets the resource upgrading condition according to the upgrading resource information corresponding to the microphone box and the information of the microphone box.
In one embodiment, the upgrade resource information corresponding to the mike box includes a first resource upgrade package version number and a first resource upgrade package file size, the first resource upgrade package version number is the version number of the first resource upgrade package, and the first resource upgrade package is the resource upgrade package corresponding to the mike box; the microphone box information comprises a first resource version number to be upgraded of the microphone box, the size of a first residual memory space and first residual electric quantity, the first resource version number to be upgraded is the version number of a resource to be upgraded of the microphone box, and the first resource to be upgraded corresponds to the first resource upgrade package. After receiving the information of the microphone box returned by the microphone box, the service host of the home care terminal judges whether the microphone box meets the resource upgrading condition or not according to the first resource upgrading packet version number and the first resource upgrading packet file size in the upgrading resource information, and the first resource version number to be upgraded, the first residual memory space size and the first residual electric quantity of the microphone box.
And S210, if yes, sending a resource upgrading instruction to the microphone box.
The resource upgrading instruction is used for indicating the microphone box to acquire a first resource upgrading packet, and upgrading a first resource to be upgraded of the microphone box according to the first resource upgrading packet.
In an embodiment, if the service host determines that the mike box meets the resource upgrading condition according to the upgrading resource information and the mike box information, a resource upgrading instruction is generated and sent to the mike box, the mike box can send a first resource upgrading packet acquisition request to the home care server after receiving the resource upgrading instruction, the home care server returns the first resource upgrading packet to the mike box after receiving the first resource upgrading packet acquisition request, and the mike box upgrades the first resource to be upgraded of the mike box according to the first resource upgrading packet after receiving the first resource upgrading packet.
In one embodiment, after determining that the microphone box meets the resource upgrading condition, the service host generates microphone box upgrading prompt information, displays the microphone box upgrading prompt information through a display page of the service host, and a user can select to confirm upgrading of the microphone box or cancel upgrading of the microphone box on the display page.
In the above embodiment, after receiving the upgrade resource information sent by the home care server, the service host sends a microphone box information acquisition request to the microphone box of the home care terminal, receives the microphone box information returned by the microphone box, and then judges whether the microphone box meets the resource upgrade condition according to the upgrade resource information and the microphone box information, if so, sends a resource upgrade instruction to the microphone box, where the resource upgrade instruction is used to instruct the microphone box to acquire the first resource upgrade package, and upgrades the first resource to be upgraded of the microphone box according to the first resource upgrade package, thereby implementing upgrade of the microphone box to repair a leak of the microphone box or add a function of the microphone box, and the microphone box after upgrade can more effectively acquire sound data generated in the service process, thereby implementing more effective supervision on the service process, and then the supervision efficiency of the home care service is improved.
In one embodiment, the method for judging whether the microphone box meets the resource upgrading condition according to the upgrading resource information and the microphone box information specifically includes the following steps: and determining whether the version number of the first resource upgrade package is the same as the version number of the first resource to be upgraded, if not, further determining whether the size of the first residual memory space is larger than the size of the first resource upgrade package file, if so, further determining whether the first residual electric quantity is larger than a first upgrade electric quantity threshold, and if so, determining that the mike box meets the resource upgrade condition. That is, when the first resource upgrade package version number is different from the first resource version number to be upgraded (i.e. there is a higher version of upgrade resource), and the first remaining memory space size is larger than the first resource upgrade package file size (the remaining memory space of the microphone box is sufficiently large), and the first remaining power is larger than the first upgrade power threshold (the remaining power of the microphone box is sufficiently large), it is determined that the microphone box satisfies the resource upgrade condition.
In the above embodiment, the service host compares the version number of the first resource upgrade package and the file size of the first resource upgrade package of the upgrade resource information with the version number of the first resource to be upgraded and the size of the first remaining memory space of the microphone box, so that when the first resource upgrade package is an upgrade resource of a higher version than the resource to be upgraded of the microphone box, the remaining memory space of the microphone box is large enough, and the remaining power of the microphone box is enough for upgrade, it is quickly determined that the microphone box can be upgraded, and thus the upgrade of the microphone box can be implemented to repair a leak of the microphone box or increase the function of the microphone box.
In an embodiment, the service host may further obtain a second memory space size of the service host, and determine whether the second memory space size is larger than a file size of the first resource upgrade packet, if so, send a first resource upgrade packet obtaining request to the home care server, then receive and store the first resource upgrade packet returned by the home care server, and send the first resource upgrade packet to the microphone box after sending the resource upgrade instruction to the microphone box, so that the microphone box upgrades the first resource to be upgraded of the microphone box by using the first resource upgrade packet according to the resource upgrade instruction after receiving the resource upgrade instruction and the first resource upgrade packet.
In the above embodiment, when the size of the second memory space of the service host is larger than the size of the first resource upgrade package file, the service host requests and stores the first resource upgrade package, and sends the resource upgrade instruction to the microphone box, and then sends the first resource upgrade package to the microphone box, so that the microphone box does not need to actively acquire the first resource upgrade package after receiving the resource upgrade instruction and the first resource upgrade package, and the first resource upgrade package sent by the service host can be quickly used to upgrade the first resource to be upgraded of the microphone box, thereby improving the efficiency of upgrading the microphone box.
In one embodiment, the service host can also judge whether the service host meets the resource upgrading condition according to the upgrading resource information, and upgrade the service host under the condition that the service host meets the resource upgrading condition. As shown in fig. 3, the method specifically includes the following steps:
s302, service host information is obtained.
The service host information is used for judging whether the service host can be upgraded or not.
In one embodiment, after receiving the upgrade resource information sent by the home care server, the service host of the home care terminal directly obtains the service host information, so as to determine whether the service host can be upgraded according to the service host information. The service host information comprises a second resource version number to be upgraded, a second residual memory space size and a second residual electric quantity of the service host.
S304, judging whether the service host meets the resource upgrading condition according to the upgrading resource information and the service host information.
The resource upgrading condition is used for judging whether the service host or the microphone box can be upgraded or not.
In one embodiment, after the service host of the home care terminal acquires the service host information, whether the service host meets the resource upgrading condition is judged according to the upgrading resource information and the service host information corresponding to the service host.
In one embodiment, the upgrade resource information corresponding to the service host includes a second resource upgrade package version number and a second resource upgrade package file size, the second resource upgrade package version number is the version number of the second resource upgrade package, and the second resource upgrade package is the resource upgrade package corresponding to the service host; the service host information comprises a second resource version number to be upgraded of the service host, the size of a second residual memory space and second residual electric quantity, the second resource version number to be upgraded is the version number of the resource to be upgraded of the service host, and the second resource to be upgraded corresponds to the second resource upgrade package. After the service host acquires the information of the service host, whether the service host meets the resource upgrading condition is judged according to the version number of a second resource upgrading package in the upgrading resources, the size of a second resource upgrading package file, the version number of a second resource to be upgraded of the service host, the size of a second residual memory space and the second residual electric quantity.
And S306, if so, sending a second resource upgrading packet acquisition request to the home care server.
And S308, receiving a second resource upgrading packet returned by the home care server.
And the second resource upgrading package is an upgrading package used for upgrading a second resource to be upgraded of the service host.
In one embodiment, if the service host judges that the service host meets the resource upgrading condition according to the upgrading resource information and the service host information, a second resource upgrading packet acquisition request is generated and sent to the home care server, the home care server sends the second resource upgrading packet to the service host of the home care terminal after receiving the second resource upgrading packet acquisition request, and the service host of the home care terminal receives the second resource upgrading packet.
And S310, upgrading the second resource to be upgraded of the service host according to the second resource upgrading packet.
In one embodiment, after receiving the second resource upgrade package, the service host of the home care terminal generates upgrade prompt information of the service host, and displays the upgrade prompt information of the service host through a display page of the service host, a user can select to confirm the upgrade service host or cancel the upgrade service host on the display page, and when the service host monitors a trigger operation of confirming the upgrade service host, the second resource to be upgraded of the service host is upgraded according to the second resource upgrade package.
In the above embodiment, the home care terminal determines whether the service host meets the resource upgrading condition according to the upgrading resource information and the service host information by acquiring the service host information, if so, sends a second resource upgrading packet acquisition request to the home care server, receives a second resource upgrading packet returned by the home care server, and upgrades the second resource to be upgraded of the service host according to the second resource upgrading packet, thereby implementing upgrading of the service host to repair a leak of the service host or increase a function of the service host.
In one embodiment, the method for judging whether the service host meets the resource upgrading condition according to the upgrading resource information and the service host information specifically includes the following steps: and determining whether the version number of the second resource upgrade package is the same as the version number of the second resource to be upgraded, if not, further determining whether the size of the second residual memory space is larger than the size of the second resource upgrade package file, if so, further determining whether the second residual electric quantity is larger than a second upgrade electric quantity threshold, and if so, determining that the service host meets the resource upgrade condition. That is, when the version number of the second resource upgrade package is different from the version number of the second resource to be upgraded (i.e., there is an upgrade resource with a higher version), and the size of the second remaining memory space is larger than the size of the second resource upgrade package file (i.e., the remaining memory space of the service host is sufficiently large), and the second remaining power is larger than the second upgrade power threshold (i.e., the remaining power of the service host is sufficiently large), it is determined that the service host satisfies the resource upgrade condition.
In the above embodiment, the service host compares the version number of the second resource upgrade package and the file size of the second resource upgrade package of the upgrade resource information with the version number of the second resource to be upgraded and the size of the second remaining memory space of the service host, so that when the second resource upgrade package is an upgrade resource of a higher version relative to the resource to be upgraded of the service host, the remaining memory space of the service host is sufficiently large, and the remaining power of the service host is sufficient for upgrading the resource, it is quickly determined that the service host can perform resource upgrade, and thus, the upgrade of the service host can be implemented to repair a bug of the service host or increase functions of the service host.
In an embodiment, after the service host of the home care terminal determines that the size of the second remaining memory space is larger than the size of the second resource upgrade package file, the sum of the size of the first resource upgrade package file and the size of the second resource upgrade package file may be further calculated to obtain the size of a total upgrade resource file, and then it is further determined whether the size of the second remaining memory space is larger than the size of the total upgrade resource file, if so, a first resource upgrade package acquisition request is sent to the home care server, the home care server returns the first resource upgrade package to the service host according to the first resource upgrade package acquisition request, the service host receives and stores the first resource upgrade package returned by the home care server, and after sending a resource upgrade instruction to the mike box, the first resource upgrade package is sent to the mike box.
In the above embodiment, when the size of the second memory space of the service host is larger than the sum of the size of the first resource upgrade package file and the size of the first resource upgrade package file, the service host may request and store the first resource upgrade package in addition to requesting the second resource upgrade package from the home care server, and after sending the resource upgrade instruction to the microphone box, send the first resource upgrade package to the microphone box, so that the microphone box does not need to actively acquire the first resource upgrade package after receiving the resource upgrade instruction and the first resource upgrade package, and the first resource upgrade package sent by the service host can be quickly used to upgrade the first resource to be upgraded of the microphone box, thereby improving the efficiency of upgrading the microphone box.
In one embodiment, before the service host judges whether the microphone box meets the resource upgrading condition according to the upgrading resource information and the microphone box information, the service host may further compare a second resource upgrading packet version number in the acquired service host information with a first resource upgrading packet version number in the acquired microphone box information, wherein if the second resource upgrading packet version number is greater than the first resource upgrading packet version number, the service host executes a step of judging whether the microphone box meets the resource upgrading condition according to the upgrading resource information and the microphone box information; and if the version number of the second resource upgrading packet is equal to the version number of the first resource upgrading packet, executing a step of judging whether the service host meets the resource upgrading condition according to the upgrading resource information and the service host information, and comparing the version number of the second resource upgrading packet in the acquired service host information with the version number of the first resource upgrading packet in the acquired microphone box information again after upgrading the second resource to be upgraded of the service host according to the second resource upgrading packet.
In one embodiment, if the second resource upgrade package version number is smaller than the first resource upgrade package version number, a resource downgrading instruction is sent to the mike box, where the resource downgrading instruction carries the second resource upgrade package version number of the service host, after the mike box receives the resource downgrading instruction, a downgrade resource acquisition request carrying the resource downgrade package version number is generated according to the second resource upgrade package version number in the resource downgrading instruction, and the downgrade resource acquisition request is sent to the home care server, which acquires a corresponding resource downgrade package according to the resource downgrade package version number and sends the resource downgrade package to the mike box, and the mike box downgrades the first resource to be upgraded of the mike box according to the received resource downgrade package. The version number of the resource downgrade package is matched with the version number of the second resource upgrade package, and the matching can be that the version number of the resource downgrade package is less than or equal to the version number of the second resource upgrade package.
In the above embodiment, the service host compares the version number of the second resource upgrade package in the acquired service host information with the version number of the first resource upgrade package in the acquired information of the microphone box to upgrade or degrade the microphone box, so that the versions of the microphone box and the service host are consistent, the service host and the microphone box are ensured to be in a stable working state during working, the microphone box can more effectively collect sound data generated in a service process, the service process is more effectively supervised, and the supervision efficiency of home care service is improved.
In an embodiment, as shown in fig. 4, there is further provided an upgrading method of a home care terminal, which is described by taking the example that the method is applied to the microphone box of the home care terminal in fig. 1, and includes the following steps:
s402, when a microphone box information acquisition request sent by a service host of the home care terminal is received, acquiring microphone box information.
S404, the microphone box information is sent to the service host.
In one embodiment, after the microphone box of the home care terminal accesses the network through the service host and establishes communication connection with the service host, when the microphone box receives a microphone box information acquisition request sent by the service host, the microphone box information is acquired in real time according to the request, and the acquired microphone box information is sent to the service host. The microphone box information comprises a first resource version number to be upgraded of the microphone box, a first residual memory space size of the microphone box and a first residual electric quantity of the microphone box.
S406, when a resource upgrading instruction sent by the service host is received, a first resource upgrading packet is obtained.
In one embodiment, after the microphone box sends the microphone box information to the service host, the service host judges whether the microphone box meets the resource upgrading condition according to the received microphone box information, if yes, the service host sends a resource upgrading instruction to the microphone box, and when the microphone box receives the resource upgrading instruction, the microphone box obtains a first resource upgrading packet according to the resource upgrading instruction.
In one embodiment, after receiving a resource upgrade instruction, a microphone box generates a first resource upgrade package acquisition request, and sends the first resource acquisition request to a service host, the service host returns a stored first resource upgrade package to the microphone box according to the first resource acquisition request, and the microphone box receives the first resource upgrade package returned by the service host.
In one embodiment, after receiving a resource upgrade instruction, a microphone box generates a first resource upgrade package acquisition request and sends the first resource acquisition request to a service host, if the service host does not store the first resource upgrade package, the service host returns an acquisition failure response message to the microphone box, after receiving the acquisition failure response message, the microphone box sends the first resource upgrade package acquisition request to a home care server again, the home care server returns a first resource upgrade package to the microphone box according to the first resource upgrade package acquisition request, and the microphone box receives the first resource upgrade package returned by the home care server.
S408, upgrading the first resource to be upgraded of the microphone box according to the first resource upgrading packet.
In one embodiment, after the microphone box acquires the first resource upgrade package, the first resource to be upgraded of the microphone box is directly upgraded according to the first resource upgrade package.
In one embodiment, the service host directly sends the first resource upgrade package to the mike box after sending the resource upgrade instruction to the mike box, and the mike box upgrades the first resource to be upgraded of the mike box by using the first resource upgrade package according to the resource upgrade instruction after receiving the resource upgrade instruction and the first resource upgrade package.
In the above embodiment, when the microphone box receives a microphone box information acquisition request sent by a service host of a home care terminal, the microphone box information is acquired, the microphone box information is sent to the service host, when a resource upgrading instruction sent by the service host is received, a first resource upgrading packet is acquired, and a first resource to be upgraded of the microphone box is upgraded according to the first resource upgrading packet, so that the microphone box is upgraded to repair a bug of the microphone box or increase functions of the microphone box, sound data generated in the service process can be collected more effectively through the upgraded microphone box, the service process is supervised more effectively, and the supervision efficiency of the home care service is improved.
In an embodiment, as shown in fig. 5, there is further provided an upgrading method of a home care terminal, which is described by taking the method as an example for being applied to the home care terminal in fig. 1, and includes the following steps:
s502, the service host receives upgrade resource information sent by the home care server; acquiring service host information; and sending a microphone box information acquisition request to a microphone box of the home care terminal.
S504, the microphone box receives the microphone box information acquisition request, acquires the microphone box information and sends the microphone box information to the service host.
S506, the service host receives the microphone box information returned by the microphone box; judging whether the microphone box meets the resource upgrading condition or not according to the upgrading resource information and the microphone box information; and if so, sending a resource upgrading instruction to the microphone box.
S508, when the microphone box receives a resource upgrading instruction sent by the service host, a first resource upgrading packet is obtained; and upgrading the first resource to be upgraded of the microphone box according to the first resource upgrading packet.
S510, the service host judges whether the service host meets the resource upgrading condition according to the upgrading resource information and the service host information; if so, sending a second resource upgrading packet acquisition request to the home care server; receiving a second resource upgrading packet returned by the home care server; and upgrading the second resource to be upgraded of the service host according to the second resource upgrading packet.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, there is provided an upgrade apparatus of a home care terminal, including: an information receiving module 602, a request sending module 604, a condition judging module 606 and an instruction sending module 608, wherein:
the information receiving module 602 is configured to receive upgrade resource information sent by a home care server;
a request sending module 604, configured to send a microphone box information obtaining request to a microphone box of the home care terminal;
the information receiving module 602 is further configured to receive microphone box information returned by the microphone box;
a condition judgment module 606, configured to judge whether the microphone box meets the resource upgrading condition according to the upgrading resource information and the microphone box information;
an instruction sending module 608, configured to send a resource upgrade instruction to the mike box if the mike box meets the resource upgrade condition; the resource upgrading instruction is used for indicating the microphone box to acquire a first resource upgrading packet, and upgrading a first resource to be upgraded of the microphone box according to the first resource upgrading packet.
In the above embodiment, after receiving the upgrade resource information sent by the home care server, the service host sends a microphone box information acquisition request to the microphone box of the home care terminal, receives the microphone box information returned by the microphone box, and then judges whether the microphone box meets the resource upgrade condition according to the upgrade resource information and the microphone box information, if so, sends a resource upgrade instruction to the microphone box, where the resource upgrade instruction is used to instruct the microphone box to acquire the first resource upgrade package, and upgrades the first resource to be upgraded of the microphone box according to the first resource upgrade package, thereby implementing upgrade of the microphone box to repair a leak of the microphone box or add a function of the microphone box, and the microphone box after upgrade can more effectively acquire sound data generated in the service process, thereby implementing more effective supervision on the service process, and then the supervision efficiency of the home care service is improved.
In one embodiment, the upgrade resource information includes a first resource upgrade package version number and a first resource upgrade package file size; the microphone box information comprises a first resource version number to be upgraded, a first residual memory space size and a first residual electric quantity of the microphone box;
the condition determining module 606 is further configured to:
determining whether the version number of the first resource upgrading packet is the same as the version number of the first resource to be upgraded;
if not, determining whether the size of the first residual memory space is larger than the size of the first resource upgrade package file;
if so, determining whether the first residual electric quantity is larger than a first upgrading electric quantity threshold value;
and if so, determining that the microphone box meets the resource upgrading condition.
In the above embodiment, the service host compares the version number of the first resource upgrade package and the file size of the first resource upgrade package of the upgrade resource information with the version number of the first resource to be upgraded and the size of the first remaining memory space of the microphone box, so that when the first resource upgrade package is an upgrade resource of a higher version relative to the resource to be upgraded of the microphone box, the remaining memory space of the microphone box is sufficiently large, and the remaining power of the microphone box is sufficient for upgrading the resource, it is quickly determined that the microphone box can be upgraded, and thus the upgrade of the microphone box can be implemented to repair a leak of the microphone box or increase the function of the microphone box.
In one embodiment, the apparatus further comprises:
the information acquisition module is used for acquiring the size of a second memory space of the service host;
the condition determining module 606 is further configured to determine whether the size of the second memory space is larger than the size of the first resource upgrade package file;
the request sending module 604 is further configured to send a first resource upgrade package acquisition request to the home care server if the size of the second memory space is larger than the size of the first resource upgrade package file;
receiving and storing a first resource upgrading packet returned by a home care server;
after sending the resource upgrade instruction to the microphone box, sending the first resource upgrade package to the microphone box.
In the above embodiment, when the size of the second memory space of the service host is larger than the size of the first resource upgrade package file, the service host requests and stores the first resource upgrade package, and sends the resource upgrade instruction to the microphone box, and then sends the first resource upgrade package to the microphone box, so that the microphone box does not need to actively acquire the first resource upgrade package after receiving the resource upgrade instruction and the first resource upgrade package, and the first resource upgrade package sent by the service host can be quickly used to upgrade the first resource to be upgraded of the microphone box, thereby improving the efficiency of upgrading the microphone box.
In one embodiment, the apparatus further comprises:
the information acquisition module is also used for acquiring the information of the service host;
the condition judgment module 606 is further configured to judge whether the service host meets the resource upgrading condition according to the upgrading resource information and the service host information;
the request sending module 604 is further configured to send a second resource upgrade package acquisition request to the home care server if the service host meets the resource upgrade condition;
the information receiving module 602 is further configured to receive a second resource upgrade package returned by the home care server;
and the upgrading module is used for upgrading the second resource to be upgraded of the service host according to the second resource upgrading packet.
In the above embodiment, the home care terminal determines whether the service host meets the resource upgrading condition according to the upgrading resource information and the service host information by acquiring the service host information, if so, sends a second resource upgrading packet acquisition request to the home care server, receives a second resource upgrading packet returned by the home care server, and upgrades the second resource to be upgraded of the service host according to the second resource upgrading packet, thereby implementing upgrading of the service host to repair a leak of the service host or increase a function of the service host.
In one embodiment, the upgrade resource information includes a second resource upgrade package version number and a second resource upgrade package file size; the service host information comprises a second resource version number to be upgraded, a second residual memory space size and a second residual electric quantity of the service host;
the condition determining module 606 is further configured to:
determining whether the version number of the second resource upgrading packet is the same as the version number of the second resource to be upgraded;
if not, determining whether the size of the second residual memory space is larger than the size of the second resource upgrade package file;
if so, determining whether the second residual electric quantity is larger than a second upgrading electric quantity threshold value;
and if so, determining that the service host meets the resource upgrading condition.
In the above embodiment, the service host compares the version number of the second resource upgrade package and the file size of the second resource upgrade package of the upgrade resource information with the version number of the second resource to be upgraded and the size of the second remaining memory space of the service host, so that when the second resource upgrade package is an upgrade resource of a higher version relative to the resource to be upgraded of the service host, the remaining memory space of the service host is sufficiently large, and the remaining power of the service host is sufficient for upgrading the resource, it is quickly determined that the service host can perform resource upgrade, and thus, the upgrade of the service host can be implemented to repair a bug of the service host or increase functions of the service host.
In one embodiment, the apparatus further comprises:
the file size summing module is used for calculating the sum of the size of the first resource upgrade package file and the size of the second resource upgrade package file to obtain the size of the total upgrade resource file if the size of the second residual memory space is larger than the size of the second resource upgrade package file;
the condition determining module 606 is further configured to determine whether the size of the second remaining memory space is larger than the size of the total upgrade resource file;
the request sending module 604 is further configured to send a first resource upgrade package obtaining request to the home care server if the size of the second remaining memory space is greater than the size of the total upgraded resource file;
the information receiving module 602 is further configured to receive and store a first resource upgrade package returned by the home care server;
the instruction sending module 608 is further configured to send the first resource upgrade package to the microphone box after sending the resource upgrade instruction to the microphone box.
In the above embodiment, when the size of the second memory space of the service host is larger than the sum of the size of the first resource upgrade package file and the size of the first resource upgrade package file, the service host may request and store the first resource upgrade package in addition to requesting the second resource upgrade package from the home care server, and after sending the resource upgrade instruction to the microphone box, send the first resource upgrade package to the microphone box, so that the microphone box does not need to actively acquire the first resource upgrade package after receiving the resource upgrade instruction and the first resource upgrade package, and the first resource upgrade package sent by the service host can be quickly used to upgrade the first resource to be upgraded of the microphone box, thereby improving the efficiency of upgrading the microphone box.
In one embodiment, the condition determining module 606 is further configured to, if the second resource upgrade package version number in the service host information is greater than the first resource upgrade package version number in the microphone box information, perform a step of determining whether the microphone box meets the resource upgrade condition according to the upgrade resource information and the microphone box information;
the condition judgment module 606 is further configured to, if the second resource upgrade package version number in the service host information is equal to the first resource upgrade package version number in the microphone box information, execute a step of judging whether the service host meets the resource upgrade condition according to the upgrade resource information and the service host information;
the instruction sending module 608 is further configured to send a resource downgrading instruction to the microphone box if the second resource upgrade package version number in the service host information is smaller than the first resource upgrade package version number in the microphone box information; the resource degradation instruction is used for indicating the microphone box to acquire the resource degradation package, and degrading the first resource to be upgraded of the microphone box according to the resource degradation package.
In the above embodiment, the service host compares the version number of the second resource upgrade package in the acquired service host information with the version number of the first resource upgrade package in the acquired information of the microphone box to upgrade or degrade the microphone box, so that the versions of the microphone box and the service host are consistent, the service host and the microphone box are ensured to be in a stable working state during working, the microphone box can more effectively collect sound data generated in a service process, the service process is more effectively supervised, and the supervision efficiency of home care service is improved.
In one embodiment, as shown in fig. 7, there is provided an upgrade apparatus of a home care terminal, including: a microphone box information obtaining module 702, a microphone box information sending module 704, a resource upgrade package obtaining module 706 and a microphone box upgrade module 708, wherein:
a microphone box information acquisition module 702, configured to acquire microphone box information when receiving a microphone box information acquisition request sent by a service host of a home care terminal;
a microphone box information sending module 704, configured to send the microphone box information to the service host;
a resource upgrade package obtaining module 706, configured to obtain a first resource upgrade package when a resource upgrade instruction sent by the service host is received;
the microphone box upgrading module 708 is configured to upgrade a first resource to be upgraded of the microphone box according to the first resource upgrading packet.
In the above embodiment, when the microphone box receives a microphone box information acquisition request sent by a service host of a home care terminal, the microphone box information is acquired, the microphone box information is sent to the service host, when a resource upgrading instruction sent by the service host is received, a first resource upgrading packet is acquired, and a first resource to be upgraded of the microphone box is upgraded according to the first resource upgrading packet, so that the microphone box is upgraded to repair a bug of the microphone box or increase functions of the microphone box, sound data generated in the service process can be collected more effectively through the upgraded microphone box, the service process is supervised more effectively, and the supervision efficiency of the home care service is improved.
For specific limitations of the upgrading device of the home care terminal, reference may be made to the above limitations of the upgrading method of the home care terminal, which are not described herein again. The modules in the upgrading device of the home care terminal may be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of upgrading a home care terminal. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A method for upgrading a home care terminal is applied to a service host of the home care terminal, and is characterized by comprising the following steps:
receiving upgrade resource information sent by a home care server;
sending a microphone box information acquisition request to a microphone box of the home care terminal;
receiving microphone box information returned by the microphone box;
judging whether the microphone box meets a resource upgrading condition or not according to the upgrading resource information and the microphone box information;
if yes, sending a resource upgrading instruction to the microphone box; the resource upgrading instruction is used for indicating the microphone box to acquire a first resource upgrading packet, and upgrading a first resource to be upgraded of the microphone box according to the first resource upgrading packet.
2. The method of claim 1, wherein the upgrade resource information includes a first resource upgrade package version number and a first resource upgrade package file size; the microphone box information comprises a first resource version number to be upgraded, a first residual memory space size and a first residual electric quantity of the microphone box;
the judging whether the microphone box meets the resource upgrading condition according to the upgrading resource information and the microphone box information comprises the following steps:
determining whether the version number of the first resource upgrading packet is the same as the version number of the first resource to be upgraded;
if not, determining whether the size of the first residual memory space is larger than the size of the first resource upgrade package file;
if yes, determining whether the first residual electric quantity is larger than a first upgrading electric quantity threshold value;
and if so, determining that the microphone box meets the resource upgrading condition.
3. The method of claim 2, further comprising:
acquiring the size of a second memory space of the service host;
judging whether the size of the second memory space is larger than the size of the first resource upgrade package file;
if so, sending a first resource upgrading packet acquisition request to the home care server;
receiving and storing a first resource upgrading packet returned by the home care server;
and after sending a resource upgrading instruction to the microphone box, sending the first resource upgrading packet to the microphone box.
4. The method of claim 1, further comprising:
acquiring service host information;
judging whether the service host meets the resource upgrading condition or not according to the upgrading resource information and the service host information;
if so, sending a second resource upgrading packet acquisition request to the home care server;
receiving a second resource upgrading packet returned by the home care server;
and upgrading the second resource to be upgraded of the service host according to the second resource upgrading packet.
5. The method of claim 4, wherein the upgrade resource information includes a second resource upgrade package version number and a second resource upgrade package file size; the service host information comprises a second resource version number to be upgraded, a second residual memory space size and a second residual electric quantity of the service host;
the judging whether the service host meets the resource upgrading condition according to the upgrading resource information and the service host information comprises the following steps:
determining whether the second resource upgrading packet version number is the same as the second resource version number to be upgraded;
if not, determining whether the size of the second residual memory space is larger than the size of the second resource upgrade package file;
if yes, determining whether the second residual electric quantity is larger than a second upgrading electric quantity threshold value;
and if so, determining that the service host meets the resource upgrading condition.
6. The method of claim 5, further comprising:
if the size of the second residual memory space is larger than the size of the second resource upgrade package file, calculating the sum of the size of the first resource upgrade package file and the size of the second resource upgrade package file to obtain the size of a total upgrade resource file;
determining whether the size of the second remaining memory space is larger than the size of the total upgrade resource file;
if so, sending a first resource upgrading packet acquisition request to the home care server;
receiving and storing a first resource upgrading packet returned by the home care server;
and after sending a resource upgrading instruction to the microphone box, sending the first resource upgrading packet to the microphone box.
7. The method of claim 4, wherein before determining whether the microphone box satisfies a resource upgrade condition according to the upgrade resource information and the microphone box information, the method further comprises:
if the second resource upgrade package version number in the service host information is greater than the first resource upgrade package version number in the microphone box information, executing a step of judging whether the microphone box meets a resource upgrade condition according to the upgrade resource information and the microphone box information;
if the version number of a second resource upgrade package in the service host information is equal to the version number of a first resource upgrade package in the microphone box information, executing the step of judging whether the service host meets the resource upgrade condition according to the upgrade resource information and the service host information;
if the second resource upgrade package version number in the service host information is smaller than the first resource upgrade package version number in the mike box information, sending a resource downgrading instruction to the mike box; the resource degradation instruction is used for indicating the microphone box to acquire a resource degradation package, and degrading the first resource to be upgraded of the microphone box according to the resource degradation package.
8. An upgrading method of a home care terminal is applied to a microphone box of the home care terminal, and is characterized by comprising the following steps:
when a microphone box information acquisition request sent by a service host of the home care terminal is received, acquiring microphone box information;
sending the microphone box information to the service host;
when a resource upgrading instruction sent by the service host is received, a first resource upgrading packet is obtained;
and upgrading the first resource to be upgraded of the microphone box according to the first resource upgrading packet.
9. An upgrade apparatus of a home care terminal, the apparatus comprising:
the information receiving module is used for receiving the upgrading resource information sent by the home care server;
the request sending module is used for sending a microphone box information acquisition request to a microphone box of the home care terminal;
the information receiving module is also used for receiving the microphone box information returned by the microphone box;
the condition judgment module is used for judging whether the microphone box meets the resource upgrading condition or not according to the upgrading resource information and the microphone box information;
the instruction sending module is used for sending a resource upgrading instruction to the microphone box if the microphone box meets a resource upgrading condition; the resource upgrading instruction is used for indicating the microphone box to acquire a first resource upgrading packet, and upgrading a first resource to be upgraded of the microphone box according to the first resource upgrading packet.
10. An upgrade apparatus of a home care terminal, the apparatus comprising:
the microphone box information acquisition module is used for acquiring microphone box information when receiving a microphone box information acquisition request sent by a service host of the home care terminal;
the microphone box information sending module is used for sending the microphone box information to the service host;
the resource upgrading packet acquisition module is used for acquiring a first resource upgrading packet when receiving a resource upgrading instruction sent by the service host;
and the microphone box upgrading module is used for upgrading the first resource to be upgraded of the microphone box according to the first resource upgrading package.
11. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the method of any one of claims 1 to 7, 8.
12. A computer-readable storage medium, on 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, 8.
CN202011065933.0A 2020-09-30 2020-09-30 Household nursing terminal upgrading method and device, computer equipment and storage medium Active CN112289431B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011065933.0A CN112289431B (en) 2020-09-30 2020-09-30 Household nursing terminal upgrading method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011065933.0A CN112289431B (en) 2020-09-30 2020-09-30 Household nursing terminal upgrading method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112289431A true CN112289431A (en) 2021-01-29
CN112289431B CN112289431B (en) 2024-07-09

Family

ID=74422767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011065933.0A Active CN112289431B (en) 2020-09-30 2020-09-30 Household nursing terminal upgrading method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112289431B (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002015064A (en) * 2000-04-26 2002-01-18 Meiji Life Insurance Co Nursing-care system and achievement management method for nursing-care service
US20070169090A1 (en) * 2005-12-12 2007-07-19 Samsung Electronics Co., Ltd. Software update method and software update apparatus thereof
CN101192157A (en) * 2006-11-22 2008-06-04 乐金电子(昆山)电脑有限公司 Domestic network system software upgrading method
CN101610501A (en) * 2009-07-16 2009-12-23 中兴通讯股份有限公司 Device firmware upgrade system and method, device management server and portable terminal
CN202940846U (en) * 2012-09-10 2013-05-15 浙江吉利汽车研究院有限公司杭州分公司 Vehicle-mounted device software upgrading system
US20150100955A1 (en) * 2012-06-13 2015-04-09 Tencent Technology (Shenzhen) Company Limited Method and System for Updating Software
CN104601708A (en) * 2015-01-21 2015-05-06 深圳市成为信息技术有限公司 Vehicle-mounted device and multi-channel loading method thereof
CN105162841A (en) * 2015-08-03 2015-12-16 广东美的环境电器制造有限公司 Domestic appliance control method and system
WO2016078263A1 (en) * 2014-11-18 2016-05-26 中兴通讯股份有限公司 Upgrading control device and terminal, terminal upgrading method and system, and storage medium
CN107239302A (en) * 2017-05-10 2017-10-10 努比亚技术有限公司 A kind of firmware upgrade method, terminal and server
CN107580071A (en) * 2017-09-28 2018-01-12 美的智慧家居科技有限公司 Master-slave equipment upgrade method, device and its equipment
CN107589952A (en) * 2016-07-06 2018-01-16 中兴通讯股份有限公司 Intelligent upgrade method, device and system
CN108491222A (en) * 2018-03-27 2018-09-04 青岛海信智慧家居***股份有限公司 Gateway device upgrade method, device, gateway device and storage medium
CN109144541A (en) * 2018-08-02 2019-01-04 广东小天才科技有限公司 Upgrading method and device for wearable equipment and terminal
CN109817316A (en) * 2018-12-13 2019-05-28 山东亚华电子股份有限公司 The method and medical care host of device upgrade in a kind of medical communication system
CN110231948A (en) * 2019-06-10 2019-09-13 腾讯科技(成都)有限公司 Application program method, apparatus, system, storage medium and computer equipment
CN110311801A (en) * 2019-05-10 2019-10-08 珠海格力电器股份有限公司 Equipment firmware upgrading method and system
CN110825411A (en) * 2019-10-31 2020-02-21 歌尔股份有限公司 Upgrading method and device for TWS (two way satellite System) earphone system and computer-readable storage medium
CN111324363A (en) * 2019-11-14 2020-06-23 杭州海康威视***技术有限公司 Equipment upgrading method, upgrading terminal, equipment and storage medium
CN111610993A (en) * 2020-05-20 2020-09-01 麦腾物联网技术有限公司 Firmware upgrading method, server and system
CN111698307A (en) * 2020-06-04 2020-09-22 中国第一汽车股份有限公司 Vehicle remote upgrading method, device, equipment and storage medium

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002015064A (en) * 2000-04-26 2002-01-18 Meiji Life Insurance Co Nursing-care system and achievement management method for nursing-care service
US20070169090A1 (en) * 2005-12-12 2007-07-19 Samsung Electronics Co., Ltd. Software update method and software update apparatus thereof
CN101192157A (en) * 2006-11-22 2008-06-04 乐金电子(昆山)电脑有限公司 Domestic network system software upgrading method
CN101610501A (en) * 2009-07-16 2009-12-23 中兴通讯股份有限公司 Device firmware upgrade system and method, device management server and portable terminal
US20150100955A1 (en) * 2012-06-13 2015-04-09 Tencent Technology (Shenzhen) Company Limited Method and System for Updating Software
CN202940846U (en) * 2012-09-10 2013-05-15 浙江吉利汽车研究院有限公司杭州分公司 Vehicle-mounted device software upgrading system
WO2016078263A1 (en) * 2014-11-18 2016-05-26 中兴通讯股份有限公司 Upgrading control device and terminal, terminal upgrading method and system, and storage medium
CN104601708A (en) * 2015-01-21 2015-05-06 深圳市成为信息技术有限公司 Vehicle-mounted device and multi-channel loading method thereof
CN105162841A (en) * 2015-08-03 2015-12-16 广东美的环境电器制造有限公司 Domestic appliance control method and system
CN107589952A (en) * 2016-07-06 2018-01-16 中兴通讯股份有限公司 Intelligent upgrade method, device and system
CN107239302A (en) * 2017-05-10 2017-10-10 努比亚技术有限公司 A kind of firmware upgrade method, terminal and server
CN107580071A (en) * 2017-09-28 2018-01-12 美的智慧家居科技有限公司 Master-slave equipment upgrade method, device and its equipment
CN108491222A (en) * 2018-03-27 2018-09-04 青岛海信智慧家居***股份有限公司 Gateway device upgrade method, device, gateway device and storage medium
CN109144541A (en) * 2018-08-02 2019-01-04 广东小天才科技有限公司 Upgrading method and device for wearable equipment and terminal
CN109817316A (en) * 2018-12-13 2019-05-28 山东亚华电子股份有限公司 The method and medical care host of device upgrade in a kind of medical communication system
CN110311801A (en) * 2019-05-10 2019-10-08 珠海格力电器股份有限公司 Equipment firmware upgrading method and system
CN110231948A (en) * 2019-06-10 2019-09-13 腾讯科技(成都)有限公司 Application program method, apparatus, system, storage medium and computer equipment
CN110825411A (en) * 2019-10-31 2020-02-21 歌尔股份有限公司 Upgrading method and device for TWS (two way satellite System) earphone system and computer-readable storage medium
CN111324363A (en) * 2019-11-14 2020-06-23 杭州海康威视***技术有限公司 Equipment upgrading method, upgrading terminal, equipment and storage medium
CN111610993A (en) * 2020-05-20 2020-09-01 麦腾物联网技术有限公司 Firmware upgrading method, server and system
CN111698307A (en) * 2020-06-04 2020-09-22 中国第一汽车股份有限公司 Vehicle remote upgrading method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112289431B (en) 2024-07-09

Similar Documents

Publication Publication Date Title
WO2021142609A1 (en) Information reporting method, apparatus and device, and storage medium
US10200413B1 (en) Selective regulation of information transmission from mobile applications to third-party privacy compliant target systems
CN108540509B (en) Processing method and device of terminal browser, server and intelligent terminal
CN111597065B (en) Method and device for collecting equipment information
CN109257426B (en) Service line resource loading method and device, computer equipment and storage medium
CN106980647B (en) Data distribution method and device for distributed file system
CN111967236A (en) Message processing method and device, computer equipment and storage medium
CN111885184A (en) Method and device for processing hot spot access keywords in high concurrency scene
CN111190609A (en) Service processing method, device, equipment and storage medium
CN110837391A (en) Application program hot updating method and device, storage medium and electronic equipment
CN114327710A (en) Function management method, management device, terminal equipment and readable storage medium
CN111382976B (en) Early warning data processing method and device, computer equipment and storage medium
CN112905209A (en) Application program updating method and device
CN114302351B (en) Short message service processing method and device, computer equipment and storage medium
CN112527416A (en) Task processing method and device, computer equipment and storage medium
CN112289431A (en) Home care terminal upgrading method and device, computer equipment and storage medium
CN110019372B (en) Data monitoring method, device, server and storage medium
CN104954503A (en) Distribution apparatus and distribution method
CN105338058A (en) Application updating method and device
KR101226991B1 (en) Advertising system using push notification, advertising method performed on advertising system and computing device for advertisement using push notification
CN112543194B (en) Mobile terminal login method and device, computer equipment and storage medium
CN115514665A (en) Service expansion method and device, electronic equipment and storage medium
CN111625326A (en) Task pipeline execution method and device and electronic equipment
CN112416400B (en) Program update control method, program update control device, computer device, and storage medium
CN112241283B (en) Software upgrading method, device, computer 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
GR01 Patent grant
GR01 Patent grant