xyzroe / ZigStarGW-MT

GUI wrapper designed for convenient service work with TI CC1352/CC2538/CC2652 based Zigbee sticks or gateways. Packed into single executable file
GNU General Public License v3.0
270 stars 19 forks source link

Firmware flashing extremely slow #24

Closed okastl closed 8 months ago

okastl commented 8 months ago

At least on my Windows 10 machine firmware flashing is extremely slow. This is caused by Nagle algorithm, because of writing some bytes, waiting for ack, .... As you have cc2538-bsl.py local anyway, you can add these lines to make flash upload really fast. I tested it by running cc2538-bsl.py from command line:

import socket

...

# in function def open()
        self.sp.open()
        if hasattr(self.sp, '_socket'):
            self.sp._socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)

Thank you!

xyzroe commented 8 months ago

@okastl many thanks!

look at v0.4.2