[로보메이션] 하드웨어Lite 햄스터S 추가 및 햄스터 연결 안정화 - #3094
Closed
RoboidStudioLAB wants to merge 3 commits into
Closed
Conversation
- 정체 파싱을 이름 대신 필드 위치 기준으로 바꾼다. 주소는 16진수 12자리만 받는다. - 핸드셰이크에 5초 타임아웃을 두고, 실패하면 모듈이 직접 포트를 정리한다. - 연결 유지 중 동글의 페어링 로봇이 바뀌면 같은 정체를 두 번 확인한 뒤 전환한다. - 연결 시 모듈 번호를 '0204' + 변형바이트로 덮어쓰던 대입을 제거한다. 변형 바이트는 로봇마다 달라(실측 05, 00, 01) 등록되지 않은 번호가 만들어지고, 햄스터S도 0204가 되어 기종 구분이 안 된다. - 검증 실패 프레임이 연속되면 정체를 다시 요청한다.
설치형 엔트리와 entry-hw는 이미 두 항목으로 나뉘어 있어 그 구조를 맞춘다. - 한 파일에서 인스턴스 둘을 내보낸다(020401 햄스터, 020E01 햄스터S). 블록 정의는 한 벌을 공유하고, 블록 함수 32곳이 호출 시점에 인스턴스를 찾는다. - 햄스터S 항목은 다른 기종을 거부한다. 문구는 로케일 넷(ko, en, jp, vn). - 기존 햄스터 항목은 두 기종을 계속 받는다. 저장된 작품에 기종 정보가 없다. - 센서 모니터 좌표는 항목별로 준다. 햄스터S 사진은 구형과 좌우가 반대다.
타이머를 지울 때 완료 콜백을 함께 버려서, 대기 블록이 완료 표시를 기다리며 영원히 폴링했다. 햄스터S와 무관하게 현재 출고본에서도 재현된다. 대기 계열 5개(이동, 음표, 출력, 라인트레이서, 보드)를 모두 덮는다. 벤더 모듈에서 스레드를 중단시킬 수단이 없어, 취소된 대기 블록은 완료로 처리해 다음 블록으로 넘긴다.
RoboidStudioLAB
force-pushed
the
feature/hamster-s-entry
branch
2 times, most recently
from
August 27, 2026 09:31
c42861d to
0b9dae7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
어떤 하드웨어 인가요?
햄스터S / (주)로보메이션. 브라우저 연결(하드웨어Lite), Web Serial + 전용 동글
변경 사항
020E01) 항목 추가. 설치형 엔트리와 entry-hw는 이미 두 항목으로 나뉘어 있어 구조를 맞췄습니다.파일 3개(
block_hamster_lite.js,metadata_hamster_s_lite.json,hamsterslite.png)만 바뀌고 공용 파일은 건드리지 않았습니다.참고사항
기준(
develop-hw) 대비 무엇이 달라지는지 함께 적었습니다.while (true)로 무한 대기했습니다. 5초 후 실패하고 포트를 정리합니다.04/0E) 안에서만 동작합니다. 다른 계열은 정체가 파싱되지 않아 대상이 되지 않습니다. 기존 동작과 같습니다.hardware/block_hamster_s.js).block_robomation.js에도 있습니다. 함께 고칠지는 제품 판단이 필요해 이번 범위에 넣지 않았습니다.