Skip to content

Commit 3a70d82

Browse files
authored
Update fw_kobraOS.md
1 parent f159a01 commit 3a70d82

File tree

1 file changed

+326
-2
lines changed

1 file changed

+326
-2
lines changed

docs/firmware/fw_kobraOS.md

+326-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55
---
66

77
# KobraOS (Stock)
8-
The official stock firmware for the **Kobra 2 Plus** is called "Kobra OS".
9-
Even though it's based on Klipper, sources haven't been published yet.
8+
The official stock firmware for the **Kobra 2 Plus** is called "Kobra OS". Even though it's based on Klipper, sources haven't been published yet.
9+
KobraOS is locked, you can't access the settings or configuration files (at least not without using 'tools' or workarounds). Furthermore, the USB ports don't allow a local connection to a computer and the printer can't be accessed directly via local WiFi either, one has to use the APP and cloud service of Anycubic.
10+
11+
It has to be noted that there are different revisions of the mainboards that are being used (please see the according chapter "Mainboard"), as they use different versions and configurations of the KobraOS. One probably wouldn't notice a difference if using them side by side, but there is one huge difference: besides different `printer.cfg` settings, the KobraOS for the "Trigorilla Spe **B**_v1.0.x" seems to be the same as the one being used in the Kobra 3 - and for that one there is a modded KobraOS available. With that modified KobraOS, you gain access to the printer via your regular Mainsail UI or Fluidd UI, can access and change the `printer.cfg`, control the machine etc.
12+
13+
So when looking at the following sections, either about the settings of the stock `pritner.cfg`, tools to access the KobraOS or even about the modified KobraOS version I mentioned, always make sure to *check the type of mainboard* that's being used in your particular printer before you attempt any further steps.
1014

1115
---
1216

@@ -1045,5 +1049,325 @@ For being able to transfer the data of the bedmesh to a graphical output, one ha
10451049

10461050
---
10471051

