|
|
自己下载python-x64-v3.8软件 我电脑电脑用python3.13.1可以用下载好多不能用
Python3.8.1以上都可以;由于软件太大不能上传自行下载
代码保存为new.py(自己编);
打开CMD,CD到保存new.py文件夹,
用python new.py *********运行,
图中000000换成你的机器码。 大功告成。
import sys
def crc16(data): num = len(data) if num > 0: num2 = 0xFFFF for byte in data: num2 ^= byte for _ in range(8): if (num2 & 1) != 0: num2 = (num2 >> 1) ^ 0xA001 else: num2 >>= 1 return num2 else: return 0
def generate_mac_password(mac): # Convert MAC address to bytes array = bytearray(mac.encode('ascii')) # Calculate CRC16 num = crc16(array) # Generate password based on CRC16 value text = f"{num * 7:04X}" return text[-4:]
def generate_password1(mac, index): # Generate the base password from MAC address base_password = generate_mac_password(mac) # Append the index (converted to hex) text = base_password + f"{index:02X}" # Convert the combined text to bytes for CRC calculation array = bytearray(text.encode('ascii')) # Calculate CRC16 and append to the password crc = crc16(array) return text + f"{crc & 0xFF:02X}"
if __name__ == "__main__": # print(len(sys.argv)) if len(sys.argv) not in [2, 3]: print("Usage: python script.py <mac> <textBox_pollCode>") sys.exit(1)
print(f"输入的本机序列码:{sys.argv[1]}") mac = sys.argv[1] textBox_pollCode = "00000000" if len(sys.argv) == 3: # Both mac address and textBox_pollCode are provided textBox_pollCode = sys.argv[2] if len(textBox_pollCode) < 6: print("Error: textBox_pollCode should have at least 8 characters") sys.exit(2)
# Extract index from textBox_pollCode index = int(textBox_pollCode[4:6], 16)
# Generate the password generated_password = generate_password1(mac, index)
print(f"对应拓邦用户注册码: {generated_password}")
首先保护板正负级(B+B-)接60V左右电源, 485通信线接到USB转接器直接连电脑就行,只需要2根线,区分好AB口
上位机软件论坛上有下载的,直接解压打开,选换电BMS
进入界面选COM口,这个不同电脑选择也不同,一般是最后一个口,我自己的电脑(Win10)是COM3接口
重要提示:485驱动在购买的地方下载安装 安装好了才能进行下步操作
选好后点击打开串口,就会进入搜素阶段
成功识别的界面,参考用
成功识别之后就是设置阶段了,密码一般是123
成功后点击批量读取
读取成功后主要是改参数三
电芯温度最好都不要勾选,这样的话保护板不用额外接温度探头也可以使用。
需要这个功能的可以勾选,相应的保护配置也要勾选。
取消勾选充电匹配,然后点击批量写入参数就完成解锁了
其它的参考设置。
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|