NEWEST VERSION ALWAYS AVAILABLE FROM:
http://www.askrprojects.net/software/siseli/index.html
https://github.com/FMMT666/SiSeLi
Serial ports communication on Windows (Scilab 5.3+)
(some) FEATURES:
- no installation required
- Supports all kinds of serial ports, including USB, Bluetooth or
virtual connections.
- baud rates up to 3MBit/s
- unlimited amount of simultaneous connections
- supports DLE sequenced packet mechanism
- it rocks
- ...
Available functions:
slVersion Returns the version of the library.
slUnload Unload the library.
slMount Creates a handle to a COM port and initializes it
slUMount Deletes the handle and frees internal objects.
slCheck Check availability of a COM port.
slConfig Configure a COM port
slOpen Opens a COM port.
slClose Closes a COM port.
slSendByte Sends a byte to the COM port.
slSendArray Sends an array to the COM port.
slCount Counts the available bytes in the receive buffer.
slReadByte Reads a byte from the receive buffer.
slFlush Flushes the receive buffer and resets ov flag
slReadArray Reads up to 32 bytes of data from the buffer.
slReadArrayN Reads an arbitrary amount of data from the buffer.
slSendPacket Sends a DLE sequenced packet.
slReadPacket Reads a DLE sequenced packet.
slCountPacket Counts the number of packets in the receive buffer.
slSetPacketStart Allows cfg. of the 2nd "packet start" bytes STX
slSetPacketEnd Allows cfg. of the 2nd "packet end" bytes ETX
slSetPacketChar Allows cfg. the "special character" byte DLE
Tested and supported platforms:
- Scilab >=5.3, x86 (32 bit) and x64 (64 bit)
FMMT666(ASkr)
===
*UPDATE* 01/2011:
Added x64 version (ASkr)
*UPDATE* 11/2011:
Packaged as ATOMS module (Allan CORNET - Scilab)
*UPDATE* 10/2012:
Updated to V0.4, included function slReadArrayN
x64 version pending (still V0.3)
ASkr
*UPDATE* 10/2012, #2:
Updated to V0.5, now with baud rates up to 3MBit/s
x64 version pending (still V0.3)
ASkr
*UPDATE* 10/2012, #3:
Zip file V0.5 contained wrong version of "slLoadLib.sci". Fixed.
ASkr
*NEWS* 1/2013:
I moved the source code to Github: https://github.com/FMMT666/SiSeLi
Everyone is welcome to improve the code or boost it forward...
ASkr
*UPDATE* 1/2013:
Updated x86 and x64 versions to V0.6.
Both versions are also available from this site (somewhere below).
Now with fully functional packet mode and up to 16 simultaneous connections.
FMMT666(ASkr)
*UPDATE* 4/2014:
Updated unified x86/x64 versions to V0.7.
Complete internal redesign.
Now with unlimited amount of serial connections.
SiSeLi now auto-selects the right 32 or 64 bit DLL for you.
slMount() does not require the handle argument any longer.
slReadByte() does not require the 2nd argument if NONBLOCKING
FMMT666(ASkr)