Library to configure the dissecto hydralink
Project description
HydraLink
Python module to control dissecto HydraLink on Linux, MacOS and Windows
Can be either used as a standalone application, or as a module imported from another python program.
Installation
Windows
First, install python 3 from the Microsoft Store.
Next, open a terminal and install hydralink from pypi:
python -m pip install hydralink
MacOS
First, install python 3. Next, install libusb using brew:
brew install libusb
Finally, create a virtual environment and install pyusb and hydralink there:
python3 -m venv hydralink-venv
source hydralink-venv/bin/activate
python -m pip install pyusb hydralink
Linux
NOTE: on Linux, you can also use the hydralink kernel module to automatically configure HydraLink without additional software.
First, install python and libusb. The specific instructions to do this are different from distribution to distribution. For example, on Ubuntu you might do it like this:
sudo apt install libusb-1.0-0 python3
Finally, create a virtual environment and install pyusb and hydralink there:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install pyusb
Usage
If you installed the hydralink module in a virtual environment, make sure to activate the virtual environment.
# Enable slave mode, 100 megabits speed
python -m hydralink
# Enable master mode, 100 megabits speed
python -m hydralink -m
# Enable slave mode, gigabit speed
python -m hydralink -g
# Enable master mode, gigabit speed
python -m hydralink -m -g
# Show the configuration gui. This requires the python tkinter module!
pyhton -m hydralink --gui
API
from hydralink import HydraLink
hl = HydraLink()
# master is True or False, speed is 100 or 1000.
hl.setup(master=True, speed=1000, promiscuous=True)
# If an option is not specified, the current value is not changed:
hl.setup(speed=100) # does not change the master mode
Pinout
HydraLink RC1
On HydraLink RC1, the positive terminal is on pin 7, and the negative terminal is on pin 8 (pin 1 is the pin marked by the dot).
Pins 1 through 5 are connected directly to the LAN7801 GPIOs (for example to be used for JTAG). These pins will not be available in the final release.
- GPIO4 (don't exceed 3.3V!)
- GPIO5 (don't exceed 3.3V!)
- GPIO6 (don't exceed 3.3V!)
- GPIO7 (don't exceed 3.3V!)
- GPIO8 (don't exceed 3.3V!)
- Ground
- Automotive Ethernet +
- Automotive Ethernet -
LEDs
When HydraLink is powered, 4 LEDs should turn on: red, orange, green, blue.
The red LED indicates that the HydraLink is powered.
While the HydraLink is not configured, the orange, green and blue are all turned on.
Once the HydraLink is configured, the meaning of the LEDs is:
The orange LED indicates that a 1 gb/s link is detected.
The green LED indicates that a 100 mb/s link is detected.
The blue LED indicated that there is activity on the link.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hydralink-0.2.3.tar.gz
.
File metadata
- Download URL: hydralink-0.2.3.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cb5ba7ea3933832910a9724d655c5914ad7f96cf48498e001797f5f4042e5f1 |
|
MD5 | 05508cd924e5f6aa641fabeaa3dd4283 |
|
BLAKE2b-256 | 8638d76cc9cd42716bbd3fb124a81b201fbde4ac2fe91d6cba7a4d6d76345de2 |
File details
Details for the file hydralink-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: hydralink-0.2.3-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c25c0962faafa127eadcc4aec837279581526536fcfadd08c994bf0080e29d65 |
|
MD5 | 90d3c0defade55cfa4defb7ca414f466 |
|
BLAKE2b-256 | 7f5a8f456e064208e9c62461f54bf805f29a59b56fca33f9c0a9457358b0ffa1 |