Search found 32 matches

by c45713
Mon Oct 15, 2018 10:43 pm
Forum: Other Boards
Topic: [nRF5x] How to connect using WebBluetooth REPL?
Replies: 35
Views: 2454

Re: How to connect with Bluetooth REPL using nRF UART app?

Attached a hex file generated from yesterday's master (my last sync with mainline). I have verified that this hex file works with my chromium-browser. firmware.zip You can flash this application on top of your flashed SoftDevice ("make BOARD=pca10040 SD=s132 sd"). Issue the following command which w...
by c45713
Mon Oct 15, 2018 9:43 pm
Forum: Other Boards
Topic: [nRF5x] How to connect using WebBluetooth REPL?
Replies: 35
Views: 2454

Re: How to connect with Bluetooth REPL using nRF UART app?

I believe i managed to reproduce your issue. #1. Create one connection using nus_console which works. Terminate the connection using "CTRL+C". #2. Power toggle the device. #3. Reconnect using chrome, connection is established. Now, in my chromium-browser, the input-prompt looks activated, but no cha...
by c45713
Mon Oct 15, 2018 9:13 pm
Forum: Other Boards
Topic: [nRF5x] How to connect using WebBluetooth REPL?
Replies: 35
Views: 2454

Re: How to connect with Bluetooth REPL using nRF UART app?

Who wrote the entry on micropython github for nrf the port? Who is doing the development? Is it all done by glennrub? Is he the one to ask about this? You are already talking to me (glennrub). When you refer to nrf52832-dk, do you mean pca10040? If so i can provide a hex file that works for me, jus...
by c45713
Sun Oct 14, 2018 8:35 am
Forum: Other Boards
Topic: [nRF5x] How to connect using WebBluetooth REPL?
Replies: 35
Views: 2454

Re: How to connect with Bluetooth REPL using nRF UART app?

Just to confirm, did you enable the Chrome flag "Experimental Web Platform features" in chrome://flags?
by c45713
Thu Oct 11, 2018 8:48 pm
Forum: Other Boards
Topic: [nRF5x] How to connect using WebBluetooth REPL?
Replies: 35
Views: 2454

Re: How to connect with Bluetooth REPL using nRF UART app?

I cannot see any error in your bluetooth_conf.h. The device name advertised should be "mpus". Can you see this when scanning for BLE device using a PC or other scanner app? Also, make sure that you also flash the SoftDevice before "make flash", by issuing "make sd", else the app will not run at all....
by c45713
Thu Aug 30, 2018 9:14 pm
Forum: Other Boards
Topic: [nfr52] battery level
Replies: 2
Views: 659

Re: [nfr52] battery level

I took a look at this. I also get very strange results on the nrf52 when BLE is enabled. My value is reported to be 0x30 = 48% on coincell using the pca10040. I used the following code for testing: from machine import RTCounter, ADC from ubluepy import Service, Characteristic, UUID, Peripheral, cons...
by c45713
Sat Aug 11, 2018 7:41 pm
Forum: Other Boards
Topic: [nrf52]
Replies: 2
Views: 323

Re: [nrf52]

I'm not sure of your use-case, but if you are thinking of running the SD without LF XTAL, you could try running it with RC. This can be achived by adding the CFLAGS += -DBLUETOOTH_LFCLK_RC in the mpconfigboard.mk For inspiration this is a similar configuration: https://github.com/micropython/micropy...
by c45713
Mon Jul 17, 2017 11:00 pm
Forum: Other Boards
Topic: Porting to Nordic Semiconductor nRF52
Replies: 45
Views: 22063

Re: Porting to Nordic Semiconductor nRF52

Hi Oliver, If i understand you correctly, you are looking for two things, division of integers and floating point numbers. Division of integers are available already now, using the syntax "//". I believe it's called something like floor division or integer division in python3. Let me put up an examp...
by c45713
Fri Jun 30, 2017 10:52 pm
Forum: Programs, Libraries and Tools
Topic: Bluetooth Low Energy (BLE) library
Replies: 11
Views: 7778

Re: bluetooth low energy

I have not noticed this post before now... This is great work! In parallel i have also implemented a quite similar API for nrf5x (nordic semiconductor) using bluepy as base. I can see an opportunity to sync our bluepy derivatives for micropython to make it API compatible in time. This way we could p...
by c45713
Fri Jun 30, 2017 10:17 pm
Forum: Other Boards
Topic: Porting to Nordic Semiconductor nRF52
Replies: 45
Views: 22063

Re: Porting to Nordic Semiconductor nRF52

The code for the PR is hosted at https://github.com/tralamazza/micropython/tree/master

There is a README.md tutorial in the nrf/ folder, which explains how to compile and flash the various targets. Also, to show some basics, some scripts have been added to the nrf/examples.