2010-01-22 Leszek Ciesielski <skolima@gmail.com>
[mono.git] / mcs / class / System / System.IO.Ports / ChangeLog
1 2010-01-22  Leszek Ciesielski <skolima@gmail.com>
2
3         * SerialPortStream.cs: Check for error on every native call
4
5 2009-11-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6
7         * WinSerialStream.cs: Make CommStat a struct instead of a class to
8         make properly work ClearCommError.
9         Fixes the remaining bits of #348751.
10
11 2009-09-24  Christian Hoff  <christian_hoff@gmx.net>
12
13         * SerialPort.cs: Do not close the base stream if Dispose is called from
14         the finalizer.
15
16 2009-09-21 Leszek Ciesielski <skolima@gmail.com>
17
18         * SerialPortStream.cs: Throw exception when errors occur in Close()
19
20 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21
22         * WinSerialStream.cs: Fix the signature of ClearCommError.
23         Fixes #348751.
24
25 2008-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
26
27         * SerialPort.cs: Throw ArgumentException if NewLine gets an empty
28         string value.
29         Fixes #339012.
30
31 2008-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
32
33         * SerialPort.cs: In BaseStream property call CheckOpen instead of
34         duplicating the code.
35
36 2008-02-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
37
38         * SerialPortStream.cs: Set DllImport.SetLastError to true for
39         all MonoPosixHelper functions, so in case of error we can retrieve the
40         error and print a simple but effective message about it.
41
42 2007-12-03  Miguel de Icaza  <miguel@novell.com>
43
44         * SerialPort.cs: Apply patch from Martin Green
45         <martin@martsoft.co.uk> to support Serial Ports enumeration on
46         Windows.
47
48 2007-11-13  Atsushi Enomoto  <atsushi@ximian.com>
49
50         * SerialPort.cs :
51           Added [DefaultValue]. For PortName it is useless though.
52           Do not use ObsoleteAttribute for MonoTODO role.
53
54 2007-11-05  Miguel de Icaza  <miguel@novell.com>
55
56         * SerialPort.cs: Cope with multi-character newlines.  Fixes #321988.
57
58 2007-10-13  Miguel de Icaza  <miguel@novell.com>
59
60         * SerialPortStream.cs: Send a break on the Unix case.
61
62 2007-08-12  Lukasz Byczynski <lukaszb@forcom.com.pl>
63
64         * SerialPortStream.cs: added timeout handling on write
65
66         * WinSerialStream.cs: fixed setting handshake flags 
67
68 2007-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
69
70         * SerialPort.cs: Don't throw ArgumentOutOfRangeException when the
71         buffer has Length = 0 (and has the appropriate arguments).
72
73 2007-05-21  Atsushi Enomoto  <atsushi@ximian.com>
74
75         * SerialPort.cs : slightly boring 2.0 attributes.
76
77 2007-05-01  Sebastien Pouliot  <sebastien@ximian.com>
78
79         * WinSerialStream.cs: Fix build due to NativeOverlapped being updated
80         to 2.0 definition (int to IntPtr).
81
82 Wed Apr 11 15:40:55 CEST 2007 Paolo Molaro <lupus@ximian.com>
83
84         * WinSerialStream.cs: fixed logic for signal value check (bug #81342).
85
86 2006-11-18  Jelle Hissink <Jelle.Hissink@C-it.nl>
87
88         * SerialPortStream.cs: Fix the parameters in Read, and also poll
89         before the read, so we can thorw the TimeoutException.
90
91 2006-09-28  Andrew Skiba  <andrews@mainsoft.com>
92
93         * SerialPort.cs,WinSerialStream.cs: TARGET_JVM
94
95 2006-08-14  Chris Toshok  <toshok@ximian.com>
96
97         * SerialPort.cs: the paths returned by Directory.GetFiles have the
98         directory at the beginning of the string.
99
100 2006-08-13  Miguel de Icaza  <miguel@novell.com>
101
102         * SerialPort.cs (ReadTo): Implemented.
103         Add a couple of missing checks.
104
105         Also handle ttyUSB for Chris.
106
107         * SerialPortStream.cs (BytesToRead, BytesToWrite): Implement. 
108
109         * SerialPort.cs (ReadByte): Go directly to the stream, no need to
110         call the wrapper code.
111
112         (ReadChar): implement.
113
114         (ReadLine): implement.
115         
116         Add DefaultValueAttributes to various methods.
117
118         * SerialPortStream.cs, WinSerialStream.cs: Use the same checking
119         we use elsewhere for parameters.
120
121 2005-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
122
123         * ISerialStream.cs: Add support for break state.
124         * SerialPort.cs: Likewise.
125         * WinSerialStream.cs: Add support for break state and
126         some other bits (BytesToRead, BytesToWrite, DsrHolding,
127         CDHolding, CtsHolding, DiscardIn, DiscardOut).
128         * SerialPortStream.cs: Add a SetBreak function to
129         implement the updated ISerialStream interface (not implemented
130         by now).
131
132 2005-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
133
134         * SerialPort.cs:
135         * WinSerialStream.cs: Actually plug the Win serial stream
136         in the SerialPort and use it if we are on Windows (use std
137         stream otherwise).
138
139 2005-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
140
141         * WinSerialStream.cs: Implement some bits needed for
142         the backend thing.
143
144 2005-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
145
146         * ISerialStream.cs:
147         * SerialPortStream.cs:
148         * SerialPort.cs:
149         * SerialSignal.cs:
150         Some changes to make SerialPorStream implement ISerialInterface,
151         and be able to have OS-depending backends.
152         
153 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
154
155         * ISerialStream.cs: New internal interface used for 
156         accessing the backend streams functionality.
157
158 2006-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
159
160         * WinSerialPort.cs: Inital import of the backend stream
161         for Windows support.
162         
163 2006-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
164
165         * SerialPort.cs:
166         * SerialPortStream.cs: Add signals managing.
167         * SerialSignal.cs: New.
168         
169 2006-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
170
171         * SerialPort.cs: Add protected Dispose method, and move
172         the Close stuff there.
173         
174 2006-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
175
176         * SerialPort.cs: Re-arrange values for ctors (keep things
177         clean).
178         
179 2006-04-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
180
181         * SerialPort.cs:
182         * SerialPortStream.cs: Remove the buffers from the SerialPort
183         class, and take them to SerialPortStream. We need them for
184         storing the internal read (pass the buffer sizes to SerialPortStream
185         ctor by now, and use those numbers when we support them).
186         
187 2006-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
188
189         * SerialPort.cs: Inherit from Component, and use protected
190         Events property to save the event handlers. Also add internal
191         methods to trigger the events and remove pragmas.
192
193 2006-03-15  Miguel de Icaza  <miguel@gnome.org>
194
195         * SerialPort.cs: We will do detection of systems differently as we
196         discussed over email.  Drop malloc/free/uname calls.
197
198 2006-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
199
200         * SerialPort.cs: Add basic detection of serial ports and
201         default serial port.
202
203 2006-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
204
205         * SerialPort.cs:
206         * SerialPortStream.cs: Change SerialPortStream ctor
207         parameters and fix some related values.
208         
209 2006-03-11  Miguel de Icaza  <miguel@novell.com>
210
211         * y
212
213         * SerialPort.cs: Remove unused variable (writeBuffer). 
214
215         * SerialPortStream.cs (Dispose): override, not new.
216
217 2006-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
218
219         * SerialPort.cs:
220         * SerialPortStream.cs: Small advance/cleanups.
221
222 2006-02-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
223
224         * SerialPort.cs:
225         * SerialReceivedEventArgs.cs:
226         * SerialErrorEventArgs.cs:
227         * SerialPinChangedEventArgs.cs: Fix signatures and values
228         related to events.
229         
230 2006-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
231
232         * SerialPort.cs: 
233         * SerialPortStream.cs: Cleanups and some small funcionalities
234         added. Also, some code was moved to SerialPortStream, to have a 
235         better design.
236
237 2006-02-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
238
239         * SerialPort.cs:
240         * SerialPortStream.cs: Move SerialPortStream to a new file,
241         to have a better organization.
242
243 2006-02-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
244
245         * SerialPort.cs: Little work on support the Read methods.
246
247 2006-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
248
249         * SerialPort.cs: Little work on default values and
250         exception report.
251         
252         * Parity.cs:
253         * Handshake.cs:
254         * StopBits.cs: New enum files (taken outside SerialPort
255         and with the right values now).
256
257 2006-02-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
258
259         * SerialPort.cs: Work on Encoding property and use it
260         in Write methods.
261         
262 2006-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
263
264         * SerialError.cs:
265         * SerialData.cs:
266         * SerialPinChange.cs: New enums.
267         
268 2004-12-26  Zoltan Varga  <vargaz@freemail.hu>
269
270         * System.IO.Ports/SerialPort.cs: Fix build under csc.