Jim Paris jim
  • Joined on Feb 03, 2020
Loading Heatmap…

jim pushed to master at jim/terminal

  • 9838c8136f Add option to force DTS and RTS pins high This is for development boards like those for the ESP32, where it's common to use RTS and DTR to control chip resets.

2 months ago

jim pushed tag nilmdb-2.2.0 to nilm/nilmdb

3 months ago

jim pushed to master at nilm/nilmdb

3 months ago

jim pushed to master at nilm/nilmdb

3 months ago

jim pushed to master at nilm/nilmdb

  • 7538c6201b tests: new fsck tests for interval overlap
  • 4d9a106ca1 fsck: add fix for file position (row) overlap in database The following sequence could lead to this corruption: (1) Append new data to bulkdata (2) Update interval file positions in SQL (3) Flush (2) (4) Crash before flushing (1) (5) Reload database without running fsck (6) Start writing new data to end of bulkdata and introduce new interval
  • e90a79ddad fsck: increase max restarts from 100 to 1000 This is effectively the number of problems with the database that can be fixed, since we restart fsck after each one.
  • 7056c5b4ec tests: new fsck tests
  • df4e7f0967 fsck: If data timestamps are unexpectedly zero, truncate data This probably means that the file was written, and metadata was journaled, but the system crashed before data was written. If that happens, the end of the file will be zeroed out. We don't bother checking the entire file here; if we see just one timestamp that is unexpectedly zero, let's truncate the data there.
  • Compare 5 commits »

3 months ago

jim pushed to master at nilm/nilmdb

  • b6bba16505 fsck: fix error in reporting row number for timestamp errors Since we process in chunks, we need to add "start" to the row number; however, we don't need to use this when accessing data['timestamp'] (aka ts)
  • d4003d0d34 tests: fill out coverage for new fsck features
  • e0559c2ed1 tests: fill out coverage for new fsck features
  • Compare 3 commits »

3 months ago

jim pushed to master at nilm/nilmdb

  • e0559c2ed1 tests: fill out coverage for new fsck features
  • 759492298a bulkdata: write _format file atomically, to reduce chance of corruption Some databases were seeing _format truncated to 0 bytes, after crashing soon after a new stream was created (e.g. during decimation).
  • b5f6fcc253 fsck: detect problems with _format file, and remove stream if empty A bulkdata dir may get created for a new stream with an empty or corrupted _format, before any data gets actually written. In that case, we can just delete the new stream; worst case, we lose some metadata. Note: The info in _format should really get moved into the database. This was born when bulkdata switched from PyTables to a custom storage system, and was probably stored this way to avoid tying the main DB to specific implementation details while they were still in flux.
  • 905e325ded fsck: add fixer that fully removes a stream
  • 648b6f4b70 fsck: improve instructions about removing leftover data
  • Compare 6 commits »

3 months ago

jim pushed tag nilmbuntu-7 to nilm/nilmbuntu

3 months ago

jim pushed to master at nilm/nilmbuntu

3 months ago

jim pushed tag nilmbuntu-6 to nilm/nilmbuntu

3 months ago

jim pushed to master at nilm/nilmbuntu

3 months ago

jim pushed to master at nilm/nilmbuntu

3 months ago

jim pushed tag nilmbuntu-6 to nilm/nilmbuntu

3 months ago

jim pushed tag nilmdb-2.1.0 to nilm/nilmdb

3 months ago

jim pushed to master at nilm/nilmdb

3 months ago

jim pushed to master at jim/itm-decode

  • fa5647aaab Reopen stdout as an unbuffered binary stream We want to dump output directly from the device without any further processing, to support binary data dumps; we also disable buffering on stdout, to support piping output to other processes more cleanly.

5 months ago

jim pushed to master at jim/itm-decode

  • b9562c04e0 Add ability to add output marker via external signal For example, a script to flash the chip can use this to mark the output so that it's clear when the target was actually reset.
  • b3399e6134 Improve throughput by reading data in larger chunks Once a first byte is received, read as many as are immediately available in larger chunks before going back to single-byte reads. This prevents dropped data when the host is sending it quickly.
  • Compare 2 commits »

6 months ago

jim pushed to jim at jim/openocd

  • b1fa3bf735 Fix segfault in cortex_m_deinit_target Introduced by f92d7174cc09 "target/arm_adi_v5: power off chip debug hardware on shutdown". Change-Id: Ifc29295eaf82cb73347dfb578f878896699ea959

7 months ago