-
Notifications
You must be signed in to change notification settings - Fork 92
HydraFW LIN guide
Bus: LIN
Connections: two pins (RX/TX) and ground.
Output types: 3.3volt normal output, or open drain
(pull-up/pull-down resistors integrated in MCU or external).
Pull-up resistors: required for open collector output mode (2K – 10K).
Maximum Voltage: 5.5volts (5volt safe).
This guide is updated towards firmware release HydraFW v0.9 Beta
For hardware shield supported see https://github.com/smillier/HydraLINCAN
-
show
Show LIN parameters orshow pins
Show pins used in this mode -
device
with parameter1
or2
to choose LIN device (1 or 2) -
exit
to exit LIN mode
Note default value for device 1 or 2:
For device 1 (LIN1):
> lin device 1
Note: LIN parameters have been reset to default values.
Device: LIN1
For device 2 (LIN2):
> lin device 2
Note: LIN parameters have been reset to default values.
Device: LIN2
Hardware Informations:
lin1> show pins
TX: PA9
RX: PA10
lin2> show pins
TX: PA2
RX: PA3
trigger
configures the trigger mode
r
or read
Read one byte. (r:1…255 for bulk reads)
hd
Read one byte. (hd:1…255 for bulk reads). Displays a hexdump of the result (See Hexdump guide)
w
or write
Followed by values to write byte(s). (w:1…255 for bulk writes)
0
Write this Octal value. Format is prefixed by a 0 (values from 000 to 077)
0b
Write this binary value. Format is 0b00000000 for a byte, but partial bytes are also fine: 0b1001.
0x
Write this HEX value. Format is 0x01. Partial bytes are fine: 0xA. A-F can be lower-case or capital letters.
0-255
Write this decimal value. Any number not preceded by 0x, or 0b is interpreted as a decimal value.
"
Write an ASCII-encoded string
[
Write a LIN break
Write support optional repeat :
(eg.: 10:1…255 for repeated write of same value 10 in this example)
space
Value delimiter.
Use a space to separate numbers/commands.
Any combination is fine, delimiter is required between each number/command, Example: 0x1 0xff 0 10 0b11 077
&
Delay 1uS. (&:1…1000000 for multiple delays)
%
Delay 1mS. (%:1…1000000 for multiple delays)
lin1> 0x01 0x02 ~ r 0x00:4
WRITE: 0x01 0x02 0x53
READ: 0x80
WRITE: 0x00 0x00 0x00 0x00
For more details on LIN see https://en.wikipedia.org/wiki/Local_Interconnect_Network
- CHANGELOG
- Console commands
- Binary mode guide
-
NFC/HydraNFC v1 guide
- Read UID of an ISO/IEC_14443 Tag
- Read UID and data of a MIFARE Ultralight Tag
- Read UID of an ISO/IEC 15693 Tag
- Emul ISO14443a Tag
- Emul MIFARE Ultralight Tag
- Emul Mifare Classic Tag
- Unique NFC sniffer design
- Launch NFC sniffer from console
- Sniffer ISO14443A wireshark pcap
- Autonomous/stand-alone sniffer mode
- Sniffer ISO14443A real-time infinite trace mode
- HydraFW-HydraNFC-v1.x-TRF7970A-Tutorial