DutchDevelop / BLLEDController

Other
94 stars 26 forks source link

Cannot Flash Firmware #25

Open umtauscher opened 7 months ago

umtauscher commented 7 months ago

Hi Pascal,

I purched your great device in July. Since I haven't had the time to install it up to now, I tried yesterday.

Unfortunately this thing doesn't connect to my bambulab printer, so I tried to flash the firmware. So I tried conneting with USB on my iMac but the flash routine states, "Your ESP8266 board is not supported". Could you please help me how to flash the latest firmware onto this?

madnotna commented 6 months ago

The ESP8266 is outdated as Bambu Lab changed the MQTT. From that moment the ESP8266 is not responding to the MQTT due to insufficient memory of the chip.

AnalyticETH commented 4 months ago

@umtauscher I was able to install a version from the experimental page on my ESP8266. I haven't tested it yet though, waiting on LEDs...

umtauscher commented 4 months ago

nope - doesn't work. Flashing works though, just not the normal operation.

AnalyticETH commented 4 months ago

Where do you get stuck? I've set up the connection but I get MQTT errors, i guess our ESP8266s cannot handle the newer and presumably more complex MQTT

MQTT CONNECT_FAILED
Updating leds
Printer offline, Turning Leds off
MQTT CONNECT_FAILED
....(loops)....
umtauscher commented 4 months ago

The LEDs just are erratic.

I just got myself an ESP32 version and I can see how the LED's should behave. BTW you have to enter the serial number of your printer (topic) in the english UI it's refenced as "device info".

umtauscher commented 4 months ago

I just connected via usb again: The log states "failed to grow buffer" and then the firmware crashes.

umtauscher commented 4 months ago

This is the mqtt report from my x1c received with MQTT Explorer