1052+
## Settings "Trigorilla B v1.0.x"
1053+
The specific settings of the machine are -due to the fact that it's closed source now- supposed to be 'unknown'.
1054+
1055+
1056+
<!--
1057+
However, when the first `update.swu` file became available, it was possible to access and investigate the files `printer.cfg` and `unmodifiable.cfg`.
1058+
1059+
??? info "Special Thanks To [lpi](https://github.com/lpi)!"
1060+
1061+
At this point I have to say a huge "Thank You!" to [lpi](https://github.com/lpi) for providing the content of the `update.swu` file to me!
1062+
I won't share the files, but I'll quote the content of the two config files here in the following.
1063+
However, if you want to access the files by your own, you can do so by unzipping the file `update.swu` and then mount the main directory with `squashfs`.
1064+
1065+
1066+
There are two Klipper-specific config files that can be found:
1067+
1068+
- the file `printer.cfg` which contains the pin assignments and specific settings for the Klipper configuration and
1069+
- the file `unmodifiable.cfg` which seems to contain additional settings for the auto leveling and the probe.
1070+
1071+
I won't share any of the files, but I'll quote the content of the two config files here in the following.
1072+
1073+
??? info "Files Of The Kobra 2 Plus & Max"
1074+
1075+
Just in case you own a Kobra 2 Plus or Max, you can find the content of the belonging files quoted in expandable textboxes below.
1076+
Besides that, if you own a Kobra 2 Plus, check out my comprehensive [Kobra2Plus Insights](https://1coderookie.github.io/Kobra2PlusInsights/) infosite instead.
1077+
1078+
-->
1079+
1080+
---
1081+
1082+
### Printer.cfg
1083+
The following lists the content of the file `printer.cfg` for the "Trigorilla Spe **B** v1.0.5" mainboard of a Kobra 2 Pro.
1084+
I'll leave the settings uncommented as this point, because we can't do anything to improve the settings anyway right now.
1085+
1086+
```
1087+
[virtual_sdcard]
1088+
path: /useremain/app/gk/gcodes/
1089+
1090+
[mcu]
1091+
serial : /dev/ttyS3
1092+
restart_method : command
1093+
baud : 576000
1094+
1095+
[printer]
1096+
kinematics : cartesian
1097+
max_velocity:500
1098+
max_accel:20000
1099+
max_accel_to_decel:20000
1100+
square_corner_velocity:20.0
1101+
max_z_velocity:16
1102+
max_z_accel:5000
1103+
device_type: Anycubic Kobra 2 Pro
1104+
print_size: 220*220*250mm
1105+
1106+
[stepper_x]
1107+
step_pin : PA5
1108+
dir_pin : PA4
1109+
enable_pin : !PC3
1110+
microsteps : 16
1111+
full_steps_per_rotation:200
1112+
rotation_distance :32
1113+
position_endstop :-5
1114+
position_min : -5
1115+
position_max : 230
1116+
homing_speed : 30
1117+
homing_retract_dist:10
1118+
second_homing_speed:15
1119+
endstop_pin : ^!PA6
1120+
1121+
[stepper_y]
1122+
step_pin : PC4
1123+
dir_pin : !PA7
1124+
enable_pin : !PC3
1125+
microsteps : 16
1126+
full_steps_per_rotation:200
1127+
rotation_distance :32
1128+
position_endstop : -8
1129+
position_min : -8
1130+
position_max : 230
1131+
homing_speed : 30
1132+
homing_retract_dist:10
1133+
second_homing_speed:15
1134+
endstop_pin : ^!PC5
1135+
1136+
[stepper_z]
1137+
step_pin : PC9
1138+
dir_pin : !PC6
1139+
enable_pin : !PC3
1140+
microsteps : 16
1141+
rotation_distance :8
1142+
full_steps_per_rotation:200
1143+
endstop_pin : probe:z_virtual_endstop
1144+
position_min :-12
1145+
position_max : 252
1146+
homing_speed: 8
1147+
homing_retract_dist:8
1148+
second_homing_speed: 4
1149+
1150+
[extruder]
1151+
max_extrude_only_distance : 100.0
1152+
step_pin : PC14
1153+
dir_pin : PC15
1154+
enable_pin : !PC3
1155+
microsteps : 16
1156+
full_steps_per_rotation:200
1157+
rotation_distance :6.848
1158+
nozzle_diameter : 0.400
1159+
filament_diameter : 1.750
1160+
max_extrude_cross_section:50
1161+
heater_pin : PA1
1162+
sensor_type : NTC 100K MGB18-104F39050L32
1163+
sensor_pin : PC1
1164+
control : pid
1165+
pid_Kp : 12.206120
1166+
pid_Ki : 0.517208
1167+
pid_Kd : 72.016108
1168+
min_temp : -200
1169+
min_safe_temp : 185
1170+
min_extrude_temp : 170
1171+
max_safe_temp : 260
1172+
max_temp : 275
1173+
pressure_advance: 0.02
1174+
1175+
[heater_bed]
1176+
heater_pin : PA0
1177+
sensor_type : NTC 100K MGB18-104F39050L32
1178+
sensor_pin : PC0
1179+
control : pid
1180+
pid_Kp : 54.027
1181+
pid_Ki : 0.770
1182+
pid_Kd : 248.182
1183+
min_temp : -200
1184+
min_safe_temp : 45
1185+
max_safe_temp : 110
1186+
max_temp : 120
1187+
1188+
[tmc2209 stepper_x]
1189+
uart_pin : PA3
1190+
uart_address : 3
1191+
run_current : 1.4
1192+
hold_current:0.7
1193+
sense_resistor: 0.0750
1194+
stealthchop_threshold :0
1195+
interpolate : True
1196+
1197+
[tmc2209 stepper_y]
1198+
uart_pin : PA3
1199+
uart_address : 1
1200+
run_current : 1.5
1201+
hold_current:0.8
1202+
sense_resistor: 0.075
1203+
stealthchop_threshold :0
1204+
interpolate : True
1205+
1206+
[tmc2209 stepper_z]
1207+
uart_pin : PA3
1208+
uart_address : 2
1209+
run_current : 1.2
1210+
hold_current:0.7
1211+
sense_resistor: 0.0750
1212+
stealthchop_threshold : 99999
1213+
interpolate : True
1214+
1215+
[tmc2209 extruder]
1216+
uart_pin : PA3
1217+
uart_address : 0
1218+
run_current : 0.8
1219+
hold_current:0.4
1220+
sense_resistor: 0.0750
1221+
stealthchop_threshold : 99999
1222+
interpolate : True
1223+
1224+
[probe]
1225+
pin : PB8
1226+
x_offset:24.0
1227+
y_offset:13.35
1228+
speed : 4.0
1229+
final_speed : 4.0
1230+
lift_speed : 8.0
1231+
samples: 2
1232+
sample_retract_dist: 15
1233+
samples_result: weighted
1234+
samples_tolerance: 0.1
1235+
samples_tolerance_retries:2
1236+
1237+
[bed_mesh]
1238+
speed: 60
1239+
horizontal_move_z:15
1240+
mesh_min: 19,19
1241+
mesh_max: 205,210
1242+
probe_count: 5,5
1243+
mesh_pps: 3,3
1244+
algorithm: lagrange
1245+
1246+
[safe_z_home]
1247+
home_xy_position: 40,207
1248+
speed: 150
1249+
z_hop: 5
1250+
z_hop_speed: 8.0
1251+
1252+
[verify_heater extruder]
1253+
max_error: 120
1254+
check_gain_time:30
1255+
hysteresis: 5
1256+
heating_gain:1
1257+
1258+
[verify_heater heater_bed]
1259+
max_error: 120
1260+
check_gain_time:300
1261+
hysteresis: 5
1262+
heating_gain:1
1263+
1264+
[controller_fan controller_fan]
1265+
pin : PB10
1266+
fan_speed : 1
1267+
1268+
[heater_fan extruder_fan]
1269+
pin : PB2
1270+
1271+
[custom_temperture_fan]
1272+
1273+
[fan]
1274+
pin : PB1
1275+
1276+
[output_pin power_pin]
1277+
pin:PB4
1278+
value:1
1279+
shutdown_value:0
1280+
1281+
[pid_calibrate]
1282+
homing_first: 1
1283+
move_xy_position: 50,50
1284+
move_z_up: 5
1285+
fan_speed : 1
1286+
1287+
[lis2dw12]
1288+
spi_speed: 5000000
1289+
cs_pin: PB12
1290+
spi_software_sclk_pin:PB13
1291+
spi_software_mosi_pin:PB15
1292+
spi_software_miso_pin:PB14
1293+
rate:400
1294+
axes_map: z,x,y
1295+
1296+
[lis2dw12 bed]
1297+
spi_speed: 5000000
1298+
cs_pin: PD2
1299+
spi_software_sclk_pin:PC12
1300+
spi_software_mosi_pin:PC10
1301+
spi_software_miso_pin:PC11
1302+
rate:400
1303+
axes_map: x,y,z
1304+
1305+
[resonance_tester]
1306+
accel_chip_x: lis2dw12
1307+
accel_chip_y: lis2dw12 bed
1308+
probe_points:110, 110, 20
1309+
min_freq : 1
1310+
max_freq : 140
1311+
accel_per_hz : 150
1312+
test_freq_start: 70
1313+
test_freq_end: 80
1314+
1315+
[pause_resume]
1316+
pause_position: 200,200
1317+
z_up: 10
1318+
1319+
[filament_switch_sensor filament_sensor]
1320+
pause_on_runout: False
1321+
switch_pin: ^!PC13
1322+
[buttons]
1323+
1324+
[leviQ2]
1325+
base_button_position: 60,240
1326+
wiping_position: 20.0,-5.0
1327+
button_push_down_count: 2
1328+
platform_offset: 25
1329+
bed_temp: 60
1330+
extru_temp: 210
1331+
extru_end_temp: 140
1332+
to_zero_speed: 100
1333+
extru_out: 50
1334+
extru_out_speed: 3
1335+
extru_in: 5
1336+
extru_in_speed: 10
1337+
button_push_down: 5
1338+
calibration: 0
1339+
z_up: 15
1340+
z_offset_factor: 0.13
1341+
leviQ2_pin: PA8
1342+
1343+
[ota]
1344+
fw_max_size: 40960
1345+
fw_sector_size: 8192
1346+
fw_ota_sector_offset: 22
1347+
1348+
[gcode_arcs]
1349+
resolution:1.0
1350+
1351+
[input_shaper]
1352+
shaper_freq_x: 72.2
1353+
shaper_freq_y: 58.0
1354+
shaper_type_x: mzv
1355+
shaper_type_y: 2hump_ei
1356+
```
1357+
1358+
---
1359+
1360+
1361+
### MOD: Rinkhals (Modified KobraOS)
1362+
[jbatonnet](https://github.com/jbatonnet) came up with a modded KobraOS of the Kobra3 called [Rinkhals](https://github.com/jbatonnet/Rinkhals), which seems to also work fine with the Kobra 2 Pro/Plus/Max printers that use the newer board revisions, labeled as "Spe **B** v_1.0.x".
1363+
Rinkhals allows you to e.g. access your printer via your local network and the regular Mainsail or Fluidd UI, change settings of the `printer.cfg`, create and display bedmeshes etc. Basically you'll have a KobraOS without the limitations of the KobraOS.
1364+
1365+
!!! warning "Only Suitable For Trigorilla B v1.0.x Boards!"
1366+
1367+
Before attempting to flash and use the modified KobraOS, make sure to check which kind of mainboard your printer is using!
1368+
It is crucial that you have a type "Spe B" board, please see the chapter "Mainboard" for further information!
1369+
1370+
---
1371+
10481372
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/U6U5NPB51)
10491373

0 commit comments

Comments
 (0)