JAVA/android_studio 2022. 10. 11. 16:50

 

-

https://medium.com/@zoyi_product/bluetooth-low-energy-ble-84b03705ffca

 

Bluetooth Low Energy(BLE) 파헤치기

스마트폰이 출시되어 대중화가 될 무렵, ‘스마트’한 개념의 밴드, 워치, 글래스 등이 출시되면서 웨어러블 디바이스 시장이 태동하기 시작했다. 그리고, 2015년 상반기, 애플워치의 등장으로

medium.com

 

posted by cskimair
:
JAVA/android_studio 2022. 9. 12. 15:01

 

 

 

PS C:\Users\CHANSEONG.KIM\Downloads\scrcpy-win64-v1.21> ./adb devices
List of devices attached
ce071717e4a55d1c047e    device
192.168.0.165:5555      device
emulator-5554   device

PS C:\Users\CHANSEONG.KIM\Downloads\scrcpy-win64-v1.21> ./adb -s ce071717e4a55d1c047e  connect  192.168.0.165
already connected to 192.168.0.165:5555
PS C:\Users\CHANSEONG.KIM\Downloads\scrcpy-win64-v1.21>
PS C:\Users\CHANSEONG.KIM\Downloads\scrcpy-win64-v1.21> type .\scrcpy-console.bat
@echo off
scrcpy.exe %*
:: if the exit code is >= 1, then pause
if errorlevel 1 pause
PS C:\Users\CHANSEONG.KIM\Downloads\scrcpy-win64-v1.21> .\scrcpy.exe --help  | findstr serial
    -s, --serial=serial
        The device serial number. Mandatory only if several devices are
PS C:\Users\CHANSEONG.KIM\Downloads\scrcpy-win64-v1.21> .\scrcpy --serial=ce071717e4a55d1c047e

-실행화면: scrcpy 실행후 연결된 폰 화면

scrcpy(v1.21)로 무선으로 연결한 화면 (최초연결시 유선연결은 필요함.  폰의 시리얼번호 알아낼때[./adb.exe devices ] 유선연결 필요함)

 

posted by cskimair
:
JAVA/android_studio 2022. 9. 7. 20:33

 

SPT Android Bluetooth packet sniffering(monitoring)

> Android mobile app.과 Bluetooth+MCU(STM32F107 CPU)통신할때 디버깅용

>> connection problem between mobile app.(android) and STM32F107 CPU through Bluetooth(Transparent mode)

 
https://support.honeywellaidc.com/s/article/How-to-capture-Bluetooth-traffic-from-and-to-an-Android-Device
 

How to capture Bluetooth traffic from and to an Android Device?

 

support.honeywellaidc.com

Resolution
On the applicable Android devices, it is possible to capture Bluetooth traffic as follows:
  • Go to Settings
  • If developer options is not enabled, enable it now.
  • Go into developer options
  • Enable the option Enable Bluetooth HCI snoop log
  • Enable the Bluetooth option and Connected to the device.
  • Perform the actions which need to be captured.
  • Turn off the Bluetooth on the device.
  • Disable the option Enable Bluetooth HCI snoop log
  • Make sure the device is connected to the PC.
  • As the relevant files might not be shown in a PC's file browser in 'Internal Storage', copy the file to a PC by means of the Android Debug Bridge:   adb pull /sdcard
  • The files of interest are btsnoop_hci.log and all files with the extension .cfa
These are binary files, which can be opened with Wireshark.
 
 
 
 
 

 

 
 
- google search for 'Android bluetooth packet sniffering'
 
 

 

 

posted by cskimair
:
JAVA/android_studio 2022. 9. 3. 16:50

아래 링크대로 해보니 제대로 연결됨. 

처음에는 USB케이블로 PC와 스마트폰을 연결할 필요가 있음. (이후 아래처럼 따라하면 케이블 제거해도 연결됨)

PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe devices
List of devices attached
ce071717e4a55d1c047e    device

PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe tcpip 5555
restarting in TCP mode port: 5555
PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe  connect  192
.168.0.182
connected to 192.168.0.182:5555
PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe devices
List of devices attached
192.168.0.182:5555      device

단,  아래와 같이 adb.exe 의 위치를 미리 찾아둬야 함.

> C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools>

https://medium.com/android-news/wireless-debugging-through-adb-in-android-using-wifi-965f7edd163a

 

 

 

 

Wireless Debugging through ADB in Android using WiFi

In this article I am going to show you how you can debug your android app over WiFi.

medium.com

- PC와 안드로이드폰을 연결할때 실제 수행시 출력된 로그 
  > 192.168.0.182의 주소를 스마트폰이 가지고 있음. 
  > 연결이 안되서 ./adb.exe kill-server  로  adb종료하고 다시 시작시킴. 


PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe  connect  192
.168.0.182
cannot connect to 192.168.0.182:5555: 연결된 구성원으로부터 응답이 없어 연결하지 못했거나,
호스트로부터 응답이 없어 연결이 끊어졌습니다. (10060)
PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe  connect  192
.168.0.182
cannot connect to 192.168.0.182:5555: 연결된 구성원으로부터 응답이 없어 연결하지 못했거나,
호스트로부터 응답이 없어 연결이 끊어졌습니다. (10060)
PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe   kill-server
PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe  devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
ce071717e4a55d1c047e    device

PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe tcpip 5555
restarting in TCP mode port: 5555
PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe  connect  192
.168.0.182
cannot connect to 192.168.0.182:5555: 연결된 구성원으로부터 응답이 없어 연결하지 못했거나,
호스트로부터 응답이 없어 연결이 끊어졌습니다. (10060)
PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe   kill-server
PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe  devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
ce071717e4a55d1c047e    device

PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe tcpip 5555
restarting in TCP mode port: 5555
PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe  connect  192
.168.0.182
cannot connect to 192.168.0.182:5555: 현재 연결은 사용자의 호스트 시스템의 소프트웨어의 의
해 중단되었습니다. (10053)
PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools> .\adb.exe  connect  192
.168.0.182
connected to 192.168.0.182:5555
PS C:\Users\CH***IM\AppData\Local\Android\Sdk\platform-tools>
posted by cskimair
:
JAVA/android_studio 2020. 6. 30. 17:15

Connection refused

 

https://developside.tistory.com/85

 

안드로이드 http 프로토콜 접속 시 예외발생 조치 (ERR CLEARTEXT NOT PERMITTED)

어제 앱을 개발 중 glide v4를 사용하여 웹에 있는 그림을 load 하였는데, 아래와 같은 예외를 주며 동작을 하지 않았습니다. com.bumptech.glide.load.engine.GlideException: Fetching data failed, class java...

developside.tistory.com

 

posted by cskimair
:
JAVA/android_studio 2020. 5. 25. 11:53

 

sjava.net/2020/05/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C-%ED%82%A4%EC%98%A4%EC%8A%A4%ED%81%ACkiosk-%EC%95%B1-%EA%B0%9C%EB%B0%9C-1-3/?fbclid=IwAR1uArTeypMwpVuWBvJNv0mZoMJjMNrtOiDCZJTiaivcroz_IYzYlEFurgs

 

안드로이드 키오스크(Kiosk) 앱 개발 | 커피한잔의 여유와 코딩

이제 우리는 일상에서 많은 키오스크(Kiosk) 기기를 사용한다. 맥XXX 햄버거 체인점에서 주문하는 기기, 공항에서 층별 정보나 항공사 위치를 확인할 수 있는 기기, 회사 로비에 인포 데스크 없이 �

sjava.net

 

posted by cskimair
: