Inconsistency with the Source code

29 views
Skip to first unread message

MC

unread,
Sep 17, 2014, 2:43:14 PM9/17/14
to spa...@googlegroups.com
Hi Stocker,

I am trying build the source code and use that apk on Nexus 7. Here are the problems that I am facing.

1. Many times the ad-hoc mode is not turning on. When I download from the app store the ad-hoc mode is turning on.
2. When i try to stop and restart the ad-hoc mode, I am getting two icons on the screen one is grey start icon and one is green stop icon and the toast message saying device is in unknown state. When i click the start button still it remains the same. No change.

when i do the same with the app that is downloaded i am not facing any issue. I am able to stop and start the adhoc mode.

3. When i change the protocol also same issue as problem 2. I think when adhoc mode is restarting i am getting that problem. I didn't modify source code. Why am I facing problem with the source code?

Do I need to pull code from any other source?


Regards,
MC

Message has been deleted
Message has been deleted

Jeffrey Robble

unread,
Sep 19, 2014, 9:18:33 AM9/19/14
to spa...@googlegroups.com, lavanyat...@gmail.com, lavan...@gmail.com
Hi Lavanya,

1. Are you using a supported device? 
2. Is your device rooted?
3. Are you using a SPAN-enabled custom kernel?

Description
Welcome to the world of smart phone ad-hoc networking! This app turns your phone or tablet into a peer-to-peer communication device. You don't need a cell plan, access point, or even an Internet connection, just a bunch of friends with ad-hoc-enabled devices of their own.

Requirements:
- Root access
- Kernel which supports wireless extensions (wext)
- Wireless device driver which supports ad-hoc mode (Broadcom works well)

Supported devices:
- Samsung Galaxy Tab 10.1
- Samsung Galaxy S II Epic Touch 4G SPH-D710
- Samsung Galaxy Nexus SCH-I515 (custom kernel)
- Samsung Galaxy S III GT-I9300 I9300UBDLJ1 (Latin American countries) (custom kernel)
- Samsung Galaxy S III GT-I9300 I9300XXBLH1 (Nordic countries) (custom kernel)
- ASUS Transformer Prime TF201 (custom kernel)
- ASUS Nexus 7 (custom kernel)

The custom kernels can be installed using ClockworkMod Recovery. Download them here:
http://github.com/monk-dot/SPAN/tree/master/kernels

On Thu, Sep 18, 2014 at 1:36 PM, MC <lavan...@gmail.com> wrote:
Hi Stoker,

I can see that in CoreTask -> isNetworkInterfaceUp methos is returning false as the wifiinterface(wlan0 on my device) is down.

How to make it up ? I would highly appreciate any suggestion.


Reagrds,
Lavanya

On Thursday, September 18, 2014 11:02:55 AM UTC-5, lavan...@gmail.com wrote:
> Hi Stoker,
>
> When I am trying to run the app from source code on Nexus 7, Ad-hoc mode is not running. (I have connected the device to the windows machine and running source code using eclipse).
>
> When I download the app, on to the same device it is running.
>
> Please let me know do you I need to do any additional steps for source code app to work.
>
>
> Regards,
> MC
--
You received this message because you are subscribed to the Google Groups "Smart Phone Ad-Hoc Networks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spandev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeffrey Robble

unread,
Sep 19, 2014, 9:22:19 AM9/19/14
to spa...@googlegroups.com, lavanyat...@gmail.com, lavan...@gmail.com
If you meet all those requirements,  restart your phone, turn Wi-Fi off through the Settings app, "adb shell" into your phone, run "su", "cd /data/data/org.span/bin", and run "./adhoc start 1". What output do you get?

Lavanya T

unread,
Sep 19, 2014, 10:19:34 AM9/19/14
to Jeffrey Robble, spa...@googlegroups.com, Lavanya Thammineni
Hi Jeffery,

I am using Nexus 7 and I have installed custom kernel and the device is rooted.

I have attached the output screenshot. PFA... 


Thanks,
Lavanya
Capture.PNG

Jeffrey Robble

unread,
Sep 19, 2014, 11:15:03 AM9/19/14
to Lavanya T, spa...@googlegroups.com, Lavanya Thammineni
The problem is most likely related to line endings. When you cloned the project via git on windows it most likely reverted the Windows line endings:

"Text files created on DOS/Windows machines have different line endings than files created on Unix/Linux. DOS uses carriage return and line feed ("\r\n") as a line ending, which Unix uses just line feed ("\n"). You need to be careful about transferring files between Windows machines and Unix machines to make sure the line endings are translated properly."

Lavanya T

unread,
Sep 22, 2014, 1:45:28 PM9/22/14
to Jeffrey Robble, spa...@googlegroups.com
Hi Jeffrey,

Yes you are right !!! 
I just downloaded the  zip file of the source code it is working absolutely fine.

Thank you so much. I really appreciate your quick response.

Cheers,

On Fri, Sep 19, 2014 at 10:15 AM,  wrote:
The problem is most likely related to line endings. When you cloned the project via git on windows it most likely reverted the Windows line endings:

"Text files created on DOS/Windows machines have different line endings than files created on Unix/Linux. DOS uses carriage return and line feed ("\r\n") as a line ending, which Unix uses just line feed ("\n"). You need to be careful about transferring files between Windows machines and Unix machines to make sure the line endings are translated properly."
Reply all
Reply to author
Forward
0 new messages