Hello I suggest first try a very simple example (like writing simple ascii text on a serial port with mono, then reading it with putty or hyperterminal, on another comport which can be on the same computer).
This should be very straight forward.... i learned from the same link some time ago (http://www.mono-project.com/HowToSystemIOPorts) After making sure that a simple example works fine, there comes some tricks. for example, sometimes i need do set DtrEnabled = true; it depends on the device being communicated to; there are also issues with "events" on received data, if i record correctly, but a simple byte read should work nicely, or see below. Older posts here in mono lists report that: - "Unity" project maybe had a complete version, but noone replied?? (buhochileno in july12th) - this blog has example on threaded polling, to replace the necessity of events: http://shaneo.blogsite.org/ (shawn in aug21st) greetings :-) Glenn R. Martin escreveu: > Is this old documentation correct on the received data notification > event not being implemented? and that polling has to be done still? > > http://www.mono-project.com/HowToSystemIOPorts > > Thanks > Glenn R. Martin > > On 31 Aug 2009, at 03:33 , Petit Eric wrote: > >> 2009/8/31 Danny Haak <[email protected] >> <mailto:[email protected]>>: >>> Hi Glenn, >>> >>> My experience is that serial ports work using the same code in Windows >>> and Linux - with the only change being the port name. Does your serial >>> device need RTS/CTS lines? Are they set right? Is the timeout set >>> correctly? >> It is true i forget this , setting not always same, i suggest you to >> write them, with same as the one under Windows(parity, speed, bit stop >> , rts, end line ........) >>> >>> Best regards, >>> Danny Haak >>> > > ------------------------------------------------------------------------ > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
