Bonjour à tous !
Je voudrais recycler un vieil ordi pour en faire un lecteur mp3
autonome (sans clavier, souris, écran). Pour le lecteur mp3 je compte
utiliser mxplay. Je voudrais utiliser le port série pour piloter ce
lecteur mais je n'ai aucune idée du montage:
port série==>????=>interrupteur
PS : Le port // sera utiliser par un afficheur lcd ( qui remplacera
l'écran du pc ), c'est pourquoi je tiens à passer par le port série.
Voilà la partie de texte qui permet la config du player:
************************************************** ********
;Serial and parallel port control (send in N bytes on COM/LPT port, execute key-function)
;(port config for COMC and UIR : 8 data bits, 1 stop bit, no parity)
;
; HandlerCFG=handlername,portname,baud,indatalen
; handlername : COMC, UIR, LPTC, NECIR, VT100, SERMOUS (see control\serial.c)
; portname : COM1 .. COM4 , LPT1 .. LPT3 (any other: ignored portname/portnumber)
; baud : com port setting, max. 115200 (ignored at non-COM handlers)
; indatalen : 1 - 16 (ignored at some handlers), or 128 at COMC :
direct keyboard codes (2 bytes) (in this mode the SerialFunc lines are
not required)
;
; SerialFunc=databytes_in_hexa,keyboard_code_in_hexa (2 hexa numbers = 1 byte)
;
[serialport]
SerialEnable =0 ; - set to 1 to enable serial control
HandlerCFG =UIR,COM1,9600,6 ; - configure a handler
SerialFunc =45ba68970000,1f73 ; 's' stop
SerialFunc =45ba18e70000,1970 ; 'p' play/pause
SerialFunc =45bae8170000,1970 ; 'p' play/pause
SerialFunc =45ba88770000,4a2d ; '-' skip back
SerialFunc =45ba08f70000,4e2b ; '+' skip to next
SerialFunc =45ba7a850000,2064 ; 'd' hi-lite scan
************************************************** ********
/!\Avez vous des idées de montages ?