`{ "print": { "ams": { "ams": [ { "humidity": "3", "id": "0", "temp": "27.0", "tray": [ { "bed_temp": "45", "bed_temp_type": "1", "cali_idx": -1, "cols": [ "FF6A13FF" ], "ctype": 0, "drying_temp": "55", "drying_time": "8", "id": "0", "nozzle_temp_max": "230", "nozzle_temp_min": "190", "remain": 0, "tag_uid": "809BA05E00000100", "tray_color": "FF6A13FF", "tray_diameter": "1.75", "tray_id_name": "A00-A0", "tray_info_idx": "GFA00", "tray_sub_brands": "PLA Basic", "tray_type": "PLA", "tray_uuid": "4650564899A345A5821581CBEAE9684B", "tray_weight": "1000", "xcam_info": "8813100EE803E8039A99193F" }, { "bed_temp": "45", "bed_temp_type": "1", "cali_idx": -1, "cols": [ "000000FF" ], "ctype": 0, "drying_temp": "55", "drying_time": "8", "id": "1", "nozzle_temp_max": "230", "nozzle_temp_min": "190", "remain": 0, "tag_uid": "90EB0B2E00000100", "tray_color": "000000FF", "tray_diameter": "1.75", "tray_id_name": "A00-K0", "tray_info_idx": "GFA00", "tray_sub_brands": "PLA Basic", "tray_type": "PLA", "tray_uuid": "CD48C8667FB54D61B0B75A9098CA1199", "tray_weight": "1000", "xcam_info": "803E803EE803E803CDCC4C3F" }, { "bed_temp": "70", "bed_temp_type": "2", "cali_idx": -1, "cols": [ "000000FF" ], "ctype": 0, "drying_temp": "65", "drying_time": "8", "id": "2", "nozzle_temp_max": "270", "nozzle_temp_min": "240", "remain": 0, "tag_uid": "D05A3A2E00000100", "tray_color": "000000FF", "tray_diameter": "1.75", "tray_id_name": "G50-K0", "tray_info_idx": "GFG50", "tray_sub_brands": "PETG-CF", "tray_type": "PETG-CF", "tray_uuid": "B9818D6DDB8B449CB09680E7C2DFB063", "tray_weight": "1000", "xcam_info": "803E803EE803E8033333733F" }, { "bed_temp": "70", "bed_temp_type": "2", "cali_idx": -1, "cols": [ "FFFFFFFF" ], "ctype": 0, "drying_temp": "65", "drying_time": "8", "id": "3", "nozzle_temp_max": "270", "nozzle_temp_min": "220", "remain": 0, "tag_uid": "ECD459B900000100", "tray_color": "FFFFFFFF", "tray_diameter": "1.75", "tray_id_name": "G00-W0", "tray_info_idx": "GFG00", "tray_sub_brands": "PETG Basic", "tray_type": "PETG", "tray_uuid": "1EC308561F8B4F1D9108B5F3E0B64DE4", "tray_weight": "1000", "xcam_info": "D007D007E803E803CDCC4C3F" } ] } ], "ams_exist_bits": "1", "insert_flag": true, "power_on_flag": false, "tray_exist_bits": "f", "tray_is_bbl_bits": "f", "tray_now": "255", "tray_pre": "255", "tray_read_done_bits": "f", "tray_reading_bits": "0", "tray_tar": "255", "version": 66 }, "ams_rfid_status": 0, "ams_status": 0, "aux_part_fan": true, "bed_target_temper": 0.0, "bed_temper": 25.0, "big_fan1_speed": "0", "big_fan2_speed": "0", "cali_version": 0, "chamber_temper": 27.0, "command": "push_status", "cooling_fan_speed": "0", "ctt": 0, "fail_reason": "0", "fan_gear": 0, "filam_bak": [], "force_upgrade": false, "gcode_file": "", "gcode_file_prepare_percent": "0", "gcode_start_time": "0", "gcode_state": "IDLE", "heatbreak_fan_speed": "0", "hms": [], "home_flag": 6409496, "hw_switch_state": 0, "ipcam": { "ipcam_dev": "1", "ipcam_record": "disable", "mode_bits": 2, "resolution": "720p", "rtsp_url": "rtsps://192.168.1.196:322/streaming/live/1", "timelapse": "disable", "tutk_server": "disable" }, "job_id": "", "layer_num": 0, "lifecycle": "product", "lights_report": [ { "mode": "on", "node": "chamber_light" }, { "mode": "flashing", "node": "work_light" } ], "maintain": 131075, "mc_percent": 0, "mc_print_error_code": "0", "mc_print_stage": "1", "mc_print_sub_stage": 0, "mc_remaining_time": 0, "mess_production_state": "active", "net": { "conf": 16, "info": [ { "ip": 3288443072, "mask": 16777215 }, { "ip": 0, "mask": 0 } ] }, "nozzle_diameter": "0.4", "nozzle_target_temper": 0.0, "nozzle_temper": 26.0, "nozzle_type": "hardened_steel", "online": { "ahb": false, "ext": false, "version": 7 }, "print_error": 0, "print_gcode_action": 0, "print_real_action": 0, "print_type": "", "profile_id": "", "project_id": "", "queue_est": 0, "queue_number": 0, "queue_sts": 0, "queue_total": 0, "s_obj": [], "sdcard": true, "sequence_id": "2021", "spd_lvl": 2, "spd_mag": 100, "stg": [], "stg_cur": -1, "subtask_id": "", "subtask_name": "", "task_id": "", "total_layer_num": 0, "upgrade_state": { "ahb_new_version_number": "", "ams_new_version_number": "", "consistency_request": false, "dis_state": 0, "err_code": 0, "ext_new_version_number": "", "force_upgrade": false, "idx": 7, "message": "", "module": "null", "new_version_state": 0, "ota_new_version_number": "", "progress": "0", "sequence_id": 0, "sn": "00M09A342801265", "status": "IDLE" }, "upload": { "file_size": 0, "finish_size": 0, "message": "Good", "oss_url": "", "progress": 0, "sequence_id": "0903", "speed": 0, "status": "idle", "task_id": "", "time_remaining": 0, "trouble_id": "" }, "vt_tray": { "bed_temp": "0", "bed_temp_type": "0", "cali_idx": -1, "cols": [ "898989FF" ], "ctype": 0, "drying_temp": "0", "drying_time": "0", "id": "254", "nozzle_temp_max": "280", "nozzle_temp_min": "240", "remain": 0, "tag_uid": "0000000000000000", "tray_color": "898989FF", "tray_diameter": "0.00", "tray_id_name": "", "tray_info_idx": "GFB00", "tray_sub_brands": "", "tray_type": "ABS", "tray_uuid": "00000000000000000000000000000000", "tray_weight": "0", "xcam_info": "000000000000000000000000" }, "wifi_signal": "-62dBm", "xcam": { "allow_skip_parts": false, "buildplate_marker_detector": true, "first_layer_inspector": false, "halt_print_sensitivity": "medium", "print_halt": true, "printing_monitor": true, "spaghetti_detector": true }, "xcam_status": "0" } }'

AnalyticETH commented 4 months ago

I think it should be able to handle it, thats really not much data. I am not sure what the limitation here is

BTW you have to enter the serial number of your printer (topic) in the english UI it's refenced as "device info".

I dont seem to be able to access any UI on the device's IP. I can update config using this though: https://www.dutchdevelop.com/blled-configuration-setup

I was able to get a little further after reflashing and resetting configs. Now I get this error below, which it looks like is issue #19

Mqtt payload:

{"print":{"nozzle_temper":219.96875,"bed_temper":58,"wifi_signal":"-50dBm","mc_print_line_number":"544955","fan_gear":13146623,"command":"push_status","msg":1,"sequence_id":"30053"}}
stg_cur not in message
lights_report not in message
Mqtt message received,
FreeHeap: 
10496
AnalyticETH commented 4 months ago

Seems like it might be working actually, regardless of that error? It knows its printing right now per the first few logs. I'm still waiting on my LED strip so my testing capabilities are somewhat limited at the moment. More wanted to see if I need to order another ESP32 or not....

Finished setting up MQTT, Attempting to connect
Connected to mqtt
device/SERIALNUMBERREDACTED/report
Updating leds
Printing, Turning Leds On
Mqtt message received,
FreeHeap: 
10304
Mqtt payload:

{"print":{"nozzle_temper":219.875,"mc_remaining_time":123,"wifi_signal":"-62dBm","mc_print_line_number":"570249","command":"push_status","msg":1,"sequence_id":"30220"}}
stg_cur not in message
lights_report not in message
Mqtt message received,
FreeHeap: 
10336
Mqtt payload:
umtauscher commented 4 months ago

BTW you have to enter the serial number of your printer (topic) in the english UI it's refenced as "device info".

What I meant was the UI on the display of the printer.