COM Ports (RS232)

Working fine but no idea what the size of the RX buffer is…or is it automatic/dynamic?

I checked the source code. Neither in the Windows nor in the Linux part of SmallBASIC a buffer size is specified. Meaning, that the default buffer size of the OS or the driver is used. But I have no idea what that value is.

1 Like

I suspect that; being USB, there is no “buffer”. It’s down to available memory(?) Dunno but no problems thus far :+1:

Just a related FYI, here.

I am successfully communicating with a couple of MCUs (RPi Pico).

Bit of an issue in the beginning because the USB communication would run for a while and then totally freeze up.

print #1,str(d)

Not terminating the command with a semicolon was causing the problem

print #1,str(d);

Adding the semicolon solved the problem