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