Electricity consumption data acquisition and pre-processing method and system

Electricity consumption data acquisition and pre-processing method and system

  • CN 104,243,481 A
  • Filed: 09/24/2014
  • Published: 12/24/2014
  • Est. Priority Date: 09/24/2014
  • Status: Active Application
First Claim
Patent Images

1. power information gathers a method for advance data process, and it is characterized in that, described method comprises(1) describe with epoll_create () function creation file, and the socket descriptor number of setting management;

  • (2) receiving thread associated with epoll is created;

    (3) socket descriptor ListenSock is intercepted in establishment, and is set as non-blocking mode, calls Listen () function and intercepts with or without new connection request on socket;

    (4) if any new connection request, call accept () function, add client socket descriptor to epoll_data association, and to set this descriptor be unblock, in epoll_event structure, arrange event type to be processed is read and write;

    (5) as socket descriptor has data readable, then this socket descriptor is added readable queue, and notify that receiving thread reads in data, the data received are put in the chained list receiving data, the packet of feedback is put into and sends in data link table, wait thread to be sent to send.

View all claims
    ×
    ×

    Thank you for your feedback

    ×
    ×