Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Community Manager
808 Views

running local file/script on Edison breakout board from android app over http

hello everyone,

I was thinking new ways for optimizing my Intel Edison mini breakout board and came to point where I needed help.

Basically i want to run local scripts stored on my edison board which can be controlled from an android application over the internet.

that means if i have my board and android application connected to internet (i.e WiFi or cellular, within same network or different) i should be able to give commands/button-events from my app to perform specific tasks defined in the scripts on edison board.

It seems rather programming related question than Intel Edison but I did not get desired results from other sources.

I could found the related solution http://www.codeproject.com/Articles/113678/How-to-execute-a-Local-File-using-HTML-Application in this link but it is for web browser and .HTA application as mentioned in the post. i want this for android app and intel edison board.

So please guide me what steps should I follow to get my goal ?

any sources links , examples will be very helpful to me.

Thank you.

3 Replies
Highlighted
Employee
3 Views

Hi,

Just to check I understand you correctly, you want an Android app that lets you control the Edison and make it perform specific tasks right? Which are these specific tasks, do you want to be able to choose between different Arduino sketches and compile/upload from your phone? Do you want to configure the settings of a file in the Edison, for example, assume you have an example.c file in the Edison and you want to see the code and edit it from your phone and then execute it?

What exactly is the functionality you want the app to have?

Sergio

0 Kudos
Highlighted
Community Manager
3 Views

Hi @Intel_Alvarado

yes, you got my question correctly.

 

basically I have a bash script that performs task.

 

the script is running properly and I have tested it several times successfully. Now I want an android app in which I'll have a button.

 

on pressing this button, my edison would start the task.

now my confusion is, how do I send command to edison to execute that script ??

How do I communicate with edison to run that executable script ?

(I do not want to edit anything in my script. Just execute it.)

Thank you.

Highlighted
Employee
3 Views

Hi,

I don't know of any existing app that does something like this. You'd probably have to create your own Android App so that it works specifically how you want. A tool such as the Android Studio will help you create the App.

The details of how to communicate with the Edison should be handled in the App. Something like this may be useful:

https://nmap.org/ncat/ Ncat - Netcat for the 21st Century

http://linux.die.net/man/1/socat socat(1): Multipurpose relay - Linux man page

Sergio

0 Kudos