aboutsummaryrefslogtreecommitdiff
path: root/device.cc
Commit message (Collapse)AuthorAge
* Add method for checking is the device listed as connected in OSSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Decrease retry count to 20Szczepan Zalega2017-03-11
| | | | | | Update log message to be more readable Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* More debug log info during dev connectionSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Use nullptr instead of NULLSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Use lock_guard while accessing hid_apiSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Make device configuration const, protect non-const with ::atomicSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Make device slower for now for easier debuggingSzczepan Zalega2016-11-26
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Code refactoring: removing disambiguity from device constantsSzczepan Zalega2016-10-19
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Set shorter delays in sending/receiving packets (2)Szczepan Zalega2016-10-19
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Set shorter delays in sending/receiving packetsSzczepan Zalega2016-10-19
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Increase retry timeout for NK Storage for nowSzczepan Zalega2016-10-19
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Fixed bug with not releasing device on disconnectSzczepan Zalega2016-10-19
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Increase delay and retry count for response receivingSzczepan Zalega2016-08-05
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Set variable send_receive delaySzczepan Zalega2016-08-01
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Let device identify itself by modelSzczepan Zalega2016-08-01
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Set different delay timings for Nitrokey StorageSzczepan Zalega2016-08-01
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Use int instead of CommErrorSzczepan Zalega2016-08-01
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Allow setting last command status on deviceSzczepan Zalega2016-08-01
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Initial version of C/Python bindingsSzczepan Zalega2016-08-01
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* increasing retry countSzczepan Zalega2016-03-06
|
* Checking device status after completion of get_feature report and retrying ↵Szczepan Zalega2016-03-06
| | | | receiving if device status!=0, added FIXME notes of further work
* formatted code with clang-format-3.6 with style=googleSzczepan Zalega2016-03-05
|
* cleaned up test.cc, added fixme commentSzczepan Zalega2016-03-05
|
* added long sleep for behavior check, read_callback is running, fixed device ↵Szczepan Zalega2016-02-20
| | | | status and command status messages in logs
* removing hid_init() calls as they should have be called automatically (as ↵Szczepan Zalega2016-02-20
| | | | long as app is not multithreaded, according to specification)
* checking status correctly (in specification hid_get_feature_report returns ↵Szczepan Zalega2016-02-20
| | | | number of received bytes+1, so its never under 1 when successful)
* compiling own version of lib hid_libusb (copied from nitroapp) and linking ↵Szczepan Zalega2016-02-20
| | | | it statically with debug messages
* Minor fixes, working versionMateusz Zalega2015-10-26
|
* InitialMateusz Zalega2015-10-22