Q&A

  • 시리얼통신 rs-232질문..
안녕하세요 델파이 초보인데 급하게 소형장비를 돌려야 할일이 생겼습니다...ㅠㅠ;;;

그래서 돌아다니다가 c-port라는 컨포넌트를 받아 설치했는데요..

강좌 막돌아다녀봤는데 어렵네요..ㅠㅠ;;

우선 stx라고 있는데

comport1.writestr(#$02)이렇게 보내면 시작인가요??????

프로토콜을 문서파일로 받았는데 다영어고 번역해도 무슨말인지원.....

처음이라 너무 벅차네요...

도움주실분은 네이트온 아이디 답변에 적어주시면 친구 ㄱㄱ싱...

급으로 알아야돼서..제가 ...도움좀부탁드립니다...

소스를 어케 짜야될지를 모르겟네요 그냥 보내면 실행될줄알았는데;;;


프로토콜 내용 부분만 짤라서 올릴게요..

GENERAL CONTROL CHARACTER DEFINITIONS
1. Start Of Text (also referred to as STX)
This character must precede all text that is to be embossed. This indicates
to the embosser that one card is to be generated with the text that follows.
2. New Line (also referred to as carriage return or CR)
This character must terminate each line of text to start a new line of text.
Please note that in some IBM operating systems a carriage return is
automatically generated at the end of each line. Therefore a new line
character does not have to be included with the text because the embosser
will interpret the carriage return as the new line character.
3. End Of Text (also referred to as ETX)
This character must close all text that is to be embossed. This indicates to
the embosser that this is the end of all of the information that is needed to
generate one card.
Example of the usage of the characters:
Start of Text character <
New Line character +
End of Text character >
Text desired on the card Message needed to be sent
TEST CARD <TEST CARD+LINE TWO+LINE THREE>
LINE TWO
LINE THREE
* NOT E : In the SMS protocol, all data fields are delimited with SO
(Shift Out) and SI (Shift In) characters, which denotes the
use of either OCR or Simplex fonts.
ADVANTAGE 2000® Chapter 9 Protocols
NBS-332-032401-3.9A Rev A 9–7 Service Manual
EMBOSSING OCR CHARACTERS OPTION
There are also two optional characters which will request a special function
from the embosser. These functions are:
• Open OCR Text
• End OCR Text
1. Open OCR Text (also referred to as Shift In or SI)
This character must precede the string of characters that are to be
embossed as OCR text. This character indicates to the embosser that an
OCR string is to follow.
2. End OCR Text (also referred to as Shift Out or SO)
This character must close the string of characters that are to be embossed
as OCR text. This character indicates to the embosser that an OCR string
is terminated.
Example of the usage of the characters:
Start of Text character <
New Line character +
End of Text character >
Open OCR Text character (
End OCR Text character )
Text desired on the card Message needed to be sent
12345 (in OCR) <(12345)+LINE TWO+LINE THREE>
LINE TWO
LINE THREE
ENCODING INFORMATION
Encoding information is to be sent after the embossing information and
must precede the END OF TEXT CHARACTER. Listed below are the
standard character set for encoding as well as a sample of the transmitted
data which includes encoding.
ADVANTAGE 2000® Chapter 9 Protocols
NBS-332-032401-3.9A Rev A 9–8 Service Manual
STANDARD ENCODING CHARACTER SET
• Start Encoding Character [
• Start Track 1 Character %
• Start Track 2 Character ;
• Start Track 3 Character !
• End of Track Character ?
Sample of transmitted text:
<(1234 567 890)+JOHN DOE
[%1234567890^DOE/JOHN^9999?;1234567890?!1234567890?>
Result:
Embossed
1234 567 890 (in OCR)
JOHN DOE
Encoded
track 1 - 1234567890^DOE/JOHN^9999
track 2 - 1234567890
track 3 - 1234567890
3  COMMENTS