2017-05-24 6 views
0

BitBucket (plippo/c85e1ba - 업데이트 된 Movesense Core Lib를 버전 0.3.1.105로 최근 업데이트 된 새로운 샘플 코드를 사용하고 싶었습니다. Movesense 샘플 애플리케이션을 버전 0.3.1.105로 업데이트했습니다.)Movesense는 Movesense Android App을 통해 연결하지 않기 때문에 DFU 모드에 들어갈 수 없습니다.

새 코드가 올바르게 컴파일되고 빌드되었습니다. 성공적으로 을 DFU 모드에 넣고이 펌웨어를 업로드하면 Movesense android 앱으로 특성을 읽을 수 없습니다.

Movesense는 Android 앱뿐만 아니라 다른 BLE 도구 (예 : nRF connect app)에서도 감지됩니다. Movesense 앱은 기기에 연결하는 동안 멈추게됩니다. 따라서 나는 아무것도 읽을 수 없거나 장치를 다시 프로그램하기 위해 DFU 모드로 전환 할 수 없습니다. 그러나 nRF 연결 응용 프로그램을 사용하여 연결할 수 있습니다.

임베디드 코드의 이전 버전과 현재 버전을 비교하면 샘플 앱이 분리되어있는 것으로 나타났습니다. 그러나 app_root.yaml 파일에서 섹션

apis: 
    AccelerometerSample.*: 
    apiId: 100 
    defaultExecutionContext: PrimaryServices 
    HelloWorld.*: 
    apiId: 101 
    defaultExecutionContext: PrimaryServices 

은 동일하게 유지됩니다. HelloWorld Service가 더 이상 제공되지 않는 곳의 샘플 애플리케이션 "accelerometer_app"를 업로드했습니다 (이전 코드와 비교). 그러나 여전히 yaml-file에 나열되어 있습니다. 이것이 내가 Movesense App과 더 이상 연결할 수없는 이유인지 궁금합니다. 하지

05-24 15:52:05.350 29854-29854/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: connect() - device: C2:4B:A6:1E:73:AE, auto: false 
05-24 15:52:05.350 29854-29854/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: registerApp() 
05-24 15:52:05.350 29854-29854/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: registerApp() - UUID=7eec028c-3252-434f-9dcf-cc5ced36dd30 
05-24 15:52:05.352 29854-29866/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: onClientRegistered() - status=0 clientIf=5 
05-24 15:52:05.414 29854-29854/com.movesense.android.sample_A_G_H.debug V/ViewRootImpl: Contents drawing finished : com.movesense.android.sample_A_G_H.debug/com.movesense.android.sample_A_G_H.MainActivity 
05-24 15:52:07.548 29854-29881/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=5 device=C2:4B:A6:1E:73:AE 
05-24 15:52:07.548 29854-29881/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: discoverServices() - device: C2:4B:A6:1E:73:AE 
05-24 15:52:08.531 29854-29881/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: onSearchComplete() = Device=C2:4B:A6:1E:73:AE Status=0 
05-24 15:52:08.531 29854-29881/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: setCharacteristicNotification() - uuid: 34802252-7185-4d5d-b431-630e7050e8f0 enable: true 
05-24 15:52:08.563 29854-29928/com.movesense.android.sample_A_G_H.debug D/MovesenseAndroidWrapper: Connected device! serial ECKI5ABE47F3 address 10000001 
05-24 15:52:08.563 29854-29928/com.movesense.android.sample_A_G_H.debug D/BleEnumeratorImpl: adding device 10000001 
05-24 15:52:08.563 29854-29928/com.movesense.android.sample_A_G_H.debug D/BleEnumeratorImpl: getDevices 1 
05-24 15:52:08.698 29854-30184/com.movesense.android.sample_A_G_H.debug D/RouteObserver: onNotify {"Serial": "ECKI5ABE47F3", "Type": "New"} 
05-24 15:52:12.937 29854-30184/com.movesense.android.sample_A_G_H.debug D/addWhiteboardDevice: {"manufacturerName": "Suunto", "productName": "Movesense", "variant": "Unknown", "hwCompatibilityId": "C", "serial": "ECKI5ABE47F3", "pcbaSerial": "UNKNOWN", "sw": "0.3.0", "hw": "UNKNOW", "additionalVersionInfo": "UNKNOW", "addressInfo": "UNKNOW"} 
05-24 15:52:13.022 29854-29854/com.movesense.android.sample_A_G_H.debug D/MainActivity: Connected to device: Peripheral [address: C2:4B:A6:1E:73:AE, name: Movesense ECKI5ABE47F3, RSSI: -43] 
05-24 15:52:13.064 29854-29854/com.movesense.android.sample_A_G_H.debug I/Timeline: Timeline: Activity_launch_request id:com.movesense.android.sample_A_G_H.debug time:47413961 

를 새로운 코드의 경우 : 안드로이드 모니터에서

마지막 로그인 라인은 다음과 같은 것들 노력하고 이전 코드의 경우,

있습니다 작업하는 :

05-24 15:39:23.643 18160-18160/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: connect() - device: E8:E6:77:21:D1:45, auto: false 
05-24 15:39:23.643 18160-18160/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: registerApp() 
05-24 15:39:23.643 18160-18160/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: registerApp() - UUID=6c391ed2-8e59-42e5-9700-99758e9e8877 
05-24 15:39:23.647 18160-18207/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: onClientRegistered() - status=0 clientIf=5 
05-24 15:39:23.771 18160-18160/com.movesense.android.sample_A_G_H.debug V/ViewRootImpl: Contents drawing finished : com.movesense.android.sample_A_G_H.debug/com.movesense.android.sample_A_G_H.MainActivity 
05-24 15:39:27.577 18160-18171/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=5 device=E8:E6:77:21:D1:45 
05-24 15:39:27.577 18160-18171/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: discoverServices() - device: E8:E6:77:21:D1:45 
05-24 15:39:28.647 18160-18190/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: onSearchComplete() = Device=E8:E6:77:21:D1:45 Status=0 
05-24 15:39:28.647 18160-18190/com.movesense.android.sample_A_G_H.debug D/BluetoothGatt: setCharacteristicNotification() - uuid: 34802252-7185-4d5d-b431-630e7050e8f0 enable: true 
05-24 15:39:28.688 18160-18171/com.movesense.android.sample_A_G_H.debug D/MovesenseAndroidWrapper: Connected device! serial ECKID9F62D52 address  10000001 
05-24 15:39:28.688 18160-18171/com.movesense.android.sample_A_G_H.debug D/BleEnumeratorImpl: adding device 10000001 
05-24 15:39:28.688 18160-18171/com.movesense.android.sample_A_G_H.debug D/BleEnumeratorImpl: getDevices 1 

이 라인 D/BleEnumeratorImpl: getDevices 1에서 멈 춥니 다.

나는 DFU 모드에 둔감을 넣고 다시 프로그래밍 할 수 없으므로 문제가됩니다. 기본적으로 "깨졌습니다";).

질문 1 : yaml 파일에 설명 된 서비스가이 문제의 문제점입니까?

질문 2 : nRF 연결 응용 프로그램을 통해이 연결을보고 연결할 수 있으며 쓰기 특성에 수동으로 데이터를 쓸 수 있으므로 거기에 이동 감지 장치로 보낼 수있는 방법 (명령)이 있습니까? DFU 모드로 전환하십시오.

질문 3 : BleEnumeratorImpl (로그 라인 참조)을 추적하거나 추적 할 수 없어서 코드가 멈추는 위치를 찾을 수 없습니다. 어디서, 안드로이드 프로젝트 전체에 BleEnumeratorImpl이 위치해 있습니까?

나는 당신의 도움))

답변

0

편집을 주셔서 감사합니다 : 새로운 movesense-장치 LIB는 수정이 BLE 연결 문제가

이 무작위 일으키는 알려진 문제 문제가 발생할에 구축되어 밖으로 BLE 연결 단계. 이 문제는 다음 릴리스에서 수정되었으므로 오늘이나 내일 중에 해결되어야합니다. 버그로 인해 DFU 펌웨어 업데이트 모드로 부팅하지 못하기 때문에 프로그래밍 지그 (J-TAG 케이블)를 사용하여 센서를 저장할 수 있습니다. 치구가없는 고객의 경우 전자 메일 (info (at) movesense)을 통해 Movesense 지원팀에 문의하십시오.co.kr) 당신은 bricked 것들을 대체하는 새로운 센서를 얻을거야.

불편을 끼쳐 드려 죄송합니다.

전체 공개 : 나는

0

새로운 안드로이드 응용 프로그램을 사용하십시오 Movesense 팀 작동합니다. 툴바 메뉴에서 DFU 모드 을 실행하기위한 작업 옵션이 있습니다.

곧 모든 새로운 DFU 작업이이 새로운 예제 앱에 포함될 것입니다.

DFU 모드를 실행 한 후 Nordic DFU App을 사용해야합니다.