red-light-tizen / Red-Light

Emergency call service available in case of inactivity
0 stars 0 forks source link

Bluetooth sending data does not work #1

Closed sjy5386 closed 5 years ago

sjy5386 commented 5 years ago

[bt_socket_send_data] failed. Required key not available

sjy5386 commented 5 years ago

It may be a problem with my source code. However, it may be a hardware problem or an operating system problem.

sjy5386 commented 5 years ago

We bought a new Raspberry Pi. Please test with a new device. @Kasania @Kanu1755

Kanu1755 commented 5 years ago

I tested new Raspberry Pi with this issuue It didn't works too so,I think we should be buy bluetooth module or ask tizenteam on slack it isn't work @sjy5386 i will be upload results soon that why it didn't works

Kasania commented 5 years ago

I Found messages when send fail. That messages repeat Please check this.

Kasania commented 5 years ago

I think this issue is related with method "bluetooth_rfcomm_write" in "BLUETOOTH_FRWK_API".

Kanu1755 commented 5 years ago

Hmmmm..... @Kasania found that messages so I think RFCCOM WRITE SOCKET ERROR @sjy5386 and might be not hardware problem I hope so...😂😂

sjy5386 commented 5 years ago

Thank you for testing. 😉 @Kanu1755 @Kasania It's likely a problem with my source code. 😥 Because the three Raspberry Pis are unlikely to be defective.

Kasania commented 5 years ago

Fixed issue. @sjy5386 @Kanu1755 This issue caused by data length mismatch. Desktop application is now read only 62 character. So should be send 62 character include of null character.

sjy5386 commented 5 years ago

after com-fort 😀

Kasania commented 5 years ago

Send Data Format

sjy5386 commented 5 years ago

The data sending succeeded, but failed in the dlog. 😱

Kasania commented 5 years ago

I 'll check that asap.

sjy5386 commented 5 years ago

Send Data Format

* yyyy;ddd;ssssssss;c;ppp;tttt;ooooo;aaaa;+ll.lllll;-ggg.ggggg;

* y : year

* d : day of year

* s : second of day

* c : condition

* p : pulse

* t : temperature

* o : SPO2

* a : activity

* l : latitude

* g : longitude

e.g. 2019;243;59123051;4;098;3750;09820;0230;+36.23422;-128.35869;

Kasania commented 5 years ago

We don't need fixed data length anymore.