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

Method and device for acquiring IP address of peer equipment in Android WiFi-Direct connection

A technology of peer-to-peer devices and IP addresses, applied in the field of communications, can solve the problems of complex acquisition methods and dependence on peer-to-peer devices, etc.

Active Publication Date: 2019-07-19
ALLWINNER TECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] Aiming at the deficiencies in the prior art, the present invention proposes a method and equipment for obtaining the IP address of a peer device in an Android WiFi-Direct connection. The method does not change the native WiFi-Direct framework of Android, and the MAC address and The key word representing the point-to-point connection retrieves the ARP node address cache table, directly obtains the IP address of the peer device, and solves the problems that the existing method of obtaining the IP address of the peer device needs to be complicated, needs to assign device roles, and passively depends on the peer device

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
  • Method and device for acquiring IP address of peer equipment in Android WiFi-Direct connection
  • Method and device for acquiring IP address of peer equipment in Android WiFi-Direct connection
  • Method and device for acquiring IP address of peer equipment in Android WiFi-Direct connection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Such as figure 1 As shown, a method for obtaining the IP address of a peer device in an Android WiFi-Direct connection includes the following steps:

[0037] S1: Establish a WiFi-Direct connection with a peer device.

[0038] S2: requesting to obtain the peer-to-peer network group information, and determining the corresponding MAC address of the peer device according to the peer-to-peer network group information.

[0039] S3: Retrieve the ARP node address cache table according to the MAC address and the keyword representing the point-to-point connection, and determine the corresponding IP address of the peer device.

[0040] This method does not change the Android native WiFi-Direct framework, retrieves the ARP node address cache table through the MAC address of the peer device and the keyword representing the point-to-point connection, and directly obtains the IP address of the peer device; and does not depend on the peer device, no need Assign the role of the device...

Embodiment 2

[0061] This embodiment provides a device for obtaining the IP address of a peer-to-peer device in an Android WiFi-Direct connection, including: a memory, a processor, and a computing program stored on the memory and operable on the processor, and the computing program is executed by the processor Steps S1-S3 of the method in Embodiment 1 are realized during execution.

[0062] Specifically, when the calculation program is executed by the processor, steps S21-S23 of the method in Embodiment 1 are also implemented.

[0063] Specifically, when the calculation program is executed by the processor, steps S31-S34 of the method in Embodiment 1 are also implemented.

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 method and a device for acquiring an IP address of peer equipment in Android WiFi-Direct connection. The method comprises the following steps: establishing WiFi-Direct connection with the peer equipment; requesting to obtain peer-to-peer network group information, and determining an MAC address corresponding to the peer-to-peer device according to the peer-to-peer networkgroup information; and retrieving an ARP node address cache table according to the MAC address and the keyword representing the point-to-point connection, and determining a corresponding IP address of the peer-to-peer device. According to the method, an Android native WiFi-Direct framework is not changed, an ARP node address cache table is retrieved through MAC addresses of peer-to-peer equipmentand keywords representing point-to-point connection, and the IP addresses of the peer-to-peer equipment are directly obtained. The method does not depend on peer-to-peer equipment, and does not needto distribute roles of the equipment. The method is simple and effective, and can ensure that the IP address of the peer-to-peer device can be obtained in the WiFi-Direct connection state.

Description

technical field [0001] The present invention relates to the field of communication technologies, in particular to a method and device for obtaining an IP address of a peer device in an Android WiFi-Direct connection. Background technique [0002] The WiFi-Direct standard refers to allowing devices in a wireless network to connect to each other without going through a wireless router. Similar to Bluetooth technology, this standard allows wireless devices to be interconnected in the form of peer-to-peer (P2P), and has a significant improvement in transmission speed and transmission distance compared to Bluetooth. [0003] Under the native WiFi-Direct framework of the Android (Android) system, after the connection between two devices is successful, when the local device is in the role of a group user (Group Client, GC for short), its peer device is in the role of the group owner ( Group Owner (GO for short) role, the local device can directly obtain the IP address of the peer ...

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/12H04W84/12
CPCH04L61/103H04W84/12
Inventor 柳建双
Owner ALLWINNER TECH CO LTD