CN115933417A - Information processing apparatus and method - Google Patents

Information processing apparatus and method Download PDF

Info

Publication number
CN115933417A
CN115933417A CN202110909075.1A CN202110909075A CN115933417A CN 115933417 A CN115933417 A CN 115933417A CN 202110909075 A CN202110909075 A CN 202110909075A CN 115933417 A CN115933417 A CN 115933417A
Authority
CN
China
Prior art keywords
information
intelligent household
information processing
equipment
working
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110909075.1A
Other languages
Chinese (zh)
Inventor
李栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Smart Life Technology Co Ltd
Original Assignee
Qingdao Hisense Smart Life 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 Qingdao Hisense Smart Life Technology Co Ltd filed Critical Qingdao Hisense Smart Life Technology Co Ltd
Priority to CN202110909075.1A priority Critical patent/CN115933417A/en
Publication of CN115933417A publication Critical patent/CN115933417A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application discloses information processing equipment and method, and belongs to the technical field of Internet of things. The information processing equipment is connected with a plurality of intelligent household equipment, and the information processing equipment is used for: receiving working information sent by the plurality of intelligent household devices; processing the working information sent by the plurality of intelligent household devices in a distributed manner; the method comprises the steps that for each intelligent home equipment in the intelligent home equipment, the working information sent by each intelligent home equipment is sequentially processed according to the sequence of the working information sent by each intelligent home equipment; and sending the state prompt information of each intelligent household device to the terminal corresponding to each intelligent household device based on the processed work information of each intelligent household device. The problem that the processing effect of information processing equipment on information uploaded by intelligent household equipment is poor is solved. The application is used for processing the information uploaded by the intelligent household equipment.

Description

