TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016 1 / 41

Transcription

TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016 1 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
iEast
1 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
Index
1.
PRÉSENTATIONETLISTEDESINTERFACES ......................................................... 4
VUED’ENSEMBLE .................................................................................................. 4
2.
SPÉCIFICATIONDESINTERFACE .......................................................................... 5
OBTENIRLESINFORMATIONSDESONOÉIEAST ............................................................ 5
CONFIGURATIONCONNEXIONRÉSEAUWIFI ............................................................... 8
2.2.1. ObtenirlalistedesRéseauWIFIDisponible(SSID) ................................... 8
2.2.2. Connectionréseauwifi .............................................................................. 9
2.2.3. Seconnecteràunréseauwificaché ....................................................... 10
2.2.4. Requêtedel’Étatdelaconnexionwifi .................................................... 10
LECTEURETDECONTRÔLEDELAMUSIQUE ............................................................... 11
2.3.1. Statutdelecture...................................................................................... 11
2.3.2. Lectured’unePlaylist .............................................................................. 13
2.3.3. Pause/reprendrelalecturedelamusiqueactuelle .............................. 13
2.3.4. Lecturedelamusique ............................................................................. 14
2.3.5. Lecturemorceauprécédent .................................................................... 14
2.3.6. Lecturemorceausuivant ......................................................................... 14
2.3.7. Avanceetretourrapide .......................................................................... 15
2.3.8. Arrêtdelalecture ................................................................................... 15
2.3.9. Réglageduvolume.................................................................................. 15
2.3.10. Modemute .......................................................................................... 16
2.3.11. Réglezlemodedelecture .................................................................... 16
2.3.12. Réglagedumodedel’équaliseur ........................................................ 17
2.3.13. Consultationdumodeéqualiseurencours ......................................... 17
CONTRÔLELECTURE-CARTEMICROSD ................................................................... 18
2.4.1. ConsultationdelaListedefichier ........................................................... 18
2.4.2. Obtenirdesinformationssurlesfichiers ................................................ 19
2.4.3. Lectured’unfichieraudiosurMicroSD ................................................... 20
2.4.4. Obtenirunelistedefichiersencache ..................................................... 20
2.4.5. Obtenirlesinformationsdesfichiersmisencache ................................. 21
GESTIONDUMULTI-ROOM ................................................................................... 22
2.5.1. ObtenirunelistedeSonoéiEastdisponible ............................................ 22
2.5.2. RetirerunboitierSonoéiEastdumulti-room ......................................... 23
2.5.1. Masquerl’adresseIPd’unboitierSonoéiEast ........................................ 23
2.5.2. LibérerunboitierdumodeMulti-Room ................................................. 23
2.5.3. Réglageindividuelduvolume ................................................................. 24
2.5.4. Réglagegénéraleduvolume................................................................... 24
2.5.5. ActivationindividueldumodeMute ....................................................... 25
2.5.6. ActivationgénéraledumodeMute ........................................................ 25
2.5.7. DésactivationgénéraledumodeMute................................................... 25
2.5.8. GestionindividueldusignalaudioDroit/gauche .................................... 26
2.5.9. GestiongénéraledusignalaudioDroit/gauche ..................................... 26
2 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.5.10. DéfinitionindividuelduNomduboitier .............................................. 26
2.5.11. DésactivationduMulti-Room .............................................................. 27
PARAMÈTREDECONTRÔLERÉSEAU ......................................................................... 28
2.6.1. OuvertureduServeurWPS...................................................................... 28
2.6.2. FermetureduserveurWPS ..................................................................... 28
2.6.3. OuvertureWPSpourboitierClient .......................................................... 28
2.6.4. ModifierlenomSSIDduBoitier .............................................................. 29
2.6.5. DéfinitiondumotdepasseWIFI ............................................................. 29
2.6.6. Restaurationdesparamètred’usine....................................................... 30
2.6.7. RedémarrageduboîtierSonoéiEast ...................................................... 30
2.6.8. Programmationdel’arrêtduboîtier....................................................... 30
2.6.9. Arrêtdel’appareil ................................................................................... 31
2.6.10. ArrêtdusignalWIFI ............................................................................. 31
2.6.11. Réglagedel’affichageMCU ................................................................ 32
2.6.12. Réglagedunomduboîtier .................................................................. 32
GESTIONDESMISEÀJOUR .................................................................................... 33
2.7.1. Recherche de mise à jour ........................................................................ 33
2.7.2. Disponibilité de mise à jour .................................................................... 33
2.7.3. Notification des mises à jours ................................................................. 34
2.7.4. Statut du processus de mise à jour.......................................................... 34
2.7.5. Avancement du téléchargement .............................................................. 35
RÉVEIL ET MINUTERIE ..................................................................................... 36
2.8.1. Synchronisation de l'heure ...................................................................... 36
2.8.2. Régler la minuterie ................................................................................. 36
2.8.3. Lecture de temps restant (Minuterie) ...................................................... 37
2.8.4. Arrêt de l’alarme..................................................................................... 38
SOURCELINEIN ................................................................................................. 39
2.9.1. Accès Lecture Line IN ............................................................................. 39
INSTRUCTIONDESIMULATIONIO ........................................................................ 40
2.10.1. Instruction PullUp GPIO .................................................................... 40
2.10.2. Instruction PullDown GPIO ................................................................ 40
2.10.3. Lecture GPIO ...................................................................................... 40
2.10.4. Entrée clé de commande analogique................................................... 41
2.10.5. Sortie clé de commande analogique .................................................... 41
COMMANDEVOCALE ........................................................................................ 41
ATTENTION: L’utilisationdecemanueletlescommandesinclusesdanscemanuelrelèvedela
responsabilitéindividuel.TRYAKSonoédéclinetouteresponsabilitéqu’enà
l’utilisationdecemanuel.Cedocuments’adressedoncàunpublicavertiet
compétent.
3 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
1. Présentationetlistedesinterfaces
Vued’ensemble
Enplusd’êtrecompatibleaveclesprotocolesdestreamingDLNAetAirplay,Sonoé
iEastproposeégalementlalecturedefichierslocalviacarteMircoSD,lagestiondu
multi-room,lecontrôledustreamingaudiosurdifférentSonoéiEast,latransmission
decommande delecturedéfinieparl'utilisateuretd'autresfonctions,letoutavec
uncontrôleconvivialetvialatechnologiesansfilWIFIAudio. Encomplément,nousavonsdévelopperuneAPIpermettantl’interactionavecSonoé
iEastprincipalementviarequêtedetypehttp.
LarequêteHTTP(getméthode)estenvoyéeauserveurWebintégréàSonoéiEast,est
analysée,uneréponseretournéeparSonoéiEastetlafonctioncorrespondanteest
exécutée.LarequêteetlaréponseémiseparSonoéiEastestauformatJSON. Formatdelarequêtehttp:commandeest:
httpapi.asp?command=setPlayerCmd:play
//x.x.x.x/httpapi.asp=********?command=
ou
httpapi.asp?command=setPlayerCmd:play
Exempleavec:
AdresseIPduSonoéiEast:10.10.10.254
Command:Play
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:play
L'adresseIPdeSonoéiEastpeutêtreobtenuparlarechercheupnptelsque
192.168.1.2ou10.10.10.254(urlassumerlesinterfacessuivantes10.10.10.254IP) Desdirectivesdecommandement:ladirectiveexigedeslettres+sousforme
numérique,peuventnepasapparaîtreoucaractèrescaractèresspéciauxunicode
4 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2. SpécificationdesInterface ObtenirlesinformationsdeSonoéiEast
l
URL:
http://10.10.10.254/httpapi.asp?command=getStatus
l
Descriptiondel'interface:
Obtenirdesinformationsdebasesurledispositif,telquessid,laversionde
l'équipement,l’IPwifietl’IPEthernet,etc.。
l
Formatsprisencharge:JSON
l
Demanded'informationHTTP:GET
l
Commande:getStatus
l
Réponseenretour:
{
"language":"en_us",
"ssid":"FA5100_a4dc",
"firmware":"WIFIAudio.multil_room.1.2.20140324",
"builddate":"release",
"Release":"20140324",
"group":"",
"expired":"0",
"internet":"0",
"uuid":"FF123456nnnnnnnnnnnn",
"netstat":"0",
"essid":"",
"apcli0":"",
"eth2":"192.168.120.112",
"hardware":"WiiMu-A03",
......
} l
DescriptiondesChamps:
Listedeschamps
Description
Language
SSID
Firmware
Build
Langue
SSIDéquipement
Versiondulogiciel
Remarque:Lerendementréelestsortie,debug,sauvegarde
troiscas,indiquelaversiondutypegénéralementde
presse.
5 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
Release
Group
Expired
MAC
Internet
Uuid
Netstat
essid
apcli0
eth2
Hardware
Project
VersionUpdate
NewVer
mcu_ver
DeviceName
temp_uuid
Streams
streams_all
External
preset_key
plm_support
WifiChannel
DatedelaVersion Nomdugroupe
Périmédrapeaudulogiciel:0:valide;1:Périmé
MacAdresse
accèsInternet:0:faux;1:vrai
DispositifUDID,les8premiersoctetsdel'IDdeprojet,suivi
del'identifiantuniquedel'appareil
WIFIétatdeconnexion0:nonconnecté;1:étattransitoire;
2:Connecté
RouteurWIFIpourseconnecterà,utilisezlacommande
getStatusretournéutiliseressidhexcodépoursoutenirla
transmissiondescaractèresspéciaux.
L'adresseIPdeWIFI
AdresseIPdel'Ethernet
Versiondumatériel
NomduProjet
Nouvelleversiondisponible
Numérodeversiondisponible
LaversionMCU,si0indiquel'absencedeMCU
NomupnpetairplaydeSonoéiEast
Tempuuid,willchangeafterbootup
Bit:
0siMFIairplayactivé
1airplayactivé
2ifDLNAactivé
3ifQplay 10ifTTPod 11ifDoubanFM 14ifQingTing 15ifximalaya
16TuneIn
17iHeartRadio
18Tidal
21Pandora
22Spotify
Lesfluxaudioàaffichermontrantl'interfaceutilisateur
Avoiruncontrôledelalumière
presetskeynumber
0LineIn(Aux)
1BT
2optical
WiFichannel
6 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
AP_clients
battery
battery_percent
securemode
psk
usb_storagesize
usb_freesize
mmc_storagesize
mmc_freesize
part1_storage
part1_free
part2_storage
part2_free
bandesWiFi NuméroClientAP
1meansbatteryisincharging
0à100
WiFisecuriséounon
SileWiFiissécurisé,permetrenseignerlemotdepasse
Udisquetailledestockage
Udiskfreesize
mmctailledestockage,sinoncelui-ci,iln'yapasdecartesT
mmcfreesize
User1partinROM,storagesize
User1partinROM,freesize
User2partinROM,storagesize
User2partinROM,freesize
7 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
ConfigurationconnexionréseauWIFI
2.2.1.
l
ObtenirlalistedesRéseauWIFIDisponible(SSID)
InterfaceURL:
http://10.10.10.254/httpapi.asp?command=wlanGetApList
l
Descriptiondel'interface:
l
Listerl’ensembledesréseauwifi(SSID)identifiéparSonoéiEast.
l
Formatsprisencharge:JSON
l
Demanded'informationHTTP:GET l
Commande:wlanGetApListEx
l
Réponseenretour:(ici3réseauxwifi)
{"res":"0","aplist":[
{"ssid":"wmmAudio_a7b8","bssid":"00:22:6c:00:a7:b8","rssi":"76","channel":"1","au
th":"OPEN","encry":"NONE","extch":"1"},
{"ssid":"WIIMU_Network","bssid":"20:dc:e6:cb:7e:78","rssi":"70","channel":"11","au
th":"WPA2PSK","encry":"AES","extch":"0"},
{"ssid":"WIFIAudio_29b0","bssid":"00:22:6c:16:29:b0","rssi":"65","channel":"11","au
th":"OPEN","encry":"NONE","extch":"0"}]}
l
Descriptiondeschamps:
Champs
Description
res
aplist
ssid
Retouraunumérodelaliste
ListeSSID
Wifinomvisible,wlanGetApListExretournéssid
hexadécimalecodantpoursoutenirdescaractèresspéciaux
etlesChinois。
AdresseMac
Forcedusignal
CanalWifi
Encrypt
Typedechiffrement
bssid
rssi
channel
auth
encry
extch
8 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.2.2.
l
Connectionréseauwifi
InterfaceURL:
http://10.10.10.254/httpapi.asp?command=wlanConnectAp:ssid:channel:auth:encry
:pwd:chext
l
Descriptiondel’interface:PermetdeconnecterSonoéiEastàunréseauwifi
sélectionné. l
Formatsprisencharge:JSON
l
Demanded'informationHTTP:GET l
Commande
:wlanConnectApEx:ssid=xxx:ch=n:auth=xxx:encty=xxx:pwd=xxx:chext=n
Paramètre
ssid
channel
Req Typeet
Description
uis portée
true string
Quandêtreconnectélenomdewifissid,wlanConnectApEx,en
hexadécimaltransmissiondecode
true string CanalWifiàconnecter,enoption1-12
auth
true string QuelecryptageestOUVERTouWPA2PSK
encry
true string Typedechiffrement,AESouNONE
MotdepasseWifi,tapezlemotdepasseestOUVERTNONE;
pwd
true string LorsquewlanConnectApEx,àlatransmissiondecodehexadécimal,sile
motdepasseestvide,vousnedevezpasentrée
chext
l
true string
1pourremplir
Réponseenretour:
L'interfaceneretournepasdevaleur,vousdevezappelerl'étatdeconnexionde
l'interfacederequête,pourdéterminersilaconnexionaréussi
9 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.2.3.
l
Seconnecteràunréseauwificaché
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=wlanConnectHideApEx:ssid:pwd
l
Descriptiondel'interface:PermetdeconnecterSonoéiEastàunréseauwifi
sélectionné.Lessidetlepwddoiventêtreauformathexadécimal.
l
Formatsprisencharge:JSON
l
Demanded'informationHTTP:GET l
Commande:wlanConnectHideApEx:ssid:pwd
2.2.4.
l
Requêtedel’Étatdelaconnexionwifi Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=wlanGetConnectState
l
Descriptiondel’interface:
l
Permetdedemanderl'étatdelaconnexionwifideSonoéiEast.L'interface
renvoieunevaleurdelaformenonjson l
Demanded'informationHTTP:GET
l
Commande:wlanGetConnectState
l
Réponseenretour:
OK
l
Descriptiondeschamps:
Champ
Description
PROCESS
PAIRFAIL
FAIL
ProcessusdeLiaison
Erreurdemotdepasse
Erreur,puiscapturél'étatpuis10scontinuellement
capturés,pourveilleràcequecetétateststable,sinonil
peutyavoirseulementunecoupuretemporaire
Laconnexionestréussie
OK
10 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
LecteuretdecontrôledelaMusique
2.3.1.
l
Statutdelecture
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=getPlayerStatus
l
Descriptiondel'interface:Permetd’interrogerSonoéiEastpourconnaître:
•
•
•
Lemorceauencoursdelecture, letitredumorceauet d'autresmétadonnées
l
Formatsprisencharge:JSON
l
Demanded'informationHTTP:GET l
Commande:getPlayerStatus
l
Réponseenretour:
{
"type":"0",
"ch":"0",
"mode":"10",’
"loop":"0",’
"status":"play",
"curpos":"12900",
"totlen":"229000",
"Title":"736865",
"Artist":"47726f6f766520436f766572616765",
"Album":"xxxxxxxxxx",
"plicount":"1",
"plicurr":"1",
"vol":"90",
"mute":"0",
}
11 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
l
Champdescription:
Champ
Description
type
0:NormalouHaut-parleurprincipalHaut-parleur1:Sousparleurs
Lecanal0indiquestéréo,1canalgauche2ducanaldroit
Modedelecture
#definePLAYER_MODE_NONE 0
#definePLAYER_MODE_AIRPLAY 1
#definePLAYER_MODE_DLNA 2
#definePLAYER_MODE_WIIMU 10
#definePLAYER_MODE_WIIMU_LOCAL 11
#definePLAYER_MODE_WIIMU_STATION 12
#definePLAYER_MODE_WIIMU_RADIO 13
#definePLAYER_MODE_WIIMU_SONGLIST 14
#definePLAYER_MODE_WIIMU_MAX 19
#definePLAYER_MODE_HTTP 20
#definePLAYER_MODE_HTTP_LOCAL 21
#definePLAYER_MODE_HTTP_MAX 29
#definePLAYER_MODE_ALARM 30
#definePLAYER_MODE_LINEIN 40
#definePLAYER_MODE_BT 41
#definePLAYER_MODE_EXT_LOCAL 42
#definePLAYER_MODE_OPTICAL 43
#definePLAYER_MODE_LINEIN_MAX 49
#definePLAYER_MODE_MIRROR 50
#definePLAYER_MODE_TALK 60
#definePLAYER_MODE_SLAVE 99
Chansonmodesdecommutationplaylist:0:1ordredejeu:
Cycleunique2:Lecturealéatoire3:cycledeliste
Lesréglagesactuelsdel'égaliseur
étatactuel:play,load,stop,pause
Emplacementactuel,enmillisecondes
Lalongueurtotale,enmillisecondes
Titre,codehexadécimal,lenomdelachanson;inconnuesi
lenomdumorceauaffichelenomdufichieroul'affichage
inconnu
Artistesdecodagehexadécimal
Nomdel'album,l'encodagehexadécimal
Lenombretotaldelistesdelecture
Lapisteencoursdel'indicedeplaylist
Volumeactuel
Estactuellementmisensourdine
ch
mode
loop
eq
status
curpos
totlen
Title
Artist
Album
plicount
plicurr
vol
mute
12 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.3.2.
l
Lectured’unePlaylist
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:playlist:uri:<index>
l
Descriptiondel'interface:Permetdejouerunelistedelectureavecuneextension
.index l
Formatsprisencharge:aucun
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:playlist:uri:<index>
l
Réponseenretour: OK
2.3.3.
l
Pause/reprendrelalecturedelamusiqueactuelle
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:pause
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:onepause
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:resume
l
Descriptiondel'interface:Permetdecontrôlerlelecteur
ü pause:mettreenpauselalectureencours
ü resume:reprendrelalectureencours
ü onepause:sivousfaitesunepausedanslareprise,silalectureestsuspendue
l Formatsprisencharge:aucun
l
Demanded'informationHTTP:GET
l
Commandes: ü setPlayerCmd:pause
ü setPlayerCmd:onepause
ü setPlayerCmd:resume
l
Réponseenretour:
OK
13 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.3.4.
l
Lecturedelamusique
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:play l
Descriptiondel'interface:Permetdelancerlalectured’unfichieraprèsune
miseenpause 无
l
Formatsprisencharge:aucun
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:play
l
Réponseenretour: OK
2.3.5.
l
Lecturemorceauprécédent
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:prev
l Descriptiondel'interface:Permetdelireunmorceauprécédent
l
Formatsprisencharge:aucun
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:prev
l
Réponseenretour:
OK
2.3.6.
l
Lecturemorceausuivant
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:next
l Descriptiondel'interface:Permetdelireunmorceauprécédent
l
Formatsprisencharge:aucun
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:next
l
Réponseenretour:
OK
14 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.3.7.
l
Avanceetretourrapide Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:seek:position l
Descriptiondel'interface:Permetdelireenavanceouretourrapideun
morceau
l
Formatsprisencharge:aucun
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:seek:position
l
Réponseenretour:
OK
2.3.8.
l
Arrêtdelalecture
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:stop l
Descriptiondel'interface:Permetl’arrêtdelalectureencours
l
Formatsprisencharge:aucun
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:stop
l
Réponseenretour:
OK
2.3.9.
l
Réglageduvolume
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:vol:value l Descriptiondel'interface:Réglageduvolumedulecteur,lavaleurestune
valeurdevolumede0-100.Lesconférenciersserontégalementmodifierlevolume
principaletsoushaut-parleur
l
Formatsprisencharge:aucun
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:vol:value
l
Réponseenretour
OK
15 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.3.10.
l
Modemute
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:mute:1 l
Descriptiondel'interface:ActivationdumodeMute,selonleparamètresuivant
Activation=1etDésactivation=0
l
Formatsprisencharge:aucun
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:mute:1
l
Réponseenretour:
OK
2.3.11.
l
Réglezlemodedelecture
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:loopmode:0
l
Descriptiondel'interface:Permetdelancerdifférentmodedelecture
l
Modedisponible:
0
Lecturedansl’ordre
1
Lectureencontinue
2
LectureAléatoire
-1
Lectureencontinued’unmorceau
Formatsprisencharge:aucun
l
Demanded'informationHTTP:SET
l
Commande:setPlayerCmd:loopmode:0
l
Réponseenretour
OK
16 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.3.12.
l
Réglagedumodedel’équaliseur
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:equalizer:mode
l Descriptiondel'interface:Permetderéglerl’équaliseur Optiondisponible
0
1
2
3
4
Fermerlemodeéqualiseur
ModeClassic
ModePopular
ModeJazzy
ModeVocal
l
Formatsprisencharge:aucun
l
Demanded'informationHTTP:SET
l
Commande:setPlayerCmd:equalizer:mode
l
Réponseenretour
OK
2.3.13.
l
Consultationdumodeéqualiseurencours
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=getEqualizer
l
Descriptiondel'interface:Permetd’interrogerledispositifdemode
d'égaliseurencours
l
Formatsprisencharge:aucun
l
Demanded'informationHTTP:GET
l
Commande:getEqualizer
l
Réponseenretour
mode0/1/2/3/4
17 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
Contrôlelecture-CarteMicroSD
2.4.1.
l
ConsultationdelaListedefichier
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=getLocalPlayList
l
Descriptiondel'interface:Obtenezlalistedesfichiersdemusiquesurle
disque,lalistedefichiersréseaupourretournerlesrésultats
l
Formatsprisencharge:JSON
l
Demanded'informationHTTP:GET
l
Commande:getLocalPlayList
l
Réponseenretour
{
"num":"2",
"locallist":[
{
"file":"/media/sda1/avrillavigne-tiktok.mp3"
},
{
"file":"/media/sda1/avrillavigne–hushhush.mp3"
}
]
}
l
Descriptiondeschamps
Champs
Description
num
locallist
file
Nombredefichiers Listedesfichiersdisponiblesurledisque Chemindufichier(codagehexadécimal)
18 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.4.2.
l
Obtenirdesinformationssurlesfichiers Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=getFileInfo:index:range
l
Descriptiondel'interface:Permetd’obtenirlesinformationsdétailléesde
chacundesfichiers,surlabasedel'indexdechacunprésentdanslalisteetà
partirde0.(méta-informationsencodagehexadécimal). l
Formatsprisencharge:JSON
l
Demanded'informationHTTP:GET
l
Commande:getFileInfo:index:range
l
Réponseenretour
Sinumestsupérieurà1,leretourfileinfoestmultiple.
{“num”:”2”,“infolist”:[
{
"filename":"/media/sda1/avrillavigne–hushhush.mp3",
"totlen":"0",
"Title":"unknown",
"Artist":"unknown",
"Album":"unknown"
},
{
"filename":"/media/sda1/avrillavigne–hushhush2.mp3",
"totlen":"0",
"Title":"unknown",
"Artist":"unknown",
"Album":"unknown"
}]}
Sinumestinférieurà1,leretourfileinfoestunique {
"filename":"/media/sda1/avrillavigne–hushhush.mp3",
"totlen":"0",
"Title":"unknown",
"Artist":"unknown",
"Album":"unknown"
}
19 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
l
Descriptiondeschamps:
Champs
Description
filename
totlen
Title
Artist
Album
Nomdufichier(codagehexadécimal) Retournetoujours«0»
Titredumorceauouunknown(codagehexadécimal)
Artistedumorceauouunknown(codagehexadécimal)
Albumdumorceauouunknown(codagehexadécimal)
2.4.3.
l
Lectured’unfichieraudiosurMicroSD
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:playLocalList:index
l
Descriptiondel'interface:Permetdesélectionnerunfichiersurlabasedes
listesdelecturegetLocalPlayList,jouantainsiautomatiquementlesmorceaux
suivants.
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:playLocalList:index
2.4.4.
l
Obtenirunelistedefichiersencache
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=getCacheList
l
Descriptiondel'interface:Permetd’obtenirlalistedesfichiersencache
l
Formatsprisencharge:JSON
l
Demanded'informationHTTP:GET
l
Commande:getCacheList
l
Réponseenretour
{
"num":"2",
"cachelist":[
{
"file":"/media/sda1/avrillavigne-tiktok.mp3"
},
{
"file":"/media/sda1/avrillavigne–hushhush.mp3"
}
]
}
20 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
l
Descriptiondeschamps:
Champs
Description
num
cachelist
file
Nombredefichiers
Listedesfichiersencache Chemindufichier(codagehexadécimal)
2.4.5.
l
Obtenirlesinformationsdesfichiersmisencache
Interfacedel’URL
http://10.10.10.254/httpapi.asp?command=getCacheFileInfo:index:range
l
Descriptiondel'interface:Permetd’obtenirlesinformationsdétailléesde
chacundesfichiers,surlabasedel'indexdechacunprésentdanslalisteetà
partirde0.(méta-informationsencodagehexadécimal). l
Formatsprisencharge:JSON
l
Demanded'informationHTTP:GET
l
Commande:getCacheFileInfo:index:range
l
Réponseenretour
Sinumestsupérieurà1,leretourfileinfoestmultiple.
{“num”:”2”,“infolist”:[
{
"filename":"/media/sda1/avrillavigne–hushhush.mp3",
"metadata":"unknown",
},
{
"filename":"/media/sda1/avrillavigne–hushhush2.mp3",
"metadata":"unknown",
}]}
Sinumestsupérieurà1,leretourfileinfoestmultiple.
{
"filename":"/media/sda1/avrillavigne–hushhush.mp3",
"metadata":"unknown",
}
l Descriptiondeschamps:
Champs
Description
filename
metadata
Nomdufichier(codagehexadécimal) Informationdumorceauouunknown (codagehexadécimal)
21 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
GestionduMulti-Room 2.5.1.
l
ObtenirunelistedeSonoéiEastdisponible
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=multiroom:getSlaveList
l
Descriptiondel'interface:Permetd’obtenirlalistedesboitiersutilisantle
mêmeprotocoledecommunication.
l
Formatsprisencharge:JSON
l
Demanded'informationHTTP:GET
l
Commande:multiroom:getSlaveList
l
Réponseenretour:
{
"slaves":"1",
"slave_list":[
{
"name":"FA5100_a3f4",
"mask":"0",
"volume":"90",
"mute":"0",
"channel":"0",
"ip":"10.10.10.100",
"version":"WIFIAudio.1.2.2321"
}
]
}
l DescriptiondesChamps:
Champs
Description
slaves
slave_list
name
mask
Volume
Mute
Channel
ip
version
NombredeboitiersSonoéiEastdisponible
InformationsdechacundesboitiersSonoéiEastdisponible
Nom
BoitierdéjàenmodeMulti-Romm,Oui=1,Non=0
Niveauduvolume
ActivationdumodeMute,Oui=1,Non=0
CanalWifi
AdresseIPduBoitierSonoéiEast
Versiondufirmware
22 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.5.2.
l
RetirerunboitierSonoéiEastdumulti-room
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=multiroom:SlaveKickout:ip
l
Descriptiondel'interface:Permetderetirerdumodemulti-roomunboitier
surlabasedesonadresseIP.
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:multiroom:SlaveKickout:ip
l
Réponseenretour:
OK
2.5.1.
l
Masquerl’adresseIPd’unboitierSonoéiEast
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=multiroom:SlaveMask:ip
l
Descriptiondel'interface:Permetd’intégrerdumodemulti-roomunboitier
surlabasedesonadresseIP.
IlestainsirenduinvisibleduréseauIP.
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:multiroom:SlaveMask:ip
l
Réponseenretour:
OK
2.5.2.
l
LibérerunboitierdumodeMulti-Room
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=multiroom:SlaveUnMask:ip
l
Descriptiondel'interface:Permetlibérerdumodemulti-roomunboitiersurla
basedesonadresseIP. IlestainsirenduvisiblesurleréseauIP.
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:multiroom:SlaveUnMask:ip
l
Réponseenretour:OK
23 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.5.3.
l
Réglageindividuelduvolume Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=multiroom:SlaveVolume:ip:volume
l
Descriptiondel'interface:Permetderéglerlevolumeindividuellementde
chacundesboitiersvial’adresseIPduboitieretladéfinitiond’unevaleurallant
de1à100.
Note:cesréglagesserontperdudèsladésactivationmodemulti-room(kickout)
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:multiroom:SlaveVolume:ip:volume
l
Réponseenretour:
OK
2.5.4.
l
Réglagegénéraleduvolume
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:slave_vol:volume
l
Descriptiondel'interface:Permetderéglerlevolumegénéraledumulti-room
avecladéfinitiond’unevaleurallantde1à100.
Note:cesréglagesserontperdudèsladésactivationmodemulti-room
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:slave_vol:volume
l
Réponseenretour:
OK
24 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.5.5.
l
ActivationindividueldumodeMute Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=multiroom:SlaveMute:ip:mute
l
Descriptiondel'interface:Permetd’activerlemodeMutesurchacundes
boitiersvial’adresseIPduboitieretselonleparamètresuivantActivation=1et
Désactivation=0
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:multiroom:SlaveMute:ip:mute
l
Réponseenretour:
OK
2.5.6.
l
ActivationgénéraledumodeMute Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:slave_mute:mute
l
Descriptiondel'interface:Permetd’activerlemodeMutesurdemanière
générale
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:slave_mute:mute
l
Réponseenretour:
OK
2.5.7.
l
DésactivationgénéraledumodeMute Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:slave_mute:unmute
l
Descriptiondel'interface:PermetdésactiverlemodeMutesurdemanière
générale
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:slave_mute:unmute
l
Réponseenretour:OK
25 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.5.8.
l
GestionindividueldusignalaudioDroit/gauche
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=multiroom:SlaveChannel:ip:channel
l
Descriptiondel'interface:Permetd’activerlemodeMutesurchacundes
boitiersvial’adresseIPduboitieretselonleparamètresuivantpoursignal
droituniquementChannel=0etpoursignalgaucheuniquementChannel=1
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:multiroom:SlaveChannel:ip:channel
l
Réponseenretour:
OK
2.5.9.
l
GestiongénéraledusignalaudioDroit/gauche
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:slave_channel:channel
l
Descriptiondel'interface:Permetd’activerlemodeMutesurchacundes
boitiersvial’adresseIPduboitieretselonleparamètresuivantpoursignal
droituniquementChannel=0etpoursignalgaucheuniquementChannel=1
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:slave_channel:channel
l
Réponseenretour:
OK
2.5.10.
l
DéfinitionindividuelduNomduboitier Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=multiroom:SlaveSetDeviceName:%ip:%s
l
Descriptiondel'interface:Réglagesindividueldunomduboitierenmode
Upnp/Airplay
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:multiroom:SlaveSetDeviceName:%ip:%s
l
Réponseenretour:OK
26 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.5.11.
l
DésactivationduMulti-Room
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=multiroom:Ungroup
l
Descriptiondel'interface:Désactivelemodemulti-room
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:multiroom:Ungroup
l
Réponseenretour:
OK
27 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
Paramètredecontrôleréseau
2.6.1.
l
OuvertureduServeurWPS
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=wpsservermode
l
Descriptiondel'interface:OuvertureduserveurWPSenattented’intégration
denouveauboitiers
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:wpsservermode
l
Réponseenretour:
OK
2.6.2.
l
FermetureduserveurWPS Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=wpscancel
l
Descriptiondel'interface:OuvertureduserveurWPSenattented’intégration
denouveauboitiers
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:wpscancel
l
Réponseenretour:
unknowncommand
2.6.3.
l
OuvertureWPSpourboitierClient
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=wpsclientmode
l
Descriptiondel'interface:OuvertureduserveurWPSpourintégrerunboitier
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:wpsclientmode
l
Réponseenretour:OK
28 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.6.4.
l
ModifierlenomSSIDduBoitier
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setSSID:value
l
Descriptiondel'interface:Permetdedéfinirunnouveaunomréseau(SSID)du
boitierauformathexadécimal
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:setSSID:value
l
Réponseenretour:
Pasderéponse.Lesystèmeredémarreaprèsl’appel
2.6.5.
l
DéfinitiondumotdepasseWIFI
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setNetwork:1:password
l
Descriptiondel'interface:Définitiond’unnouveaumotdepasseutilisantdes
lettreset/ouchiffresetpassageduparamètresetNetwork:1(sécurisationdu
réseauWIFI(WPAPSK).Enopposition,setNetwork:0(OPEN)rendleréseau
WIFIouvert.
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:setNetwork:1:password
l
Réponseenretour:
Pasderéponse.Lesystèmeredémarreaprèslavalidationdunouveaumotde
passe.IlfautdoncsereconnecterauréseauWIFIetsaisirlenouveaumotde
passe.
29 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.6.6.
l
Restaurationdesparamètred’usine
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=restoreToDefault
l
Descriptiondel'interface:Permetderestaurerlesparamètresd’usine,
d’effacerlesconfigurationsdéfinies.L’appareilredémarre.
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:restoreToDefault
l
Réponseenretour:
OK
2.6.7.
l
RedémarrageduboîtierSonoéiEast
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=reboot
l
Descriptiondel'interface:Permetderedémarrerl’appareil
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:reboot
l
Réponseenretour:
OK
2.6.8.
l
Programmationdel’arrêtduboîtier
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setShutdown:sec
l
Descriptiondel'interface:Permetd’éteindrel’appareilimmédiatementsec0
oudesecnavecnenmilliseconde
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:setShutdown:sec
l
Réponseenretour:OK
30 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.6.9.
l
Arrêtdel’appareil
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=getShutdown
l
Descriptiondel'interface:Permetd’éteindrel’appareilimmédiatement
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:getShutdown
l
Réponseenretour:
OK
2.6.10.
l
ArrêtdusignalWIFI
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPowerWifiDown
l
Descriptiondel'interface:Permetd’éteindrelesignalWIFIduBoîtier
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:setPowerWifiDown
l
Réponseenretour:
OK
31 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.6.11.
Réglagedel’affichageMCU l Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=MCUDisplayText:xxxx
l
Descriptiondel'interface:PermetdegérerunaffichagetexteMCUdansla
limitede32caractères.
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:MCUDisplayText:xxxx
l
Réponseenretour:
OK
2.6.12.
Réglagedunomduboîtier
l Interfacedel’URL http://10.10.10.254/httpapi.asp?command=setDeviceName:%s
l
Descriptiondel'interface:PermetdedéfinirlenomUpnp,DLNAetAirplaydu
boîtier(Hexadécimal)
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:setDeviceName:%s
l
Réponseenretour:
OK
32 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
GestiondesMiseàjour
2.7.1.
Recherche de mise à jour
l Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=getMvRemoteUpdateStartCheck
l
Descriptiondel'interface:PermetderechercherlesmisesàjourFirmware
disponible
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:getMvRemoteUpdateStartCheck
l
Réponseenretour:
OK
2.7.2.
l
Disponibilité de mise à jour
Interface de l’URL:
http://10.10.10.254/httpapi.asp?command=getMvRemoteUpdateStatus
l
Descriptiondel'interface:Permetdevérifiersiunemiseàjourestdisponible.
L'interface peut avoir besoin d'appeler plusieurs fois car l'appareil lui-même a
besoind'interrogerleserveursilesmisesàjoursontdisponibles.
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:getMvRemoteUpdateStatus
l
Réponseenretour::
0
l
Descriptiondeschamps:
Champs
Description
40 10 others
Packageamélioré
Encoursd’analyse
Refusdemiseàjour
33 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.7.3.
l
Notification des mises à jours
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=getMvRemoteUpdateStart
l
Descriptiondel'interface:Aprèsavoirappelél'interface,siunenouvelle
versionestdisponible,l'appareilcommenceàtéléchargerlesmisesàjour.Ala
findutéléchargement,leprocessusdemiseàjourestlancé.
ATTENTION:SURTOUTNEPASETEINDREL’APPAREILPENDANTCEPROCESSUS
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:getMvRemoteUpdateStart
l
Réponseenretour::
OK
2.7.4.
l
Statut du processus de mise à jour
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=getMvRemoteUpdateStatus
l
Descriptiondel'interface:Permetd’obtenirlaprogressiondutéléchargement l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:getMvRemoteUpdateStart
l
Réponseenretour::
25
l
Descriptiondeschamps:
Champs
Description
10 21 22 23 25 27
30 Encoursd’examen
Lavérificationdufichierdemiseàjourtéléchargéaéchoué
Letéléchargementdufichierdemiseàjouraéchoué
Lavérificationdufichierdemiseàjourtéléchargéaéchoué
Débutdutéléchargement
Téléchargementterminé
Téléchargementetvérificationterminé
34 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.7.5.
Avancement du téléchargement
l
Interfacedel’URL:
l
http://10.10.10.254/httpapi.asp?command=getMvRomBurnPrecent
Descriptiondel'interface:Etatd’avancementdelamiseàjour
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:getMvRemoteUpdateStart
l
Réponseenretour::
{"status":"0","progress":"50"}
l
Descriptiondeschamps:
Champs
Description
status
progress
Etat
Avancemententre0à100%
35 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
Réveil et minuterie
2.8.1.
Synchronisation de l'heure
Sil'appareilestenligne,l'appareilenutilisantlesystèmedesynchronisationdetemps
SNTP,enprenantletempsUTC,doncs'iln'estpasUTC,parexemple,ParisestGMT
+8,l'appelantdoitêtreconvertienUTC,puisappelezsetAlarmClock.Sil'appareilest
enligne,vouspouvezutiliserl'interfacepourréglerl'heuredusystème:
http://10.10.10.254/httpapi.asp?command=timeSync:YYYYMMDDHHMMSS
2.8.2.
l
Régler la minuterie
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setAlarmClock:n:trig:op:time[:day][:url]
l Descriptiondel'interface:Lescrochetsindiquentquelechampestnécessaire,
parexemple,estréglépourdéclencheruneinstructiond'alarmequotidienne
http://10.10.10.254/httpapi.asp?command=setAlarmClock:n:trig:op:time:url
Lejourn’estpasnécessaire
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:setAlarmClock:n:trig:op:time[:day][:url]
l
Descriptiondeschamps:
Champs
n
trig
op
time
Description
Peutêtrede0à2,Max:3alarmes
Modededéclenchement: 0–Pasd’alarme(setAlarmClock:n:0)
1Uneseulefois
2Touslesjours
3Touteslessemaines
4Touteslessemaines,modeétendu
5Touslesmois
Actionàeffectuer
0–Exécutionduscript
1–Lecturedelamusique
2–Arrêtdelalecture
Format%02h%02m%02s Telsque180101pour18:01:01
Heuresdedébut:00à23
Minutesetsecondesde00à59
36 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
day
Format%04M%02s%02j(M:mois/s:semaine/j:jour)
Parexemple20140101,quiest01moisaffectationà12
ModeUneseulefois-Pasderéglagepossible
ModeTouslesjours-Pasderéglagepossible
ModeToutelessemaines- Valeurde00à06(2octets)-00dimancheau06samedijour.
ModeTouteslessemaines,modeétendu
Lepremieroctetreprésentelavaleurdujourprécisde
déclanchementdel’action(0dimancheau6samedi).
sielleestdéfinieà1(ie,attribuéà7F),indiquequel'entréeen
vigueurd'unejournée.Remarquedoitêtredeuxoctets
entre1et31.Silagâchetteunefois,puisréglez%04d%02d%02d,
parexemple20140101,quiest01moisaffectationà12
Localisionsduscript
Longueurmaximalede256octets
url
2.8.3.
Lecture de temps restant (Minuterie)
l
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=getAlarmClock:n
l
Descriptiondeschamps:
Champs Description
n
Peutêtrede0à2,Max:3alarmes
Défini:retour{"enable":"1"}
Nondéfini:retour{"enable":"0"}
trigger "%d"
operatio "%d"
time
Format%02h%02m%02s
ModeUneseulefois- "Date":"%02d:%02d:%02d"sinonpas
ModeToutelessemaines(Modeétenduinclus)-"WEEK_DAY":"%d"
ModeTouslesjours–"Jour":"%02d""time":"%02d:02d:%02d"
path
"%s"
37 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.8.4.
l
Arrêt de l’alarme
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=alarmStop
l
Descriptiondel'interface:Arrêtdel’alarmeprogramée
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:alarmStop
l
Réponseenretour:
OK
38 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
SourceLineIN
2.9.1.
l
Accès Lecture Line IN
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=setPlayerCmd:switchmode:%s
l
Descriptiondel'interface:Accèsaudifférentmodedelecturepossibledontle
LineIn.
ü line-in:PassezenmodeAUX,
ü optical:PassezenmodeSPDIF
ü udisk:PassezaulecteurdeMicroSD
ü wifi:PassezenmodeWIFI
l
Formatsprisencharge:Aucun
l
Demanded'informationHTTP:GET
l
Commande:setPlayerCmd:switchmode:%s
l
Réponseenretour:
OK
39 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
InstructiondesimulationIO
2.10.1.
Instruction PullUp GPIO
l
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=IOSimuPullUp:%d
l
Descriptiondel'interface:PermetlagestionforcéduGPIO
l
•
0:nReload,nonrecommandé,GénéralementutilisépourWPSet
réinitialisationd'usine
•
11:GPIO_nReady (uniquementA02)
•
12:GPIO_DCD
•
14:GPIO_RIN
•
18:GPIO1(uniquementA11)
•
17:GPIO2(uniquementA11)
Commande:IOSimuPullUp:%d
2.10.2.
Instruction PullDown GPIO
l
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=IOSimuPullDown:%d
l
Descriptiondel'interface:SupprimerlagestionforcéeduGPIO
l
Commande:IOSimuPullDown:%d
2.10.3.
Lecture GPIO
l
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=IOSimuRead:%d
l
Descriptiondel'interface:LireleniveauGPIO
l
Commande:IOSimuRead:%d
40 / 41
TRYAK – Sonoé iEast – Manuel API – Version du 15/05/2016
2.10.4.
Entrée clé de commande analogique
l
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=IOSimuKeyIn:%d
l
Descriptiondel'interface:DocumentsderéférencedesparamètresMCU.
L’instructionMCUareçoitMCU+KEY+XXX
l
Commande:IOSimuKeyIn:%d
2.10.5.
Sortie clé de commande analogique
l
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=IOSimuKeyOut:%d
l
Descriptiondel'interface:DocumentsderéférencedesparamètresMCU.
L’instructionMCUareçoitAXX+KEY+XXX
Commandevocale
l
Interfacedel’URL:
http://10.10.10.254/httpapi.asp?command=PromptEnable
http://10.10.10.254/httpapi.asp?command=PromptDisable
l
Descriptiondel'interface: l
Commande: ü PromptEnable
ü PromptDisable
41 / 41

Documents pareils