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 and python-tk using brew:
brew install libusb python-tk
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.8.tar.gz
.
File metadata
- Download URL: hydralink-0.2.8.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaba8a7fb9b324afc36f0cec9c390285f67cb3ec600c44fe7e55e3c6e14012b1 |
|
MD5 | 1437970f41aecfa23ed6c75698b027d4 |
|
BLAKE2b-256 | 9d532801c5fe7b21cc06dbf9731151c19273c9b990ce55377d79398d813ce22c |
File details
Details for the file hydralink-0.2.8-py3-none-any.whl
.
File metadata
- Download URL: hydralink-0.2.8-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f22287e056529fcfb652eb859ec3d496d4a2390a035489c11be7c6c174792cf0 |
|
MD5 | 4d22bd7f7dc0a0edb3bc2cb792f2042f |
|
BLAKE2b-256 | 2cb9bbc8aa37de59d9a24f15f52a2a3d5413ee2e3c96466146dcd39229525093 |