Community
cancel
Showing results for 
Search instead for 
Did you mean: 
sk23
New Contributor II
2,169 Views

Edison to Edison communication using ad-hoc mode

Hi ,

Edison to Edison communication using ad-hoc mode .

wpa_supplicant -v

wpa_supplicant v2.1-devel

Copyright (c) 2003-2013, Jouni Malinen <</span>mailto:j@w1.fi j@w1.fi> and contributors

Please let me know the details.

15 Replies
idata
Community Manager
70 Views

Hello IoT_srinivas,

 

 

I'll try to help you create an ad-hoc connection.

 

As you can see in section 4.2.4 of the Wi-Fi User Guide ( http://www.intel.com/content/www/us/en/support/boards-and-kits/000005916.html), ad-hoc is indeed supported. The user guide explains how to create a connection of this kind in the section I mentioned previously. Could you please try the steps mentioned in there?

 

 

Let us know how it goes.

 

-Peter.
sk23
New Contributor II
70 Views

Hi Peter ,

I tried wpacli_ibss_open.sh wi-fi guide 4.2.4 of the Wi-Fi User Guide .

sh test-adhoc.sh Edison is same as wpacli_ibss_open

I did not get any output.

please suggest any thing wrong is the below script

if [ $# != 1 ] ; then

echo "$0 "

exit

fi

$rmt wpa_cli -iwlan0 disconnect

$rmt wpa_cli -iwlan0 disconnect

$rmt wpa_cli -iwlan0 remove_network all

$rmt wpa_cli -iwlan0 add_network

$rmt wpa_cli -iwlan0 set_network 0 frequency 2412

$rmt wpa_cli -iwlan0 set_network 0 mode 1

if [! -n "$rmt"] ; then

$rmt wpa_cli -iwlan0 set_network 0 ssid \"$1\"

else

$rmt wpa_cli -iwlan0 set_network 0 ssid '\"'$1'\"'

fi

$rmt wpa_cli -iwlan0 set_network 0 auth_alg OPEN

$rmt wpa_cli -iwlan0 set_network 0 key_mgmt NONE

$rmt wpa_cli -iwlan0 set_network 0 scan_ssid 1

$rmt wpa_cli -iwlan0 select_network 0

$rmt wpa_cli -iwlan0 enable_network 0

$rmt wpa_cli -iwlan0 status

idata
Community Manager
70 Views

There are small errors with the code you posted above. In shell scripts spaces are very important and I believe they are the reason why the script is not working. Try the following code:

if [ $# != 1 ] ; then

 

echo "$0 "

 

exit

 

fi

 

$rmt wpa_cli -iwlan0 disconnect

 

$rmt wpa_cli -iwlan0 remove_network all

 

$rmt wpa_cli -iwlan0 add_network

 

$rmt wpa_cli -iwlan0 set_network 0 frequency 2412

 

$rmt wpa_cli -iwlan0 set_network 0 mode 1

 

if [ ! -n "$rmt" ] ; then

 

$rmt wpa_cli -iwlan0 set_network 0 ssid \"$1\"

 

else

 

$rmt wpa_cli -iwlan0 set_network 0 ssid '\"'$1'\"'

 

fi

 

$rmt wpa_cli -iwlan0 set_network 0 auth_alg OPEN

 

$rmt wpa_cli -iwlan0 set_network 0 key_mgmt NONE

 

$rmt wpa_cli -iwlan0 set_network 0 scan_ssid 1

 

$rmt wpa_cli -iwlan0 select_network 0

 

$rmt wpa_cli -iwlan0 enable_network 0

 

$rmt wpa_cli -iwlan0 status

I tested it and it works correctly. Also, once you copy the file to your Edison, please verify that the format does not change, this has happened to me in the past and it could also be happening to you.

Let me know how it goes.

 

-Peter.
sk23
New Contributor II
70 Views

Hi Peter ,

Here is the code and screen shoot.

I tried as per your inputs ,But It is not working for me.

Please provide some debugging method for ad-hoc network.

uname -r

3.10.98-poky-edison+

root@xxx:~# uname -a

Linux xxx 3.10.98-poky-edison+ # 1 SMP PREEMPT Mon Jun 6 14:32:08 PDT 2016 i686 GNU/Linux

Regards,

Srinivas

idata
Community Manager
70 Views

I find that very strange, I just ran the script myself and it worked as expected. Did you modify anything on your image? The output I received can be seen in the screenshot bellow:

I'll be waiting for your response.

 

-Peter.
sk23
New Contributor II
70 Views

Hi Peter ,

Thank you for your response.

I didn't modified any thing on bsp or kernel.

I am following the below process for booting the board.

http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-edison/about/ meta-intel-edison - Layer for the Intel Edison Development Platform

in short form here is the steps.

Quick Start

===========

1- Prepare your workspace:

$ mkdir my_Edison_Workspace

2- Get this layer:

$ git clone git://git.yoctoproject.org/meta-intel-edison

3- Make things easier with 'make':

$ ln -s meta-intel-edison/utils/Makefile.mk Makefile

4- Download all the needed dependencies:

$ make setup

5- Build Intel Edison Yocto distribution:

$ make edison-image

6- Flash the board:

$ make flash

please do need full.

idata
Community Manager
70 Views

Hello IoT_srinivas,

 

 

I'm currently building the image with the steps you provided us in the previous post. Please let me check if I can replicate the issue, I'll update you as soon as it finishes building.

 

 

-Peter.
idata
Community Manager
70 Views

Hello IoT_srinivas,

As I mentioned, I was building the image with the instructions you provided above, nevertheless, the image building failed with the error below. Is there any additional steps you took?

Let me know.

 

-Peter.
sk23
New Contributor II
70 Views

Hi Peter ,

Please try below steps:

Is there any way to add patch for the issue ?

In short, edit the file ~/edison-src/out/linux64/poky/meta-intel-iot-middleware/recipes-connectivity/paho-mqtt/paho-mqtt_3.1.bb

In the line SRC_URI do:

SRC_URI = "git://github.com/eclipse/paho.mqtt.c.git;protocol=http \

file://makefile.patch \

"

idata
Community Manager
70 Views

Thank you for providing me this information. I have made the modification you mentioned to the recipe, I'm currently building the image. I will update you if it finishes correctly or in case it has any issues.

 

 

-Peter.
idata
Community Manager
70 Views

Hi IoT_srinivas,

I just finished building the image, so, I proceeded to flash it on my Edison and to test wpacli_ibss_open.sh. I was not able to replicate the issue you describe, please take a look at the screenshot below.

Please let me know if there is anything else we need to do to replicate the issue.

 

-Peter.
sk23
New Contributor II
70 Views

Hi Peter ,

Adhoc is working the problem with Edison. Edison is not working.

I have a question - what is the minimum and maximum range ad-hoc network for Intel Edison ?

Thank you.

idata
Community Manager
70 Views

The ad-hoc distance range is the same as the Wi-Fi range (as it uses the same interface and antenna), in optimal conditions it might reach up to 32 meters (105 feet) according to the standard.

 

 

I'm afraid I don't understand your first question. Could you please explain me what you meant by "...Adhoc is working the problem with Edison. Edison is not working..."?

 

 

I will be waiting for your reply.

 

-Peter.
sk23
New Contributor II
70 Views

Hi Peter ,

Some hardware issue on Edison and we find out using GPIO testing.

Can you get warranty.I contacted many times for customer support.The support team said that, you will receive an email from Intel. till now I didn't get any mail for warranty.

Thank you.

idata
Community Manager
70 Views

I understand, I have sent you a private message in order to help you with this issue. Please reply to me there.

 

 

-Peter.
Reply