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