aboutsummaryrefslogtreecommitdiff
path: root/comport/comport.c
AgeCommit message (Collapse)Author
2015-09-16comport@w32: if ReadFile returns ERROR_IO_PENDING, don't report an errorIOhannes m zmölnig
svn path=/trunk/externals/iem/comport/; revision=17563
2015-09-11strip non-ascii charactersIOhannes m zmölnig
svn path=/trunk/externals/iem/comport/; revision=17562
2015-07-05Added break method to set or clear serial line break (continuous stream of ↵Martin Peach
zero). svn path=/trunk/externals/iem/comport/; revision=17497
2012-10-20fix typo that breaks Windows buildHans-Christoph Steiner
svn path=/trunk/externals/iem/comport/; revision=16447
2012-10-15bumped version to v0.2 for releaseHans-Christoph Steiner
svn path=/trunk/externals/iem/comport/; revision=16384
2012-03-09instead of just closing a lost connection, retry for a settable number of triesHans-Christoph Steiner
svn path=/trunk/externals/iem/comport/; revision=16059
2012-03-07set default poll time to 10ms since for most uses of serial at 115200 baud ↵Hans-Christoph Steiner
or less, the data doesn't come any faster than every 10ms svn path=/trunk/externals/iem/comport/; revision=16053
2012-03-07cleaned up a couple error messagesHans-Christoph Steiner
svn path=/trunk/externals/iem/comport/; revision=16052
2012-03-07after select(), if both ioctl() and read() return a 0 count, assume that we ↵Hans-Christoph Steiner
lost the connection and close the serial port svn path=/trunk/externals/iem/comport/; revision=16051
2012-03-07added comport# to close log message and used pd_error() to report all errors ↵Hans-Christoph Steiner
so they are trackable svn path=/trunk/externals/iem/comport/; revision=16050
2011-09-28post version message with verbose(-1, ) so it shows up at log level 3Hans-Christoph Steiner
svn path=/trunk/externals/iem/comport/; revision=15378
2011-04-13In non MSW version, don't post messages about baud rate unless verbose is set.Martin Peach
svn path=/trunk/externals/iem/comport/; revision=15071
2010-08-17debianized using the library templateHans-Christoph Steiner
svn path=/trunk/externals/iem/comport/; revision=13824
2010-03-18switched %f to %g in warning/error messages so that trailing 0s don't get ↵Hans-Christoph Steiner
printed svn path=/trunk/externals/iem/comport/; revision=13227
2010-03-18added support for 'Abstract Control Model' tty's for things like the Arduino ↵Hans-Christoph Steiner
Teensy that use USB-CDC svn path=/trunk/externals/iem/comport/; revision=13225
2010-03-17Checks that the port is open before writing to its buffer.Martin Peach
svn path=/trunk/externals/iem/comport/; revision=13221
2010-02-04seems MinGW and VC don't agree on the content of an OVERLAPPED struct. Martin Peach
svn path=/trunk/externals/iem/comport/; revision=13143
2010-02-03Got rid of some more warnings in the MinGW version. Martin Peach
svn path=/trunk/externals/iem/comport/; revision=13142
2010-02-02Got rid of a warning about the float com_num being printed as int by ↵Martin Peach
printing it as float. svn path=/trunk/externals/iem/comport/; revision=13133
2010-02-02sprintf_s only works on MSVC. MinGW uses sprintf.Martin Peach
svn path=/trunk/externals/iem/comport/; revision=13132
2010-02-01Changed some sprintf calls to sprintf_s in the _WIN32 sections.Martin Peach
svn path=/trunk/externals/iem/comport/; revision=13129
2010-02-01Use a 16384-byte buffer for send and another for receive. Read and write ↵Martin Peach
occur during comport_tick(), the clock callback, so any data written since the previous tick will be sent in a single write. Callback rate is now adjustable via the [pollintervall( message which defaults to 1ms (usually that's faster than the dsp block rate so the dsp rate takes precedence.) svn path=/trunk/externals/iem/comport/; revision=13128
2010-01-31fix build-bug introduced by mrpeach's multibyte readIOhannes m zmölnig
svn path=/trunk/externals/iem/comport/; revision=13121
2010-01-29Attempt to make reception more efficient in linux by reading the number of ↵Martin Peach
bytes actually available instead of one at a time. Added an rxerrors output for the info message. First 10 rxerrors print to console with errno/LastError. svn path=/trunk/externals/iem/comport/; revision=13118
2009-05-14removed extraneous testHans-Christoph Steiner
svn path=/trunk/externals/iem/comport/; revision=11368
2009-05-14made [comport] handle arguments more gracefully and made it throw an error ↵Hans-Christoph Steiner
if it can't open the serial port svn path=/trunk/externals/iem/comport/; revision=11367
2008-09-21fixed mrpeach's changes so that now it compiles again on non-win32IOhannes m zmölnig
svn path=/trunk/externals/iem/comport/; revision=10305
2008-09-16Fixed Windows stop bit settings (tracker# 1944125) so that 1, 1.5 or 2 stop ↵Martin Peach
bits can be set. svn path=/trunk/externals/iem/comport/; revision=10289
2007-11-13Correctly set port index when opened by name on linux & OSX.Martin Peach
svn path=/trunk/externals/iem/comport/; revision=8991
2007-10-12made set_hupcl() dummy function so things build on WIN32Hans-Christoph Steiner
svn path=/trunk/externals/iem/comport/; revision=8804
2007-10-12Slight change at line 1017 to avoid unsigned/signed warning.Martin Peach
svn path=/trunk/externals/iem/comport/; revision=8803
2007-10-11Added list method and modified help patch. Changed hupcl so Windows doesn't ↵Martin Peach
see it. svn path=/trunk/externals/iem/comport/; revision=8802
2007-10-10added HUPCL support in an attempt to get things working better with the ↵Hans-Christoph Steiner
Arduino Diecimila svn path=/trunk/externals/iem/comport/; revision=8794
2007-07-22The ports message now outputs index / path pairs on the status outlet.Martin Peach
svn path=/trunk/externals/iem/comport/; revision=8209
2007-07-19Added 'ports' method to output list of available ports on status outlet.Martin Peach
svn path=/trunk/externals/iem/comport/; revision=8155
2006-12-29made devicename kludge more readableHans-Christoph Steiner
svn path=/trunk/externals/iem/comport/; revision=7098
2006-11-02added open status to the [info( reportHans-Christoph Steiner
svn path=/trunk/externals/iem/comport/; revision=6213
2006-10-16write_serial:Martin Peach
Windows version checks GetOverlappedResult to avoid Tx overruns CVSCVS: Committing in . svn path=/trunk/externals/iem/comport/; revision=6117
2006-10-04baud settings include all posix names, windows allows any divisorMartin Peach
svn path=/trunk/externals/iem/comport/; revision=6072
2006-09-26added devices message to enumerate available devicesMartin Peach
info message outputs realtime status svn path=/trunk/externals/iem/comport/; revision=6028
2006-09-24Added comport_enum for Windows versionMartin Peach
svn path=/trunk/externals/iem/comport/; revision=6011
2006-09-11default baud rate was being set to 14400 while the message was saying 9600. ↵Hans-Christoph Steiner
It is now set to 9600 properly svn path=/trunk/externals/iem/comport/; revision=5918
2006-08-26added quick function to display the available ports using the [info( ↵Hans-Christoph Steiner
message. Yes, this is a quick hack svn path=/trunk/externals/iem/comport/; revision=5751
2006-08-24Added call to clock_delay in comport_devicenameMartin Peach
svn path=/trunk/externals/iem/comport/; revision=5733
2006-07-31Mac OS X less than 10.4 doesn't have some of these macros, so test for them ↵Hans-Christoph Steiner
before using them svn path=/trunk/externals/iem/comport/; revision=5438
2006-07-09all status is output on second outletMartin Peach
svn path=/trunk/externals/iem/comport/; revision=5362
2006-06-21*** empty log message ***Martin Peach
svn path=/trunk/externals/iem/comport/; revision=5282
2006-06-18*** empty log message ***Martin Peach
svn path=/trunk/externals/iem/comport/; revision=5253
2006-05-22made [devicename( message open the port by devicename directly; commented ↵Hans-Christoph Steiner
out code for 2nd inlet for status because it was causing segfaults :-/ svn path=/trunk/externals/iem/comport/; revision=5107
2006-05-21added serial port device name globbing for UNIX; added Piotr Majdak's Win32 ↵Hans-Christoph Steiner
improvements, they compile, but aren't tested yet; still need to update [devicename( message handling svn path=/trunk/externals/iem/comport/; revision=5102