http://hsp.tv/play/pforum.php?mode=all&num=15980
RS-232C¤ÇDVD¥Ç¥Ã¥¤òÀ©¸æ¤·¤¿¤¤
¢¬¤³¤Á¤é¤Ç¼ÁÌä¤ò¤µ¤»¤Æ夤¤¿¡¢DoubleQuote¤È¿½¤·¤Þ¤¹¡£
¾å¤Î¼ÁÌä¤ÎºÝ¤Ë¤Ï¤¿¤¯¤µ¤ó¤Îµ®½Å¤Ê²óÅú¡¢À¿¤Ë¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£
DVD¥Ç¥Ã¥¤Ç¤Î»î¸³¤òÁ°¤Ë¶á¤¯¤Ë¤¢¤ëepson¤Î¥×¥í¥¸¥§¥¯¥¿¡¼ELP7700¤Ë
RS-232C¤¬ÅëºÜ¤µ¤ì¤Æ¤¤¤ë°Ù¡¢¤½¤Á¤é¤Ç»î¸³¤ò¹Ô¤Ã¤Æ¤ß¤Þ¤·¤¿¡£
¢¹Í¤¨¤¿¥¹¥¯¥ê¥×¥È¤Ç¤¹
#include "hspext.as" // »ÈÍѤ¹¤ëCOM¥Ý¡¼¥È¤ÎÈÖ¹æ #define COM_PORT 5 sdim power_on , 32 sdim power_off , 32 sdim source_dsub , 32 power_on_data = 0x1B , 0x07 , 0x01 , 0x00 , 0x03 , 0x01 , 0xF4 power_off_data = 0x1B , 0x07 , 0x01 , 0x00 , 0x03 , 0x00 , 0xF5 source_dsub_data = 0x1B , 0x07 , 0x01 , 0x01 , 0x00 , 0x10 , 0xE7 repeat length(power_on_data) poke power_on , strlen(power_on) , power_on_data(cnt) poke power_off , strlen(power_off) , power_off_data(cnt) poke source_dsub , strlen(source_dsub) , source_dsub_data(cnt) loop /* // ³ÎǧÍÑ dialog power_on dialog power_off dialog source_dsub */ comopen COM_PORT,"baud=9600 parity=N data=8 stop=1" if ( stat ) : dialog "COMOPEN¤Ë¤Æerror¤¬È¯À¸¤·¤Þ¤·¤¿",1 : end comput power_on if ( stat == 0 ) : dialog "COMPUT¤Ë¤Æerror¤¬È¯À¸¤·¤Þ¤·¤¿",1 : end end
COM¥Ý¡¼¥È¤Ë´Ø¤·¤Æ¤Ï5ÈÖ¤À¤Ã¤¿¤Î¤Ç¤½¤ì¤ò»ØÄꤷ¤Þ¤·¤¿¤Î¤Ç´Ö°ã¤¤¤Ê¤¤¤è¤¦¤Ç¤¹¡£
¼Â¹Ô¤·¤Æ¤ß¤¿¤Î¤Ç¤¹¤¬¡¢¥¨¥é¡¼¤Ï½Ð¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢¥×¥í¥¸¥§¥¯¥¿¡¼Â¦¤¬²¿¤È¤âÆ°¤¤Þ¤»¤ó¡£
ÄÌ¿®¤ÏÀ®¸ù¤·¤Æ¤¤¤ë¡Ê¡©¡Ë¤è¤¦¤Ç¤¹
http://hsp.tv/play/pforum.php?mode=pastwch&num=13223
¤³¤Á¤é¤Î²áµî¥í¥°¤ò¾Ò²ð¤·¤Æ夤¤¿¤Î¤Ç¡¢»²¹Í¤Ë¤·¤Æ¤ß¤Þ¤·¤¿¡£
Ì¿Îá¤ÎËöÈø¤Ë"\r"¤òÉÕ¤±¤Æ¤ß¤ë
Ì¿Îá¤ÎËöÈø¤Ë"\n"¤òÉÕ¤±¤Æ¤ß¤ë
Ì¿Îá¤ÎËöÈø¤Ë"\r\0"¤òÉÕ¤±¤Æ¤ß¤ë
Ì¿Îá¤ÎËöÈø¤Ë0x0d¤òÉÕ¤±¤Æ¤ß¤ë
¤Ê¤É»î¹Ô¤·¤Æ¤ß¤Þ¤·¤¿¤¬¡¢·ë²Ì¤ÏÆ°¤¤Þ¤»¤ó¤Ç¤·¤¿¡£
¤Ê¤Ë¤«µ½Ò¤Ç´Ö°ã¤Ã¤Æ¤¤¤ë¤È¤³¤í¤¬¤¢¤ê¤Þ¤·¤¿¤é¡¢¤´»ØŦ¤·¤Æ失¤ë¤È¤¢¤ê¤¬¤¿¤¤¤Ç¤¹¡£
¤è¤í¤·¤¯¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹¡£
¾°¡¢ÄÌ¿®¤Ë¤ª¤±¤ë¥³¥Þ¥ó¥É¤Ï°Ê²¼¤ÎÄ̤ê¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
ÄÌ¿®Â®ÅÙ 9600bps
¥Ñ¥ê¥Æ¥£ ̵¤·
¥¹¥È¥Ã¥×¥Ó¥Ã¥È 1
BITĹ 8
¥Õ¥í¡¼À©¸æ ¥Ï¡¼¥É¥¦¥§¥¢
ÅŸ» POWER ON 1B 07 01 00 03 01 F4
POWER OFF 1B 07 01 00 03 00 F5
ÆþÎÏ¥½¡¼¥¹ D-SUB PC1 1B 07 01 01 00 10 E7
BNC PC2 1B 07 01 01 00 30 C7
Y/Cr/Cb 1B 07 01 01 00 40 B7
¥³¥ó¥Ý¥¸¥Ã¥È 1B 07 01 01 00 21 D6
Sü»Ò 1B 07 01 01 00 22 D5
¤è¤í¤·¤¯¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹¡£