Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
Windows.zip | 2013-01-30 | 846.9 kB | |
schematic.png | 2013-01-30 | 36.8 kB | |
Linux.zip | 2013-01-30 | 37.6 kB | |
Totals: 3 Items | 921.3 kB | 0 |
<Rs485 Dinamic Library> Copyright (C) <2013> <Ernesto Gigliotti> ernestogigliotti@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. //_________________________________________________________________________ Rs485 Dinamic Library ______________________ Rs485 Dinamic Library allow to use a PC serial port like a RS485 port. It is based on Rs232 library for Windows/Linux created by Teunis van Beelen. Schematic for RS485 converter is provided. This library is divided in two parts 1 - C library compiled like shared library ( "so" or "dll" extension) 2 - C# and Python wrapper library that uses dinamic C library. For Windows ___________ C library is compiled with MinGW. Eclipse project is provided. Only is posted 64bit dll library, you can compile over 32bit for 32bit support. The demo project is a Visual Studio 2008 C# project and it has 2 classes : the Program class, where main method is, and Rs485 class that is a wrapper for the dll library. For Linux __________ C library is compiled with GCC. Netbeans project is provided. Only is posted 32bit shared library, you can compile over 64bit for 64bit support. The demo project is a Python project and it has 2 files : the program main.py and the class Rs485.py that is a wrapper for the shared library. Technical notes _______________ RS485 driver can be : SN75176 or ST485 RTS COM pin is used for TX/RX control on RS485 Bus. Diode D2 allows to the PC receive the transmited packet, that way the library ensures the packet is all transmited before change RST state.