Usb
READ: PID vid--can only determine the device
Get the phone driver
Socket Fixed port communication
Wifi
PC in LAN, UDP packet (entire network segment)
Bluetooth
Paired
Bluetoothsocket
If zoomed in: can be divided into two major categories
1. Large data volume, high real-time transmission requirements
Chat Tools
Stock Trading
Precious metals Trading
2.
Small data volume, real-time transmission requirements are not high
Message push
Precision Marketing
How to implement method one
Mobile phone side:
Socket: Long link
The original socket was sent out close
Mobile phone about 1 minutes idle, hand recycling connection,
Harassment of the server every 30 seconds ensures a smooth connection
How to implement the method two:
Write a timer on the phone
10 minutes
1-hour data transmission UDP
The packet needs to contain the authentication information app + User ID
The server then returns a package
Application of socket on mobile phone