Search found 129 matches
- Sun Oct 28, 2018 11:52 am
- Forum: General Discussion and Questions
- Topic: what "type" is an SHA-256 result, and how do I most easily convert it into a string?
- Replies: 3
- Views: 2546
Re: what "type" is an SHA-256 result, and how do I most easily convert it into a string?
It’s actually a bytes , not a bytearray (former is immutable, latter is mutable). Try type(myHash) and read https://docs.python.org/3/library/stdtypes.html to learn about Python’s built-in types. You didn’t specify what your resulting string should be, but one way of converting your hexHash (a byte...
- Sun Oct 28, 2018 11:34 am
- Forum: Other Boards
- Topic: [nRF5x] How to connect using WebBluetooth REPL?
- Replies: 37
- Views: 29428
Re: [nRF5x] How to connect using WebBluetooth REPL?
But the nus console which is using nodejs noble just sits there waiting forever for a connection, it seems that this may be related to noble incompatibility with osx mojave which I am running. FWIW, I also couldn't get that to work either. However, I decided not to dwell on it, since the WebBluetoo...
- Sun Oct 28, 2018 4:03 am
- Forum: General Discussion and Questions
- Topic: what "type" is an SHA-256 result, and how do I most easily convert it into a string?
- Replies: 3
- Views: 2546
what "type" is an SHA-256 result, and how do I most easily convert it into a string?
The trouble is, >>> myHash b'\x93\x1d\x93HP\xf6,.2\x856\x0e\t\x80\xed\xd9\xaf\rc\xff\xbb9\xf6~\xa8\xca\xea\x9ca\xf2\xbd\xd4' is not a string, as confirmed by: >>> isinstance(myHash, str) False but it doesn't seem to behave like a number either: >>> print("0x{:02X}".format(myHash)) Traceback (most re...
- Sat Oct 27, 2018 8:22 pm
- Forum: Other Boards
- Topic: nRF52840 - HolyIot Board Definition
- Replies: 12
- Views: 6929
Re: nRF52840 - HolyIot Board Definition
The problem is whilst I am working on this, as I am breaking new ground with an untested board and a non-standard programer, I am not sure if these problems are related to my non-standard programming method (openocd) or are inherent in the build for this device. Here's 3 problems I have, do you hav...
- Sat Oct 27, 2018 2:55 pm
- Forum: General Discussion and Questions
- Topic: Use micropython to do dead simple "over-the-air" code updates
- Replies: 34
- Views: 26089
Re: Use micropython to do dead simple "over-the-air" code updates
I have my first pass on nRF52840 OTA updates (using Nordic's proprietary radio mode) now working with micropython. So, proof of concept works. :D I feel I should improve the code a bit before posting it though. For instance, I should probably add a hash function like MD5 or SHA256 to ensure the enti...
- Sat Oct 27, 2018 1:13 pm
- Forum: Other Boards
- Topic: nRF52840 - HolyIot Board Definition
- Replies: 12
- Views: 6929
Re: nRF52840 - HolyIot Board Definition
BTW, if you haven't already, you may want to look into Nordic's nRF52840-DONGLE. At $10, it's only slightly more than your HolyIOT. Also, it passed FCC (which I don't know if that matters, since you are in Singapore). On the other hand, the HolyIOT has more pins exposed, so there is that in its favor.
- Sat Oct 27, 2018 12:59 pm
- Forum: Other Boards
- Topic: [nRF5x] How to connect using WebBluetooth REPL?
- Replies: 37
- Views: 29428
Re: [nRF5x] How to connect using WebBluetooth REPL?
Try it again but with SD=140, as per your other thread (viewtopic.php?f=12&t=5348&start=20), since you are using an nRF52840. Sounds as though you are very close to getting it. Then you can join the club.
- Sat Oct 27, 2018 12:54 pm
- Forum: Other Boards
- Topic: nRF52840 - HolyIot Board Definition
- Replies: 12
- Views: 6929
Re: nRF52840 - HolyIot Board Definition
Nice work.
Yeah, 9 and 10 can be made to work by disabling NFC on them, but they are slightly crippled (relative to other pins) even if you do, so I think you're right: it's best to avoid them if you can.
Yeah, 9 and 10 can be made to work by disabling NFC on them, but they are slightly crippled (relative to other pins) even if you do, so I think you're right: it's best to avoid them if you can.
- Sat Oct 27, 2018 12:43 pm
- Forum: Other Boards
- Topic: Attached is micropython firmware for the nRF52840
- Replies: 33
- Views: 23801
Re: Attached is micropython firmware for the nRF52840
I think I may see your gotcha. You are using an nRF52840, not an nRF52832. Thus, if I'm inferring correctly, you should set SD=140, not SD=132 during your make. Likewise, any flag changes in the bluetooth config file should be made in that section so that they will trigger when you set SD=140.
- Fri Oct 26, 2018 2:59 pm
- Forum: Other Boards
- Topic: Attached is micropython firmware for the nRF52840
- Replies: 33
- Views: 23801
Re: Attached is micropython firmware for the nRF52840
There's a bona fide Segger built into the nRF52840-DK, so the DK is a pretty good value when you consider that a standalone Segger costs much much more. Like I mentioned, the DK's Segger can be used for programming external nRF52840 modules like your HolyIOT. It's not limited to programming only the...