1
0
Fork 0
Commit Graph

462 Commits

Author SHA1 Message Date
Kevin Matz f4c91891e0 more nuanced failure mode tracking 2023-05-03 16:02:06 -04:00
Kevin Matz 3882af3659 corrected checksum element ordering 2023-05-03 15:59:14 -04:00
Kevin Matz 6c7d62ca6b arbitrary data checksumming 2023-05-03 15:57:37 -04:00
Kevin Matz c0074e62b7 documentation updates 2023-05-03 15:56:48 -04:00
Kevin Matz 41b51f7aa9 unit lookup helpers 2023-05-02 13:01:33 -04:00
Kevin Matz e1f0836a55 additional documentation 2023-05-02 13:00:57 -04:00
Kevin Matz 9985f21cb2 split device types 2023-05-02 13:00:41 -04:00
Kevin Matz 887ce0f5a4 comprehensive parameter descriptions 2023-05-02 12:59:26 -04:00
Kevin Matz 91fa0c71e4 structure for parameter metadata 2023-05-02 12:50:06 -04:00
Kevin Matz ec98049b39 bibs for RDM additional message sets 2023-05-02 12:43:47 -04:00
Kevin Matz a1b08fd22d publicly accessible UID 2023-04-28 21:02:35 -04:00
Kevin Matz 9b27820873 RDM API cleanup 2023-04-28 20:46:13 -04:00
Kevin Matz 29173eacf2 use the BCD serial number for the RDM device id 2023-04-28 20:19:15 -04:00
Kevin Matz ab17dc05ba template the BCD converters 2023-04-28 20:16:41 -04:00
Kevin Matz 35dc0f30d2 configure RDM device info 2023-04-27 09:26:05 -04:00
Kevin Matz 73615db6c4 additional device info details 2023-04-27 09:25:07 -04:00
Kevin Matz 7fffc6d0dd formatting cleanup 2023-04-27 09:23:56 -04:00
Kevin Matz 08ca66fcb3 only claim the manufacturer ID if there isn't one 2023-04-27 09:20:41 -04:00
Kevin Matz 176ddf1df6 refactor check-summing to be pointers and referances 2023-04-27 09:10:15 -04:00
Kevin Matz d80e4c6559 group template functions for readability 2023-04-27 09:09:01 -04:00
Kevin Matz 5455d805d5 remove ineffective optimization 2023-04-27 09:05:09 -04:00
Kevin Matz bc36227387 cast to a pointer of the referance, not the value 2023-04-26 14:34:45 -04:00
Kevin Matz fc48300964 connect RDM responder I/O 2023-04-26 10:05:16 -04:00
Kevin Matz e951c25461 let the universe decide what to do with start codes 2023-04-26 10:04:06 -04:00
Kevin Matz f1612dc60e use a callback to send RDM data 2023-04-26 10:02:20 -04:00
Kevin Matz db3da280da pre allocate memory for the message data 2023-04-26 10:01:33 -04:00
Kevin Matz dafa95ec76 use callbacks to process alternate start codes 2023-04-26 09:59:14 -04:00
Kevin Matz 7802f201e0 documentation 2023-04-26 09:58:03 -04:00
Kevin Matz 2fdef29242 use the widget mode to determine the appropriate RDM configuration 2023-04-25 16:48:24 -04:00
Kevin Matz 54b2335c98 disambiguation for the include search path 2023-04-25 16:47:27 -04:00
Kevin Matz 098d936897 documentation and namespace cleanup 2023-04-25 12:14:03 -04:00
Kevin Matz c40d1fcdf5 documentation cleanup 2023-04-25 10:25:54 -04:00
Kevin Matz d91838dc5b receive packets 2023-04-25 10:10:16 -04:00
Kevin Matz 960e228e59 non-REST'style namespaces may need to reimpliment name matching 2023-04-25 10:09:51 -04:00
Kevin Matz 929ca62016 use guidance from opensoundcontrol website regarding client-server model 2023-04-25 09:03:46 -04:00
Kevin Matz 402bcf9188 add testing notes to the correct task list 2023-04-25 09:02:00 -04:00
Kevin Matz 38ff40e646 sending is a requirement of inheritors 2023-04-25 08:17:06 -04:00
Kevin Matz 773375757e bundle dispatching 2023-04-24 16:44:04 -04:00
Kevin Matz 0bfab08041 mark dispatching as const 2023-04-24 16:43:35 -04:00
Kevin Matz d7722f24f3 init the timetag to the epoch 2023-04-24 16:40:37 -04:00
Kevin Matz fa8b0482da omit the packet class 2023-04-24 16:39:40 -04:00
Kevin Matz e94db990ac explicit virtual destructor 2023-04-24 13:06:26 -04:00
Kevin Matz 031d00bed4 drop the packet class 2023-04-24 13:05:54 -04:00
Kevin Matz 23572904d2 timetag values to/from system time 2023-04-24 13:04:49 -04:00
Kevin Matz 4023cdaa81 drop the non-standard 128-bit timetag 2023-04-24 13:04:13 -04:00
Kevin Matz 22141d9a03 don't build NTP until there is a user 2023-04-24 13:03:30 -04:00
Kevin Matz 8fd3cc83cf a clock with the NTP epoch 2023-04-24 13:03:13 -04:00
Kevin Matz 7a25eeada7 callbacks for the method to trigger 2023-04-23 19:30:51 -04:00
Kevin Matz 913a1f789b use a regex to match the method name 2023-04-23 19:29:21 -04:00
Kevin Matz 76b8f974e7 patterns are a list 2023-04-23 11:56:57 -04:00
Kevin Matz 42ca307c4d receiver for OSC messages 2023-04-23 11:35:31 -04:00
Kevin Matz 1cce721179 endpoints for messages 2023-04-23 11:34:35 -04:00
Kevin Matz 877ab3ed4c message and bundle I/O 2023-04-23 11:33:58 -04:00
Kevin Matz d51d3163f9 the various OSC argument types 2023-04-23 11:32:52 -04:00
Kevin Matz abe41404cc remove extraneous brackets 2023-04-23 11:30:26 -04:00
Kevin Matz 4d797f2c1c also set the DMX device class when changing operating mode 2023-04-17 08:17:31 -04:00
Kevin Matz a34ada6da5 an asynchronous open procedure 2023-04-16 21:13:11 -04:00
Kevin Matz c3bc6dc44e read the full length of remaining data 2023-04-16 14:54:01 -04:00
Kevin Matz 63aef39f28 bring awareness of device operating classes to the base universe class 2023-04-16 11:05:04 -04:00
Kevin Matz f1f153f09e bring active slot awareness down to the base universe class 2023-04-16 11:03:53 -04:00
Kevin Matz 18e710dc56 simplify open/close semantics 2023-04-14 10:10:10 -04:00
Kevin Matz 80bfce67b7 setting parameters may optionally set the user data 2023-04-14 10:09:26 -04:00
Kevin Matz a58ffc5c4a remove promises/futures for now 2023-04-14 10:07:58 -04:00
Kevin Matz 0bb177c68e get/set user configuration data 2023-04-14 09:55:10 -04:00
Kevin Matz da32cf4240 feature sets are encoded in the high byte of the firmware version 2023-04-14 09:54:05 -04:00
Kevin Matz 1bf3f23a66 return the calculated value that was actually set 2023-04-14 09:53:30 -04:00
Kevin Matz 5d7f169692 don't change the mode when opening 2023-04-09 20:51:07 -04:00
Kevin Matz 4833b37739 copy dimmer data directly to the data vector 2023-04-09 20:42:05 -04:00
Kevin Matz 244da5c8c1 no need to pass around zero data messages 2023-04-09 19:51:01 -04:00
Kevin Matz c16e999969 use a helper to make the different MessageData specializations 2023-04-09 19:43:54 -04:00
Kevin Matz 3cb89f51d3 mark stream functions as virtual in the derivative classes 2023-04-09 19:34:27 -04:00
Kevin Matz b6e080f7b4 give the No-Op message it's own class 2023-04-09 19:33:03 -04:00
Kevin Matz be4064bb14 declare a storage type for enums 2023-04-09 19:32:35 -04:00
Kevin Matz 6387944c68 the usb mode can be accessible by super classes 2023-04-09 19:31:56 -04:00
Kevin Matz 55317f7513 BCD encode/decode the serial number 2023-04-09 19:26:41 -04:00
Kevin Matz c12044326f accept hello on closed port 2023-04-06 12:39:18 -04:00
Kevin Matz e1e9c9d473 enable label=0 as ping/echo 2023-04-06 12:37:25 -04:00
Kevin Matz 9168f1b98c a (probably incorrect) interpretation of writing firmware 2023-04-06 10:43:42 -04:00
Kevin Matz 0617cc3bf6 only send a reboot message if operating as a USB Host 2023-04-06 10:42:39 -04:00
Kevin Matz 388beecf8d take the promise's future whilst still holding the metadata mutex 2023-04-06 10:11:33 -04:00
Kevin Matz b92f159d02 default into bridge mode on init/connect 2023-04-06 09:53:42 -04:00
Kevin Matz 153786efa4 get the initial parameter values when the device is opened. 2023-04-06 09:45:39 -04:00
Kevin Matz 97ae66e231 Only consider the port to be open if a serial number can be read within 500 milliseconds. 2023-04-06 09:44:54 -04:00
Kevin Matz e316c71a83 messages that expect a reply may optionally block to wait for it. 2023-04-06 09:43:41 -04:00
Kevin Matz a355edd722 use the USB mode to determine connection state 2023-04-06 09:40:00 -04:00
Kevin Matz c2f1dcce07 rename the dimmer data change callback token 2023-04-06 08:34:35 -04:00
Kevin Matz fa2625f77d thread protect metadata with a mutex 2023-04-06 08:33:57 -04:00
Kevin Matz 5a4e827f08 DMX data I/O 2023-04-05 12:41:13 -04:00
Kevin Matz 55c9060ff6 use the same defaults as the Enttec 2023-04-05 12:39:12 -04:00
Kevin Matz 54244d4988 metadata setter functions 2023-04-05 09:19:16 -04:00
Kevin Matz 10ee3c1d22 setting device parameters is a const operation for the host 2023-04-05 08:55:18 -04:00
Kevin Matz b6a81c2bd2 host may tell device to prep for recieving a firmware 2023-04-05 08:54:43 -04:00
Kevin Matz 98e903159c user data length must match the lenght of data sent 2023-04-05 08:43:26 -04:00
Kevin Matz d496e71f8a get/set widget metadata 2023-04-05 08:42:50 -04:00
Kevin Matz 1b272f0d23 rename USB host side methods 2023-04-05 08:10:59 -04:00
Kevin Matz 72a66be0b5 let superclasses decide if they want firmware updates 2023-04-05 06:56:23 -04:00
Kevin Matz 0b7143f809 get/set widget parameters 2023-04-03 20:12:01 -04:00
Kevin Matz a2ec07e16c get/set serial number 2023-04-03 20:11:25 -04:00
Kevin Matz c6c09be86a always fail at writing firmware 2023-04-03 20:09:55 -04:00
Kevin Matz 2cfbf384de get all of the firmware version bits at once 2023-04-03 20:09:06 -04:00
Kevin Matz 9f6968c915 keep widget properties 2023-04-03 16:43:37 -04:00
Kevin Matz 13bb3a39f0 incorporate the label value into the message data struct directly 2023-04-03 16:42:48 -04:00
Kevin Matz 0c36bd34b7 put the widget directly in the ENTTEC namespace 2023-04-03 09:58:26 -04:00
Kevin Matz 12fddd4caa unify project version 2023-04-03 08:57:54 -04:00
Kevin Matz cb2bc6548d stubs for communicating with a widget 2023-04-02 22:47:50 -04:00
Kevin Matz 8f3d704d5a stream IO for the API 2023-04-02 19:42:32 -04:00
Kevin Matz 8e41fc72c2 use the bufferstream library 2023-04-02 13:24:55 -04:00
Kevin Matz 1ea49ebde2 use bufferstreams instead of the ACN::PDU stream 2023-04-02 13:24:26 -04:00
Kevin Matz dcbd735476 personalities get a name 2023-04-02 10:35:07 -04:00
Kevin Matz 3e805960d7 protocol definitions for ENTTEC DMX USB Pro API 1.44 2023-04-02 10:34:49 -04:00
Kevin Matz 7d1c756d89 patch Personalities, not devices. 2023-04-01 15:31:22 -04:00
Kevin Matz 3ee4cbb858 basic operations for managing a patch 2023-04-01 11:17:56 -04:00
Kevin Matz 6486775626 allow devices to be sorted by startaddress 2023-04-01 11:17:29 -04:00
Kevin Matz 55a120dfed namespace stubs for CITP protocol layers 2023-03-31 19:51:42 -04:00
Kevin Matz 189be8baf7 notes on how to access the standards documents 2023-03-31 11:22:56 -04:00
Kevin Matz 88f06738ab add a bibliography file for OSC 2023-03-31 11:22:28 -04:00
Kevin Matz 7b436915d8 initial build framework for CITP 2023-03-31 11:22:01 -04:00
Kevin Matz e1c1c1b579 move OSC to the prococols directory 2023-03-31 10:52:33 -04:00
Kevin Matz 847b6d931d rename platform library with consitant project name 2023-03-31 09:55:02 -04:00
Kevin Matz 396aac84f3 reorder for readability 2023-03-31 01:52:08 -04:00
Kevin Matz aaacd8539b build as a shared library 2023-03-31 01:51:14 -04:00
Kevin Matz 40a3342317 use preferred naming convention for build 2023-03-31 01:49:38 -04:00
Kevin Matz b55a8fdd83 link by module namespace referance 2023-03-31 01:46:35 -04:00
Kevin Matz db81ecefdc add namespace aliases to cmake 2023-03-31 01:42:40 -04:00
Kevin Matz c2ab4d9b22 remove unnecessary cmake directives 2023-03-31 01:37:37 -04:00
Kevin Matz f9efddf583 cleanup comments 2023-03-30 20:15:35 -04:00
Kevin Matz 6cd9a9e6df correctly scale return value, with comment about linearity 2023-03-30 20:14:59 -04:00
Kevin Matz cd884a8593 mark standards parameters as static 2023-03-30 20:13:26 -04:00
Kevin Matz b6e9425083 evaluate non-dim from millivolts 2023-03-30 19:16:54 -04:00
Kevin Matz 8979dd4699 Hysteresis aware method for calculating non-dim switch state 2023-03-30 14:55:12 -04:00
Kevin Matz 9c5654b34d retain low-end resolution 2023-03-30 14:40:29 -04:00
Kevin Matz 2c72607dc3 E1.3 0-10V support 2023-03-30 13:56:14 -04:00
Kevin Matz 3ef5e0498b set default merge mode 2022-12-12 13:43:40 -05:00
Kevin Matz 7dfb0a81d7 universe arbitration is a helper not a subclass 2022-12-12 13:39:10 -05:00
Kevin Matz 64e6ee1c0a add refresh function to consolidate maintenance tasks 2022-12-12 11:32:26 -05:00
Kevin Matz f5d99a03e6 remove unused base class function 2022-12-12 11:31:29 -05:00
Kevin Matz d87fbcf25d unify the callback handlers 2022-12-12 11:29:41 -05:00
Kevin Matz 64140eb757 cache the dominant universe 2022-12-11 21:30:37 -05:00
Kevin Matz e219e64d28 doc updates 2022-12-11 21:30:26 -05:00
Kevin Matz 472b6a1c39 retriever of sources metadata 2022-12-11 21:24:27 -05:00
Kevin Matz a2bd30dbe5 better to just call the callback doer in a lambda 2022-12-11 21:23:34 -05:00
Kevin Matz 74de2c07af don't pay attention to universes that may not be dominant 2022-12-11 21:22:17 -05:00
Kevin Matz 27179b4e00 use a single vector for all callback tokens 2022-12-11 16:53:54 -05:00
Kevin Matz b5f3e63b36 add callbacks for member changes 2022-12-11 16:48:42 -05:00
Kevin Matz 59dbad2264 reorder header 2022-12-11 16:48:06 -05:00
Kevin Matz b84d7bafe9 explicitly call the base class function 2022-12-11 16:46:11 -05:00
Kevin Matz 059c115c15 do data callbacks after synchronization 2022-12-11 16:45:37 -05:00
Kevin Matz ce51e17ddd use the existing metadata 2022-12-11 16:13:10 -05:00
Kevin Matz 6da7001c67 refactor class and file name 2022-12-11 16:04:44 -05:00
Kevin Matz 89716e1af5 make HTP the default merge mode 2022-12-11 15:58:40 -05:00