Skip to content

Commit

Permalink
Merge pull request #578 from entrylabs/develop-hw
Browse files Browse the repository at this point in the history
하드웨어 1.9.33 PR
  • Loading branch information
Tnks2U authored Aug 18, 2022
2 parents 307abb1 + db93cfd commit f3b81e5
Show file tree
Hide file tree
Showing 25 changed files with 2,468 additions and 2,177 deletions.
2,323 changes: 1,165 additions & 1,158 deletions app/firmwares/RichShield.hex

Large diffs are not rendered by default.

Binary file modified app/firmwares/codewiz.bin
Binary file not shown.
Binary file modified app/firmwares/esptool.exe
Binary file not shown.
1,559 changes: 828 additions & 731 deletions app/firmwares/mechatro.hex

Large diffs are not rendered by default.

23 changes: 20 additions & 3 deletions app/modules/codewiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,32 @@ class CodeWiz extends BaseModule {
*/
requestInitialData(sp) {
this.sp = sp;
this.sp.binding.openOptions.hupcl=false;
// reset
sp.set({ dtr: false, rts: true });
sp.set({ dtr: false, rts: false });

// this.sp.set({ dtr: false, rts: true });
// this.sp.set({ dtr: false, rts: false });
this.connectApp0();
return true;
}
__sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async connectApp0() {
const runApp0=[0xC0,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0xC0];
// console.log('this.sp:',this.sp);
// FactoryApp 진입
this.sp.set({ dtr: false, rts: true });
await this.__sleep(200);
this.sp.set({ dtr: true, rts: false });
await this.__sleep(800);
this.sp.set({ dtr: false, rts: false });
await this.__sleep(1000);

this.sp.write(runApp0);
}
// 연결 후 초기에 수신받아서 정상연결인지를 확인해야하는 경우 사용합니다.
checkInitialData(data, config) {
// this.connectApp0();
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion app/modules/codewiz.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"type": "esp32",
"offset": "0x10000",
"name": "codewiz",
"translate" : "코드위즈 펌웨어"
"translate" : "코드위즈 펌웨어(E_1.0)"
},
{
"type": "esp32",
Expand Down
Loading

0 comments on commit f3b81e5

Please sign in to comment.