Realbasic Serial Communication Protocol

Download American Ash Assessment Hematology Program Sap Self Society Free there. Ok, here's what I need to setup. This is a Windows XP SP3 system, with a serial device on COM1 that I need to talk to. The data I'm trying to send is two Chr code 10 characters, then the word TEST followed by another Chr 10 character. In response to this, I should get the word TEST back, followed by Chr13 and Chr10.
I am using REALBasic2008r5.1 The problems I'm having are the same in the trial I downloaded also, so I don't believe the problem is to do with the version of REALBasic I'm using. I have established that nothing else is using the port. The settings that Windows reports when I talk to the system via HyperTerminal are.
I need to control an industrial laser using a serial data communication protocol and prefer to develop this in. Access serial (via USB) port in RealBasic. Serial Docs & Documentation in General. I think the documentation generally needs to be reviewed. It often doesn't do a good job of explaining how to use various classes and language features. To find out how things work one needs to use this forum, and that shouldn't be. Case in point, Serial. I spent a significant amount. Download Protocol Test Harness. Communication protocol debugging and testing software based on serial port and TCP/IP network protocol.It can reduce the.
Baud: 19200 Parity: None Data bits: 8 Stop Bits: 1 Timeout: On XON/XOFF: Off CTS Handshaking: On DSR Handshaking: Off DSR Sensitivity: Off DTR Circuit: On RTS Circuit: Handshake Knowing that works, I conclude need the same in REALBasic. I have added a Serial control to a new project In the IDE I have selected the following: Name: Serial1 Super: Serial Scope: 0 - Public Index: Top: 348 Left: 20 TabPanelIndex: 0 Baud: 10 - 19200 Bits: 3 - 8 Data bits CTS: ticked DTR: not [quote][/quote]ticked Parity: 0 - no parity Stop: 0 - 1 stop bit XON: not ticked I see no option to choose which serial port the control refers to - strange, maybe I'm missing the obvious in the IDE??
The code within the Open() event of the only application window. Serial1.Write(CHR( 10)+CHR( 10)+EF_Command.Text+CHR( 10)) What happens: When I ran the application, I was getting 'Error from serial port: 102'. I solved this by removing the Serial1.Baud command from the application completely.
For some reason, ANY change to the baud rate within the application causes this error. It was always followed by 'The port is open' however writing to the port showed no activity on the hardware. Having removed the setting of the baud rate and relying on the IDE I now have no error, but still no response from the hardware. I don't get an error either - just nothing happens at all when I put a command into EF_Input and click my button. Checking the status of the port after exiting my application shows this.
Baud: 19200 Parity: None Data bits: 8 Stop Bits: 1 Timeout: On XON/XOFF: Off CTS Handshaking: On DSR Handshaking: Off DSR Sensitivity: Off DTR Circuit: Off RTS Circuit: Off Checking the box for DTR gives this result: Baud: 19200 Parity: None Data bits: 8 Stop Bits: 1 Timeout: On XON/XOFF: Off CTS Handshaking: On DSR Handshaking: Off DSR Sensitivity: Off DTR Circuit: Handshake RTS Circuit: Off I can't find an option to get the last two the way I need them, which is: DTR Circuit: On RTS Circuit: Handshake Can RB do that, and if so, how? _________________ REALBasic 2008r5.1 Professional Windows XP SP3 Toshiba Tecra A9-11M Laptop Intel Core2 Duo T7700 @ 2.4GHz with 2Gb RAM @ 800MHz plus various other WinTel machines. (and a broken MacBook Pro 3.1 with OS-X 10.5.2 with no networking or sound thanks to a lightening storm). National Priority Programs Afghanistan Casualties.
It would seem the answer is that it can't. It appears that REALBasic does not support hardware-controlled serial port handshaking - a standard feature in most modern PCs and something not mentioned in any of the documentation). You have to do it the slow way - ie manually switch the DTR and RTS lines - which as far as I know means potentially lost data.
Not an ideal situation for communicatiing with a hardware device that sends data it captured in real time. As for the serial error 102 I get. Seems to be a bug in REALBasic.
If I am trying to change the Baud rate, I get error 102, and REALBasic thinks it's opened the port ok, but it wont work (ie the port doesn't act as if it's open, all commands just seem to be ignored). If I execute the same commands and the serial port is already at the required baud rate (set using the DOS 'mode com1 19200,N,8,1' command), then I don't get the error 102, and REALBasic seems to have actually actually opened the port, since the data does get sent to the hardware. So, my solution seems to be that I need to start my application with a BAT file that first executes a DOS command to setup the port to the required baud rate, then start my REALBasic application with a Start MyApp. Cardshark Darwin Ortiz Pdf Reader. exe command. I guess this means I'm going to start having to mess around with threads to get comms working. I can't see how else I can 'Wait for 2 seconds for the serial hardware to send back OK before sending your main command' since if I just make a 2 second delay loop using Ticks, the data coming in to the serial port doesn't appear in my application. The only solution I can think of there is to create some sort of 'software command buffer' and have a Timer act upon it.