Bearmock for BC VUP Version 3

https://techcoderadio.blogspot.com/2025/04/bearmock-for-python-3.html

 

from time import sleep
from serial import Serial

__MODEL = 'BCT15X'
__PORT = 'COM4'
__SPEED = 9600
__TIMEOUT = 0  # non-blocking
__READ_SLEEP_SECS = 0
__OUT = 'bct15x-decoded.s19'


__ACTIONS = {
    'æ€\r': 'ERR\r',  # Empty, just reply
    '\r': 'UNKNOWN COMMAND\r', #Empty, just reply

....

Strange chars coming first ... just reply error

XON/XOFF software flow control


if __name__ == "__main__":
    try:
        port = Serial(__PORT, __SPEED, timeout=__TIMEOUT, bytesize=8, parity='N', stopbits=1, xonxoff=True)
    except Exception as ex:
        print(ex)
        exit()




 

Comments

Popular posts from this blog

Inspecting Alinco DJ-X100E firmware updater

Modifying LILYGO T3 LoRa32 RTL_433 ESP OOK receiver example - log found devices to file