Open henridbr opened 4 months ago
Could you share your code here so that we can help?
This is the code I modified by replacing 1000000 by 57600 which the actual baud rate.
In stream_visualizer.py from line 248:
def stream_vis_start(com_port):
global platform_serial_initialized
global platform_serial
platform_serial_initialized = False
platform_serial = serial.Serial(com_port, 57600)
platform_serial.set_buffer_size(rx_size = 57600, tx_size = 57600)
platform_serial.rts = False
# Start GUI
popup = CDM324()
popup.configure_traits()
In cdm324_device.py from line 24:
# Connect to device
def connect(self, COM_port):
self.com_port = COM_port
# Open COM port
self.serial = serial.Serial(self.com_port, 57600)
self.serial.set_buffer_size(rx_size = 57600, tx_size = 57600)
# Disable RTS to release RESET
the rx_size & tx_size value shouldn't be changed (they are buffer size values). Only the serial.Serial() value should be changed. Can you confirm that a standard terminal program allows you to talk to the platform?
I tried both buffer sizes, same result with the GUI and debug. Connected by USB to the expansion board with the port set at 57600 bauds, I receive the boot message (reset button) and some speed values but not each time I send "k". It works fine with the FTDI232.
So I just re-tried on my end flashing the 57600 firmware (with the _start.py script), modifying line 29 of _start.py to change '1000000' with '57600' and managed to get the GUI (not debug tool) running. Please note that the debug tool will NOT work with a 57600 firmware as the baud rate will simply limit what's possible to broadcast.
Hi,
Using the bootloader I was able to change the baud rate to 57600.
At first I replaced the baud rate of 1000000 by 57600 in the scripts:
I connected the expansion board to my computer by USB, it's on COM8 set at 57600 bauds.
Then :
python "C:\Users\henri\...\cdm324_fft-main\scripts\_start.py"
and I got the CDM324 Monitoring Tool.Unfortunately it did not connect. The port field changed alternatively from COM4 to COM8 with the background color in white, but nothing occurs. When I disconnected the USB cable, the backcolor of the COM field became red with the warning "No COM ports detected!"
Pushing the Debug button, I got some information: