]> cvs.zerfleddert.de Git - hmcfgusb/log
hmcfgusb
9 years agoREADME: update -I information
Michael Gernoth [Thu, 2 Jul 2015 20:53:41 +0000 (22:53 +0200)]
README: update -I information

9 years agoRelease version 0.101 v0.101
Michael Gernoth [Wed, 1 Jul 2015 17:46:12 +0000 (19:46 +0200)]
Release version 0.101

9 years agohmland: fix interpretation of '+'
Michael Gernoth [Wed, 1 Jul 2015 17:44:17 +0000 (19:44 +0200)]
hmland: fix interpretation of '+'

The usb device expects a length byte before the AES channel-mask
is sent, so add it in. This fixes non-working aesCommReq.

9 years agoREADME: Homegear now knows about HM-USB-IF
Michael Gernoth [Wed, 1 Jul 2015 17:43:56 +0000 (19:43 +0200)]
README: Homegear now knows about HM-USB-IF

9 years agohmsniff: fix typo
Michael Gernoth [Wed, 1 Jul 2015 17:43:47 +0000 (19:43 +0200)]
hmsniff: fix typo

9 years agoRelease version 0.100 v0.100
Michael Gernoth [Tue, 30 Jun 2015 11:44:05 +0000 (13:44 +0200)]
Release version 0.100

Add description on how to build released versions and add compatibility
information (-I) to readme.

9 years agohmland: don't impersonate HM-CFG-LAN by default.
Michael Gernoth [Tue, 30 Jun 2015 11:40:45 +0000 (13:40 +0200)]
hmland: don't impersonate HM-CFG-LAN by default.

Don't respond to K-commands with HM-LAN-IF by default but respond with
the actual string returned by the USB device (HM-USB-IF). This breaks
compatibility with Fhem-versions before 2015-06-19 and possibly other
software (Homegear, eQ-3 rfd). To restore compatibility with these
software-packages, add the new command-line switch "-I" which restores
old behaviour.

9 years agohmland: only output load-byte on newest firmware
Michael Gernoth [Sun, 21 Jun 2015 10:40:54 +0000 (12:40 +0200)]
hmland: only output load-byte on newest firmware

9 years agohmland: add load-byte to 'H'-output
Michael Gernoth [Wed, 17 Jun 2015 15:37:40 +0000 (17:37 +0200)]
hmland: add load-byte to 'H'-output

9 years agoREADME: minor changes to OTA updates
Michael Gernoth [Wed, 27 May 2015 08:32:54 +0000 (10:32 +0200)]
README: minor changes to OTA updates

9 years agohmcfgusb: unify error-handling in interrupt
Michael Gernoth [Wed, 27 May 2015 08:30:22 +0000 (10:30 +0200)]
hmcfgusb: unify error-handling in interrupt

9 years agofix a few small memory-leaks when opening the USB device
Michael Gernoth [Wed, 27 May 2015 08:08:41 +0000 (10:08 +0200)]
fix a few small memory-leaks when opening the USB device

Free the USB device list, do not call libusb_exit() when not really
terminating, don't call libusb_init() more than once (no need
without libusb_exit()). Also handle canceled usb-transfers and free
their memory.

9 years agoREADME: add links for culfw and devices
Michael Gernoth [Mon, 25 May 2015 20:24:04 +0000 (22:24 +0200)]
README: add links for culfw and devices

9 years agoREADME: formatting
Michael Gernoth [Mon, 25 May 2015 15:58:38 +0000 (17:58 +0200)]
README: formatting

9 years agoREADME: fix link to BidCoS packet documentation
Michael Gernoth [Mon, 25 May 2015 15:37:05 +0000 (17:37 +0200)]
README: fix link to BidCoS packet documentation

9 years agoREADME: add README.md
Michael Gernoth [Mon, 25 May 2015 15:29:09 +0000 (17:29 +0200)]
README: add README.md

9 years agohmland: handle commands spanning packet-boundaries
Michael Gernoth [Mon, 25 May 2015 14:17:17 +0000 (16:17 +0200)]
hmland: handle commands spanning packet-boundaries

