wasp-os: MicroPython for PineTime!
#27
(05-26-2020, 06:27 PM)VMMainFrame Wrote: Daniel, thank you for the quick response.  I have done a lot of testing and this is what I have found:

If I hold the button down for over 5 seconds the watch boots into the bootloader, the Pine64 logo, a Bluetooth icon, an arrow and the word Start appear on the screen. If I do a single press of the button nothing happens.

There is a short period (4 seconds IIRC) just after the bootloader starts where the button is ignored. This is to give you time to release the button after provoking a reset ;-) but I think many people misunderstand how it works (so I logged https://github.com/daniel-thompson/wasp-os/issues/28

(05-26-2020, 06:27 PM)VMMainFrame Wrote: If I hold the button down for 2 seconds or so the screen goes black, then the Pine64 logo appears, then the screen goes black.  Pressing the button does nothing after that.  If I go to my phone, open Serial Bluetooth Terminal, and send:

wasp.system.run()

I get the message: Watch is running,  use Ctrl-C to stop.  The time and date and battery icon appear on the Pinetime screen.  From that point on the watch works perfectly.  The screen turns off after a few seconds but comes back with a button press.  I can scroll to the other screens and go back to the clock screen.

Did you run "import wasp" too?

If the system reports no errors during import wasp; wasp.system.run() then it is likely there has been some problem talking to the external flash chip on your watch. It would be great if you can help debug this.

Firstly, if the back of your watch isn't glued on then reading the part number of the external flash chip would be really useful. The chip on question is the second largest one, has 8 pins and is located fairly near the middle (between the heart rate monitor and the button). Read everything you can from the package. Sometimes if is very hard to read: strong side-angled lighting can help, as can a magnifying glass or a zoom lens on a camera (probably with the flash off otherwise it whites everything out).

Secondly the bit of code I think is not working correctly is here so if you could try running that by hand on the python console that would be really helpful. You can't type it exactly as you see in the link above but it's pretty close. Try the following (stop at the first error message and share happened):

Code:
from watch import *
flash = FLASH(spi, (Pin('NOR_CS', Pin.OUT, value=1),))
import os
os.mount(flash, '/flash')
from shell import *
ls('/flash')


(05-26-2020, 06:27 PM)VMMainFrame Wrote: Notes:  1) When I connect to the watch from Serial Bluetooth Terminal, the connection drops after about 40 seconds.  Is this normal?
2) How do I send a Ctrl-C from Serial Bluetooth Terminal?

Dropping the connection isn't normal but BLE can be a bit fickle so I wouldn't worry too much. Note there are other tools that can be used to access the console (./tools/wasptool --console for example) but I suggested an Android tool because I saw you are using nRF Connect to install the binary.

Finally to send a ^C using SBT you must use the macro feature (press and hold one of the macro buttons at the bottom of screen and then click the (i) button to read the built in help on how to send ^C.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye


Messages In This Thread
wasp-os: MicroPython for PineTime! - by danielt - 02-04-2020, 01:43 PM
RE: wasp-os: MicroPython for PineTime! - by mulm - 02-22-2020, 09:31 AM
RE: wasp-os: MicroPython for PineTime! - by mulm - 02-22-2020, 10:45 AM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 03-06-2020, 04:02 PM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 04-13-2020, 09:46 PM
RE: wasp-os: MicroPython for PineTime! - by tllim - 04-20-2020, 11:47 AM
RE: wasp-os: MicroPython for PineTime! - by danielt - 05-27-2020, 05:17 AM
wasp-os: MicroPython for PineTime! - by lupyuen - 05-28-2020, 01:59 AM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 07-15-2020, 07:01 PM
wasp-os: MicroPython for PineTime! - by lupyuen - 06-03-2020, 05:38 PM
wasp-os: MicroPython for PineTime! - by lupyuen - 07-15-2020, 07:08 PM
wasp-os: MicroPython for PineTime! - by lupyuen - 07-16-2020, 02:43 AM
wasp-os: MicroPython for PineTime! - by lupyuen - 07-16-2020, 03:53 AM
wasp-os: MicroPython for PineTime! - by lupyuen - 08-02-2020, 03:55 AM
RE: wasp-os: MicroPython for PineTime! - by Igor7 - 10-11-2020, 07:27 AM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 10-15-2020, 06:39 PM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 10-24-2020, 01:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Develop a new firmware for PineTime belushi 2 1,375 09-25-2023, 12:32 PM
Last Post: ccchan234
  Bluetooth BLE-MIDI-controller app for PineTime / InfiniTime Luno 0 558 08-20-2023, 05:17 AM
Last Post: Luno
  Zephyr Backlight Examples for PineTime lcj 0 742 05-06-2023, 02:54 PM
Last Post: lcj
  Zephyr is ready for pinetime jandy 1 2,152 05-06-2023, 02:15 PM
Last Post: lcj
  Send a message from Android to pinetime via BLE razrosman 0 953 11-05-2022, 08:24 AM
Last Post: razrosman
  PineTime Stuck in DFU Mode Eesha Barua 1 2,120 07-25-2022, 09:17 PM
Last Post: heyhewmike
  Idle tracking with PineTime: how versatile it is? schaman 1 1,690 07-13-2022, 12:50 AM
Last Post: wibble
  PineTime implemented with partial of pebble API jandy 0 1,591 03-20-2022, 08:58 PM
Last Post: jandy
  "Pine64 USB JTAG Adapter + OpenOCD + PineTime" should it work? ITCactus 4 4,024 03-02-2022, 05:58 AM
Last Post: wibble
  Zephyr based Pinetime jandy 4 4,777 11-11-2021, 05:53 AM
Last Post: jandy

Forum Jump:


Users browsing this thread: 1 Guest(s)