Commit graph

43 commits

Author SHA1 Message Date
Micke Prag
5d2e3f33c8 Use C++ casting instead of C casting according to Google style guidelines "readability/casting" 2012-06-19 12:30:52 +02:00
Micke Prag
67d8bf7fb0 We need spaces after semicolon in for loops according to Google style guidelines "whitespace/semicolon" 2012-06-19 12:30:51 +02:00
Micke Prag
e7bb22cf34 We need spaces surrounding operators according to Google style guidelines "whitespace/operators" 2012-06-19 12:30:51 +02:00
Micke Prag
dc357ddeca Remove extra blank lines according to Google style guidelines "whitespace/blank_line" 2012-06-19 12:30:51 +02:00
Micke Prag
110dcc2c57 Should have spaces after comma according to Google style guidelines "whitespace/comma" 2012-06-19 12:30:51 +02:00
Micke Prag
3a0cee353a Fix include header order according to Google style guidelines "build/include_order" 2012-06-19 12:30:50 +02:00
Micke Prag
75f21588e5 Should have a space between // and comment "whitespace/comments" 2012-06-19 12:30:50 +02:00
Micke Prag
e1608f94a8 { should almost always be at the end of the previous line, according to Google style guidelines "whitespace/braces" 2012-06-19 12:30:50 +02:00
Micke Prag
78444e20b9 Add #include <string> for string, according to Google style guidelines "build/include_what_you_use" 2012-06-19 12:30:50 +02:00
Micke Prag
8d0228ced2 Add copyright message according to Google style guidelines "legal/copyright" 2012-06-19 12:30:50 +02:00
Micke Prag
5b5be387cd Include the directory when naming .h files. According to Google style guideline "build/include". 2012-06-19 12:30:49 +02:00
Micke Prag
5dd66bfb03 Compability fixes on unix since the interface changed in a previous commit 2012-02-27 15:56:02 +01:00
Micke Prag
e834160492 Move class Event and EventHandler into the TelldusCore namespace 2012-02-03 17:09:38 +01:00
Stefan Persson
d326331538 Returning correct error code on reset success 2012-01-12 15:03:01 +01:00
Stefan Persson
e2e9ba4634 Code cleanup 2012-01-12 14:27:15 +01:00
Stefan Persson
3ce58f019f Added sleep time to allow TellStick to finish air sending when ignoring answer from TellStick 2012-01-12 14:21:03 +01:00
Stefan Persson
b84e8b3806 Added TELLSTICK_ERROR_BROKEN_PIPE to distinguate between when communication with TellStick fails due to timeout or actual error. 2012-01-12 11:39:04 +01:00
Micke Prag
69059b935b Lower the retry count (again).
ftdi_read_data() uses the latency times as a timeout. This is set to
16ms so 250 retries take about 4s if we don't get a response (worst
case).
The longest protocol we could think of is "learn" for risingsun
selflearning. It takes roughly 3s to finish.
2012-01-12 10:33:11 +01:00
Stefan Persson
d7cce515ff Added setting for 'Not wait for confirmation from TellStick', see ticket 98, in Linux 2012-01-11 14:53:46 +01:00
Stefan Persson
8d22eff5da Added wait for ack on noop-command 2012-01-11 11:38:03 +01:00
Stefan Persson
673daf471d Sending noop to TellStick every 5 minutes, attempting to reconnect if TellStick is missing. In Linux. 2012-01-10 16:00:14 +01:00
Stefan Persson
06ac023b4a Resetting USB and retrying send once if TellStick is not found, in Linux 2012-01-10 09:55:26 +01:00
Stefan Persson
e019f416d9 Increased retry count on ftdi_read_data to avoid TELLSTICK_ERROR_COMMUNICATION on some TellStick/device combinations. Closes #125 2011-12-30 16:03:57 +01:00
Micke Prag
8c4c62d9e1 Added missing includes 2011-12-28 17:57:48 +01:00
Micke Prag
7272875db5 Log connect and disconnect from a TellStick. This closes #103 2011-12-28 17:28:30 +01:00
Stefan Persson
894997d8f0 Changed controller listener interval for Linux to reduce cpu usage 2011-05-19 12:42:52 +00:00
Stefan Persson
99f0b133a8 Added decoding of receiving protocol everflourish 2011-05-09 15:29:41 +00:00
Micke Prag
60dd561940 Fixed two typos 2011-03-14 15:32:08 +00:00
Micke Prag
5466a79aad Decreased the retry counter since it was longer than the timout between client and service 2011-03-07 09:59:56 +00:00
Micke Prag
4c8110b9af Dont flood if an error occur 2011-03-04 11:09:03 +00:00
Micke Prag
a8155bdfe6 Removed TODO since I couldn't find any better way of doing this 2011-02-28 13:38:47 +00:00
Micke Prag
ed125d584e Try detecting firmware version when a new TellStick is connected 2011-02-21 13:37:55 +00:00
Micke Prag
e81ebe5fb9 Added function TellStick::pid() 2011-02-21 13:35:43 +00:00
Stefan Persson
d3fe7dc954 Minimal code cleanup 2010-10-29 07:37:17 +00:00
Micke Prag
287802d527 The lock in send was not properly locked 2010-10-27 14:26:43 +00:00
Micke Prag
1e856c989a Clear the buffer before each read 2010-10-27 13:37:39 +00:00
Micke Prag
e460279157 Added lock for receiving/sending in TellStick 2010-10-27 10:33:46 +00:00
Micke Prag
c854a3aba4 Added check in eternal loop to stop if neccesary 2010-10-27 10:12:22 +00:00
Stefan Persson
fbc72cff52 Receive messages in linux. Deadlocks fixed 2010-10-26 15:06:02 +00:00
Stefan Persson
db6ac7b939 Linux actions implemented 2010-10-26 10:40:10 +00:00
Stefan Persson
6c881923f4 Compile fixes for linux 2010-10-25 15:00:40 +00:00
Micke Prag
4029342094 Implemented TellStick_libftdi on Linux, stille some work is needed 2010-10-20 15:17:33 +00:00
Micke Prag
008feec1c3 Rewrote the TellStick controller 2010-10-13 12:23:01 +00:00