Previously each command which crossed packet boundaries (because
there were many commands in a packet) was wrongly executed as
2 seperate commands. This is now fixed by reading from the
network until a \r or \n is seen and only then executing the
command.
Fixes crashes of the hmcfgusb when fhem reconnects and sends a
huge list of known devices ('+'-packets).

9 years agobump version
Michael Gernoth [Sun, 24 May 2015 19:30:26 +0000 (21:30 +0200)]
bump version

9 years agohmland: increase receive-buffer for lan-messages
Michael Gernoth [Sun, 24 May 2015 19:29:47 +0000 (21:29 +0200)]
hmland: increase receive-buffer for lan-messages

9 years agoavoid possible null-pointer dereference in error-path
Michael Gernoth [Sat, 31 Jan 2015 23:57:30 +0000 (00:57 +0100)]
avoid possible null-pointer dereference in error-path

10 years agoadd possibility to log network communication
Michael Gernoth [Thu, 29 May 2014 16:19:42 +0000 (18:19 +0200)]
add possibility to log network communication

10 years agoonly reboot by default when firmware-version is < 0.967
Michael Gernoth [Wed, 14 May 2014 08:08:36 +0000 (10:08 +0200)]
only reboot by default when firmware-version is < 0.967

10 years agobump version to 0.096-git
Michael Gernoth [Sun, 16 Mar 2014 16:57:26 +0000 (17:57 +0100)]
bump version to 0.096-git

10 years agofix culfw version-check
Michael Gernoth [Fri, 14 Mar 2014 19:55:37 +0000 (20:55 +0100)]
fix culfw version-check

10 years agoincrease timeout granularity to handle missing acks on culfw-devices
Michael Gernoth [Thu, 6 Mar 2014 21:37:49 +0000 (22:37 +0100)]
increase timeout granularity to handle missing acks on culfw-devices

10 years agoadd culfw firmware version-check
Michael Gernoth [Wed, 5 Mar 2014 10:41:00 +0000 (11:41 +0100)]
add culfw firmware version-check

10 years agofix variable assignment, copyright year
Michael Gernoth [Wed, 5 Mar 2014 07:56:19 +0000 (08:56 +0100)]
fix variable assignment, copyright year

10 years agoincrease hm-buffer for culfw-devices
Michael Gernoth [Wed, 5 Mar 2014 07:26:09 +0000 (08:26 +0100)]
increase hm-buffer for culfw-devices

10 years agofix poll
Michael Gernoth [Wed, 5 Mar 2014 01:35:28 +0000 (02:35 +0100)]
fix poll

10 years agofix error messages
Michael Gernoth [Wed, 5 Mar 2014 01:22:59 +0000 (02:22 +0100)]
fix error messages

10 years agoabort on missing acks
Michael Gernoth [Wed, 5 Mar 2014 00:48:39 +0000 (01:48 +0100)]
abort on missing acks

10 years agochange default speed, fix getopt
Michael Gernoth [Wed, 5 Mar 2014 00:36:41 +0000 (01:36 +0100)]
change default speed, fix getopt

10 years agoadd OTA support for culfw-based devices
Michael Gernoth [Wed, 5 Mar 2014 00:29:29 +0000 (01:29 +0100)]
add OTA support for culfw-based devices

10 years agothe switch_msg are actually CC1101-registers
Michael Gernoth [Sun, 16 Feb 2014 17:11:23 +0000 (18:11 +0100)]
the switch_msg are actually CC1101-registers

10 years agoreboot before flashing and retry a bit more often
Michael Gernoth [Sun, 16 Feb 2014 14:30:00 +0000 (15:30 +0100)]
reboot before flashing and retry a bit more often

10 years agofixed misleading error message
Michael Gernoth [Sun, 16 Feb 2014 11:29:34 +0000 (12:29 +0100)]
fixed misleading error message

10 years agoset the source hmid, else OTA will fail
Michael Gernoth [Sun, 16 Feb 2014 11:06:18 +0000 (12:06 +0100)]
set the source hmid, else OTA will fail

10 years agocheck hmcfgusb firmware before trying to switch speed
Michael Gernoth [Sun, 16 Feb 2014 08:38:22 +0000 (09:38 +0100)]
check hmcfgusb firmware before trying to switch speed

