]> the.earth.li Git - energenie-attiny.git/log
energenie-attiny.git
4 years agoResubscribe to MQTT prefix when reconnecting main
Jonathan McDowell [Mon, 21 Sep 2020 20:18:57 +0000 (21:18 +0100)]
Resubscribe to MQTT prefix when reconnecting

4 years agoAdd periodic uptime information to MQTT listener
Jonathan McDowell [Mon, 21 Sep 2020 19:15:53 +0000 (20:15 +0100)]
Add periodic uptime information to MQTT listener

6 years agoAdd a README
Jonathan McDowell [Tue, 4 Sep 2018 17:58:37 +0000 (18:58 +0100)]
Add a README

6 years agoAdd mqtt-power showing integration with MQTT via Python
Jonathan McDowell [Tue, 4 Sep 2018 17:24:16 +0000 (18:24 +0100)]
Add mqtt-power showing integration with MQTT via Python

6 years agoMove the repeat count to a #define and bump to 10
Jonathan McDowell [Sun, 3 Jun 2018 17:43:44 +0000 (18:43 +0100)]
Move the repeat count to a #define and bump to 10

To help improve reliability repeat the command 10 times instead of
just 5.

6 years agoTrack the requested state so we can return it when asked
Jonathan McDowell [Wed, 30 May 2018 07:26:59 +0000 (08:26 +0100)]
Track the requested state so we can return it when asked

The original USB relay code can query the GPIO lines to see which relays
are enabled. We only have one way communication to the power sockets so
they might be in a different state to that requested, but store the
state we think we should have so when asked we can return it, rather
than always returning that everything is off.

6 years agoUse serial number as base address + report in USB descriptor
Jonathan McDowell [Tue, 29 May 2018 07:31:26 +0000 (08:31 +0100)]
Use serial number as base address + report in USB descriptor

Rather than hard coding the base Energenie address use the serial number
to encode it. Also report it as part of the USB descriptor making it
easier to match against for udev etc.

6 years agoAdd a wait before sending via the 433MHz transmitter
Jonathan McDowell [Tue, 29 May 2018 06:32:09 +0000 (07:32 +0100)]
Add a wait before sending via the 433MHz transmitter

Rather than immediately entering the lengthy (24ms+) loop to send a
command allow a number of calls to usbPoll() to complete first. This
allows the usbrelay control program to successfully receive a response
to its hid_write() call before we stop responding to USB for a bit.

6 years agoAdd initial 433MHz / USB Relay code
Jonathan McDowell [Mon, 28 May 2018 21:56:37 +0000 (22:56 +0100)]
Add initial 433MHz / USB Relay code

This pretends to be a dcttech.com 4 port relay board but actually sends
the appropriate 433MHz signals to control 4 Energenie power sockets.

6 years agoAdd skeleton usbconfig.h for Digispark
Jonathan McDowell [Wed, 2 May 2018 07:08:47 +0000 (08:08 +0100)]
Add skeleton usbconfig.h for Digispark

This is the upstream usbconfig-prototype.h with the port / interrupt
definitions changed to suit the DigiSpark.

6 years agoAdd basic Makefile targeting Digispark
Jonathan McDowell [Tue, 1 May 2018 17:32:39 +0000 (18:32 +0100)]
Add basic Makefile targeting Digispark

Assumes the existence of a main.c containing the main code, and
builds the rest of the V-USB code with it.

6 years agoUse existing OSCCAL as starting point for calibration
Jonathan McDowell [Sat, 14 Jan 2017 11:41:14 +0000 (11:41 +0000)]
Use existing OSCCAL as starting point for calibration

If we're being loaded from micronucleus it will have already
performed calibration on OSCCAL, so use that as the starting point
for our recalibration. This seems to improve things on an older Dell
host that previously had issues enumerating the device.

6 years agoMove to micronucleus assembly for OSCCAL calibration
Jonathan McDowell [Sat, 14 Jan 2017 01:07:09 +0000 (01:07 +0000)]
Move to micronucleus assembly for OSCCAL calibration

Some issues have been observed with OSCCAL calibration on older Dell
hosts. The micronucleus firmware enumerates correctly, but the Riso
clone then fails. Move to the assembly calibration code from
micronucleus to try and improve the situation.

Imported from https://github.com/micronucleus/micronucleus.git,
commit 7a53ce9e539a18fb46f7dc8e759f14833b10cc0c (July 31st 2016).

7 years agoAdd .gitignore file
Jonathan McDowell [Wed, 18 May 2016 17:22:51 +0000 (18:22 +0100)]
Add .gitignore file

8 years agoInclude usbdrv.h in osccal.c for usbMeasureFrameLength definition
Jonathan McDowell [Wed, 18 May 2016 10:19:56 +0000 (11:19 +0100)]
Include usbdrv.h in osccal.c for usbMeasureFrameLength definition

8 years agoAdd license file (GPLv3)
Jonathan McDowell [Wed, 18 May 2016 08:53:09 +0000 (09:53 +0100)]
Add license file (GPLv3)

8 years agoInitial import of V-USB as base
Jonathan McDowell [Wed, 18 May 2016 08:51:50 +0000 (09:51 +0100)]
Initial import of V-USB as base

Import V-USB from https://github.com/obdev/v-usb.git, commit
39202048ea1fb7d14a5970c805ffd5f0b7f0fcdf (September 4th 2015).