Commit graph

1993 commits

Author SHA1 Message Date
Stefan Persson
c527223bc4 Made use of TELLSTICK_ERROR_BROKEN_PIPE in windows too 2012-01-12 14:17:24 +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
Micke Prag
b0f092e98d Lower the read timeout for events in the client. This should be reset
again when #157 is fixed.
See #157.
2012-01-12 10:30:23 +01:00
Stefan Persson
4068742b25 Setting for 'Not wait for confirmation from TellStick' implemented on windows too. This setting must be set manually. Closes #98 2012-01-11 16:16:31 +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
0c8de249d4 Cycling port and trying to reconnect TellStick on noop or send when missing 2012-01-10 17:35:18 +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
dfae48ef33 Merge remote-tracking branch 'origin/t132' into ticket132
Conflicts:
	telldus-core/service/DeviceManager.cpp
2012-01-10 10:01:55 +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
Micke Prag
fb8e978acc Implement class Timer in Windows 2012-01-09 17:40:44 +01:00
Micke Prag
542d17a45d Add janitor object for regular maintenance and cleanups 2012-01-09 16:53:57 +01:00
Micke Prag
988b443810 Add class Timer 2012-01-09 16:52:15 +01:00
Micke Prag
6fa59e9ca9 Add Telldus Live! authentication example 2012-01-09 12:37:41 +01:00
Micke Prag
f58793ca59 Implement decoding of Oregon 0x1A2D. This closes #144 2012-01-05 14:35:18 +01:00
Micke Prag
265daf4714 iconv() cannot convert ascii chacacters > 127. In order for
tdSendRawCommand() to work with longer pulses we need to convert to
wchar_t manually. This closes #126.
2012-01-04 16:18:01 +01:00
Micke Prag
36bfa0ba8b Remove raw events from tdSendRawCommand(). It think this was added by mistake in 464000515c 2012-01-04 16:14:50 +01:00
Micke Prag
2ec2dac46f Fix indentation error 2012-01-04 16:11:08 +01:00
Stefan Persson
65ef5254de Fixes for stability in Windows Service. Correct handling of ERROR_PIPE_CONNECTED. 2012-01-03 15:42:23 +01:00
Micke Prag
716deb5124 Merge remote branch 'origin/windows_service_fixes' 2011-12-30 17:14:50 +01:00
egil
dd3504ffb8 Applied patch for everflourish in rfcmd. This closes #141. Thanks to
egil
2011-12-30 17:13:07 +01:00
Micke Prag
d3227ebdf8 Implement UP/DOWN/STOP in TelldusCenter Live! plugin. This closes #147. 2011-12-30 16:43:49 +01:00
Micke Prag
ed1dc8b2d3 Mask methods to lowest common denominator 2011-12-30 16:43:49 +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
Carl Nettelblad
ed502d1660 Fixed for stability in the Windows Service. Mainly changes since CancelIO is
not synchronous. Big thanks to Carl Nettelblad for this.
See #93 and #94.
2011-12-30 14:18:06 +01:00
Micke Prag
5bb60a60c9 Implement our new type of command messages and also handle the ACK. This
requires us to bump the protocol version. Closes #151
2011-12-29 17:38:55 +01:00
Micke Prag
c56fa6c6f8 Clear the error and status message when we are dicsonnected 2011-12-29 17:38:55 +01:00
Micke Prag
05d48d1685 Reset ping timer on all sent messages 2011-12-29 17:38:55 +01:00
Micke Prag
06bf1a867d Add function LiveMessageTokenScriptWrapper::getString() 2011-12-29 17:38:55 +01:00
Micke Prag
d86e12f1d3 LiveMessageTokenScriptWrapper::getInt() should be declared const since it only returnes values 2011-12-29 17:38:55 +01:00
Micke Prag
4517db2048 Reset pong timer on all received data (with valid signature). Not only pong messages 2011-12-29 17:38:55 +01:00
Micke Prag
b8955deed8 Add overloaded constructor to LiveMessageToken to accept an int 2011-12-29 17:38:55 +01:00
Stefan Persson
cd6e59baa5 Changed udev rules, now filtering correctly by vendor. Closes #115 2011-12-29 17:10:26 +01:00
Micke Prag
8c4c62d9e1 Added missing includes 2011-12-28 17:57:48 +01:00
Micke Prag
712cb9bbd8 Merge branch 't103' 2011-12-28 17:36:05 +01:00
Micke Prag
7272875db5 Log connect and disconnect from a TellStick. This closes #103 2011-12-28 17:28:30 +01:00
Micke Prag
e1d063bb56 Force stdout on Mac OS X 2011-12-28 16:15:22 +01:00
Micke Prag
8903656423 Use sformatf() to format the messages for the Windows Event Log, see #103 2011-12-28 16:07:29 +01:00
Micke Prag
05c0ac7f05 Add functions formatf() and sformatf() 2011-12-28 16:06:46 +01:00
Stefan Persson
44e5b81a90 Added new error code, Syntax error 2011-12-28 16:02:27 +01:00
Stefan Persson
5546013552 Tdtool exiting with error codes on failures. Closes #146. 2011-12-28 15:45:07 +01:00
Micke Prag
9862403267 Add command line argument to debug output 2011-12-28 15:35:18 +01:00
Micke Prag
50e69a476c Implement logging using Windows Event Log, see #103 2011-12-28 15:35:15 +01:00
Stefan Persson
b6fb5ce106 Sensors now visible in tdtool when running --list. Closes #122. 2011-12-28 14:50:56 +01:00
Stefan Persson
86554b26ac Code cleanup 2011-12-28 11:14:59 +01:00
Stefan Persson
81671d1607 Fixed so that receiving socket has no buffer limit when reading in Windows. Closes #145. 2011-12-28 10:56:44 +01:00
Micke Prag
83fb477ef4 Use the log-system in main_unix.cpp 2011-12-27 15:46:49 +01:00
Micke Prag
72188ef02f Add Log class, only implemented for Linux. See #103 2011-12-27 14:47:40 +01:00
Micke Prag
d7e76f1bc1 Show an error message if an unknown option is supplied to telldusd in Linux 2011-12-27 11:14:16 +01:00