Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
684 connectés 

  FORUM HardWare.fr
  Hardware - Périphériques
  Divers

  Envoyer des infos à un périph via un port RS-232C

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Envoyer des infos à un périph via un port RS-232C

n°55710
FrigoAcide
Posté le 30-03-2004 à 10:22:59  profilanswer
 

Salut à tous, j'aimerais "discuter" avec mon périph, un projo lcd, qui est connecté à mon pc par un port RS-232C. J'ai sous les yeux un texte de caractéristiques du projo, qui donne les codes nécessaires pour effectuer certaines commandes, comme l'allumer, l'éteindre, désactiver le son ou l'image... Ca ressemble à ça :  

Citation :

This file contains information about NEC projector control commands.
 
 Model Name
 VT: VT460/560/660
 
======================================================================
 
 Contents
  1. Projector Control
  2. Interface Conditions
  3. List of Commands
  4. Data portion of response
 
 
======================================================================
 1. Projector Control
----------------------------------------------------------------------
 
NEC projectors make use of control commands that control the  
functions of the projector via connection with a personal computer or  
another device.
 
 
 
 
======================================================================
 2. Interface Conditions
----------------------------------------------------------------------
 
Serial connection
----------------------------------------------------------------------
The communications method conforms to the RS-232C standard.
 
    Baud rate:           19200 bps
    Data length:         8 bits
    Parity bit:          No parity
    Stop bits:           1 bit
    Communications mode: Full duplex
 
The control connector is described below.
 
The PC CONTROL connector is a mini DIN 8-pin connector.
 
    1  To TxD of PC
    2
    3
    4  To GND of PC
    5
    6
    7  To RxD of PC
    8
 
    * 2, 3, 5, 6, and 8 are used inside the projector.
 
 
======================================================================
 3. List of Commands
----------------------------------------------------------------------
 
 Command name                        
----------------------------------------------------------------------
 001. POWER ON                      02H 00H 00H 00H 00H 02H
 002. POWER OFF                     02H 01H 00H 00H 00H 03H
 003. INPUT SELECT RGB              02H 03H 00H 00H 02H 01H 01H 09H
 004. INPUT SELECT VIDEO            02H 03H 00H 00H 02H 01H 06H 0EH
 005. INPUT SELECT S-VIDEO          02H 03H 00H 00H 02H 01H 0BH 13H
 006. PICTURE MUTE ON               02H 10H 00H 00H 00H 12H
 007. PICTURE MUTE OFF              02H 11H 00H 00H 00H 13H
 008. SOUND MUTE ON                 02H 12H 00H 00H 00H 14H
 009. SOUND MUTE OFF                02H 13H 00H 00H 00H 15H
 010. ONSCREEN MUTE ON              02H 14H 00H 00H 00H 16H
 011. LAMP INFORMATION REQUEST      03H 8CH 00H 00H 00H 8FH
 012. MUTE CONTROL                  02H 1AH 00H 00H 02H <DATA> CKS
 
 
 001. POWER ON
**********************************************************************
Function:
This command switches on the main power of the projector.
 
 
Command:
   02H  00H  00H  00H  00H  02H
 
Response: At the time of a success
   22H  00H  00H  00H  00H  02H
 
Response: At the time of a failure
   A2H  00H  00H  00H  02H  DATA01  DATA02  CKS
 
Supplement:
The projector does not accept the other command during power on
 processing.
 
 
 
 
 002. POWER OFF
**********************************************************************
Function:
This command switches off the main power of the projector.
 
Command:
...


 
Un type de NEC m'a dit par téléphone "mais c'est trop simple, 20 lignes de code max ! Il suffit d'établir une liaison avec le port com, c'est à la portée de n'importe quel programmeur !" Bien sûr, j'imagine qu'il n'est pas lui-même programmeur, sinon il aurait pu me dire en quel langage écrire ce code, et me donner des infos sur les bibliothèques nécessaires à utiliser...
 
En tout cas, si quelqu'un ici me m'aider ou m'aiguiller, merci beaucoup :)
 
PS : je poste ce message également dans le forum programmation, désolé pour l'encombrement :)


Message édité par FrigoAcide le 30-03-2004 à 10:27:29
mood
Publicité
Posté le 30-03-2004 à 10:22:59  profilanswer
 

n°55987
Dudu85
Posté le 31-03-2004 à 16:15:44  profilanswer
 

Quel outils et langages de programmation as tu à disposition ?


---------------
@di dudu...
n°56137
FrigoAcide
Posté le 01-04-2004 à 13:45:27  profilanswer
 

Là j'essaye avec la bibliothèque javax.comm du sun, mais les résultats ne sont pas concluants...


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Hardware - Périphériques
  Divers

  Envoyer des infos à un périph via un port RS-232C

 

Sujets relatifs
port lpt1 perduport Lpt 1 disparu
Logitech MX900 sur port ps2 ?envoyer une sonnerie sur un nokia avec un nokia 8210
Infos fonctionnalités TV du Hyundai L17T ???Modifier son scanner port parallele pour en faire une usb ?
installation de port usbscanner port paralelle et win xp pro
Adresser un flux sur un port COM1: sous windowsinfos sur hl laserjet 1500L couleurs?
Plus de sujets relatifs à : Envoyer des infos à un périph via un port RS-232C


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR