Commit graph

27 commits

Author SHA1 Message Date
Dave Eddy
5d9d109e8b Support building on SmartOS 2018-07-17 12:48:22 -04:00
Tom Ivar Helbekkmo
232474e6ad Make it a bit tidier, on advice from @krytarowski 2018-06-09 12:43:46 +02:00
Tom Ivar Helbekkmo
0e01a1053f Add missing #ifdef __NetBSD__ for a platform specific cast 2018-06-08 12:22:09 +02:00
Tom Ivar Helbekkmo
c8f4fdc713 Initial NetBSD port 2018-04-29 10:07:52 +02:00
Fabrice Fontaine
0878d93322 Fix warning on wcsdup implicit declaration
Define __GNU_SOURCE in cpp/hidapi/linux/hid.c (like already done in
cpp/hidapi/libusb/hid.c) to fix implicit declaration of wcsdup function
2016-04-25 09:25:21 +02:00
Johan Ström
af7b40c735 Multi-platform compatible FreeBSD build fix for iconv
Revert hid.c change in d78c7d0, and enforce older FreeBSD versions to
use libiconv from ports instead of old non-posix from base.
Should fix #748
2016-01-21 21:58:10 +01:00
Augie Fackler
d78c7d08c9 hid.c: make inptr in get_usb_string const
Without this fix, I get:
openzwave/cpp/hidapi/libusb/hid.c:372:18: error: passing
      'char **' to parameter of type 'const char **' discards qualifiers in nested
      pointer types [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
        res = iconv(ic, &inptr, &inbytes, &outptr, &outbytes);
                        ^~~~~~
/usr/include/iconv.h:56:47: note: passing argument to parameter here
size_t  iconv(iconv_t, const char ** __restrict,

from FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
2016-01-06 23:51:07 -05:00
Johan Ström
d1997e92e9 FreeBSD does no longer require const char* for iconv input 2015-11-25 20:06:37 +01:00
Johan Ström
4d606f44f9 Fix for issue 462 2015-03-18 17:20:59 +01:00
7232ac5533 fixed issue 350 - FreeBSD Support 2014-12-05 06:52:30 +00:00
4e0a719d10 merge 2013-11-13 branch into trunk 2014-02-14 13:46:51 +00:00
dscottmiller3
771741a15b 2012-12-11 18:25:09 +00:00
glsatz
ab76b0babc Upgrade to the latest hidapi. 2012-12-10 18:07:07 +00:00
hari@vt100.at
55b85c0dc2 remove binary 2012-11-15 13:57:48 +00:00
hari@vt100.at
db8962dfb1 remove binaries 2012-11-15 09:48:26 +00:00
glsatz
1a2b57f9c7 Change logging for node numbers. Add new Log::Write method that takes a
node number as an argument. All formatting is now done in the log object
instead of being scattered around. Also added a new helper routine that
takes a Msg object and returns the target node id. In the case of no
message it returns 0 and no node number will be output in the log. See
Driver::GetNodeNumber.
Not all the classes use the new Log::Write yet.
Retreive SUC node id. Just uncomment existing code.
Add error checking to pthreads mutex calls.
Don't do the Query_Wakeup phase for FLiRS nodes as they don't seem to
respond to wakeup class messages and they will respond to others.
Add missing LockNodes/ReleaseNodes around node array scan when removing
controller that returns 0 for node number.
2012-02-28 23:55:50 +00:00
glsatz
4363dd6ab4 hidapi update to version 2011-09-10 2012-02-13 04:25:59 +00:00
glsatz
3a85a66464 Add promiscuous message handling but left commented out.
Added tracking and returning driver specific message count and error data. see Manager::GetDriverStatistics
Random formatting changes for consistency.
Class SensorMultilevel will use multiple indexes for multiple sensors.
Node::GetNeighbors will only return valid data. Wait for proper query stage to complete.
On Driver shutdown stop threads then remove controller object.
Add extra comments to Driver::IsControllerCommand so we can better track commands.
Update Mac OS X example Main.cpp to be consistent with Linux version. Handle more notifications
and add a thread to wait for query completion.
Add statistics print out to both Linux and Mac OS X example apps.
Fix Mac hidapi to terminate its background CFRunLoop upon hid_close.
2011-08-16 20:25:14 +00:00
pnaulls@gmail.com
01aa2c7853 Misc grammar fixes. 2011-08-16 16:28:23 +00:00
pnaulls@gmail.com
497f42e614 OpenWrt's libudev just got updated, so this define is no longer required against
the older version.
2011-08-05 15:34:09 +00:00
pnaulls@gmail.com
9e5e002840 Warning fixes; build in Linux with -Werror. There are no
functionality changes with this commit.
2011-07-11 00:09:41 +00:00
pnaulls@gmail.com
5646ae2d31 Add build definition for building against OpenWrt's libudev 2011-07-10 22:57:13 +00:00
glsatz
06c6adbd8c Change HID debugging symbol to HIDDEBUG to reduce extra output unless
necessary.
Add missing ioctls for Linux HID support. Remove these when a newer
linux/hidraw.h is available.
Add more defensive checks in device add/remove processing. Not all
controllers fill in the node field.
Provide group notifications on initial group discovery.
Add Aeon Labs Home Energy Monitor device defintion as well as update device
info for Everspring SM103.
Make sure ACT Zir010 has default values specified in configuration for
initial case.
2011-05-16 23:37:45 +00:00
glsatz
b7603998d7 Rewrite of HidControllerImpl::Read for stability.
Reformat to OZW formatting standards.
Update to latest hidapi version.
USB HID devices should now be working. Tested on Linux & Mac OS X.
2011-05-15 19:20:14 +00:00
glsatz
ecee53a606 Set svn eol-style property to native to help with mixed platform file
end-of-line characters and patching.
2011-03-14 05:12:47 +00:00
glsatz
63422b5d90 Modify Makefiles to permit USB/HID support to compile. Select
using the raw hid device /dev/hidraw instead of libusb.a access.
NOTE: the hidapi raw hid access requires special ioctls for feature
requests, HIDIOCGFEATURE and HIDIOCSFEATURE. These calls are currently
commented out so thel library will compile. This still needs to be
addressed.
2011-01-24 04:06:43 +00:00
frazierjason@gmail.com
1f0d775376 Adding support for HID interface USB ZWave controllers (ThinkStick, Wayne-Dalton branded, etc). This is the initial implementation, there are bugs to be fixed and further analysis/tweaks will be needed to make it stable and reduce packet errors.
Currently the most compatible  firmware is ThinkStick v4.53; it emits several errors during initialization but afterwards seems to communicate normally with other ZWave devices.

HID support by default is not enabled in the MinOZW sample application.  You will need to swap the commented call to Manager::Get()->AddDriver() line in MinOZW main() so that it uses the HID driver instead of the serial one.
2011-01-24 00:31:43 +00:00