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
Two scripts inside the "./scripts" folder are provided for easy setup. You can run "./setup_can2usb.bash" for the first-time setup and run "./bringup_can2usb.bash" 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.3.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for pyagxrobots-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6e63bacb82184290882aa55df6041f4d925df829392ac317dee573909918c42 |
|
MD5 | 4e1cacc9be60bd058e35a35a8fcc870c |
|
BLAKE2b-256 | 590684ad45fceffac7d404a770a01e4d435274adc146153f0e4b5f5d576e2ef6 |