Re: [b2g] I want to create a new sensor and test it on Firefox OS. How can I do it?

2014-01-30 Thread Thomas Zimmermann
Hi Binyamin, In the gecko directory, look into hal/gonk/GonkSensor.cpp to see how we poll sensors on Android. The DOM implementation is located in dom/system/nsDeviceSensors.cpp, and the WebAPI is in dom/webapi. If you're sensor is already supported by Android, you probably just need to extend

Re: [b2g] I want to create a new sensor and test it on Firefox OS. How can I do it?

2014-01-30 Thread Thomas Zimmermann
Hi On 30.01.2014 10:37, Binyamin wrote: Thanks a lot, Thomas, for your feedback! Did you meant: http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp http://dxr.mozilla.org/mozilla-central/source/dom/system/nsDeviceSensors.cpp

Re: [b2g] I want to create a new sensor and test it on Firefox OS. How can I do it?

2014-01-30 Thread laukstein
Thanks again! Why I can't find anything related to NFC and GPS Geolocation in: https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp Are you sure, all supported sensors are

Re: [b2g] I want to create a new sensor and test it on Firefox OS. How can I do it?

2014-01-30 Thread Alexandre Lissy
Le 30/01/2014 11:59, laukst...@gmail.com a écrit : Thanks again! Why I can't find anything related to NFC and GPS Geolocation in: https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h

Re: [b2g] I want to create a new sensor and test it on Firefox OS. How can I do it?

2014-01-30 Thread laukstein
I just find more sensor details in: https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware https://github.com/mozilla-b2g/android-hardware-libhardware/tree/master/include/hardware ___ dev-b2g mailing list

Re: [b2g] I want to create a new sensor and test it on Firefox OS. How can I do it?

2014-01-30 Thread laukstein
So if I want to implement RFID sensor (not NFC), do I need to apply it to http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp http://dxr.mozilla.org/mozilla-central/source/dom/system/nsDeviceSensors.cpp http://dxr.mozilla.org/mozilla-central/source/dom/webidl/ or to

Re: [b2g] I want to create a new sensor and test it on Firefox OS. How can I do it?

2014-01-30 Thread Thomas Zimmermann
Hi NFC uses completely different code than the Android sensors. I don't know much about the details of RFID, but it seems significantly different from the Android sensors, so I wouldn't add it to the Android sensors. You could use these files as a template for your code, though. Also, if your

[b2g] I want to create a new sensor and test it on Firefox OS. How can I do it?

2014-01-29 Thread Binyamin
בעה For example how to recreate GPS with geolocation API, how to apply thermometer sensor or whatever with custom Web API support? Binyamin ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g

[b2g] I want to create a new sensor and test it on Firefox OS. How can I do it?

2014-01-29 Thread Binyamin
בעה For example how to recreate GPS with geolocation API, how to apply thermometer sensor or whatever with custom Web API support? Binyamin ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g

Re: [b2g] I want to create a new sensor and test it on Firefox OS. How can I do it?

2014-01-29 Thread Naoki Hirata
Hi Binyamin, I can't say that I've tried to use it; The webapi itself has documentation at dev mo: https://developer.mozilla.org/en-US/docs/WebAPI/Using_geolocation Other web API can be found here : https://developer.mozilla.org/en-US/docs/WebAPI I don't think we have a thermometer sensor in

Re: [b2g] I want to create a new sensor and test it on Firefox OS. How can I do it?

2014-01-29 Thread laukstein
Naoki, I'm not asking about already existing Web APIs. My question is: How I can apply by myself, for example, an thermometer sensor for Firefox OS and make Web API for it? ___ dev-b2g mailing list dev-b2g@lists.mozilla.org

[b2g] I want to create a new sensor and test it on Firefox OS. How can I do it?

2014-01-29 Thread Binyamin
בעה For example how to recreate GPS with geolocation API, how to apply thermometer sensor or whatever with custom Web API support? Binyamin ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g