Facebook
From Pittconnect, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 80
  1. pi@raspberrypi:~/wasp-os $ ls -l hrs.data
  2. -rw-r--r-- 1 pi pi 478104 Aug 18 07:36 hrs.data
  3. pi@raspberrypi:~/wasp-os $ ls -l
  4. total 592
  5. drwxr-xr-x  7 pi pi   4096 Jul 31 21:18 bootloader
  6. drwxr-xr-x  2 pi pi   4096 Aug  3 22:45 build-pinetime
  7. -rw-r--r--  1 pi pi  35149 Jul 31 15:43 COPYING
  8. -rw-r--r--  1 pi pi   7652 Jul 31 15:43 COPYING.LGPL
  9. drwxr-xr-x  3 pi pi   4096 Jul 31 15:43 docs
  10. -rw-r--r--  1 pi pi   1008 Aug  7 20:52 filtering.py
  11. -rw-r--r--  1 pi pi 478104 Aug 18 07:36 hrs.data
  12. -rw-r--r--  1 pi pi    129 Aug  4 16:47 hrv.data
  13. drwxr-xr-x  2 pi pi   4096 Aug  4 16:46 logs
  14. -rw-r--r--  1 pi pi   4491 Jul 31 15:43 Makefile
  15. drwxr-xr-x 14 pi pi   4096 Jul 31 15:44 micropython
  16. drwxr-xr-x  2 pi pi   4096 Aug  9 15:51 pulled
  17. -rw-r--r--  1 pi pi      0 Aug  9 16:40 python
  18. -rw-r--r--  1 pi pi   7909 Jul 31 15:43 README.rst
  19. drwxr-xr-x  5 pi pi   4096 Jul 31 21:19 reloader
  20. drwxr-xr-x  2 pi pi   4096 Jul 31 15:43 res
  21. -rw-r--r--  1 pi pi   3368 Aug  7 15:52 sync-pinetime.py
  22. -rw-r--r--  1 pi pi   5938 Aug  9 17:20 TODO.rst
  23. drwxr-xr-x  8 pi pi   4096 Aug  9 15:55 tools
  24. drwxr-xr-x  8 pi pi   4096 Aug  9 15:55 wasp
  25. pi@raspberrypi:~/wasp-os $ cp hrs.data hrs.data1
  26. pi@raspberrypi:~/wasp-os $ ls
  27. bootloader      docs          hrv.data     pulled      res               wasp
  28. build-pinetime  filtering.py  logs         python      sync-pinetime.py
  29. COPYING         hrs.data      Makefile     README.rst  TODO.rst
  30. COPYING.LGPL    hrs.data1     micropython  reloader    tools
  31. pi@raspberrypi:~/wasp-os $ ls -l
  32. total 1060
  33. drwxr-xr-x  7 pi pi   4096 Jul 31 21:18 bootloader
  34. drwxr-xr-x  2 pi pi   4096 Aug  3 22:45 build-pinetime
  35. -rw-r--r--  1 pi pi  35149 Jul 31 15:43 COPYING
  36. -rw-r--r--  1 pi pi   7652 Jul 31 15:43 COPYING.LGPL
  37. drwxr-xr-x  3 pi pi   4096 Jul 31 15:43 docs
  38. -rw-r--r--  1 pi pi   1008 Aug  7 20:52 filtering.py
  39. -rw-r--r--  1 pi pi 478104 Aug 18 07:36 hrs.data
  40. -rw-r--r--  1 pi pi 478104 Aug 18 21:57 hrs.data1
  41. -rw-r--r--  1 pi pi    129 Aug  4 16:47 hrv.data
  42. drwxr-xr-x  2 pi pi   4096 Aug  4 16:46 logs
  43. -rw-r--r--  1 pi pi   4491 Jul 31 15:43 Makefile
  44. drwxr-xr-x 14 pi pi   4096 Jul 31 15:44 micropython
  45. drwxr-xr-x  2 pi pi   4096 Aug  9 15:51 pulled
  46. -rw-r--r--  1 pi pi      0 Aug  9 16:40 python
  47. -rw-r--r--  1 pi pi   7909 Jul 31 15:43 README.rst
  48. drwxr-xr-x  5 pi pi   4096 Jul 31 21:19 reloader
  49. drwxr-xr-x  2 pi pi   4096 Jul 31 15:43 res
  50. -rw-r--r--  1 pi pi   3368 Aug  7 15:52 sync-pinetime.py
  51. -rw-r--r--  1 pi pi   5938 Aug  9 17:20 TODO.rst
  52. drwxr-xr-x  8 pi pi   4096 Aug  9 15:55 tools
  53. drwxr-xr-x  8 pi pi   4096 Aug  9 15:55 wasp
  54. pi@raspberrypi:~/wasp-os $ ./tools/wasptool --device EF:46:76:DB:A7:CC --eval 'watch.rtc.get_localtime()'
  55. ~~~
  56. (2020, 3, 2, 4, 43, 9, 0, 62)
  57. ~~~
  58. pi@raspberrypi:~/wasp-os $ ./tools/wasptool --device EF:46:76:DB:A7:CC --check--rtc
  59. usage: wasptool [-h] [--as UPLOAD_AS] [--battery] [--bootloader] [--binary]
  60.                 [--console] [--check-rtc] [--device DEVICE] [--exec EXEC]
  61.                 [--eval EVAL] [--memfree] [--pull PULL] [--push PUSH]
  62.                 [--reset] [--ota OTA] [--rtc] [--upload UPLOAD] [--verbose]
  63. wasptool: error: unrecognized arguments: --check--rtc
  64. pi@raspberrypi:~/wasp-os $ ./tools/wasptool --device EF:46:76:DB:A7:CC --check-rtc
  65. PC <-> watch:  04:44:20 <-> 22:02:35 (delta 62295)
  66. pi@raspberrypi:~/wasp-os $ ./tools/wasptool --device F5:E2:9C:A2:B0:9B --check-rtc
  67. PC <-> watch:  10:54:29 <-> 22:03:39 (delta 40150)
  68. pi@raspberrypi:~/wasp-os $ date
  69. Wed 18 Aug 22:04:42 EDT 2021
  70. pi@raspberrypi:~/wasp-os $ ./tools/wasptool --device F5:E2:9C:A2:B0:9B --pull hrs.data
  71. Downloading hrs.data:
  72. Traceback (most recent call last):.................] 48.8%    
  73.   File "/usr/lib/python3/dist-packages/pexpect/expect.py", line 111, in expect_loop
  74.     incoming = spawn.read_nonblocking(spawn.maxread, timeout)
  75.   File "/usr/lib/python3/dist-packages/pexpect/pty_spawn.py", line 482, in read_nonblocking
  76.     raise TIMEOUT('Timeout exceeded.')
  77. pexpect.exceptions.TIMEOUT: Timeout exceeded.
  78.  
  79. During handling of the above exception, another exception occurred:
  80.  
  81. Traceback (most recent call last):
  82.   File "./tools/wasptool", line 421, in <module>
  83.     handle_binary_download(console, args.pull, args.pull)
  84.   File "./tools/wasptool", line 264, in handle_binary_download
  85.     reply = c.run_command('repr(f.read(24))')
  86.   File "./tools/wasptool", line 42, in run_command
  87.     c.expect('>>> ')
  88.   File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 341, in expect
  89.     timeout, searchwindowsize, async_)
  90.   File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 369, in expect_list
  91.     return exp.expect_loop(timeout)
  92.   File "/usr/lib/python3/dist-packages/pexpect/expect.py", line 119, in expect_loop
  93.     return self.timeout(e)
  94.   File "/usr/lib/python3/dist-packages/pexpect/expect.py", line 82, in timeout
  95.     raise TIMEOUT(msg)
  96. pexpect.exceptions.TIMEOUT: Timeout exceeded.
  97. <pexpect.pty_spawn.spawn object at 0x76214990>
  98. command: ./tools/pynus/pynus.py
  99. args: [b'./tools/pynus/pynus.py', b'--address', b'F5:E2:9C:A2:B0:9B']
  100. buffer (last 100 chars): '\r\r\nMe'
  101. before (last 100 chars): '\r\r\nMe'
  102. after: <class 'pexpect.exceptions.TIMEOUT'>
  103. match: None
  104. match_index: None
  105. exitstatus: None
  106. flag_eof: False
  107. pid: 6283
  108. child_fd: 5
  109. closed: False
  110. timeout: 30
  111. delimiter: <class 'pexpect.exceptions.EOF'>
  112. logfile: None
  113. logfile_read: None
  114. logfile_send: None
  115. maxread: 2000
  116. ignorecase: False
  117. searchwindowsize: None
  118. delaybeforesend: 0.05
  119. delayafterclose: 0.1
  120. delayafterterminate: 0.1
  121. searcher: searcher_re:
  122.     0: re.compile('>>> ')
  123. pi@raspberrypi:~/wasp-os $ ls -l]
  124. ls: invalid option -- ']'
  125. Try 'ls --help' for more information.
  126. pi@raspberrypi:~/wasp-os $ ls -l
  127. total 1144
  128. drwxr-xr-x  7 pi pi   4096 Jul 31 21:18 bootloader
  129. drwxr-xr-x  2 pi pi   4096 Aug  3 22:45 build-pinetime
  130. -rw-r--r--  1 pi pi  35149 Jul 31 15:43 COPYING
  131. -rw-r--r--  1 pi pi   7652 Jul 31 15:43 COPYING.LGPL
  132. drwxr-xr-x  3 pi pi   4096 Jul 31 15:43 docs
  133. -rw-r--r--  1 pi pi   1008 Aug  7 20:52 filtering.py
  134. -rw-r--r--  1 pi pi 562488 Aug 19 01:55 hrs.data
  135. -rw-r--r--  1 pi pi 478104 Aug 18 21:57 hrs.data1
  136. -rw-r--r--  1 pi pi    129 Aug  4 16:47 hrv.data
  137. drwxr-xr-x  2 pi pi   4096 Aug  4 16:46 logs
  138. -rw-r--r--  1 pi pi   4491 Jul 31 15:43 Makefile
  139. drwxr-xr-x 14 pi pi   4096 Jul 31 15:44 micropython
  140. drwxr-xr-x  2 pi pi   4096 Aug  9 15:51 pulled
  141. -rw-r--r--  1 pi pi      0 Aug  9 16:40 python
  142. -rw-r--r--  1 pi pi   7909 Jul 31 15:43 README.rst
  143. drwxr-xr-x  5 pi pi   4096 Jul 31 21:19 reloader
  144. drwxr-xr-x  2 pi pi   4096 Jul 31 15:43 res
  145. -rw-r--r--  1 pi pi   3368 Aug  7 15:52 sync-pinetime.py
  146. -rw-r--r--  1 pi pi   5938 Aug  9 17:20 TODO.rst
  147. drwxr-xr-x  8 pi pi   4096 Aug  9 15:55 tools
  148. drwxr-xr-x  8 pi pi   4096 Aug  9 15:55 wasp
  149. pi@raspberrypi:~/wasp-os $ cp hrs.data hrs.data2