Information processing apparatus and method
Technical Field
The application relates to the technical field of Internet of things, in particular to information processing equipment and method.
Background
With the development of the internet of things technology, various intelligent household devices (such as a refrigerator, an air conditioner and the like) can be connected to the internet so as to be uniformly controlled by a user.
In the related art, the smart home devices are connected to the user terminal through an information processing device (e.g., a server), and the smart home devices can continuously upload information in the working process thereof to the information processing device. The information processing device needs to process information uploaded by the intelligent home equipment so as to determine information needing to be fed back to the terminal or information needing to be stored, and a user can know the working state of the intelligent home equipment.
However, the processing effect of the information processing device on the information uploaded by the smart home device is poor at present.
Disclosure of Invention
The application provides an information processing device and an information processing method, which can solve the problem that the information processing effect of the information uploaded by intelligent household equipment is poor. The technical scheme is as follows:
in one aspect, an information processing device is provided, where the information processing device is connected to a plurality of smart home devices, and the information processing device is configured to:
receiving working information sent by the plurality of intelligent household devices;
processing the working information sent by the plurality of intelligent household devices in a distributed manner; the method comprises the steps that for each intelligent home equipment in the intelligent home equipment, the working information sent by each intelligent home equipment is sequentially processed according to the sequence of the working information sent by each intelligent home equipment;
and sending the state prompt information of each intelligent household device to a terminal corresponding to each intelligent household device based on the processed work information of each intelligent household device.
In another aspect, an information processing method is provided for an information processing device, where the information processing device is connected to a plurality of smart home devices, and the method includes:
receiving working information sent by the plurality of intelligent household devices;
processing the working information sent by the plurality of intelligent household devices in a distributed manner; the method comprises the steps that for each piece of intelligent home equipment in a plurality of pieces of intelligent home equipment, working information sent by each piece of intelligent home equipment is processed in sequence according to the sequence of the working information sent by each piece of intelligent home equipment;
and sending the state prompt information of each intelligent household device to a terminal corresponding to each intelligent household device based on the processed work information of each intelligent household device.
The beneficial effect that technical scheme that this application provided brought includes at least:
in the application, the information processing equipment can process the working information sent by the intelligent home equipment connected with the information processing equipment in a distributed mode, and the working efficiency of the working information sent by each intelligent home equipment can be guaranteed to be high. Moreover, the working information sent by the intelligent household equipment is sequentially processed according to the sending sequence, so that the processing time sequence of the working information of the intelligent household equipment is improved on the basis of ensuring the information processing efficiency, the condition that the prompt of a terminal is mistaken due to the fact that the later sent working information is processed earlier than the earlier sent working information is avoided, and the information processing effect of the information processing equipment is improved.
Drawings
Fig. 1 is a schematic structural diagram of an internet of things system provided in an embodiment of the present application;
fig. 2 is a block diagram of an information processing apparatus according to an embodiment of the present application;
fig. 3 is a flowchart of an information processing method provided in an embodiment of the present application;
FIG. 4 is a flowchart of another information processing method provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
At present, the application of the internet of things technology is wider and wider. Fig. 1 is a schematic structural diagram of an internet of things system provided in an embodiment of the present application. As shown in fig. 1, each piece of internet-of-things equipment (e.g., smart home equipment 101, a terminal 102, etc.) in the internet-of-things system 10 may be connected to an internet-of-things platform 103, which is referred to as an information processing device in this application. The internet of things platform 103 may be a cloud platform, and the internet of things platform may include a server or a server cluster composed of a plurality of servers. The smart home devices 101 of the user may include home devices such as a smart refrigerator, a smart air conditioner, a smart television, and a smart oven, and the terminal 102 may include a smart phone, a tablet computer, and a notebook computer. Each piece of internet-of-things equipment can transmit data to the internet-of-things platform for processing by the internet-of-things platform 103; the internet of things platform 103 can control each internet of things device connected with the internet of things platform; and each piece of Internet of things equipment can also carry out information interaction through the Internet of things platform. For example, the smart home device 101 and the terminal 102 of the user may both be connected to the internet of things platform 103. The intelligent home devices 101 can upload state information or control instruction information and the like to the internet of things platform 103, and the internet of things platform 103 can process the information uploaded by the intelligent home devices 101 and can send the processed information to the user terminal 102. The user can know the state of the smart home device 101 based on the information received by the terminal 102, and can control the smart home device 101 through the internet of things platform 103.
In the related art, the internet of things platform adopts a micro-service architecture for information processing, when the scale of data generated by the internet of things equipment connected with the internet of things platform is large, the internet of things platform is difficult to meet the throughput required by the data, and the fault tolerance of the internet of things platform is low, so that the calculation efficiency of the internet of things platform is low, and the requirement on information processing of the internet of things equipment is difficult to meet. The internet of things platform needs to start multiple threads to process information uploaded by the internet of things equipment. After the Internet of things platform receives the information uploaded by the Internet of things equipment, the threads can be randomly called in the multiple threads to process the information, the multiple threads can process the information which is sent by the same Internet of things equipment successively, and then the information which is sent after the information possibly appears is processed first, so that the time sequence for processing the information sent by the Internet of things equipment cannot be guaranteed, the information transmitted to the terminal by the Internet of things platform is in error sequence, the prompt at the terminal is disordered, and the processing effect of the physical network platform on the information is poor.
The embodiment of the application provides information processing equipment and an information processing method, the information processing equipment has stronger time sequence for processing information sent by the Internet of things equipment, the information sent by the Internet of things equipment can be processed in sequence, the condition that prompting errors to a terminal are caused because the information sent later is earlier than the working information sent earlier, and the information processing effect of the information processing equipment is better. The information processing equipment also has better data throughput and fault tolerance rate, and can accurately and timely process the information sent by the equipment of the Internet of things.
In this embodiment of the application, the information processing device may refer to an internet of things platform, the information processing device may be a server or a server cluster, and the information processing device may include a processor, a memory, and a communication interface. If the information processing apparatus is a server cluster composed of a plurality of servers, the processor, the memory, and the communication interface may be distributively deployed in the plurality of servers, so as to jointly implement the processing, storing, and communicating functions through the plurality of servers.
A distributed stream processing engine may be employed in the information processing apparatus for information processing. For example, the information processing device may perform information processing by using a Flink processing engine, where the Flink processing engine is constructed based on a Flink open source flow processing framework, and the flow processing framework may be deployed in a clustered manner, for example, the flow processing framework may be deployed in a plurality of servers respectively, and information uploaded by the internet of things device may be processed comprehensively by using the plurality of servers. The Flink processing engine is a big data processing engine and also a stream processing engine, and has various powerful computing functions such as machine learning. The information processing device can process the data stream uploaded by the physical network device in a data parallel and pipeline mode through the processing engine. Fig. 2 is a block diagram of an information processing apparatus according to an embodiment of the present application. As shown in fig. 2, the information processing apparatus may include an apparatus state acquisition module (Collector), an information queue module, a data reading module, a data processing module, and a message middleware. The data reading module, the data processing module and the message middleware can work together based on a Flink framework. The information queue module may be a buffer space in a memory of the information processing apparatus, and the other respective modules may be modules in a processor of the information processing apparatus.
The message queue module may be a Kafka cluster, which is a distributed publish-subscribe messaging system with high throughput. The data reading module may be a Kafka Source component. The data processing module may include: the system comprises a data conversion sub-module (Flat Map), a data enhancement sub-module (Map), a data Cache sub-module (Cache) and a data cleaning sub-module (Filter). The equipment state acquisition module can receive the information of the working state sent by the equipment of the Internet of things and store the received information in the information queue module, and the data processing module can process the information in the information queue module. The message middleware may include: the device comprises an information pushing module, an information updating module, an information storage module and an offline data processing module. Illustratively, the information pushing module may be an Active Message Queue (Active mq), the information updating module may be an update (update) Elastic Search (ES) component, the information storing module may be a KafkaSink component, and the offline data processing module may include an embedded (insert) ES component and a fluent component. ActiveMQ is an open source message bus, ES is a distributed full-text retrieval engine system based on Lucene, and fluent is a real-time open source data collector. Data processed by the data processing module can be output to an ActiveMQ, an update ES component and a Kafkasink component, the ActiveMQ can push state information of the Internet of things equipment to the terminal, the update ES component can update historical state information of the physical network equipment in real time, and the Kafkasink component can store the state of the Internet of things equipment.
With continued reference to fig. 2, the information processing apparatus may further include a plurality of external interfaces. Such as Mysql (structured query language) broadcast variable interface, remote Dictionary service (Redis) cache interface, hyperText Transfer Protocol (HTTP) interface, and Remote Procedure Call Protocol (RPC) interface. MySQL is a relational database management system, and Redis is a memory cache database. The data processing module can call the external interface to process data. The plurality of external interfaces may belong to a communication interface of the information processing apparatus.
It should be noted that, in the embodiment of the present application, the information processing device may perform distributed processing on the information uploaded by the internet of things device through threads deployed on multiple servers. The information processing equipment processes the information uploaded by the Internet of things equipment based on the Flink stream processing framework, so that the parallelism of information processing can be improved, the computing power of the cluster can be utilized, and the information processing efficiency of the information processing equipment is improved. In addition, the Kafka cluster is adopted to store the received information, so that the data throughput and the expansibility of storage resources can be improved, and the information calculation efficiency of the information processing equipment is further improved.
Fig. 3 is a flowchart of an information processing method according to an embodiment of the present application, where the method may be used in the information processing device described above, and the information processing device may be connected to multiple smart home devices. As shown in fig. 3, the method may include:
step 301, receiving work information sent by the connected intelligent household devices.
For example, the information processing device may be in communication connection with a plurality of smart home devices, and each smart home device may periodically send its work information to the information processing device, and accordingly the information processing device periodically receives the work information sent by the smart home device. The intelligent home equipment continuously sends work information to the information processing equipment, namely, sends work information flow to the information processing equipment. The working information may include current working state information, working instruction information, and the like of the smart home device. For example, the smart home device is an air conditioner, and the working state of the air conditioner may include a cooling state, and may further include information such as a current cooling temperature, a current humidity, and a current cooling time. For example, the operation instruction information of the air conditioner may be receiving an operation stop instruction, or sending a prompt information instruction, etc.
And 302, processing the work information sent by the plurality of intelligent home devices in a distributed manner, wherein the work information sent by each intelligent home device is sequentially processed according to the sequence of the work information sent by each intelligent home device for each intelligent home device.
The information processing devices can all perform certain processing aiming at the working information sent by the intelligent household equipment. Illustratively, the information of interaction between the smart home device and the information processing device is encrypted information, and after receiving the working information sent by the smart home device, the information processing device may decrypt the working information first and then obtain the real working information. Optionally, according to different requirements set by the staff, the information processing device may further perform other processing on the received work information to obtain the required processed information.
Optionally, the information processing device may process the work information sent by each smart home device by using the same thread. Therefore, after the processing of the work information sent by the intelligent household equipment by the thread is finished, the work information sent by the intelligent household equipment is processed, the processing time sequence of the work information sent by the intelligent household equipment is guaranteed, and the data processing effect is guaranteed.
And 303, sending the state prompt information of each intelligent household device to a terminal corresponding to each intelligent household device based on the processed work information of each intelligent household device.
For example, a user may manage smart home devices through a terminal, for example, the terminal is a mobile phone, a tablet computer, a notebook computer, or the like; some smart home devices can also be used as terminals, such as smart televisions and smart refrigerators with display screens. The terminal corresponding to the intelligent household equipment in the embodiment of the application refers to a terminal for managing the intelligent household equipment. The information processing equipment can send the state prompt information of the intelligent home equipment to the terminal so as to inform a user of the working state of the intelligent home equipment, and the user can conveniently manage and control the intelligent home equipment through the terminal.
To sum up, in the information processing method provided by the embodiment of the present application, the information processing device may process the work information sent by the multiple smart home devices connected to the information processing device in a distributed manner, and it may be ensured that the processing efficiency of the work information sent by each smart home device is relatively high. Moreover, the working information sent by the intelligent household equipment is sequentially processed according to the sending sequence, so that the processing sequence of the working information of the intelligent household equipment is improved on the basis of ensuring the information processing efficiency, the condition that the prompt of a terminal is mistaken due to the fact that the later sent working information is processed earlier than the earlier sent working information is avoided, and the information processing effect of the information processing equipment is improved.
Fig. 4 is a flowchart of another information processing method provided in this embodiment, where the method may be used in the information processing device described above, and the information processing device may be connected to multiple smart home devices, and the information processing method in this embodiment is described below with respect to any one of the multiple smart home devices. As shown in fig. 4, the method may include:
step 401, receiving work information sent by the smart home device.
The smart home device may periodically send its work information to the information processing device. The working information may include state information for reflecting a working state of the smart home device, and may also include instruction information for reflecting an instruction sent or received by the smart home device. Regarding the state information and the instruction information, reference may be made to the related descriptions of the working state information and the working instruction information in step 301, and details of the embodiment of the present application are not described again. It should be noted that the information processing device may receive the work information sent by the multiple pieces of smart home equipment connected to the information processing device, and this embodiment of the present application is described by taking any piece of smart home equipment connected to the information processing device as an example.
The intelligent household equipment can obtain the corresponding target mapping set, and then state information reflecting the working state of the intelligent household equipment is generated according to the target mapping set. The target mapping set is used for reflecting the corresponding relation between the actual state of the intelligent household equipment and the sent information. The target mapping sets corresponding to different intelligent household devices are different, and the target mapping sets corresponding to the intelligent household devices of the same model can be the same. The target mapping set can be set by workers before the smart home equipment leaves a factory. For example, the target mapping set may include state identifiers corresponding to a plurality of working states of the smart home devices, respectively. The state information sent by the smart home device may be: and carrying out certain processing on the state identifier corresponding to the working state of the mobile terminal to obtain information.
The intelligent household equipment is in a certain working state, which can be caused by executing a certain instruction. Optionally, the working state of the smart home device may be represented by an instruction, and the state identifier may be represented by an identifier of the instruction. Illustratively, the following table 1 is a target mapping set corresponding to an intelligent oven provided in an embodiment of the present application. The items in the column of "instruction parameter value description" in table 1 below respectively represent various operating states of the smart oven, and each operating state may be characterized by a corresponding instruction value and instruction parameter value. For example, as can be seen from table 1 below, the operating states during the start or operation of the oven correspond to the state identifiers of the command value "0" and the command parameter value "1". The instruction value "0" represents an instruction numbered "GET _ SYS _ RUN _ CTL," entitled "fetch start stop.
TABLE 1
Figure BDA0003203037170000071
/>
Figure BDA0003203037170000081
/>
Figure BDA0003203037170000091
After the state identifier corresponding to the current working state is determined based on the target mapping table, the intelligent home device can encrypt the state identifier according to a specified mode to obtain state information, and then send the state information obtained after encryption to the information processing device. For example, the smart home device may encode the status identifier in a Base64 encoding manner to implement encryption of the status identifier. Base64 is a method of representing binary data based on 64 printable characters. Base64 encoding is a binary to character process that may be used to convey longer identification information in the HTTP environment. The information coded by the Base64 has the property of being unreadable and can be read after being decoded. Optionally, for the instruction information, the smart home device may generate the instruction information in a manner similar to the state information, and the embodiment of the present application only uses the state information as an example for explanation, and the generation manner of the instruction information is not described again.
Alternatively, step 401 may be performed by a device state acquisition module in a processor of the information processing device. The equipment state acquisition module can receive state information sent by the intelligent household equipment through long connection with the intelligent household equipment. Optionally, the information processing device may further include another acquisition module to acquire other work information of the smart home device.
Step 402, storing the working information sent by the intelligent household equipment to a cache partition corresponding to the intelligent household equipment in a cache space based on the identification of the intelligent household equipment.
The cache space of the information processing apparatus may include a plurality of cache partitions, which may be divided in advance by a worker, or may be divided by the information processing apparatus based on a set division manner. The buffer space may be an information queue module in fig. 2, such as a Kafka cluster. The Kafka cluster may store multiple categories of information, each of which may be referred to as a topic (topic). For example, the state information and the instruction information of the smart home device can be two types of information. Each topic may have multiple cache partitions, and all cache partitions of each topic may share the storage of information belonging to that topic. Optionally, after receiving the work information sent by the smart home device, the information processing device may store the work information in the corresponding cache partition of topic based on the type of the work information.
For example, the information processing device may obtain an identifier of the smart home device, such as a Wireless Fidelity identity (WIFIID) of the smart home device, where the identifier is a unique code of the smart home device. Optionally, the smart home device may carry its identifier when sending the work information. The information processing device may determine, based on the identifier of the smart home device, a partition identifier of a cache partition corresponding to the smart home device in topic corresponding to the work information, and further store the work information of the smart home device in the cache partition indicated by the partition identifier. For example, the information processing device may calculate the identifier of the smart home device by using a hash algorithm to obtain a hash value corresponding to the identifier of the smart home device, where the hash value may correspond to one cache partition, and the cache partition is a cache partition corresponding to the smart home device. Alternatively, the hash value may represent a partition identification of the cache partition. Optionally, each smart home device in one topic only corresponds to one cache partition; each cache partition may correspond to only one smart home device, or may also correspond to multiple smart home devices, which is not limited in the embodiment of the present application. The information processing equipment stores the working information into the cache partitions corresponding to the working information in sequence based on the receiving sequence of the working information so as to ensure the cache time sequence of the working information of the same intelligent household equipment.
Alternatively, step 402 may be performed by a device state acquisition module in a processor of the information processing device. The device state acquisition module may determine a cache partition corresponding to the smart home device, and send the working information (e.g., state information) reported by the smart home device to the corresponding cache partition in the Kafka cluster in real time. Optionally, the process of determining the cache partition corresponding to the smart home device may also be executed by another module other than the device state acquisition module, and the device state only needs to acquire the cache partition corresponding to the smart home device based on the determination result of the other module.
And 403, sequentially reading the work information in the cache partition corresponding to the intelligent household equipment according to the storage sequence, wherein the work information comprises state information.
Optionally, a plurality of preset threads may exist in the information processing apparatus, and each cache partition in the cache space may correspond to one thread, where the thread is used to process information in the cache partition. Each thread in the multiple threads of the information processing device can only correspond to one cache partition so as to process the information in the cache partition; alternatively, the information in a plurality of cache partitions may be processed in correspondence with the plurality of cache partitions. Optionally, under the condition that each thread corresponds to only one cache partition, after all information in the current corresponding cache partition is processed and no information is stored in the cache partition within a specified time period, processing information in other cache partitions.
In step 403, the information processing device may sequentially read the work information in the cache partition according to the storage sequence through the thread corresponding to the cache partition corresponding to the smart home device. For example, a thread corresponding to each cache partition in the information processing apparatus may continuously read the state information in the cache partition, and process the read state information. And sequentially reading the state information in each cache partition according to the storage sequence. The information in the cache partition may be JSON data, which is delivered in the form of text, i.e., a string of characters. The thread corresponding to the cache partition for storing the state information of the intelligent household equipment can read JSON data in the equipment state topic.
For example, a piece of data read from the cache partition may be "{" wifiid ": 86100c00fffe00100000004053aa266c", "devicetatuslist" [ { "deviceid": "," value "{ \\ status \" [ { \\ msgype \ 30, "" msgsatsubsample \ 0, "\\ result \ hAAAhYAAAA =" }, { \\ "msgtype \ 102," "AAgAAmsatsubalpe \ 0," \\ aaaaaaaaaaaaaaaaaaaakaataayaaaaaaaaaaaaaaaaaayaaaaaaaaaaaaaaaaaaaaaafaat "{" bawaaaaaaaaaaaaaaaaaakaaaaaaaaaaaaaaaaaaaayaat "},". Wherein "wifi" represents an identifier of the smart home device, and the identifier is "86100c00fffe00100000004053aa266c"; "devicestatistist" indicates a state table of a module in the smart home device, "deviceid" indicates an identifier of the module in the smart home device, "value" indicates a state value of the module, "msgtype" and "msgsubtype" respectively indicate two state values of the module, and "result" indicates a result obtained based on the two state values. For example, "30" and "0" indicate two specific status values uploaded by the module, and the actual data obtained based on the status values is "haeaahyaaaaa = \". <xnotran> "102" "0" "9PUBgGMBAP4BJwEBAGUAAQQBAALIAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAABAAUAAgAAAAAATYAAUAAAAJAAAwCaYKRxjNtKCJ72i0s5GyelAAAAAAAAAAAAAAAAAAAAAAAAAABiWvT7\". </xnotran>
Optionally, step 403 may be performed by a data reading module in the processor of the information processing device, and the data reading module may read the work information uploaded by the smart home devices from the corresponding cache partition in the Kafka cluster.
It should be noted that, in the related art, the work information uploaded by each smart home device is directly stored in one storage device. When the working information is processed, the network input output quantity of the storage device is huge, so that the operating efficiency of the storage device is low, and the data processing efficiency of the information processing device on the working information of the intelligent household equipment is low. In the embodiment of the application, a plurality of cache partitions in the cache space respectively correspond to a plurality of threads, the threads corresponding to the cache partitions respectively read and process the work information in the corresponding cache partitions, and the threads can process the work information stored in the cache partitions in parallel. For each cache partition, the data throughput is low, the load is low, and the data processing efficiency can be high.
Step 404, performing parsing processing on the read state information based on the target mapping set to determine a state identifier included in the state information.
Optionally, in step 404, the information processing device may analyze and process the read state information through a thread corresponding to a cache partition corresponding to the smart home device. Since the work information sent by the smart home device is encrypted, each thread of the information processing device can decrypt the work information after reading the work information from the corresponding cache partition. For example, the smart home device may encrypt the state information based on the target mapping set, and accordingly the thread may decrypt the read state information based on the target mapping set. The thread may obtain, based on the read work information, a target mapping set corresponding to the smart home device that sends the state information. The read state information may be parsed, such as in a Base64 decoding manner, to determine the state identification contained therein. If the thread can asynchronously call the HTTP interface to convert the encrypted Base64 data into hexadecimal data, wherein the hexadecimal data is the state identifier; and then the specific meaning of the state information, namely the specific state of the intelligent household equipment represented by the state information, can be determined based on the hexadecimal data.
<xnotran> , 1 , "PUBgGMBAP4BJwEBAGUAAQQBAALIAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAABAAUAAgAAAAAATYAAUAAAAJAAAwCaYKRxjNtKCJ72i0s5GyelAAAAAAAAAAAAAAAAAAAAAAAAAABiWvT7". </xnotran> Decryption of this information can yield {0=1,1=6,2=8,3=59,4=200,5=0,6=1, \8230; }. Wherein 0=1 indicates that the smart home device is in operation, and 1=6 indicates that the cooking mode of the smart home device is mode six (annular hot air), and so on.
Optionally, the smart home device may be a multi-split device, and at this time, one piece of work information uploaded by the smart home device may include work information of multiple devices. After the thread acquires the work information, the work information can be split into a plurality of pieces of work information corresponding to the plurality of devices. And then analyzing each piece of work information.
Alternatively, step 404 may also be referred to as a data conversion process, and step 404 may be performed by a data conversion sub-module in the processor of the information processing apparatus. After the data reading module reads the status information in step 403, the read information may be transmitted to the data processing module, so that the data processing module further processes the received data. For example, the data reading module may transmit the read data to the data conversion sub-module, and the data conversion sub-module may analyze the received data.
And 405, acquiring equipment information of the intelligent household equipment.
The working information uploaded by the smart home devices is generally only relevant information of the working process of the smart home devices, such as information of working states represented by hexadecimal numerical values. When the information processing equipment prompts the terminal based on the information sent by the intelligent household equipment, the information processing equipment also needs to obtain the equipment information of the intelligent household equipment. The device information may include basic information of the smart home device, such as a device model, a device type, a device function attribute, and a device operating environment state. The method may further include user information bound to the smart home device, such as a user account or an identifier of a terminal corresponding to the smart home device. Optionally, after the information processing device obtains the device information of the smart home device, the device information and the read work information may be merged to be used as new work information.
The information processing apparatus may execute step 405 through a thread corresponding to the cache partition corresponding to the smart home device. The device information of the smart home device may be stored in a Database Managed Storage (DMS). The thread can acquire the device information of the intelligent home device through an RPC interface, and then the acquired device information and the read work information are combined, for example, the device information is added to a work information flow uploaded by the intelligent home device. Alternatively, when the information processing device first acquires device information for a certain smart home device, the information processing device may acquire the device information by calling an RPC interface. After the device information of the smart home device is obtained, the device information of the smart home device may be cached, for example, the device information may be cached by Redis. The Redis cache interface can be directly and asynchronously called to obtain the equipment information of the intelligent household equipment subsequently, and then the number of times of query calling of the RPC interface is reduced. Because the information acquisition speed through the RPC interface is slow and tedious, the information acquisition efficiency can be improved by subsequently not calling the RPC interface. Optionally, the information processing device may delete the cached device information of the smart home device when the target duration is exceeded and the smart home device is not in communication. And after a deleting instruction for the intelligent household equipment is received, deleting the equipment information of the intelligent household equipment in the cache space.
Optionally, a process of acquiring the device information of the smart home device in step 405 and merging the device information and the read work information may be referred to as performing data enhancement on the read work information. In particular by a data enhancer module in a processor of the information processing device. In fig. 4, step 404 is executed to analyze the acquired work information, and then step 405 is executed to acquire the device information of the smart home device, so as to perform data enhancement on the work information. The sequence of the step 404 and the step 405 is not limited, and data enhancement can be performed on any work information first, and then the work information is analyzed; or the data enhancement can be performed while analyzing the working information.
And 406, acquiring a filtering category corresponding to the intelligent household equipment.
The working information uploaded by the smart home device may include a full working state. And the user can only pay attention to partial working states of the intelligent household equipment aiming at each intelligent household equipment. For example, for the smart oven corresponding to table 1 above, the status information uploaded by the smart oven may include status information for each instruction number. For example, the state information uploaded by the intelligent oven each time includes six types of information, namely start stop information, working mode information, set hour value, set minute value, set temperature and illumination state information of the intelligent oven; and the user may only be interested in some of the six types of information, such as only the operating mode in which the smart oven is located. Therefore, the intelligent home equipment frequently reports the full working state, which results in a large amount of data redundancy.
According to the method and the device, the filtering type is set for the intelligent household equipment, and the filtering type is used for representing the type of the work information concerned by the user. The filtering category may include only one category or may also include multiple categories. The information processing equipment can acquire the information of the filtering type, and then filters the working information uploaded by the intelligent household equipment based on the filtering type so as to reduce the data volume of subsequent processing. The filtering type can be set by a user or set by a worker before the smart home device leaves a factory, and the filtering type can be changed by the user. Alternatively, the information of the filtering category may be stored based on a structured query language, and the information processing device may call a Mysql broadcast variable interface to obtain the information of the filtering category, such as an identification of the filtering category.
Optionally, the information of the filtering category may be obtained by a thread corresponding to a cache partition corresponding to the smart home device. Optionally, filtering the working information may also be referred to as data cleansing. Step 406 may be performed by a data cleansing submodule in a processor of the information processing apparatus, or may be performed by another module.
And 407, filtering the analyzed working information and the equipment information of the intelligent household equipment based on the filtering type.
The information processing apparatus performs a filtering process on certain information, that is, deletes the information or retains the information. After the information processing equipment acquires the information of the filtering type, whether the information of the filtering type changes in the working information uploaded by the intelligent household equipment is determined based on the filtering type. And when the filtering type information is determined to be changed, keeping the analyzed working information and the acquired equipment information of the intelligent equipment. And deleting the working information when the information of the filtering category is determined not to be changed. For example, the filtering type corresponding to the intelligent oven is the working mode. After receiving the state information uploaded by the intelligent oven, the information processing equipment can judge whether the working mode of the intelligent oven changes. And when the working mode of the intelligent oven is determined to be changed, keeping the working information of the intelligent oven and carrying out subsequent processing. And when the working mode of the intelligent oven is determined not to be changed, deleting the working information of the intelligent oven, and not performing subsequent processing on the working information.
Optionally, the information processing device may record, for each smart home device, information of the filtering category in the latest received work information. For example, the information of the filtering category of the smart home device may be cached by an information storage module in a processor of the information processing device through Redis. And when the information of the filtering type in the analyzed work information is different from the recorded information of the filtering type, taking the analyzed work information as the filtered work information, and updating the recorded information of the filtering type. Such as may be updated by an information update module in a processor of the information processing device. And when the information of the filtering types in the analyzed working information is the same as the recorded information of the filtering types, deleting the analyzed state information and the obtained equipment information of the intelligent household equipment. Optionally, in step 407, the information processing device may also obtain the device information of the smart home device after determining that the working information of the smart home device is reserved, and then combine the obtained device information with the reserved working information. Optionally, the information processing device may delete the cached information of the filtering category of the smart home device when the information processing device does not communicate with the smart home device for more than the target duration. And after a deleting instruction for the intelligent household equipment is received, the filtering type information of the intelligent household equipment in the cache space is deleted.
Alternatively, the information processing apparatus may periodically read the filtering category (also referred to as a status rule) configured by Mysql, and then may broadcast the status rule via a broadcast stream (english: broadcastStream). The information processing apparatus may connect the parsed work information stream with the broadcast stream to form a broadcast connection stream (english: broadcastconnectidstream); and judging whether the hash value of the information of the filtering category changes or not based on the broadcast connection flow, and comparing the information in the working information flow with the information of the filtering category in the broadcast flow in real time. And deleting the corresponding work information in the work information flow when the information of the filtering category in the work information flow is determined not to be changed.
Optionally, the analyzed work information and the device information of the smart home device may be filtered by a thread corresponding to a cache partition corresponding to the smart home device. Step 407 may be performed by a data cleansing submodule in a processor of the information processing apparatus. If the filtering type of the smart home device in step 406 is obtained by another module, the other module may send the filtering type to the data cleaning sub-module after obtaining the filtering type, and then the data cleaning sub-module performs data cleaning based on the filtering type.
And step 408, sending the state prompt information of the intelligent household equipment to the terminal corresponding to the intelligent household equipment based on the information of the intelligent household equipment obtained after filtering.
The filtered information of the intelligent household equipment comprises state information and equipment information of the intelligent household equipment after analysis. The information processing device may determine, based on the filtered information of the smart home device, an identifier of a terminal corresponding to the smart home device, and then send, based on the identifier of the terminal, status prompt information of the smart home device to the terminal. For example, if the information processing apparatus determines that the operation mode of the smart oven is changed from the mode three to the mode four, the information processing apparatus may transmit a status prompt message indicating the change of the operation mode of the smart oven to the terminal. Optionally, the terminal may display information of the operating mode of the smart oven, and after receiving the state prompt information, the terminal may change the displayed information of the operating mode of the smart oven. Therefore, a user can determine the working state of the intelligent oven in time through the terminal.
Optionally, the state prompt information of the smart home device may be sent to the terminal by a thread corresponding to the cache partition corresponding to the smart home device. Step 407 may be performed by an information push module in a processor of the information processing device.
Optionally, in the embodiment of the present application, an information storage module (e.g., kafka cluster) in the information processing apparatus may customize a connection (english: connect), such as an offline data module (e.g., ES component and fluent component) defining the connection. The information storage module can write the analyzed work information into the ES component and the fluent component, so that the ES component and the fluent component can perform offline data statistics, and offline data can be pushed to a big data platform for processing.
Optionally, in the embodiment of the application, for the instruction information sent by the smart home device, the latest received instruction information may be stored in the information processing device, or a control result of the latest received instruction information on the smart home device may be stored. The information processing apparatus may update the stored instruction information or the control result after parsing the instruction information. The instruction information or the information of the control result may also be transmitted to the terminal.
In summary, in the information processing method provided by the embodiment of the present application, the information processing device may process the working information sent by the plurality of smart home devices connected to the information processing device in a distributed manner, and it may be ensured that the processing efficiency of the working information sent by each smart home device is high. Moreover, the working information sent by the intelligent household equipment is sequentially processed according to the sending sequence, so that the processing time sequence of the working information of the intelligent household equipment is improved on the basis of ensuring the information processing efficiency, the condition that the prompt of a terminal is mistaken due to the fact that the later sent working information is processed earlier than the earlier sent working information is avoided, and the information processing effect of the information processing equipment is improved.
Fig. 5 is a schematic structural diagram of a server according to an embodiment of the present application. The server may be the information processing apparatus 103 described above. The server includes a Central Processing Unit (CPU) 501, a system memory 504 including a Random Access Memory (RAM) 502 and a Read Only Memory (ROM) 503, and a system bus 505 connecting the system memory 504 and the central processing unit 501. The server also includes a basic input/output system (I/O system) 506, which facilitates transfer of information between devices within the computer, and a mass storage device 507 for storing an operating system 503, application programs 504, and other program modules 505.
The basic input/output system 506 includes a display 508 for displaying information and an input device 509, such as a mouse, keyboard, etc., for user input of information. Wherein the display 508 and the input device 509 are connected to the central processing unit 501 through an input-output controller 500 connected to the system bus 505. The basic input/output system 506 may also include an input/output controller 500 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input-output controller 500 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 507 is connected to the central processing unit 501 through a mass storage controller (not shown) connected to the system bus 505. The mass storage device 507 and its associated computer-readable media provide non-volatile storage for the server. That is, the mass storage device 507 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, the computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 504 and mass storage device 507 described above may be collectively referred to as memory.
According to various embodiments of the present application, the server may also operate with remote computers connected to a network through a network, such as the Internet. That is, the servers may be coupled to the network 502 through the network interface unit 501 that is coupled to the system bus 505, or the network interface unit 501 may be used to couple to other types of networks or remote computer systems (not shown).
The memory also includes one or more programs, which are stored in the memory, and the central processor 501 executes the one or more programs.
The embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored, and when the instructions are executed on a computer, the instructions cause the computer to execute the information processing method provided by the foregoing embodiment, for example, the method shown in fig. 3 or fig. 4.
Embodiments of the present application further provide a computer program product containing instructions, which, when run on a computer, cause the computer to execute the information processing method provided by the above method embodiments, for example, the method shown in fig. 3 or fig. 4.
It will be understood that the terms "comprises" and "comprising," and any variations thereof, in this application are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to those elements explicitly listed, but may include other elements not expressly listed or inherent to such product or apparatus. The term module, as used herein, refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware or/and software code that is capable of performing the functionality associated with that element. The term "at least one" in this application refers to one or more, "a plurality" refers to "two or more".
It should be noted that, the method embodiments provided in the embodiments of the present application can be mutually referred to corresponding apparatus embodiments, and the embodiments of the present application do not limit this. The sequence of the steps in the method embodiments provided in the present application can be appropriately adjusted, and the steps can be correspondingly increased or decreased according to the circumstances, and any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be covered within the protection scope of the present application, and therefore, the detailed description is omitted.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. The utility model provides an information processing equipment which characterized in that, information processing equipment is connected with a plurality of intelligent house equipment, information processing equipment is used for:
receiving working information sent by the plurality of intelligent household devices;
processing the working information sent by the plurality of intelligent household devices in a distributed manner; the method comprises the steps that for each intelligent home equipment in the intelligent home equipment, the working information sent by each intelligent home equipment is sequentially processed according to the sequence of the working information sent by each intelligent home equipment;
and sending the state prompt information of each intelligent household device to a terminal corresponding to each intelligent household device based on the processed work information of each intelligent household device.
2. The information processing apparatus according to claim 1, wherein the information processing apparatus is configured to:
storing the working information sent by each intelligent household device to a cache partition corresponding to each intelligent household device in a cache space, wherein each cache partition in the cache space corresponds to at least one intelligent household device and one thread;
and sequentially reading and processing the working information in the cache partition according to the storage sequence through the threads corresponding to the cache partition.
3. The information processing apparatus according to claim 2, wherein the cache space includes a plurality of cache partitions, the information processing apparatus being configured to:
acquiring an identifier of each intelligent household device;
determining a partition identifier corresponding to the identifier of each intelligent household device;
and determining a cache partition corresponding to each intelligent household device in the plurality of cache partitions based on the partition identification.
4. The information processing apparatus according to claim 3, wherein the information processing apparatus is configured to:
and processing the working information stored in the cache partitions in parallel through a plurality of threads corresponding to the cache partitions.
5. The information processing apparatus according to claim 1, wherein said information processing apparatus is configured to:
and processing the working information sent by the plurality of intelligent household devices based on a distributed stream processing engine.
6. The information processing device according to any one of claims 1 to 5, wherein the working information includes state information for reflecting a working state of the smart home device, the state information is generated based on a target mapping set, and the target mapping set includes state identifiers corresponding to a plurality of working states; the information processing apparatus is configured to:
analyzing the state information sent by each intelligent household device based on the target mapping set to determine a state identifier contained in the state information;
and sending the state prompt information of each intelligent household device to the terminal based on the analyzed state information.
7. The information processing apparatus according to claim 6, wherein said information processing apparatus is configured to:
acquiring the filtering category of the state information;
based on the filtering type, filtering the analyzed state information;
and sending the state prompt information of the intelligent household equipment to the terminal based on the filtered state information.
8. The information processing apparatus according to claim 7, wherein the information processing apparatus is configured to:
recording the information of the filtering category in the latest received state information;
when the information of the filtering type in the analyzed state information is different from the recorded information of the filtering type, taking the analyzed state information as the filtered state information, and updating the recorded information of the filtering type;
and deleting the analyzed state information when the information of the filtering type in the analyzed state information is the same as the recorded information of the filtering type.
9. The information processing apparatus according to any one of claims 1 to 5, wherein the information processing apparatus is further configured to:
acquiring equipment information of each intelligent household equipment;
and sending the state prompt information of each intelligent household device to the terminal based on the processed working information and the device information.
10. An information processing method is used for an information processing device, the information processing device is connected with a plurality of intelligent household devices, and the method comprises the following steps:
receiving working information sent by the plurality of intelligent household devices;
processing the working information sent by the plurality of intelligent household devices in a distributed manner; the method comprises the steps that for each intelligent home equipment in the intelligent home equipment, the working information sent by each intelligent home equipment is sequentially processed according to the sequence of the working information sent by each intelligent home equipment;
and sending the state prompt information of each intelligent household device to a terminal corresponding to each intelligent household device based on the processed work information of each intelligent household device.
CN202110909075.1A 2021-08-09 2021-08-09 Information processing apparatus and method Pending CN115933417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110909075.1A CN115933417A (en) 2021-08-09 2021-08-09 Information processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110909075.1A CN115933417A (en) 2021-08-09 2021-08-09 Information processing apparatus and method

Publications (1)

Publication Number Publication Date
CN115933417A true CN115933417A (en) 2023-04-07

Family

ID=86554420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110909075.1A Pending CN115933417A (en) 2021-08-09 2021-08-09 Information processing apparatus and method

Country Status (1)

Country Link
CN (1) CN115933417A (en)

Similar Documents

Publication Publication Date Title
CN110430260B (en) Robot cloud platform based on big data cloud computing support and working method
CN107577805B (en) Business service system for log big data analysis
CN108628929B (en) Method and apparatus for intelligent archiving and analysis
CN107908672B (en) Application report realization method, device and storage medium based on Hadoop platform
KR101621137B1 (en) Low latency query engine for apache hadoop
CN105224445A (en) Distributed tracking system
US20200089182A1 (en) Distributed embedded data and knowledge management system integrated with plc historian
CN113010565B (en) Server real-time data processing method and system based on server cluster
CN113282611B (en) Method, device, computer equipment and storage medium for synchronizing stream data
CN113760677A (en) Abnormal link analysis method, device, equipment and storage medium
CN103440302B (en) The method and system of Real Data Exchangs
CN111177237A (en) Data processing system, method and device
CN114969441A (en) Knowledge mining engine system based on graph database
CN113535677A (en) Data analysis query management method and device, computer equipment and storage medium
CN112685115A (en) International cue language generating method, system, computer equipment and storage medium
CN111752918A (en) Historical data interaction system and configuration method thereof
CN116028811A (en) Data backtracking method, medium, device and computing equipment
CN115933417A (en) Information processing apparatus and method
CN114153695A (en) Loose coupling and high-expansibility non-buried point data acquisition method based on Android
CN116743790A (en) Device data acquisition, device data analysis method and device and computer device
CN114003602A (en) Power grid monitoring data processing system
CN113157475A (en) Log processing method and device, storage medium and electronic equipment
CN111625524B (en) Data processing method, device, equipment and storage medium
CN113055476B (en) Cluster type service system, method, medium and computing equipment
CN114866549B (en) Data acquisition method and device

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