Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method and device for obtaining peer device ip address in Android wifi-direct connection

A peer-to-peer device and IP address technology, applied in the field of communication, can solve problems such as complicated acquisition methods and dependence on peer-to-peer devices, and achieve simple and effective results

Active Publication Date: 2021-09-21
ALLWINNER TECH CO LTD
View PDF5 Cites 0 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 obtaining peer device ip address in Android wifi-direct connection
  • Method and device for obtaining peer device ip address in Android wifi-direct connection
  • Method and device for obtaining peer device ip address 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 obtaining an IP address of a peer device in an Android WiFi-Direct connection. The method includes the following steps: establishing a WiFi-Direct connection with the peer device; requesting to obtain peer-to-peer network group information, according to The corresponding network group information determines the corresponding MAC address of the peer device; searches the ARP node address cache table according to the MAC address and the keyword representing the point-to-point connection, and determines the corresponding IP address of the peer device. This method does not change the native WiFi-Direct framework of Android, 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; the method is simple and effective, and the IP address of the peer device can be guaranteed to be obtained under 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 Patents(China)
IPC IPC(8): H04L29/12H04W84/12
CPCH04L61/103H04W84/12
Inventor 柳建双
Owner ALLWINNER TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More