Method and device for discovering local area network equipment
A technology of a local area network device and a discovery method, applied in the field of a local area network device discovery method and device, can solve problems such as slow set-top box process, and achieve the effect of fast discovery speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0094] figure 2 is a flow chart of a method for discovering local area network devices according to an exemplary embodiment, as shown in figure 2 As shown, the local area network device discovery method includes the following steps.
[0095] In step S21, when the device discovery function of the mobile phone is activated, the mobile phone sends multicast messages through the three sets of protocols A, B and C respectively.
[0096] In step S22, device 1 first receives the A-protocol multicast message sent by the mobile phone, and determines that its own A-monitoring port is valid, and feeds back an A-multicast response message to the mobile phone.
[0097] It is worth noting that, in this embodiment, the multicast message received first by the device 1 is an A-protocol multicast message as an example for illustration. In practical applications, mobile phones have different frequencies and strategies for sending multicast messages of different protocols, and the sequence of...
example 2
[0105] image 3 is a flow chart of a method for discovering local area network devices according to another exemplary embodiment, as shown in image 3 As shown, the local area network device discovery method may also include the following steps.
[0106] Steps S31-S33 are the same as above-mentioned steps S21-S23.
[0107] In step S34, the A multicast response message fed back by device 1 to the mobile phone includes the IP address of device 1, and the mobile phone directly connects to the listening port B and listening port C on device 1 through TCP according to the IP address.
[0108] In step S35, when the connection is successful, the mobile phone determines that the device 1 supports the corresponding protocol.
[0109] In the above two examples, after discovering a protocol supported by the device, no matter whether the monitoring port is valid through point-to-point detection or through TCP connection, the device in the LAN and the protocol supported by the device can...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 