10 years agomore minor cleanups
Michael Gernoth [Sun, 16 Feb 2014 08:27:24 +0000 (09:27 +0100)]
more minor cleanups

10 years agoa few cleanups
Michael Gernoth [Sun, 16 Feb 2014 08:14:09 +0000 (09:14 +0100)]
a few cleanups

10 years agoadd missing newline
Michael Gernoth [Sun, 16 Feb 2014 02:13:49 +0000 (03:13 +0100)]
add missing newline

10 years agoAdd flasher for OTA devices
Michael Gernoth [Sun, 16 Feb 2014 02:09:47 +0000 (03:09 +0100)]
Add flasher for OTA devices

10 years agoETIMEDOUT is not a fatal error
Michael Gernoth [Sat, 15 Feb 2014 16:09:13 +0000 (17:09 +0100)]
ETIMEDOUT is not a fatal error

10 years agodon't expect to always receive a full frame
Michael Gernoth [Sat, 15 Feb 2014 11:47:10 +0000 (12:47 +0100)]
don't expect to always receive a full frame

with this the bootloader-workaround can also be removed, as the
bootloader will only send 1 byte, not 64.

10 years agosplit out firmware-reading into own module
Michael Gernoth [Sat, 15 Feb 2014 10:26:41 +0000 (11:26 +0100)]
split out firmware-reading into own module

10 years agohandle switch to and from FUP-mode
Michael Gernoth [Sat, 15 Feb 2014 10:01:50 +0000 (11:01 +0100)]
handle switch to and from FUP-mode

To enter firmware-update-mode send: G64
To leave firmware-update-mode send: G0A

10 years agotypo
Michael Gernoth [Thu, 13 Feb 2014 16:17:22 +0000 (17:17 +0100)]
typo

10 years agocleanup flasher: parse and validate firmware before flashing
Michael Gernoth [Thu, 13 Feb 2014 11:25:40 +0000 (12:25 +0100)]
cleanup flasher: parse and validate firmware before flashing

10 years agofirmware-updater works now (needs hmusbif.enc)
Michael Gernoth [Mon, 10 Feb 2014 21:35:58 +0000 (22:35 +0100)]
firmware-updater works now (needs hmusbif.enc)

10 years agolink against librt, too
Michael Gernoth [Sat, 18 Jan 2014 21:26:11 +0000 (22:26 +0100)]
link against librt, too

11 years agobump version to 0.091-git
Michael Gernoth [Wed, 13 Nov 2013 21:45:50 +0000 (22:45 +0100)]
bump version to 0.091-git

11 years agomake sure to close the device and call libusb_exit() on errors in hmcfgusb_init()
Michael Gernoth [Wed, 13 Nov 2013 20:38:37 +0000 (21:38 +0100)]
make sure to close the device and call libusb_exit() on errors in hmcfgusb_init()

Thanks to Ralf (johann @ fhem-forum) for reporting and fixing this

11 years agoadd version (prepare to release 0.1)
Michael Gernoth [Wed, 23 Oct 2013 20:06:09 +0000 (22:06 +0200)]
add version (prepare to release 0.1)

11 years agohandle bootloader-mode on OpenWrt, too
Michael Gernoth [Tue, 15 Oct 2013 08:11:01 +0000 (10:11 +0200)]
handle bootloader-mode on OpenWrt, too

11 years agobetter check if reboot is to be scheduled on the next day
Michael Gernoth [Thu, 22 Aug 2013 10:14:27 +0000 (12:14 +0200)]
better check if reboot is to be scheduled on the next day

11 years agoallow absolute reboot (hh:mm) time to be specified with -r switch
Michael Gernoth [Thu, 22 Aug 2013 09:25:22 +0000 (11:25 +0200)]
allow absolute reboot (hh:mm) time to be specified with -r switch

11 years agofactor out leaving the bootloader into own function
Michael Gernoth [Sun, 18 Aug 2013 18:19:49 +0000 (20:19 +0200)]
factor out leaving the bootloader into own function

11 years agoperiodically reset HM-CFG-USB by enetring and leaving bootloader-mode
Michael Gernoth [Sun, 18 Aug 2013 15:07:08 +0000 (17:07 +0200)]
periodically reset HM-CFG-USB by enetring and leaving bootloader-mode

