프로그램: Yom 3d
프로그램을 개발하다 보면, 에디터 화면과 테스트 화면이 필요한 경우가 많다.
요즘은 2개 모니터를 이용하여 편하게 개발하기도 하지만,
상황이 여의치 않을 경우엔 가상 모니터를 이용하면 편할 수 있다.
설치할 필요가 없으며, 압축을 푼 다음에 실행 화일을 실행하면 된다.
현재는 deskspace라는 프로그램으로 상용 버전으로 발전되었다.
기타 무료 프로그램: DeskHedron
사이트: http://www.powercmd.com/
간혹 프로그램 테스트를 하다보면.. 여러 도스창을 띄워놓고 쓸 필요가 있다.
예를 들면, 자바 프로그램으로 통신을 하는 경우 여러 도스창이 필요할 경우가 있다.
컴파일하는 도스창, 서버 띄우는 도스창, 클라이언트 띄우는 도스창 등
물론 하나의 창으로 할 수도 있지만, 에러나 중간 과정 출력 메시지 등을 확인할 필요가 있기에
각각 하나의 도스창을 할당하는 것이 편하다.
이때 일반 도스창(cmd.exe)를 사용하면 서로 겹치기도 하고 불편할 때가 많다.
이 때 사용하면 좋은 프로그램이다.
두번째 그림이 4개의 도스창을 사용하는 화면이다.
1. 프린터를 설치해 본다.
2. 네트워크 설정에서, 폴더 및 프린터 공유를 선택한다.
3. 프린터를 공유하도록 설정한다.
- 필요한 경우, 컴퓨터 이름과 설명을 설정한다.
UML의 스테레오 타입에 사용되는 도형을 추가할 때, BMP 포맷을 사용하면 크기 조절할 때 그림이 예쁘지 않다.
파워포인트에서 도형을 이용해서 작성한 후 저장할 그룹을 선택하고,
"그림으로 저장"을 하면서 EMF 포맷으로 저장한다.
이 때 저장한 파일을 profile 파일에 텍스트 에디터를 이용해서 추가한다.
Text-based UI를 테스트할 때, 확장 ASCII 문자의 블럭 문자가 한글로 깨져서 보일 때가 있다. 이 때 한글 코드가 아닌 일반 ASCII 문자로 출력하기 위해서 영문 코드 페이지로 변경해야 한다. 이 때 사용하는 명령어이다.
영문 도스로 전환하기
도스창 (명령 프롬프트)을 실행하면, 기본적으로 "한글 모드"입니다.
그런데 영문 모드가 필요할 경우에는, chcp 명령을 사용하면 영문 모드로 전환할 수 있습니다.
chcp 437
이라고 하면 "영문 모드"로 전환됩니다. 이 상태에서는 한글이 전혀 나오지 않고, 파일명 등의 한글이 물음표(???)로 바뀌어 나옵니다.
chcp 949
라고 하면 "한글 모드"로 전환됩니다.
| #핀 | 신 호 명 | 설 명 |
| 1 | BATTERY ID | * 27㏀:450mA 및 4.7㏀:750mA(1.5㏀:900mA는 선택사항) * ID 저항값 오차 : +,-10% * 충전전류 허용편차 : +,-50mA * ID 저항값은 3개 저항값(27㏀, 4.7㏀, 1.5㏀) 모두 인식 가능해야 함 * 900mA를 출력하지 않는 경우 1.5㏀을 인식하되, 750mA로 출력해야 함 |
| 4,5 | Power(+5.0~5.5V) | 충전회로 내장형 단말 공급전원 |
| 21,22 | Power (+4.2V) | 충전회로 외장형 단말 공급전원 |
| 12,19 | Power Ground | 전원 접지 |
표준 문서:
1. VDD : +5V (4.7~4.8V)
2. GND : Ground
3. TX : 키보드 스캔 코드 전송용
* 시리얼 방식으로 데이터 전송
* PC와 연결할 때, 별도의 전원 공급 필요
드라이버(for PPC2003):
PS/2 설명
more..
Flexis FX-100 보조 핀 설명
| VDD | PWR | Digital Supply Voltage. Connect this pin to +5V or +3V voltage. |
| SCL | I/O | TWI Serial Clock. WHen TWI controller is in master mode, SCL outputs the serial clock to slave peripherals. When TWI controller is in slave mode, SCL receives clock from the master controller. |
| SDA | I/O | SPI Serial Data. SDA is the bidirectional TWI data line. |
| RST | IN | Reset input to the chip. Holding this pin high for 64 oscilator periods while the oscilator is running resets the device. The Port pins are driven to their reset conditions when a voltage grater than Vih1 is applied, whether or not the oscilator is running. This pin has an internal pull-down registor which allows the device to be reset by connecting a capacitor between this pin add VDD. Asserting RST when the chip is in Idle mode or Power-Down mode returns the chip to normal operation. |
| VPP | IN | Programming Supply Voltage. The programming supply voltage is applied to this input for programming the on-chip EPROM/OTPROM. |
| VSS | GND | Circuit Ground. Connect this pin to ground. |
* 시리얼로 키보드 스캔 코드 읽어들이기 (프로그램-PC용)
- http://cafe.naver.com/origamiuserclub/10076
This RS232C port is very common and available at almost any PC, some Sun (at least Ultra 5/ 10, Blade 100/150) and many other computers. Document includes description of how PC serial mouse works.
|
|
Almost each PC nowdays equiped with one/two/four serial interface (RS232C). This PC serial port interface is single ended (connects only two devices with each other), the data rate is less than 20 kbps. It's a voltage loop serial interface with full-duplex communication represented by voltage levels with respect to system ground. A common ground between the PC and the associated device is necessary.
Note: Direction is DTE (Computer) relative DCE (Modem) PC serial port pinout signals explanations
Since PC serial port is based on RS-232 standard, you may find signal details in the RS-232 interface pinout document Standard RS232 data packet
RS232 data usually is sent as a packet with 7 or 8 bit words, start, stop, parity bits (may be varied). Sample transmission shown on picture: Start bit (active low, usually between +3v and +15v) followed by data bits, parity bit (depends on protocol used) and finished by stop bit (used to bring logic high, usually between -3v and -15v). Sample serial port device. How serial mouse works
Typical PC mouse controlling system has the following parts: sensors -> mouse controller -> communication link -> data interface -> driver -> software. Sensors are the movement detectors (typically optomechanical) which sense the mouse movement and button swiches which sense the button states. Mouse controller reads the state of those sensors and takes acount of current mouse position. When this information changes the mouse controller sends a packet of data to the computer serial data interface controller. The mouse driver in the computer received that data packet and decodes the information from it and does actions based on the information. PC serial mouse voltage levels:
Mouse takes standard RS-232C output signals (+-12V) as its input signals. Those outputs are in +12V when mouse is operated. Mouse takes some current from each of the RS-232C port output lines it is connected (about 10mA). Mouse send data to computer in levels that RS-232C receiver chip in the computer can uderstand as RS-232C input levels. Mouse outputs are normally something like +-5V, 0..5V or sometimes +-12V. Mouse electronics normally use +5V voltage. Serial device hardware implementation
PC serial mouse uses typically DTR and RTS lines for generating +5V power for microcontroller circuit in the mouse. Because typical optomechanical mouse also needs power for 4 leds in the optocoupler movevement detectors, there is not much power to loose. A typical approach is to use diodes to take current fron DTR and RTS lines and then feed it through resistor to all of the (infrared) leds in the movement detectors. The positive power supply usually taken from RTS and DRT lines (just after the diodes and before the resistor going to leds). The negative supply for transmitter is taken from TD pin. Typical PC serial port mouse takes 10 mA total current and operates at voltage range of 6-15V. The data itself in sent using standard asuncronous RS-232C serial format: Start D0 D1 D2 D3 D4 D5 D6 D7 Stop Logic 0 ___ ___ ___ ___ ___ ___ ___ ___ ___ +3..+15V | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Logic 1 | | | | | | | | | | -3..-15V ___| |___|___|___|___|___|___|___|___|____ Serial mouse pinout explanation
RTS = Request to Send CTS = Clear to Send DSR = Data Set Ready DTR = Data Terminal Ready When DTR line is toggled, mouse should send one data byte containing letter "M" (ascii 77) to identify itself. To function correctly, both the RTS and DTR lines must be positive. The lines DTR-DSR and RTS-CTS must NOT be shorted. Implement the RTS toggle function by setting the RTS line negative and positive again. The negative pulse width is at least 100ms. After a cold boot, the RTS line is usually set to a negative level. In this case, setting the RTS line to a positive level is also considered an RTS toggle. Serial data parameters and packet format
1200bps, 7 databits, 1 stop-bit Data packet is 3 byte packet. It is send to the computer every time mouse state changes (mouse moves or keys are pressed/released). D7 D6 D5 D4 D3 D2 D1 D0
1. X 1 LB RB Y7 Y6 X7 X6 2. X 0 X5 X4 X3 X2 X1 X0 3. X 0 Y5 Y4 Y3 Y2 Y1 Y0 Note: The bit marked with X is 0 if the mouse received with 7 databits and 2 stop bits format. It is also possible to use 8 databits and 1 stop bit format for receiving. In this case X gets value 1. The safest thing to get everything working is to use 7 databits and 1 stopbit when receiving mouse information (and if you are making mouse then send out 7 databits and 2 stop bits). The byte marked with 1. is send first, then the others. The bit D6 in the first byte is used for syncronizing the software to mouse packets if it goes out of sync. LB is the state of the left button (1 means pressed down); RB is the state of the right button (1 means pressed down); X7-X0 movement in X direction since last packet (signed byte); Y7-Y0 movement in Y direction since last packet (signed byte) |
Related Links:
qt.sis
Yod'm_3D_1.4.zip
TTAS_KO-06_0028R2.pdf

