💬 MySensors NRF5 Platform
-
The source code for the PIR project gives one possible answer.
-
@neverdie
I've been dealing with that code but for some reason, I don't get it to work, code-wise it seems I'm lacking..First i get this error: struct NRF_UARTE_Type' has no member named 'TASKS_SUSPEND
And when I comment that out it seems like its not waking up.I made a test sketch, which reported the status every 1000ms. this worked accurately for the last 3 days so it doesn't look like it is a sensor problem.
So my hope was that there was an easier methode available..
-
@neverdie
I've been dealing with that code but for some reason, I don't get it to work, code-wise it seems I'm lacking..First i get this error: struct NRF_UARTE_Type' has no member named 'TASKS_SUSPEND
And when I comment that out it seems like its not waking up.I made a test sketch, which reported the status every 1000ms. this worked accurately for the last 3 days so it doesn't look like it is a sensor problem.
So my hope was that there was an easier methode available..
-
@omemanti Sounds like maybe you're either missing a library or else not linking to one that's required.
-
What am I missing, I just reinstalled the whole shabang.
- Arduino IDE
- Sandeep
- Mysensors 2.2.0
thats all there is installed..
-
Also, this: https://github.com/d00616/ArduinoHwNRF5
-
Also, this: https://github.com/d00616/ArduinoHwNRF5
-
Let's say I've just bought a $2,50 NRF52 board.
Does anyone know a good tutorial for absolute beginners?
For example:
- I have no idea what a softdevice is. Should I know?
- I don't know what hardware I need. A normal serial adapter or an ST-link? Should I hack an STM32 into a black magic probe (whatever that is..), or is that for power users?
- To what pins do I connect to upload a sketch?
- How are you connecting wires onto the package? Just hotglue and very steady hands? Some cheap adapter or board? Any tips and tricks?
- There's something about text files that define how the pins work? But the serial pins are always the same? Where does the text-file go? What flavours are there? Which is the most popular?
- What boards should I enable in the Arduino IDE?
- How do I debug my sketch? Does the serial monitor work?
- Do I still need the development version of MySensors now that we are at V2.2?
- Do I need to set anything in MySensors?
- Are encryption, signing and the simple options to do this supported?
- What can it do? Can I connect a 5v sensor to it? Can it power things in the way that an Arduino can?
-
Let's say I've just bought a $2,50 NRF52 board.
Does anyone know a good tutorial for absolute beginners?
For example:
- I have no idea what a softdevice is. Should I know?
- I don't know what hardware I need. A normal serial adapter or an ST-link? Should I hack an STM32 into a black magic probe (whatever that is..), or is that for power users?
- To what pins do I connect to upload a sketch?
- How are you connecting wires onto the package? Just hotglue and very steady hands? Some cheap adapter or board? Any tips and tricks?
- There's something about text files that define how the pins work? But the serial pins are always the same? Where does the text-file go? What flavours are there? Which is the most popular?
- What boards should I enable in the Arduino IDE?
- How do I debug my sketch? Does the serial monitor work?
- Do I still need the development version of MySensors now that we are at V2.2?
- Do I need to set anything in MySensors?
- Are encryption, signing and the simple options to do this supported?
- What can it do? Can I connect a 5v sensor to it? Can it power things in the way that an Arduino can?
@alowhum all security functionality currently available for MySensors is supported om nrf52. There is nothing in the security road map that will not be supported on nrf52. The MAY be features that work best with a security peripheral but there will always be software compatible alternatives for released features that can operate on nrf52 unless it is natively supported by the HW peripherals in the chip.
-
Let's say I've just bought a $2,50 NRF52 board.
Does anyone know a good tutorial for absolute beginners?
For example:
- I have no idea what a softdevice is. Should I know?
- I don't know what hardware I need. A normal serial adapter or an ST-link? Should I hack an STM32 into a black magic probe (whatever that is..), or is that for power users?
- To what pins do I connect to upload a sketch?
- How are you connecting wires onto the package? Just hotglue and very steady hands? Some cheap adapter or board? Any tips and tricks?
- There's something about text files that define how the pins work? But the serial pins are always the same? Where does the text-file go? What flavours are there? Which is the most popular?
- What boards should I enable in the Arduino IDE?
- How do I debug my sketch? Does the serial monitor work?
- Do I still need the development version of MySensors now that we are at V2.2?
- Do I need to set anything in MySensors?
- Are encryption, signing and the simple options to do this supported?
- What can it do? Can I connect a 5v sensor to it? Can it power things in the way that an Arduino can?
@alowhum you can start with this:
https://forum.mysensors.org/topic/6705/mysensors-nrf5-platform/1
and
https://forum.mysensors.org/topic/7869/start-with-nrf5-is-very-simple/1But you should also check the NRF5 information on Nordic website.
In short it's 3.3V max (so no 5V peripherals directly), you need to program through the 2 SWD pins (SWDCLK and SWDIO) and you have different options for that, for debugging use a FTDI adapter and connect it to the pins you have assigned as TX/RX. -
Hello,
has someone successfully used VisualMicro with the MySensors NRF5 boards ?
In the board selector dropdown list I can select any board, including NRF5 boards like "Generic NRF51" or "BBC Microbit", except when I select MySensors NRF51 or NRF52 boards, then it's not doing anything and keeping the previous selected board. I have a message in the status bar saying "the first available board has been selected" and that's all, I don't find anything related to VisualMicro with this error message in Google.
I have tried with both 0.1 and 0.3 versions of the boards, and with both "Arduino 1.6/1.9" and "Visual Micro (No IDE)" IDE selections. -
-
Hello,
has someone successfully used VisualMicro with the MySensors NRF5 boards ?
In the board selector dropdown list I can select any board, including NRF5 boards like "Generic NRF51" or "BBC Microbit", except when I select MySensors NRF51 or NRF52 boards, then it's not doing anything and keeping the previous selected board. I have a message in the status bar saying "the first available board has been selected" and that's all, I don't find anything related to VisualMicro with this error message in Google.
I have tried with both 0.1 and 0.3 versions of the boards, and with both "Arduino 1.6/1.9" and "Visual Micro (No IDE)" IDE selections. -
@nca78
No. I was mistaken. I have the same issue as you. I used the arduino program with the MySensors NRF5. I would like to get this to work also. Please post if you find a solution. -
What are people using for a gateway with these?
I'm currently using this from @NeverDie , which seems to work for the most part, but I'm getting a lot of connection errors:
[31m2018-04-18 18:27:35 ERROR (Thread-2) [mysensors.gateway_tcp] Receive from server failed. [32m2018-04-18 18:27:35 INFO (Thread-2) [mysensors.gateway_tcp] Closing socket at ('10.0.50.100', 2323). [32m2018-04-18 18:27:35 INFO (Thread-2) [mysensors.gateway_tcp] Socket closed at ('10.0.50.100', 2323). [32m2018-04-18 18:27:35 INFO (Thread-2) [mysensors.gateway_tcp] Trying to connect to ('10.0.50.100', 2323) [32m2018-04-18 18:27:35 INFO (Thread-2) [mysensors.gateway_tcp] Connected to ('10.0.50.100', 2323) [32m2018-04-18 18:27:52 INFO (Thread-2) [mysensors.gateway_tcp] Closing socket at ('10.0.50.100', 2323).They seem to come up about 75% of the time when the gateway receives a message from a node.
I thought it might be a power thing, so I messed around with a few caps and a separate power source for the hat but nothing seems to have made a difference.
Everything seems to work despite this, but I don't really want my log to be filled with these errors if I can help it.
Has anyone attempted to build a wired gateway or anything similar?
-
What are people using for a gateway with these?
I'm currently using this from @NeverDie , which seems to work for the most part, but I'm getting a lot of connection errors:
[31m2018-04-18 18:27:35 ERROR (Thread-2) [mysensors.gateway_tcp] Receive from server failed. [32m2018-04-18 18:27:35 INFO (Thread-2) [mysensors.gateway_tcp] Closing socket at ('10.0.50.100', 2323). [32m2018-04-18 18:27:35 INFO (Thread-2) [mysensors.gateway_tcp] Socket closed at ('10.0.50.100', 2323). [32m2018-04-18 18:27:35 INFO (Thread-2) [mysensors.gateway_tcp] Trying to connect to ('10.0.50.100', 2323) [32m2018-04-18 18:27:35 INFO (Thread-2) [mysensors.gateway_tcp] Connected to ('10.0.50.100', 2323) [32m2018-04-18 18:27:52 INFO (Thread-2) [mysensors.gateway_tcp] Closing socket at ('10.0.50.100', 2323).They seem to come up about 75% of the time when the gateway receives a message from a node.
I thought it might be a power thing, so I messed around with a few caps and a separate power source for the hat but nothing seems to have made a difference.
Everything seems to work despite this, but I don't really want my log to be filled with these errors if I can help it.
Has anyone attempted to build a wired gateway or anything similar?
-
The gateway I've used has been:
https://www.openhardware.io/view/491/PA-LNA-nRF52832-ESP-LINK-Shield-for-Wemos-D1-Mini-ESP8266
I haven't noticed any problems. -
I've created a BME280 node along the lines of the NRF5 beginners guide I posted.
But something odd is happening. The node works great for about 8 hours.. and then it stops working.
I already changed the power supply, but the same thing happens.
Could it be a memory leak?