11 years agoclarify inet_ntop error (it is fatal!)
Michael Gernoth [Sun, 28 Jul 2013 21:39:40 +0000 (23:39 +0200)]
clarify inet_ntop error (it is fatal!)

11 years agoadd support for older libusb-1.0 found in debian squeeze
Michael Gernoth [Sun, 28 Jul 2013 21:33:24 +0000 (23:33 +0200)]
add support for older libusb-1.0 found in debian squeeze

11 years agorevert null frame to zero length
Michael Gernoth [Sun, 14 Jul 2013 11:35:46 +0000 (13:35 +0200)]
revert null frame to zero length

11 years agoonly wake the device up when the timeout really expired
Michael Gernoth [Sat, 13 Jul 2013 22:43:29 +0000 (00:43 +0200)]
only wake the device up when the timeout really expired

11 years agoprobably working flasher...
Michael Gernoth [Sat, 13 Jul 2013 18:19:48 +0000 (20:19 +0200)]
probably working flasher...

11 years agosend a full frame containing only zeroes instead of a zero-byte frame
Michael Gernoth [Sat, 13 Jul 2013 16:48:32 +0000 (18:48 +0200)]
send a full frame containing only zeroes instead of a zero-byte frame

11 years agoshow textual error
Michael Gernoth [Sat, 13 Jul 2013 16:36:32 +0000 (18:36 +0200)]
show textual error

11 years agodo not report errors when sending of the wakeup-frame fails
Michael Gernoth [Sat, 13 Jul 2013 13:52:21 +0000 (15:52 +0200)]
do not report errors when sending of the wakeup-frame fails

11 years agoopen device in bootloader-mode, too
Michael Gernoth [Sat, 13 Jul 2013 11:31:20 +0000 (13:31 +0200)]
open device in bootloader-mode, too

11 years agoadd non-working firmware-flasher
Michael Gernoth [Sat, 13 Jul 2013 11:28:08 +0000 (13:28 +0200)]
add non-working firmware-flasher

11 years agoprint timestamps in verbose mode
Michael Gernoth [Sat, 13 Jul 2013 10:49:03 +0000 (12:49 +0200)]
print timestamps in verbose mode

11 years agodon't abort on write-error when sending queued packets
Michael Gernoth [Sat, 13 Jul 2013 10:29:57 +0000 (12:29 +0200)]
don't abort on write-error when sending queued packets

11 years agoqueue all rx-data until response to first K is received
Michael Gernoth [Sat, 13 Jul 2013 10:26:37 +0000 (12:26 +0200)]
queue all rx-data until response to first K is received

this improves compatibility with windows config software

11 years agodon't print crnl to console
Michael Gernoth [Sat, 13 Jul 2013 09:42:43 +0000 (11:42 +0200)]
don't print crnl to console

11 years agoprint lan-communication in verbose-mode
Michael Gernoth [Sat, 13 Jul 2013 09:38:42 +0000 (11:38 +0200)]
print lan-communication in verbose-mode

11 years agoadd missing break
Michael Gernoth [Wed, 10 Jul 2013 13:33:01 +0000 (15:33 +0200)]
add missing break

11 years agosetting an AES encryption key (Y) needs a length-byte
Michael Gernoth [Wed, 10 Jul 2013 13:13:08 +0000 (15:13 +0200)]
setting an AES encryption key (Y) needs a length-byte

11 years agouse minimum tiemout value from call/libusb
Michael Gernoth [Mon, 8 Jul 2013 11:03:38 +0000 (13:03 +0200)]
use minimum tiemout value from call/libusb

11 years agomake -R default, it doesn't hurt but may improve performance
Michael Gernoth [Mon, 8 Jul 2013 07:33:05 +0000 (09:33 +0200)]
make -R default, it doesn't hurt but may improve performance

11 years agotypo
Michael Gernoth [Sun, 7 Jul 2013 20:41:12 +0000 (22:41 +0200)]
typo

11 years agoalways show timing warning, not only when debugging is enabled
Michael Gernoth [Sun, 7 Jul 2013 20:38:11 +0000 (22:38 +0200)]
always show timing warning, not only when debugging is enabled

