A small example package
Project description
Example Package
This is a python API for Can communication with pyagxrobots and controlling it.
Installation
Notes:
Make sure that python version >=3.6. if you have python3 and python2 ,please use python3
pip
pip3 install pyagxrobots
Notes:
Make sure that pip3 version >= 9.0.0.
pip3 -V #cheak the pip3 version
python3 -m pip install --upgrade pip #updata pip3
Setup CAN-To-USB adapter
-
Enable gs_usb kernel module
$ sudo modprobe gs_usb
-
Bringup can device
$ sudo ip link set can0 up type can bitrate 500000
-
If no error occured during the previous steps, you should be able to see the can device now by using command
$ ifconfig -a
-
Install and use can-utils to test the hardware
$ sudo apt install can-utils
-
Testing command
# receiving data from can0 $ candump can0 # send data to can0 $ cansend can0 001#1122334455667788
You can run 1-5 for the first-time setup and run 2 to bring up the device each time you unplug and re-plug the adapter.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyagxrobots-0.5.6.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for pyagxrobots-0.5.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a288c002651a03e6dd75a9baea77f4b62555ceb106eb10d028d944ce34cf3e3b |
|
MD5 | bbd07ee1ed3595014c1fd75c65c00fe5 |
|
BLAKE2b-256 | 9360356fbc2950e945925f0dfc1128866da3f1c92ca968a4a3b415935b747469 |