Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Communication method, device and server for Internet of things

A communication method and technology of a communication device, which are applied in the field of communication, can solve the problems of frequent equipment packets, the inability of select and epoll models to meet socket read and write requirements, and the blocking of server service thread processing, and achieve the effect of fast processing speed.

Active Publication Date: 2015-06-03
QINGDAO HAIER INTELLIGENT HOME TECH CO LTD
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a communication method, device and server of the Internet of Things, which at least solves the problem that in the prior art, the single-threaded select and epoll models cannot meet the reading and writing requirements of the socket of the system, and the packets sent by the device are very frequent. The problem of blocking the processing of server business threads

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication method, device and server for Internet of things
  • Communication method, device and server for Internet of things
  • Communication method, device and server for Internet of things

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to solve the problem in the prior art that the single-thread-based select and epoll models cannot meet the reading and writing requirements of the socket of the system, and the packets sent by the device are very frequent, which will block the processing of the server business thread, the present invention provides a The communication method, device and server of the Internet of Things will be further described in detail below in conjunction with the accompanying drawings and embodiments of the present invention. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0028] An embodiment of the present invention provides a communication method for the Internet of Things, the process of which is as follows figure 1 As shown, including steps S102 to S106:

[0029] S102. Set multiple first Selectors to receive connection requests from multiple threads in the connec...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a communication method, a device and a server for Internet of things. The method comprises the following steps: setting a plurality of first selectors so as to receive a connection request from a connection queue in a multithreads manner; determining one first selector to receive the connection request which is currently positioned at the utmost front end of the connection queue according to the amount of data received by the first selectors; establishing the connection to the side of equipment according to the connection request. According to the embodiment of the invention, the plurality of selectors are arranged, the selectors can receive the connection request from the connection queue in a multithreads manner, and further multiple connection requests are processed in parallel, so that the processing speed of the server is higher, and the problems that select and epoll models based on a single thread cannot satisfy the socket read and write requirements of the system, and the professional work thread of the server is blocked as packages are frequently transmitted by the equipment in the prior art are solved.

Description

technical field [0001] The present invention relates to the communication field, in particular to a communication method, device and server of the Internet of Things. Background technique [0002] In recent years, with the development of the Internet of Things, more and more terminals have network functions and need to be connected to the server. Users can remotely operate terminal devices through the server. The server needs an efficient and stable communication system to support the connection of devices and Send and receive data. [0003] Most of the current communication systems have the following disadvantages: [0004] (1) As the number of connected devices increases, the operating pressure of the communication system will increase. The single-threaded select and epoll models cannot meet the system's socket read and write requirements, and the packets sent by the device are very frequent, which will block the server Processing of business threads; (2) The data packet...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
Inventor 张保新张诗彦王运涛
Owner QINGDAO HAIER INTELLIGENT HOME TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products