Android Sensor Service - A.S.S. RRS feed

  • General discussion

  • Being cheap, I wanted add remote a camera and multiple sensors to my bot experiments; this is what I came up with


    Actual cost; $0 if you already have an Android phone, not bad, it fit my budget.

    Next step is to make it a true MRDS service - so off I go to the Wrox book. If anyone has any suggestions for functionality let me know, I'm a newb to developing MRDS services.

    Sunday, June 20, 2010 6:27 PM

All replies

  • Cute! Good luck with the service. You will have to establish a WiFi connection inside the service, but it looks like you have already written code for that.

    Please be sure to look at the samples we ship. Apart from the communication, they should show you how to expose your devices as services.



    Sunday, June 27, 2010 7:54 PM
  • Source (and story) available at; http://www.androidcentral.com/android-gives-eyes-ears-and-sense-direction-lego-nxt-robot
    Saturday, July 10, 2010 1:12 AM
  • Can provide the code? Website contains bad points!
    Tuesday, July 26, 2011 3:59 AM
  • try http://www.spiked3.com/android.zip


    Its been a long time since I have used this - so I just grabbed what source I found. I am sure it needs some work to put it together again.

    I also believe the current android sdk contains methods for decoding the image, which I am sure is more efficient than my 'thrown together' decoding.

    Saturday, July 30, 2011 9:30 AM
  • hello spiked3,

    im very interesting in your a.s.s,can you give me a copy to my email?

    the link is not work now,and because the GFW,i cant view meny web ,like spiked3.com......

    thank you very much~~~~~~~~

    my email is:coolfanicy#gmail.com

    Thursday, February 23, 2012 3:51 PM
  • hello Spiked3,

    could you please provide me with the source code of the Android Sensor Service. I want to work on similer project. I only need the code that responsible for extracting gps points from Androind and send it to nxt.

    thank you

    Monday, March 12, 2012 10:23 AM
  • That code is long since tucked away and not available.

    It really is pretty simple; write a web server (I think I used on that was less then 20 lines, but I can't find it now - try this one http://java.sun.com/developer/technicalArticles/Networking/Webserver/WebServercode.html)

    Add some code to look for a special file request like 'gps.html' - then use android API to get GPS info and return it as an http reply. Should be about 20 minutes work.

    Sending it to the NXT is another story - you will need to open a serial Bluetooth connection and probably implement the mailboxNXT  protocol. Doing something like that is really not MSRD oriented, so this probably is not the place to ask.

    I haven't tried Legos with MRDS in a while, I am kind of waiting for the new release to ferment. Then I may try and implement something more like LeJOS with Pilots and Pose using Mindsqualls/MotorControl as an MRDS service to take it a step beyond what MS supplies.

    http://www.Spiked3.com is back up, but it does not have any of the old content on it.


    Monday, March 12, 2012 10:38 AM
  • I`m Allen
    After reading your article, I feel amzing
    But Microsoft Robotics studio is not provide AndroidCameraService
    I hope you could provide the source code to me to research.
    Thank you
    Wednesday, March 21, 2012 7:17 AM
  • I dug out the code from a backup.


    Sunday, April 8, 2012 1:03 AM