Gambas 3.12.2 unable to receive serial data on Raspberry Pi
Posted: Thursday 4th November 2021 6:25pm
Hi All,
I have written software, in Gambas3, to control my radio using the serial interface. It use to work fine.
Now I no longer receive data back from the radio, transmit still works, and the radio actions the command, but Gambas does not see the reply.
Set up is:
Raspberry Pi 3 (NO Bluetooth H/W) (for good measure I have also tried disabling bluetooth in config.txt!)
Gambas 3.12.2
Latest Raspian OS
I have named the serial port "ctrserial" and to receive data I use "ctrserial_read()".
The programme never gets the receive interrupt.
This situation is true for "ttyAMA0", "serial0" or "ttyUSB0" (using a USB to serial converter)
If I use gtkterm (on ttyAMA0, Serial0, or ttyUSB0) then the response from the radio is picked up by the RPi. Indicating to me that the H/W is functioning. (maybe gtkterm does not use the serial interrupt??)
This program use to work on an old version of Gambas (3.9?)
Has something changed? ( I should never have upgraded )
Any help or ideas, much appreciated.
I have written software, in Gambas3, to control my radio using the serial interface. It use to work fine.
Now I no longer receive data back from the radio, transmit still works, and the radio actions the command, but Gambas does not see the reply.
Set up is:
Raspberry Pi 3 (NO Bluetooth H/W) (for good measure I have also tried disabling bluetooth in config.txt!)
Gambas 3.12.2
Latest Raspian OS
I have named the serial port "ctrserial" and to receive data I use "ctrserial_read()".
The programme never gets the receive interrupt.
This situation is true for "ttyAMA0", "serial0" or "ttyUSB0" (using a USB to serial converter)
If I use gtkterm (on ttyAMA0, Serial0, or ttyUSB0) then the response from the radio is picked up by the RPi. Indicating to me that the H/W is functioning. (maybe gtkterm does not use the serial interrupt??)
This program use to work on an old version of Gambas (3.9?)
Has something changed? ( I should never have upgraded )
Any help or ideas, much appreciated.