Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Smartphone as control panel


  • Please log in to reply
8 replies to this topic

#1 Joshk

Joshk

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 17 November 2012 - 02:19 AM

Has anyone accomplished this? Using something like a WiFly as an access-point and serving up a webpage direct from the netduino plus?

#2 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 17 November 2012 - 05:29 AM

Hi Joshk, You might look into Basic4Android and write an app to do this. I bought the standard version of this software several months ago , but haven't done much with it. If you are interested in Android at all, this is probably the easiest way to write apps. I downloaded a Bluetooth Serial App example and could talk to the Netduino using a Bluetooth SPP adapter. Here is a network tutorial communicating with TCP/IP, http://www.basic4ppc....html#post40302 You could probably use DynDns and port forward to the Netduino if you want to communicate with your phone. You can also get cheaper wireless functionality for the Netduino (with less hassle) by using an ethernet/wireless adapter such as an Edimax BR-6258n NANO pocket router (~$27) in infra-structure mode. My Netduino is hooked up to my wireless network using this adapter and it serves web pages just fine. Baxter

#3 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 17 November 2012 - 01:40 PM

Pretty easy stuff. I've written both iOS apps as well as we apps that run on the iPhone and communicate with the netduino. So ere are a few ways of approaching it.

#4 Joshk

Joshk

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 19 November 2012 - 06:32 PM

Thanks, but I want it to work for whoever is using it, meaning no app. I could do an app and a socket connection but that would need an install. I want to print an IP address on the box... maybe like 1.2.3.4 and then any phone can access it through a browser when it is connected to that access point. It seems entirely possible to me but it is unconventional for a access point to source the files from a sd card or netduino stream. This is where I need expert advice.

#5 Geancarlo2

Geancarlo2

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts

Posted 19 November 2012 - 06:59 PM

So you basically want an web server running on your Netduino http://forums.netdui...h__1#entry20317 + http://forums.netdui...h__1#entry23532

#6 Joshk

Joshk

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 19 November 2012 - 07:39 PM

Close Geancarlo, you have the idea but in the Dakotas reliable cell and internet access is limited to cities. Sad but true. We need to eliminate the internet from the equation to make it reliable.

#7 Geancarlo2

Geancarlo2

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts

Posted 19 November 2012 - 08:05 PM

Internet is not in this equation really. Like you said, all it takes is to be connected to the same access point, so you can connect to its local network address. Internet can be seen as an upperset of your local network.

#8 Joshk

Joshk

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 19 November 2012 - 08:28 PM

You might be right, at first glance it looked like a socket connection to a webserver, but you are thinking the Edimax BR-6258n NANO pocket router? I will look into it more. Thanks.

#9 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 20 November 2012 - 05:07 AM

Thanks, but I want it to work for whoever is using it, meaning no app. I could do an app and a socket connection but that would need an install. I want to print an IP address on the box... maybe like 1.2.3.4 and then any phone can access it through a browser when it is connected to that access point. It seems entirely possible to me but it is unconventional for a access point to source the files from a sd card or netduino stream. This is where I need expert advice.


Joshk,
If this is what you want to do, then just install a webserver on your Netduino with the required functionality ( plenty of examples on the Forum). Then signup for a free DynDns account and get a host name. This will allow you to access your Netduino from a browser anywhere (except from inside the LAN). You setup your router with the host name and port forward to the Netduino. Most routers make this pretty easy. I use a router with DD-WRT installed on it and it is under Setup --> DDNS.
With your phone browser, type: http://<your host name>:<port> and you will go directly to the server on your Netduino and then you can do whatever you want; load a web page from the SD card, assemble measurements, etc. and then send your response. You don't need a wireless adapter unless you want to locate the Netduino remotely from the router. Here is a link that may be helpful to you,

http://people.ece.co...g537/index.html

Baxter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.