CN111880945B - Shared device information processing method, system, device, computer and storage medium - Google Patents

Shared device information processing method, system, device, computer and storage medium Download PDF

Info

Publication number
CN111880945B
CN111880945B CN202010652350.1A CN202010652350A CN111880945B CN 111880945 B CN111880945 B CN 111880945B CN 202010652350 A CN202010652350 A CN 202010652350A CN 111880945 B CN111880945 B CN 111880945B
Authority
CN
China
Prior art keywords
message data
message
computer
queue
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010652350.1A
Other languages
Chinese (zh)
Other versions
CN111880945A (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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010652350.1A priority Critical patent/CN111880945B/en
Publication of CN111880945A publication Critical patent/CN111880945A/en
Application granted granted Critical
Publication of CN111880945B publication Critical patent/CN111880945B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06312Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Educational Administration (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Game Theory and Decision Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The invention provides a shared device information processing method, a device, a computer device and a storage medium, wherein the method comprises the steps of receiving first message data of the shared device sent by a node computer; generating a first message queue based on the first message data, wherein the first message queue contains the first message data; receiving second message data generated after the consumer computer consumes the first message queue; generating a second message queue based on the second message data, wherein the second message queue contains each second message data; and sending the second message queue to a central server, and consuming the second message queue by the central server. The decoupling of the node computer and the central server is effectively promoted by an asynchronous processing mechanism of the message queue computer for the data, and the pressure and load of the central server can be effectively reduced.

Description

Shared device information processing method, system, device, computer and storage medium
Technical Field
The present invention relates to the field of shared devices, and in particular, to a shared device information processing method, apparatus, computer device, and storage medium.
Background
With the continuous expansion of the leasing market, the sharing of household appliances is also continuously emerging, and the sharing of air conditioners and washing machines is popular. In order to meet the market demand, many manufacturers develop service related to sharing, and at present, a new problem exists in sharing electric appliances, and a large number of sharing devices are used simultaneously, so that excessive electricity consumption can cause that floors or other devices in the same area cannot work normally. In addition, a large number of shared devices access the server at the same time, and the load of the server increases. After a large number of sharing devices are accessed, how to ensure the efficient operation of the central server is needed to be solved.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a shared device information processing method, apparatus, computer device, and storage medium.
A shared device information processing method, comprising:
the node computer sends first message data of the sharing device to the queue computer;
the queue computer receives the first message data and generates a first message queue based on the first message data, wherein the first message queue contains the first message data;
The consumer computer consumes the first message queue, generates second message data and sends the second message data to the queue computer;
the queue computer receives the second message data and generates a second message queue based on the second message data, wherein the second message queue contains the second message data;
and the central server consumes the second message queue.
In one embodiment, the step of the consumer computer consuming the first message queue, generating second message data, and sending the second message data to the queue computer comprises:
the consumer computer acquires the first message data, detects whether the first message data is larger than a preset threshold value, generates the second message data when the first message data is larger than the preset threshold value, and sends the second message data to the queue computer.
In one embodiment, the step of the central server consuming the second message queue comprises:
the central server acquires each piece of second message data in the second message queue, detects whether each piece of second message data is a preset alarm value, and sends out an alarm signal when the second message data is the preset alarm value.
In one embodiment, the first message data is a power consumption of the shared device.
In one embodiment, the consumer computer is the node computer.
A shared device information processing system, comprising: a queue computer, a central server, and a plurality of node computers; each node computer is respectively connected with the queue computer and the central server, and the queue computer is connected with the central server;
each node computer is used for being connected with the sharing equipment, and each node computer is configured to acquire first message data of the sharing equipment and send the first consumption data to a queue computer;
the queue computer is configured to receive first message data of the sharing device sent by the node computer, and generate a first message queue based on the first message data; and receiving second message data generated after the consumer computer consumes the first message queue; generating a second message queue based on the second message data;
the central server is configured to consume the second message queue.
A shared device information processing method, comprising:
Receiving first message data of sharing equipment sent by a node computer;
generating a first message queue based on the first message data, wherein the first message queue contains the first message data;
receiving second message data generated after the consumer computer consumes the first message queue;
generating a second message queue based on the second message data, wherein the second message queue contains each second message data;
and sending the second message queue to a central server, and consuming the second message queue by the central server.
In one embodiment, the step of receiving second message data generated after the consumer computer consumed the first message queue comprises:
the second message queue is sent to the consumer computer, the consumer computer obtains the first message data, whether the first message data are larger than a preset threshold value is detected, and when the first message data are larger than the preset threshold value, the second message data are generated;
and receiving the second message data generated after the consumer computer consumes the first message queue.
In one embodiment, the consumer computer is the node computer.
A shared device information processing apparatus, comprising:
a first message receiving module, configured to receive first message data of a sharing device sent by a node computer;
a first queue generating module, configured to generate a first message queue based on the first message data, where the first message queue includes each first message data;
the second message receiving module is used for receiving second message data generated after the consumer computer consumes the first message queue;
a second queue generating module, configured to generate a second message queue based on the second message data, where the second message queue includes each second message data;
and the second queue consumption module is used for sending the second message queue to a central server, and the central server consumes the second message queue.
A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor when executing the computer program performs the steps of:
receiving first message data of sharing equipment sent by a node computer;
Generating a first message queue based on the first message data, wherein the first message queue contains the first message data;
receiving second message data generated after the consumer computer consumes the first message queue;
generating a second message queue based on the second message data, wherein the second message queue contains each second message data;
and sending the second message queue to a central server, and consuming the second message queue by the central server.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving first message data of sharing equipment sent by a node computer;
generating a first message queue based on the first message data, wherein the first message queue contains the first message data;
receiving second message data generated after the consumer computer consumes the first message queue;
generating a second message queue based on the second message data, wherein the second message queue contains each second message data;
And sending the second message queue to a central server, and consuming the second message queue by the central server.
According to the method, the device, the computer equipment and the storage medium for processing the shared equipment information, the sharing of the area information of the shared equipment is realized based on the message queue, so that the acquisition of the electricity consumption of the shared equipment in an area is realized, whether the electricity consumption exceeds the safety load is judged based on the acquired electricity consumption, the electricity consumption safety and the reliability of the shared equipment are improved, in addition, the decoupling of the node computer and the central server is effectively promoted through an asynchronous processing mechanism of the message queue computer for data, and the pressure and the load of the central server can be effectively reduced.
Drawings
FIG. 1 is a schematic diagram of an application scenario of a method for processing shared device information in one embodiment;
FIG. 2 is a flow diagram of a method for processing shared device information in one embodiment;
FIG. 3 is a system architecture diagram of a shared device information handling system in one embodiment;
FIG. 4 is a flowchart of a method for processing shared device information in another embodiment;
FIG. 5 is a block diagram showing a configuration of a shared device information processing apparatus in one embodiment;
FIG. 6 is an internal block diagram of a computer device in one embodiment;
fig. 7 is a schematic diagram of a specific implementation process of the shared device information processing method in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The shared device information processing method provided by the application can be applied to an application environment shown in figure 1. Wherein each node computer 102 communicates with the queue computer 104 via a network, and each node computer 102 and queue computer 104 communicate with the central server 106 via a network. The node computer 102 may be, but not limited to, a server, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, the queue computer 104 may be a server or a personal computer, and when the queue computer is used as a server, the queue computer may be implemented by a server cluster formed by a separate server or a plurality of servers, and the central server 106 may be implemented by a separate server or a server cluster formed by a plurality of servers. Each node computer 102 is configured to connect to at least one sharing device, and is configured to acquire data collected by the sharing device, for example, the data is a power consumption amount of the sharing device, and each node computer 102 acquires first message data of the sharing device and sends the first consumption data to the queue computer 104; the queue computer 104 receives first message data sent by the node computer 102 and generates a first message queue based on the first message data; the receiving node computer 102 consumes the first message queue to generate second message data; generating a second message queue based on the second message data; the central server 106 is configured to consume the second message queue.
In one embodiment, as shown in fig. 2, there is provided a shared device information processing method, which includes:
at step 210, the node computer sends first message data of the shared device to the queue computer.
Specifically, the queue computer is also called a message queue server, the node computer is also called a node server, the queue computer is connected with a plurality of node computers, and each node computer is connected with at least one sharing device. The first message data is a status parameter or a usage parameter of the shared device in operation, for example, the first message data is a power consumption amount, a power, a running time, whether a fault is generated, or not.
In this step, the node computer acquires the first message data acquired by the sharing device, and sends the first message data to the queue computer. In this embodiment, the Queue computer is configured to generate a Message Queue (MQ) that implements Message delivery with a queuing mechanism. The node computer, in this embodiment, acts as a producer, encapsulating the first message data into a queue array and sending it to the queue computer.
Step 220, the queue computer receives the first message data, and generates a first message queue based on the first message data, where the first message queue includes each of the first message data.
Specifically, the node computer, as a producer, produces array data, i.e., first message data, to the queue computer, such that the queue computer generates a first message queue. The queue computer stores the first message data so that the information data of the shared device is reliably and securely stored.
And 230, the consumer computer consumes the first message queue, generates second message data and sends the second message data to the queue computer.
In this embodiment, the consumer computer consumes a first message queue of the queue computer: the first message data of the first message queue is processed and, under preset conditions, the second message data is generated, and then the consumer computer acts as a producer to send the second message data to the queue computer. It is worth mentioning that the consumer computer may be
In step 240, the queue computer receives the second message data, and generates a second message queue based on the second message data, where the second message queue includes each of the second message data.
In this step, the consumer computer acts as a producer to produce array data, i.e., second message data, to the queue computer, such that the queue computer generates a second message queue.
And step 250, the central server consumes the second message queue.
In this embodiment, the central server consumes the second message queue of the queue computer: second message data of the second message queue is processed.
In the above embodiment, the sharing of the area information of the sharing device is realized based on the message queue, so that the acquisition of the power consumption of the sharing device in an area is realized, and based on the judgment of whether the power consumption exceeds the safety load, the power consumption safety and reliability of the sharing device are improved.
To enable consumption of a first message queue by a consumer computer, in one embodiment, the consumer computer consumes the first message queue, generates second message data, and sends the second message data to the queue computer comprising: the consumer computer acquires the first message data, detects whether the first message data is larger than a preset threshold value, generates the second message data when the first message data is larger than the preset threshold value, and sends the second message data to the queue computer.
In this embodiment, the first message data is a parameter used for reflecting the operation state of the sharing device in the operation process of the sharing device, the preset threshold is a value set on the consumer computer in advance and used for comparing with the first message data, so as to detect whether the operation of the sharing device is abnormal or beyond expectations, the consumer computer detects each first message data, detects whether first message data greater than the preset threshold exists in the first message queue, and when the first message data greater than the preset threshold is detected, the first message data indicate that the operation of the sharing device is abnormal or beyond expectations, so that the consumer computer generates second message data used for reflecting whether the operation of the sharing device is abnormal or beyond expectations, and at this time, the consumer computer serves as a producer to send the second message data to the queue computer so as to produce the second message queue on the queue computer.
For example, when the first message data is the electricity consumption or power of the sharing device, the preset threshold is the electricity consumption peak value or the electricity consumption threshold set on the consumer computer in advance, if the first message data larger than the preset threshold is detected, the first message data indicates that the electricity consumption of the sharing device of the node is larger, the first message data exceeds the expectations, and the risk exists, and the consumer computer generates second message data for reflecting the prompt that the electricity consumption of the sharing device exceeds the electricity consumption peak value.
Through the asynchronous processing process, decoupling is effectively realized, the detection of electricity consumption is not needed through the central server, the pressure of the central server is reduced, and the data of the sharing equipment is stored through the queue server, so that the information data of the sharing equipment is safely and reliably stored.
In one embodiment, the step of the central server consuming the second message queue comprises: the central server acquires each piece of second message data in the second message queue, detects whether each piece of second message data is a preset alarm value, and sends out an alarm signal when the second message data is the preset alarm value.
In this embodiment, the second message data is data generated after the consumer computer consumes the first message data, where the second message data is used to reflect whether the operation of the sharing device is abnormal or unexpected. In this way, the consumption process of the second message queue by the central server is to detect whether each second message data is a preset alarm value, and when the second message data is the preset alarm value, an alarm signal is sent to the sharing device corresponding to the second message data, so that a manager of the sharing device can timely learn that the sharing device is abnormal or operates beyond expectations. For example, if the first message data is the electricity consumption of the sharing device, the second message data is the node identifier and the electricity consumption safety identifier recorded in the sharing device, where the node identifier is used to identify the node where the current electricity consumption is greater than the preset threshold, and the electricity consumption safety identifier is used to identify whether the electricity consumption of the sharing device is safe or not.
In this way, the central server can detect the abnormality of the shared equipment or the abnormality of the electricity consumption through consuming the message queue without detecting the electricity consumption of each node, thereby effectively reducing the pressure and the load of the central server, and realizing the decoupling of the central server through an asynchronous processing mechanism of the message queue.
In one embodiment, the consumer computer is the node computer. In this embodiment, step 230 is for the node computer to consume the first message queue, generate second message data, and send the second message data to the queue computer.
In this embodiment, the node computer acts as a consumer computer that acts as a producer when sending the first message data of the shared device to the queue computer, as a consumer when consuming the first message queue of the queue computer, as a consumer when consuming the first message queue to generate the second message data, and as a producer when sending the second message data to the queue computer. Therefore, the node computer can be used as a consumer or a producer, and different functions are realized in different business processing processes, so that a consumer computer is not required to be independently set up, and the cost is effectively reduced.
In one embodiment, as shown in FIG. 3, there is provided a shared device information processing system comprising: a queue computer 320, a central server 330, and a plurality of node computers 310; in this embodiment, the queue computer is also referred to as an MQ server, and the node computer is also referred to as a node server. Each node computer is respectively connected with the queue computer and the central server, and the queue computer is connected with the central server; each node computer is used for being connected with the sharing equipment, and each node computer is configured to acquire first message data of the sharing equipment and send the first consumption data to a queue computer; the queue computer is configured to receive first message data of the sharing device sent by the node computer, and generate a first message queue based on the first message data; and receiving second message data generated after the consumer computer consumes the first message queue; generating a second message queue based on the second message data; the central server is configured to consume the second message queue.
In this embodiment, the node computer acquires the first message data collected by the sharing device by connecting with the sharing device, and as a producer, sends the first message data to the queue computer, and produces the first message queue on the queue computer. The queue computer generates a first message queue for consumption by the consumer computer to detect whether the first message data of the shared devices on each node is abnormal or beyond expectations, and also generates a second message queue for consumption by the central server to detect the abnormality of the shared devices of each node and issue a warning accordingly.
In the above embodiment, the sharing of the area information of the sharing device is realized based on the message queue, so that the acquisition of the power consumption of the sharing device in an area is realized, and based on the judgment of whether the power consumption exceeds the safety load, the power consumption safety and reliability of the sharing device are improved.
In one embodiment, the first message data is a power consumption of the shared device.
In one embodiment, the consumer computer is the node computer.
In one embodiment, the node computer is further configured to send second message data to the queue computer after consuming the first message queue to generate second message data. Specifically, the node computer is configured to obtain each of the first message data from the queue computer, detect whether each of the first message data is greater than a preset threshold, generate the second message data when the first message data is greater than the preset threshold, and send the second message data to the queue computer.
In this embodiment, the first message data is a parameter used for reflecting the operation state of the sharing device in the operation process of the sharing device, the preset threshold is a value set on the node computer in advance and used for comparing with the first message data, so as to detect whether the operation of the sharing device is abnormal or beyond, the node computer detects each first message data, detects whether first message data greater than the preset threshold exists in the first message queue, and when the first message data greater than the preset threshold is detected, the first message data indicates that the operation of the sharing device is abnormal or beyond, so that the node computer generates second message data used for reflecting whether the operation of the sharing device is abnormal or beyond, at this time, the node computer serves as a producer and sends the second message data to the queue computer to produce the second message queue on the queue computer.
For example, when the first message data is the electricity consumption or power of the sharing device and the preset threshold is the electricity consumption peak value or the electricity consumption threshold set on the node computer in advance, when the first message data larger than the preset threshold is detected, the first message data indicates that the electricity consumption of the sharing device of the node is larger, the first message data exceeds the expectations, and the risk exists, and the node computer generates second message data for reflecting the prompt that the electricity consumption of the sharing device exceeds the electricity consumption peak value.
Through the asynchronous processing process, decoupling is effectively realized, the detection of electricity consumption is not needed through the central server, the pressure of the central server is reduced, and the data of the sharing equipment is stored through the queue server, so that the information data of the sharing equipment is safely and reliably stored.
In one embodiment, the central server is configured to consume the second message queue specifically as: the central server is configured to obtain each second message data in the second message queue from the queue computer, detect whether each second message data is a preset alarm value, and send out an alarm signal when the second message data is the preset alarm value.
In this embodiment, the second message data is data generated after the node computer consumes the first message data, where the second message data is used to reflect whether the operation of the sharing device is abnormal or beyond expectations. In this way, the consumption process of the second message queue by the central server is to detect whether each second message data is a preset alarm value, and when the second message data is the preset alarm value, an alarm signal is sent to the sharing device corresponding to the second message data, so that a manager of the sharing device can timely learn that the sharing device is abnormal or operates beyond expectations. For example, if the first message data is the electricity consumption of the sharing device, the second message data is the node identifier and the electricity consumption safety identifier recorded in the sharing device, where the node identifier is used to identify the node where the current electricity consumption is greater than the preset threshold, and the electricity consumption safety identifier is used to identify whether the electricity consumption of the sharing device is safe or not.
In this way, the central server can detect the abnormality of the shared equipment or the abnormality of the electricity consumption through consuming the message queue without detecting the electricity consumption of each node, thereby effectively reducing the pressure and the load of the central server, and realizing the decoupling of the central server through an asynchronous processing mechanism of the message queue.
In one embodiment, there is provided a shared device information processing method, in this embodiment, the shared device information processing method is applied to a queue computer, which may also be referred to as a message queue server, as shown in fig. 4, and the method includes:
step 410, first message data of a shared device sent by a node computer is received.
Step 420, generating a first message queue based on the first message data, where the first message queue includes each of the first message data.
And step 430, receiving second message data generated after the consumer computer consumes the first message queue.
Step 440, generating a second message queue based on the second message data, wherein the second message queue contains each second message data.
And step 450, sending the second message queue to a central server, and consuming the second message queue by the central server.
In this embodiment, a queue computer is provided, a message queue service is provided by the queue computer, and the sharing of the area information of the shared device is realized based on the message queue, so that the acquisition of the power consumption of the shared device in an area is realized, whether the power consumption exceeds the safety load is judged based on the acquisition, the power consumption safety and reliability of the shared device are improved, and in addition, the decoupling of the node computer and the central server is effectively promoted by the asynchronous processing mechanism of the message queue computer on the data, and the pressure and load of the central server can be effectively reduced.
In one embodiment, the first message data is a power consumption of the shared device.
In one embodiment, the consumer computer is the node computer.
In one embodiment, the step of receiving second message data generated after the consumer computer consumed the first message queue comprises: the second message queue is sent to the node computer, the node computer acquires the first message data, detects whether the first message data is larger than a preset threshold value, and generates the second message data when the first message data is larger than the preset threshold value; and receiving the second message data generated after the node computer consumes the first message queue.
The following is a specific example:
the method is further described in the embodiment applied to the field of shared home appliances, and information sharing of shared equipment is achieved for the area used by the shared home appliances. In the application, a node server is deployed on each node, each node server is connected with each sharing device of the node, the node server is the node computer of the above embodiment, each node server is connected with an MQ (Message Queue) server, the MQ server is the Queue computer of the above embodiment, the MQ server provides an MQ service, each node server is also connected with a central server, and the MQ server is connected with the central server.
The shared device service conditions of all regional child node servers are received through the MQ service, so that the condition of the power consumption of the shared device can be realized, further whether the follow-up processing is used for controlling the shared device is further carried out, and therefore the normal use of other devices in the building is realized, and the specific implementation scheme is shown in combination with fig. 3 and 7:
the whole server architecture design is divided into three parts, namely a node server, an MQ server and a center server.
The node servers are set for different areas, are not only used for acquiring the electricity consumption of shared household appliances in the whole area, but also greatly reduce the flow peak clipping of the central server, effectively realize decoupling, and finally realize the efficient operation of the central server without influencing the normal operation of other servers due to the abnormality of one area server.
The MQ server is used as an intermediate piece of the whole architecture, and the electricity consumption of each node area is obtained and stored in real time through the MQ server.
The central server is node data for consuming the MQ server by a real-time thread, when the electricity consumption of the node is higher than the electricity consumption peak value, an alarm signal is automatically triggered, all the electricity consumption conditions of the sharing equipment corresponding to the current node are simultaneously sent to an administrator of the related sharing household appliances of the corresponding node, and then the administrator can perform related control on the current equipment at a node administrator interface so as to realize normal electricity consumption of the whole building.
In the embodiment, an efficient asynchronous processing mechanism of the MQ is adopted, so that the pressure of the server is effectively reduced, and meanwhile, the decoupling of the node server and the center server is effectively realized.
The specific implementation process is as follows:
the administrator manually inputs a power consumption peak value S in a management page of the node server, and the power consumption peak value S is preset on the node server, namely the power consumption peak value of the corresponding node area, and the power consumption peak value S is a preset threshold value. And starting a node server, wherein the node server is communicated with each sharing device to acquire the electricity consumption of the sharing device, and the electricity consumption of the sharing device is the first message data. When sharing equipment is used in the node area, the node server packages the real-time electricity consumption into an int-type array, and the int-type array is used as an producer to produce array data to the MQ, and the process is that the node server obtains first message data and sends the first message data to the MQ server, and a first message queue is generated on the MQ server.
In this embodiment, the node server includes a terminal device acquisition service layer and a node electricity consumption analysis service layer. In the above process, the node server is used as a producer of the first message queue, and the function of the producer is realized by the service layer collected by the terminal equipment.
And then, the node electricity consumption analysis service layer of the node server consumes the array data on the MQ server in real time and calculates the current total electricity consumption of the node in real time. And when the total power consumption of the node is detected to be larger than the power consumption peak value of the current node, packaging the alarm signal into a MAP object. The process is that the node server consumes the first message queue, detects whether the first message data is larger than a preset threshold value, generates second message data when the first message data is larger than the preset threshold value, and the MAP object is the second message data. In this process, the node server acts as a consumer of the first message queue, and the function of the consumer is implemented by the node electricity consumption analysis service layer.
In this embodiment, the MAP object adopts a key-value structure, and is designed to distinguish each node area, where the key represents a corresponding node, that is, a node identifier, and the power consumption status is represented by a power consumption status by a power consumption default value of 0, where the power consumption status is represented by security when the power consumption status is 0, and the alarm is signaled when the power consumption status is 1. The node server then generates a second message queue as a producer to the MQ server based on the MAP object and the node electricity usage status data.
And finally, the central node server processes the service by consuming the node electricity consumption status data of the MQ server in real time, and when the obtained second message queue of the MQ server is analyzed to obtain a corresponding key-value object value of 1, the central node server indicates that the electricity consumption of the node is higher, and sends an early warning prompt to a corresponding node sharing household appliance manager, so that the normal electricity consumption of the building can be effectively realized.
In one embodiment, as shown in fig. 5, there is provided a shared device information processing apparatus including:
a first message receiving module 510, configured to receive first message data of a sharing device sent by a node computer;
a first queue generating module 520, configured to generate a first message queue based on the first message data, where the first message queue includes each of the first message data;
a second message receiving module 530, configured to receive second message data generated after the consumer computer consumes the first message queue;
a second queue generating module 540, configured to generate a second message queue based on the second message data, where the second message queue includes each of the second message data;
And a second queue consumption module 550, configured to send the second message queue to a central server, and consume the second message queue by the central server.
In one embodiment, the first message data is a power consumption of the shared device.
In one embodiment, the consumer computer is the node computer.
The specific limitation regarding the shared device information processing apparatus may be referred to as limitation of the shared device information processing method implemented on the queue-based computer hereinabove, and will not be described herein. Each unit in the above-described shared device information processing apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The units can be embedded in hardware or independent of a processor in the computer equipment, and can also be stored in a memory in the computer equipment in a software mode, so that the processor can call and execute the operations corresponding to the units.
In one embodiment, a computer device is provided. The internal structure thereof can be shown in fig. 6. The computer device includes a processor, a memory, a network 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 includes a non-volatile 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 the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is for communicating with the node computer and the central server over a network. The computer program, when executed by a processor, implements a shared device information processing method. 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, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory storing a computer program and a processor that when executing the computer program performs the steps of:
receiving first message data of sharing equipment sent by a node computer;
generating a first message queue based on the first message data, wherein the first message queue contains the first message data;
receiving second message data generated after the consumer computer consumes the first message queue;
generating a second message queue based on the second message data, wherein the second message queue contains each second message data;
and sending the second message queue to a central server, and consuming the second message queue by the central server.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving first message data of sharing equipment sent by a node computer;
generating a first message queue based on the first message data, wherein the first message queue contains the first message data;
receiving second message data generated after the consumer computer consumes the first message queue;
generating a second message queue based on the second message data, wherein the second message queue contains each second message data;
and sending the second message queue to a central server, and consuming the second message queue by the central server.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (7)

1. A shared device information processing method, characterized by comprising:
the node computer sends first message data of the sharing device to the queue computer;
the queue computer receives the first message data and generates a first message queue based on the first message data, wherein the first message queue contains the first message data;
The consumer computer consumes the first message queue, generates second message data and sends the second message data to the queue computer;
the queue computer receives the second message data and generates a second message queue based on the second message data, wherein the second message queue contains the second message data;
the central server consumes the second message queue;
the step of the consumer computer consuming the first message queue, generating second message data, and sending the second message data to the queue computer includes:
the consumer computer acquires the first message data, detects whether the first message data is larger than a preset threshold value, generates the second message data when the first message data is larger than the preset threshold value, and sends the second message data to the queue computer;
the step of the central server consuming the second message queue includes:
the central server acquires each piece of second message data in the second message queue, detects whether each piece of second message data is a preset alarm value, and sends out an alarm signal when the second message data is the preset alarm value;
Wherein the consumer computer is the node computer.
2. The method of claim 1, wherein the first message data is a power usage of a shared device.
3. A shared device information processing system, comprising: a queue computer, a central server, and a plurality of node computers; each node computer is respectively connected with the queue computer and the central server, and the queue computer is connected with the central server;
each node computer is used for being connected with the sharing equipment, and each node computer is configured to acquire first message data of the sharing equipment and send the first message data to the queue computer;
the queue computer is configured to receive first message data of the sharing device sent by the node computer, and generate a first message queue based on the first message data; and receiving second message data generated after the consumer computer consumes the first message queue; generating a second message queue based on the second message data;
the central server is configured to consume the second message queue;
The consumer computer is configured to obtain each of the first message data, detect whether each of the first message data is greater than a preset threshold, generate the second message data when the first message data is greater than the preset threshold, and send the second message data to the queue computer;
the central server is configured to acquire each piece of second message data in the second message queue from the queue computer, detect whether each piece of second message data is a preset alarm value, and send out an alarm signal when the second message data is the preset alarm value;
wherein the consumer computer is the node computer.
4. A shared device information processing method, characterized by comprising:
receiving first message data of sharing equipment sent by a node computer;
generating a first message queue based on the first message data, wherein the first message queue contains the first message data;
receiving second message data generated after the consumer computer consumes the first message queue;
generating a second message queue based on the second message data, wherein the second message queue contains each second message data;
The second message queue is sent to a central server, the central server consumes the second message queue, wherein the central server acquires each piece of second message data in the second message queue, detects whether each piece of second message data is a preset alarm value, and sends out an alarm signal when the second message data is the preset alarm value;
the step of receiving second message data generated after the consumer computer consumed the first message queue comprises:
the second message queue is sent to the consumer computer, the consumer computer obtains the first message data, whether the first message data are larger than a preset threshold value is detected, and when the first message data are larger than the preset threshold value, the second message data are generated; receiving the second message data generated after the consumer computer consumes the first message queue;
wherein the consumer computer is the node computer.
5. A shared device information processing apparatus, characterized by comprising:
a first message receiving module, configured to receive first message data of a sharing device sent by a node computer;
A first queue generating module, configured to generate a first message queue based on the first message data, where the first message queue includes each first message data;
the second message receiving module is used for receiving second message data generated after the consumer computer consumes the first message queue;
a second queue generating module, configured to generate a second message queue based on the second message data, where the second message queue includes each second message data;
the second queue consumption module is used for sending the second message queue to a central server, and consuming the second message queue by the central server, wherein the central server acquires each piece of second message data in the second message queue, detects whether each piece of second message data is a preset alarm value, and sends out an alarm signal when the second message data is the preset alarm value;
the second message receiving module is further configured to send the second message queue to the consumer computer, obtain each piece of first message data by the consumer computer, detect whether each piece of first message data is greater than a preset threshold, and generate the second message data when the first message data is greater than the preset threshold; receiving the second message data generated after the consumer computer consumes the first message queue;
Wherein the consumer computer is the node computer.
6. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of claim 4 when executing the computer program.
7. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of claim 4.
CN202010652350.1A 2020-07-08 2020-07-08 Shared device information processing method, system, device, computer and storage medium Active CN111880945B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010652350.1A CN111880945B (en) 2020-07-08 2020-07-08 Shared device information processing method, system, device, computer and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010652350.1A CN111880945B (en) 2020-07-08 2020-07-08 Shared device information processing method, system, device, computer and storage medium

Publications (2)

Publication Number Publication Date
CN111880945A CN111880945A (en) 2020-11-03
CN111880945B true CN111880945B (en) 2023-11-24

Family

ID=73150514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010652350.1A Active CN111880945B (en) 2020-07-08 2020-07-08 Shared device information processing method, system, device, computer and storage medium

Country Status (1)

Country Link
CN (1) CN111880945B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113742112B (en) * 2021-09-15 2024-04-16 武汉联影智融医疗科技有限公司 Electrocardiogram image generation method, system and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465732A (en) * 2017-07-28 2017-12-12 国网江西省电力公司南昌供电分公司 Intelligent electricity supplying and using system and method based on shared theory
CN109272665A (en) * 2018-09-11 2019-01-25 深圳数位科技有限公司 A kind of application method and system of shared device
CN109412833A (en) * 2018-09-11 2019-03-01 深圳数位科技有限公司 A kind of management system and method for shared device
CN111176808A (en) * 2019-12-12 2020-05-19 北京洪泰文旅科技股份有限公司 Intelligent equipment sharing method and system for document travel industry

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190102223A1 (en) * 2017-09-29 2019-04-04 Niall Power System, Apparatus And Method For Real-Time Activated Scheduling In A Queue Management Device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465732A (en) * 2017-07-28 2017-12-12 国网江西省电力公司南昌供电分公司 Intelligent electricity supplying and using system and method based on shared theory
CN109272665A (en) * 2018-09-11 2019-01-25 深圳数位科技有限公司 A kind of application method and system of shared device
CN109412833A (en) * 2018-09-11 2019-03-01 深圳数位科技有限公司 A kind of management system and method for shared device
CN111176808A (en) * 2019-12-12 2020-05-19 北京洪泰文旅科技股份有限公司 Intelligent equipment sharing method and system for document travel industry

Also Published As

Publication number Publication date
CN111880945A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN108834086B (en) Method and device for sending short message, computer equipment and storage medium
CN108872762B (en) Electronic equipment leakage detection method and device, electronic equipment and storage medium
CN105739668A (en) Power management method and power management system of notebook computers
US11662803B2 (en) Control method, apparatus, and electronic device
CN115277566B (en) Load balancing method and device for data access, computer equipment and medium
WO2009051336A1 (en) Apparatus and method for managing terminal users
CN109634802B (en) Process monitoring method and terminal equipment
CN111880945B (en) Shared device information processing method, system, device, computer and storage medium
CN115314416B (en) Network card state automatic detection method and device, electronic equipment and storage medium
CN110597693B (en) Alarm information sending method, device, equipment, system and storage medium
CN112905399A (en) Data processing method, abnormal situation prediction method and related product
CN110674149B (en) Service data processing method and device, computer equipment and storage medium
CN111223007A (en) User abnormal electricity utilization behavior analysis early warning method, device, equipment and medium
CN113608930B (en) System chip and electronic device
CN117499412A (en) Cluster optimization processing method based on high-availability link and related equipment thereof
CN110838940A (en) Underground cable inspection task configuration method and device
CN112303811B (en) Processing method, device and system for air conditioner operation data, air conditioner and storage medium
CN115587086B (en) Data interaction method and device, computer equipment and storage medium
CN113553588A (en) Terminal software management method
CN112231188A (en) Log capture method and device, computer equipment and storage medium
CN109960769B (en) Webpage view display method and device, computer equipment and storage medium
CN110879757A (en) Restarting method and device for abnormal operation of client and computer equipment
CN117033084B (en) Virtual machine backup method and device, electronic equipment and storage medium
CN112084827B (en) Data processing method and device
CN114020561B (en) Fault reporting method, system, 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