I should also state I have not added any other code, I was just trying to get data to come in so I can view it.
OK, so that dialog is being generated by the SerialDeviceâs Error event handler. Set a breakpoint at one of the lines in the handler and examine the passed property âeâ, which is a RunTimeException. The RunTimeException has properties of ErrorNumber and Message. Let us know what those are and it may help point to the issue.
this is what I am getting
Sub Error(e As RuntimeException)
#PRAGMA unused e
error number 103
103 is âHardware detected a break condition. Usually due to a signal rate mismatch.â
Check your baud rates.
checked the baud rate and it is set to match the micro
Show me
You have to set the Baud property to a class constant. IIRC the compiler allows you to set it to an arbitrary number (like your actual baud rate) but that wonât give you the baud rate you want.
For example, if you want 9600 baud, you have to set the Baud property to SerialConnection.Baud9600, or 8.
The baud rate is set to match the micro.
Reread your message so adding the serial baud to program now to test.
OK, if youâre setting baud rate via the inspector you canât go wrong - my comment about the class constants were relevant only if youâre setting baud rate in code.
A 'scope or logic analyzer would be really handy right about nowâŠ
I have a scope that I can use, it just seems strange that the cool term program works fine but the XOJO does not.
CoolTerm is written in Xojo
Install Free download | COM Port Data Emulator - Freeware and look into what your app is doing differently compared to coolterm. And also give Serial Port Monitor software - serial port, COM port and RS232 port monitor, sniffer and analyzer tool a trial.
You say that the error happens as soon as the micro is reset, and I assume youâre not doing anything on the Xojo side at that moment. This might point to a hardware issue, e.g. the micro is pulling down RXD or TXD when it resets, causing a BREAK. I have no hypothesis for why this doesnât happen with CoolTerm, though, assuming youâre connecting with the same hardware.
BTW @Robert_Wiser if youâre still struggling with this I just noticed that Roger Meier has published an open-source version of CoolTerm at
If you have a break condition, use ClearBreak to resume
Donât have a break condition, but thanks.