Unlock instant, AI-driven research and patent intelligence for your innovation.

Asynchronous socket communication method and mobile phone positioning system using same

A communication method and positioning system technology, applied in the field of communication, can solve problems such as message blocking, message loss, and abnormal communication, and achieve the effect of speeding up

Active Publication Date: 2015-01-28
上海中兴易联通讯股份有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Using synchronous socket will cause message blockage and abnormal communication when the network situation is not good; if it is not added to the list, the communication server module will stop, and the message that has not been sent will be lost; if the message list is too small, it will cause The list is full and the message is blocked, and the thread is always waiting for the message and it will also be blocked

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
  • Asynchronous socket communication method and mobile phone positioning system using same
  • Asynchronous socket communication method and mobile phone positioning system using same

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] Embodiments of the present invention are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific examples, and various modifications and changes can be made to the details in this specification based on different viewpoints and applications without departing from the purpose of the present invention.

[0018] The asynchronous socket communication method of the present invention is applied in the field of asynchronous socket communication.

[0019] see figure 1 , is a flow chart showing the asynchronous socket communication method of the present invention, as shown in the figure, a kind of asynchronous socket communication method of the present embodiment comprises:

[0020] Step S11, the receiving thread continues to receive data sent by ano...

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 an asynchronous socket communication method which comprises the following steps of: receiving a sent message by a receiving thread through an asynchronous socket; then, controlling the message list through semaphore; if the length of the message length does not reach the set maximum valve, then storing the message in the message list; if the length of the message length reaches the set maximum valve, locking the message list through the semaphore, taking the message out of the message list, sending, awakening the message list to continue receiving messages by the semaphore after sending, and taking the listed messages to be sent to a target node active module by a sending thread continuously. The message is stored in the message list by using the method, and the transmitted socket message can not be lost; all messages in the list are sent at a time, and the speed of transmission is quickened; the length of a queue is adjusted according to actual situation so as to ensure that a socket message queue can not be blocked under the situation of an unstable network; and the positioning function of a mobile phone positioning system using asynchronous socket communication can deal with the special situation of the unstable network on the basis of the above advantages.

Description

technical field [0001] The invention relates to the communication field, in particular to asynchronous socket communication and a mobile phone positioning system using the method. Background technique [0002] Communication technology is changing with each passing day, especially wireless communication technology, which is particularly important in today's period of rapid development of the information industry. As for the application of wireless communication technology, it has naturally become an important direction of scientific and technological development. Among them, the use of wireless communication for positioning is an important application now and even in the future. [0003] In addition, with the development of network communication technology, the application of socket communication is more and more extensive. How to ensure the normal communication of socket without data loss and how to ensure communication in the case of network vibration is a very important is...

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 Patents(China)
IPC IPC(8): H04L12/70H04W4/12H04W64/00
Inventor 吕志花
Owner 上海中兴易联通讯股份有限公司