Size: 1635
Comment:
|
Size: 1718
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
<<TableOfContents(2)>> | |
Line 8: | Line 9: |
* https://github.com/pyserial/pyserial |
|
Line 9: | Line 12: |
{{{#!highlight sh | |
Line 11: | Line 15: |
}}} | |
Line 24: | Line 28: |
* su * cd tmp * wget http://slackbuilds.org/slackbuilds/14.0/python/pyserial.tar.gz * tar xvzf pyserial.tar.gz * cd pyserial * wget http://pypi.python.org/packages/source/p/pyserial/pyserial-2.6.tar.gz * chmod 755 pyserial.SlackBuild * ./pyserial.SlackBuild * installpkg /tmp/pyserial-2.6-i486-1_SBo.tgz |
{{{#!highlight sh su cd tmp wget http://slackbuilds.org/slackbuilds/14.0/python/pyserial.tar.gz tar xvzf pyserial.tar.gz cd pyserial wget http://pypi.python.org/packages/source/p/pyserial/pyserial-2.6.tar.gz chmod 755 pyserial.SlackBuild ./pyserial.SlackBuild installpkg /tmp/pyserial-2.6-i486-1_SBo.tgz }}} |
Line 38: | Line 44: |
* su * cd tmp * wget http://slackbuilds.org/slackbuilds/14.0/python/pyserial.tar.gz * tar xvzf pyserial.tar.gz * cd pyserial * wget http://pypi.python.org/packages/source/p/pyserial/pyserial-2.6.tar.gz * chmod 755 pyserial.SlackBuild * ./pyserial.SlackBuild * installpkg /tmp/pyserial-2.6-x86_64-1_SBo.tgz |
{{{#!highlight sh su cd tmp wget http://slackbuilds.org/slackbuilds/14.0/python/pyserial.tar.gz tar xvzf pyserial.tar.gz cd pyserial wget http://pypi.python.org/packages/source/p/pyserial/pyserial-2.6.tar.gz chmod 755 pyserial.SlackBuild ./pyserial.SlackBuild installpkg /tmp/pyserial-2.6-x86_64-1_SBo.tgz }}} |
Contents
pyserial
Encapsulates the access for the serial port. It provides backends for Python running on Windows, Linux, BSD (possibly any POSIX compliant system), Jython and IronPython (.NET and Mono), as stated in http://pyserial.sourceforge.net/.
SlackBuild page http://slackbuilds.org/repository/14.0/python/pyserial/.
Setup port
Toggle line numbers
1 chmod 666 /dev/ttyUSB0
2 stty -F /dev/ttyUSB0 raw speed 9600 -crtscts cs8 -parenb -cstopb
Add a existing user to existing group
Add existing user tony to ftp supplementary/secondary group with the usermod command using the -a option ~ i.e. add the user to the supplemental group(s). Use only with -G option:
Toggle line numbers
1 usermod -a -G dialout userx
SlackBuild for Slackware 14 (32 bit)
Run commands:
Toggle line numbers
1 su
2 cd tmp
3 wget http://slackbuilds.org/slackbuilds/14.0/python/pyserial.tar.gz
4 tar xvzf pyserial.tar.gz
5 cd pyserial
6 wget http://pypi.python.org/packages/source/p/pyserial/pyserial-2.6.tar.gz
7 chmod 755 pyserial.SlackBuild
8 ./pyserial.SlackBuild
9 installpkg /tmp/pyserial-2.6-i486-1_SBo.tgz
SlackBuild for Slackware64 14 (64 bit)
Run commands:
Toggle line numbers
1 su
2 cd tmp
3 wget http://slackbuilds.org/slackbuilds/14.0/python/pyserial.tar.gz
4 tar xvzf pyserial.tar.gz
5 cd pyserial
6 wget http://pypi.python.org/packages/source/p/pyserial/pyserial-2.6.tar.gz
7 chmod 755 pyserial.SlackBuild
8 ./pyserial.SlackBuild
9 installpkg /tmp/pyserial-2.6-x86_64-1_SBo.tgz