summaryrefslogtreecommitdiff
path: root/serial/serialjava.py
Commit message (Collapse)AuthorAgeFilesLines
* doc updatecliechti2014-08-031-9/+17
| | | | git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@504 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* Java: fix 2 bugs (stop bits if/else and non-integer timeouts) (Torsten Roemer)cliechti2014-08-011-3/+3
| | | | git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@500 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* use absolute imports so that 2to3 workscliechti2011-08-221-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@423 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* related to SF 3093882, raise an exception when open() is called twice, also ↵cliechti2011-03-191-0/+2
| | | | | | add unit test for this git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@392 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* - improve compatibility with io library (also accept bytearray for write)cliechti2009-07-281-2/+2
| | | | | | | - update test for Serial+io git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@255 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* - read/write now work with bytes when available on older Pythons that is ↵cliechti2009-07-271-25/+32
| | | | | | | | | | | equal to a str (implemented compatibility objects in serualutil) - improve conversion result of 2to3 - remove RawSerial object again - update docs git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@252 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* fix a bugcliechti2009-07-251-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@250 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* - add more methods for file-like compatibilitycliechti2009-07-251-4/+17
| | | | | | | | | | | | | | - provide RawSerial when io library is present (not yet finished) -> changes internal class hierarchy -> renamed internal read/write -> _read/_write (FileLike resp. RawSerialBase provides read/write) -> add test_rawio.py - _write returns number of byte written - set minimal python version to 2.3 due to basestring - add "name" attribute - documentation updates (new io stuff and VERSION, device()) git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@249 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* remove print and replace with stdio writescliechti2009-07-231-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@234 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* 1.5 stop bit supportcliechti2009-02-161-6/+6
| | | | git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@205 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* - The Jython backend tries javax.comm and gnu.io (Seo Sanghyeon)cliechti2008-06-221-30/+54
| | | | | | - activate mark/space parity support git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@184 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* [patch 1924805] add a setBreak function (proposed files attached)cliechti2008-06-211-1/+6
| | | | git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@178 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* consistency with other platformscliechti2007-11-081-6/+5
| | | | git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@158 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* - duration can be specified for sendBreakcliechti2006-02-051-3/+3
| | | | | | | - default duration increased to 0.25s git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@147 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* Transition to the 2.0 series:cliechti2003-10-011-100/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - New implementation only supports Python 2.2+, backwards compatibility should be maintained almost everywhere. The OS handles (like the hComPort or fd attribute) were prefixed with an underscore. The different names stay, as anyone that uses one of these has to write platform specific code anyway. - Common base class serialutil.SerialBase for all implementations. - PARITY_NONE, PARITY_EVEN, PARITY_ODD constants changed and all these constants moved to serialutil.py (still available as serial.PARITY_NONE etc. and they should be used that way) - Added serial.PARITY_NAMES (implemented in serialutil.PARITY_NAMES). This dictionary can be used to convert parity constants to meaningful strings. - Each Serial class and instance has a list of supported values: BAUDRATES, BYTESIZES, PARITIES, STOPBITS (i.e. serial.Serial.BAUDRATES or s = serial.Serial; s.BAUDRATES) these values can be used to fill in value sin GUI dialogs etc. - Creating a Serial() object without port spec returns an unconfigured, closed port. Useful if a GUI dialog should take a port and configure it. - New methods for serial.Serial instances: open(), isOpen() - A port can be opened and closed as many times as desired. - Instances of serial.Serial have baudrate, bytesize, timeout etc. attributes implemented as properties, all can be set while the port is opened. It will then be reconfigured. - Improved __doc__'s. - New test_advanced.py for the property setting/getting testing. - Small bugfix on posix with get* methods (return value should be true a boolean). - added a __repr__ that returns a meaningful string will all the serial setting, easy for debugging. - The serialposix module does not throw an exception on unsupported platforms, the message is still printed. The idea that it may still work even if the platform itself s not known, it simply tries to do the posix stuff anyway (It's likely that opening ports by number fails, but by name it should work). git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@91 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* fix typocliechti2003-08-281-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@85 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* added non-blocking modecliechti2002-05-261-11/+12
| | | | | | | | fixed win32 version: no data is lost when a timeout occours typos in the docs git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@32 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* added uniform errorhandling when port opening fails, across platform modulescliechti2002-04-081-3/+6
| | | | git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@25 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* bugfixcliechti2002-03-051-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@22 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* added setBaudrate() to change the baudrate after the port is opencliechti2002-03-041-15/+20
| | | | git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@21 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* FileLike base class is now used for readline etc.cliechti2002-02-141-4/+5
| | | | git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@10 f19166aa-fa4f-0410-85c2-fa1106f25c8a
* This commit was generated by cvs2svn to compensate for changes in r3,cliechti2002-02-121-0/+187
which included commits to RCS files with non-trunk default branches. git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@4 f19166aa-fa4f-0410-85c2-fa1106f25c8a