11 years agoadd -R as workaround for Raspberry Pi
Michael Gernoth [Sun, 7 Jul 2013 20:25:42 +0000 (22:25 +0200)]
add -R as workaround for Raspberry Pi

11 years agosome changes in transfer-time-measurement
Michael Gernoth [Sun, 7 Jul 2013 20:25:11 +0000 (22:25 +0200)]
some changes in transfer-time-measurement

11 years agoadd and export function to send only a null frame
Michael Gernoth [Sun, 7 Jul 2013 20:04:56 +0000 (22:04 +0200)]
add and export function to send only a null frame

11 years agoadd USB send-duration to debug output
Michael Gernoth [Fri, 5 Jul 2013 08:22:19 +0000 (10:22 +0200)]
add USB send-duration to debug output

11 years agoadd separate LICENSE file
Michael Gernoth [Sat, 29 Jun 2013 10:15:47 +0000 (12:15 +0200)]
add separate LICENSE file

11 years agofix cases where there are multiple commands per packet including sends
Michael Gernoth [Sun, 23 Jun 2013 09:54:33 +0000 (11:54 +0200)]
fix cases where there are multiple commands per packet including sends

this allows hland to be used as lan adapter with a CCU or the windows
config software

11 years agorefuse to start when PID file exists
Michael Gernoth [Sun, 16 Jun 2013 12:36:30 +0000 (14:36 +0200)]
refuse to start when PID file exists

11 years agoadd option to create a PID file in daemon-mode
Michael Gernoth [Fri, 14 Jun 2013 19:40:58 +0000 (21:40 +0200)]
add option to create a PID file in daemon-mode

11 years agofix linker parameter order
Michael Gernoth [Wed, 12 Jun 2013 18:18:31 +0000 (20:18 +0200)]
fix linker parameter order

11 years agofree memory in case of errors
Michael Gernoth [Sat, 8 Jun 2013 21:22:06 +0000 (23:22 +0200)]
free memory in case of errors

11 years agoadd option to bind socket to specified interface (e.g. localhost) only
Michael Gernoth [Sat, 8 Jun 2013 21:15:31 +0000 (23:15 +0200)]
add option to bind socket to specified interface (e.g. localhost) only

11 years agosigaction-failure is fatal
Michael Gernoth [Wed, 5 Jun 2013 12:13:30 +0000 (14:13 +0200)]
sigaction-failure is fatal

11 years agogracefully handle errors on socket-write
Michael Gernoth [Wed, 5 Jun 2013 12:09:52 +0000 (14:09 +0200)]
gracefully handle errors on socket-write

11 years agoand again, libusb_free_transfer frees the buffer
Michael Gernoth [Sun, 2 Jun 2013 12:24:34 +0000 (14:24 +0200)]
and again, libusb_free_transfer frees the buffer

11 years agodata buffer is freed by libusb_free_transfer
Michael Gernoth [Sun, 2 Jun 2013 11:54:53 +0000 (13:54 +0200)]
data buffer is freed by libusb_free_transfer

11 years agohotplug-dir needs to be created before copying stuff into it...
Michael Gernoth [Sat, 1 Jun 2013 10:04:41 +0000 (12:04 +0200)]
hotplug-dir needs to be created before copying stuff into it...

11 years agoOpenWRT hotplug-script (starts hmland when device is plugged in)
Michael Gernoth [Sat, 1 Jun 2013 10:01:00 +0000 (12:01 +0200)]
OpenWRT hotplug-script (starts hmland when device is plugged in)

11 years agoadd Makefile for OpenWRT
Michael Gernoth [Sat, 1 Jun 2013 09:25:10 +0000 (11:25 +0200)]
add Makefile for OpenWRT

11 years agodon't abort when the device reboots, only set hmId when needed
Michael Gernoth [Fri, 31 May 2013 12:25:46 +0000 (14:25 +0200)]
don't abort when the device reboots, only set hmId when needed

11 years agoadd timestamp
Michael Gernoth [Thu, 30 May 2013 22:31:51 +0000 (00:31 +0200)]
add timestamp

11 years agofix cfg-flag
Michael Gernoth [Thu, 30 May 2013 21:57:21 +0000 (23:57 +0200)]
fix cfg-flag

Impressum, Datenschutz