Compare commits

...

2 Commits

Author SHA1 Message Date
tth 8dc0acc382 loth project, next step again 2020-10-31 02:12:17 +01:00
tth 2e2db9d427 loth project, next step 2020-10-31 01:08:23 +01:00
4 changed files with 52 additions and 4 deletions

View File

@ -1,11 +1,29 @@
# Loth Hacks for fun and profit
Le problème est complxe : comment découvrir l'adresse IP d'un machin
qui tourne avec MadMapper ?
Il y a toute une procédure vu que leur truc utilise __Bonjour__ pour
découvrir leurs adresses IP.
`$ mdns-scan` et ensuite, si on repère indice MINIMAD avec ce
que semble être une adresse MAC :
`/usr/sbin/arp -a | grep b8:27:eb:51:db:32`
Mais il y a aussi b8:27:eb:be:18:9f ???
## en shell
Voir `sender.sh`
Les paramètres sont dans `config.sh` pour adresser les madboites
vidéo et lumière.
Voir `play.sh`.
## en C
Krkrkr...
## Et ensuite ?

7
Loth/config.sh Normal file
View File

@ -0,0 +1,7 @@
# config pour le MapMachin
IP_VIDEO="10.20.25.6"
IP_LIGHT="localhost"
R_PORT="1111"

19
Loth/play.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
source config.sh
function envoyer
{
msg=$1
echo $msg
oscsend $IP_VIDEO $R_PORT $msg
}
envoyer "/play"
sleep 15
envoyer "/pause"

View File

@ -1,7 +1,11 @@
#!/bin/bash
R_IP="localhost"
R_PORT="2222"
#
# c'est juste du code d'exemple
#
R_IP="10.20.31.170"
R_PORT="1111"
DEVICE=42
@ -12,7 +16,7 @@ oscsend $R_IP $R_PORT $oscpath s "==========="
for foo in $(seq 20 7 80)
do
echo " " $foo
message=$(printf "0x%02x" $foo)
message=$(printf " 0x%02x" $foo)
oscsend $R_IP $R_PORT $oscpath s "$message"
sleep 1
done