Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensor example #161

Closed
Rewbert opened this issue Dec 9, 2020 · 12 comments
Closed

Sensor example #161

Rewbert opened this issue Dec 9, 2020 · 12 comments

Comments

@Rewbert
Copy link

Rewbert commented Dec 9, 2020

Hi,

So the IoModule is quite restricted in what it can do. I don't mind writing a SensorModule of my own, but are there any examples of using sensors with/on a nrf52840dk board to be seen anywhere? I saw something that might be related in FruityHalNrf.cpp but it is quite a large file that feels a little overwhelming.

Thanks!

@mariusheil
Copy link
Contributor

Hello,

yes, the IoModule cannot do a lot. We have some sensor samples, but cannot open source these due to the nature of most of the used drivers. You can however easily use examples from the nRF SDK as FruityMesh builds on top of that. The StatusReporterModule is doing battery measurements, which is basically a sensor.

Yes, the FruityHalNrf abstracts everything that is platform specific, so it is quite big.

Marius

@mariusheil
Copy link
Contributor

Hi, we expect to be working on an example firmware for the ruuvi tag in January. If that works out as intended we will release a sample. In the meantime, you should be able to integrate any driver you like by simply adding it to the build. It works the same as if you were integrating a driver with the Nordic SDK. The sdk_config is available in the Github project as well.

@leonwilly
Copy link

I find myself in this situation also. I am developing an advanced individual room HVAC zoning system. My house is the prototype (using 433mhz sensors currently) and I just received custom PCB's with the NRF52811 with an array of sensors for the final product. I am working on the firmware right now. I know the range won't be an issue in my house, but I worry in future installations I might run into excessive radio noise or building materials that reduces the range. Having a mesh (relay) builtin would resolve this issue. I have scoured Github and Google for examples of using FruityMesh with sensors and have come up short. I am at a point where I either continue without this feature and address it later in an update or implement FruityMesh from the beginning. It would be fantastic if you had a bare Sensor / Beacon example to use as reference. Thanks

@mariusheil
Copy link
Contributor

Hi, have you managed to get FruityMesh running on this chipset? We do not officially support it as it is quite memory constrained. You have to use the S140 SoftDevice to have central and peripheral support but the latest version takes around 150kb of the flash memory and you will surely need around 40-50kb for FruityMesh. Being limited to 192KB of flash and 24kb of RAM will make it very tough for you to develop your application. You will also not be able to update the firmware.

As for the sensors, we will try to publish some examples / tutorial / .... in the near future. Do you have any specific sensor in mind?

@leonwilly
Copy link

leonwilly commented Jan 18, 2021 via email

@mariusheil
Copy link
Contributor

Have you checked if the nRF52833 is available in your packaging?

@leonwilly
Copy link

leonwilly commented Jan 19, 2021 via email

@mariusheil
Copy link
Contributor

Just as a follow up to this ticket. we are currently working on open sourcing a small project that can be used with ruuvi tags, this will still take a few weeks until we can make it public but work is ongoing.

@leonwilly
Copy link

leonwilly commented Jan 28, 2021 via email

@mariusheil
Copy link
Contributor

Hi,

porting it to NimBLE will most likely work but I would guess that there will be quite a lot of work involved until everything is ported. We have ported FruityMesh to another chipset internally and I can tell you that the FruityHal is nicely portable, but it will take some time.

@leonwilly
Copy link

leonwilly commented Jan 28, 2021 via email

@mariusheil
Copy link
Contributor

Hello, I'll close this as there has not been any more feedback. Feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants