You can not serout a combination keystroke.· Combination keystrokes can only be recognized by your PC.· You could send a "Z", and then tell the Stamp to perform the appropriate action when the "Z" is received.
I can only presume that this is going to be used to emulate a CTL Z from some other device. Which device would ordinarily be sending it, a PC AT keyboard? What device will be receiving the character string, something attached to an MS-DOS port?
What you produce as a character string will very much depend on what kind of device you're emulating. A VT-100 terminal will produce one set of codes, a PC AT keyboard will produce another, and a Wyse 50 terminal will produce yet onther. See the problem you're faced with.
In almost all case I can think of, you will be sending more than one character to emulate it, and in some case you may be sending up to 4 characters, if both MAKE and BREAK keypresses are required by the receiving device, or the software decoding it.
Are you sure what you're seeing as CTR isn't actually the ASCII escape character?· I'd suggest you do some more research on modem strings, especially for the modem you have...
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester yet?
http://hometown.aol.com/newzed/index.html
·
I can only presume that this is going to be used to emulate a CTL Z from some other device. Which device would ordinarily be sending it, a PC AT keyboard? What device will be receiving the character string, something attached to an MS-DOS port?
What you produce as a character string will very much depend on what kind of device you're emulating. A VT-100 terminal will produce one set of codes, a PC AT keyboard will produce another, and a Wyse 50 terminal will produce yet onther. See the problem you're faced with.
In almost all case I can think of, you will be sending more than one character to emulate it, and in some case you may be sending up to 4 characters, if both MAKE and BREAK keypresses are required by the receiving device, or the software decoding it.
Regards,
Bruce Bates
94 being control, followed by 122 the char z.
SEROUT pin,baud,[noparse][[/noparse]26]
or
SEROUT pin,baud,[noparse][[/noparse]94]
then
SEROUT pin,baud,[noparse][[/noparse]122]
Post Edited (Short) : 8/6/2005 3:06:13 PM GMT
Thanks for your advise.
Actually I am sending commands to a modem.
from hyper terminal, looks like this
type "at+pst"· followed by keystroke CTR Z.
I want to send this command from the bs2, I try asckii 26 but dont work.
Sid
In PBasic, it would be:
SEROUT 16, I9600, [noparse][[/noparse]26]
I tried
serout 8,I9600,[noparse][[/noparse]26]
It did not work
However, the CTR Z works fine in the Hyper Terminal.
I am trying to send to the Itegno modem.
appreciative. not appreciatetive
I9600 CON 16384 ' Or, whatever the Inverted, 9600 baud modifier is for your BS2.