jmccorm
Well-Known Member
- Thread starter
- #271
Display Music Information from uConnect
The following script "showevic" listens to the CAN bus of a running vehicle and intercepts messages from the uConnect radio to the dash which contain audio input name, song title, and artist. It prints all messages to the screen (complete or incomplete) as they are received.
Source code follows:
Sample output:
The following script "showevic" listens to the CAN bus of a running vehicle and intercepts messages from the uConnect radio to the dash which contain audio input name, song title, and artist. It prints all messages to the screen (complete or incomplete) as they are received.
Source code follows:
Code:
#!/bin/bash
candump can0,328:0fff | ( while read a b c d e f g h i j k
do
[ "$e" -gt 39 ] && echo -n "Line ${e:1:1}: "
[ "$f$g$h$i$j$k" == "000000000000" ] && echo ""
printf "%b" "\x${f}\x${g}\x${h}\x${i}\x${j}\x${k}"
done
)
Line 3: KOSU-NPR
Line 1: FM 106.9 HD-1
Line 2:
Line 3: KHTT-FM
Line 1: FM 104.5
Line 1: FM 104.5
Line 1: FM 104.5
Line 1: FM 104.5
Line 1: FM 104.5
Line 1: FM 104.5
Line 2: Z104.5 THE EDGE - www.edgetulsa.
Sponsored
Last edited: