NULL return of libxml API call( Android <-> Gear S2 bluetooth model )
NULL return of libxml API call( Android <-> Gear S2 bluetooth model )
BY 31 May 2016Native Application Development
안녕하세요.
libxml을 이용하는 기어 S2 블루투스 모델용 앱을 개발하는 중 몇 가지 문제점에 봉착해 질문을 남깁니다.
현재 개발 중인 앱은 libxml의 xmlReadFile()을 이용해 URL로부터 HTML 노드를 가져오는 동작을 수행합니다.
( e.g. xmlReadFile(URL, enc, HTML_PARSE_RECOVER) )
와이파이 연결 시에는 URL로부터 값을 받아올 수 있었으나, 와이파이 연결을 해제하고 안드로이드 기기와 페어링을 한 상태에서는 값을 받아오지 하고 있습니다.
connection_get_type(conn_handle, &conn_type)을 호출 했을 때 conn_type에는 CONNECTION_TYPE_ETHERNET이 정상적으로 들어가는 것으로 보아 네트워크가 끊어진 것으로 보기는 어렵습니다.(모든 연결을 끊었을 때는 CONNECTION_TYPE_DISCONNECTED가 들어갑니다.)
혹시 안드로이드 기기와의 페어링으로는 기어 S2에서 외부 네트워크에 접근하는 게 불가능한 건지요. 혹은 기어 S2에서 안드로이드 기기의 네트워크를 사용하기 위해 추가해줘야 할 설정이나 privilege가 있는지요.
I’m developing the Gear S2 Blutooth model app, which use xmlReadFile() on libxml. It gets the HTML nodes with URL.
( e.g. xmlReadFile(URL, enc, HTML_PARSE_RECOVER) )
When Gear S2 is connected on network with WIFI, it works well. However, it can not access to internet when it is connected on Android device instead of WIFI.
connection_get_type(conn_handle, &conn_type) returns CONNECTION_TYPE_ETHERNET implicitly, so IMHO, it is hard to say that Gear S2 is disconnected from internet.(When it is disconnected from network, CONNECTION_TYPE_DISCONNECTED is returned.)
Is it impossible that Gear S2 accesses to internet with paring of Android device? Or should I add some other privileges or settings to use network of Android device?
NULL return of libxml API call( Android <-> Gear S2 bluetooth model )
안녕하세요.
libxml을 이용하는 기어 S2 블루투스 모델용 앱을 개발하는 중 몇 가지 문제점에 봉착해 질문을 남깁니다.
현재 개발 중인 앱은 libxml의 xmlReadFile()을 이용해 URL로부터 HTML 노드를 가져오는 동작을 수행합니다.
( e.g. xmlReadFile(URL, enc, HTML_PARSE_RECOVER) )
와이파이 연결 시에는 URL로부터 값을 받아올 수 있었으나, 와이파이 연결을 해제하고 안드로이드 기기와 페어링을 한 상태에서는 값을 받아오지 하고 있습니다.
connection_get_type(conn_handle, &conn_type)을 호출 했을 때 conn_type에는 CONNECTION_TYPE_ETHERNET이 정상적으로 들어가는 것으로 보아 네트워크가 끊어진 것으로 보기는 어렵습니다.(모든 연결을 끊었을 때는 CONNECTION_TYPE_DISCONNECTED가 들어갑니다.)
혹시 안드로이드 기기와의 페어링으로는 기어 S2에서 외부 네트워크에 접근하는 게 불가능한 건지요. 혹은 기어 S2에서 안드로이드 기기의 네트워크를 사용하기 위해 추가해줘야 할 설정이나 privilege가 있는지요.
현재 사용 중인 것은 다음과 같습니다.
tizen.org/privilege/download
tizen.org/privilege/network.get
tizen.org/privilege/appmanager.launch
tizen.org/privilege/network.set
tizen.org/privilege/bluetooth
tizen.org/privilege/internet
tizen.org/privilege/network.profile
developer.samsung.com/tizen/privilege/accessoryprotocol
+curl 샘플 앱도 와이파이에서만 동작하고, 페어링만 된 상태에서는 동작하지 않습니다.
~~~~~~~
Hi.
I’m developing the Gear S2 Blutooth model app, which use xmlReadFile() on libxml. It gets the HTML nodes with URL.
( e.g. xmlReadFile(URL, enc, HTML_PARSE_RECOVER) )
When Gear S2 is connected on network with WIFI, it works well. However, it can not access to internet when it is connected on Android device instead of WIFI.
connection_get_type(conn_handle, &conn_type) returns CONNECTION_TYPE_ETHERNET implicitly, so IMHO, it is hard to say that Gear S2 is disconnected from internet.(When it is disconnected from network, CONNECTION_TYPE_DISCONNECTED is returned.)
Is it impossible that Gear S2 accesses to internet with paring of Android device? Or should I add some other privileges or settings to use network of Android device?
FYI, added privileges are below:
tizen.org/privilege/download
tizen.org/privilege/network.get
tizen.org/privilege/appmanager.launch
tizen.org/privilege/network.set
tizen.org/privilege/bluetooth
tizen.org/privilege/internet
tizen.org/privilege/network.profile
developer.samsung.com/tizen/privilege/accessoryprotocol
+curl sample app works with only wifi connection. It can not download file from external internet with Android device pairing.
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio