Skip to content

Latest commit

 

History

History
75 lines (60 loc) · 1.9 KB

README.md

File metadata and controls

75 lines (60 loc) · 1.9 KB

libliveview

C library for communication with the Sony Ericsson LiveView.

Thanks to all work from:

Added from the fork:

int liveview_send_navigation(struct liveview *, unsigned char);
int liveview_send_vibrate(struct liveview *, int, int);
int liveview_send_status(struct liveview *);
int liveview_send_text(struct liveview *, const char *); // NO SEEM TO WORK
int liveview_send_image(struct liveview *, int, int, struct liveview_img *); // NO SEEM TO WORK
int liveview_send_clear(struct liveview *);
int liveview_send_alert(struct liveview *, int, int, int, const char *, const char *, const char *, struct liveview_img *);
int liveview_send_panel(struct liveview *, const char *, const char *, struct liveview_img *, uint8_t);

Still missing:

  • set led color

How to launch

To compile demo:

make demo

To pair with LiveView, assuming bluez v5:

[host]> hciconfig hci0 up

[host]> bluetoothctl
[NEW] Controller 00:02:72:04:F4:19 host [default]
[NEW] Device B8:F9:34:E8:43:D2 LiveView
[bluetooth]# agent on
Agent registered
[bluetooth]# scan on
Discovery started       
[CHG] Controller 00:02:72:04:F4:19 Discovering: yes
[NEW] Device B8:F9:34:E8:43:D2 LiveView
[bluetooth]# pair B8:F9:34:E8:43:D2
Attempting to pair with B8:F9:34:E8:43:D2
Request PIN code        
[agent] Enter PIN code: 0000
[CHG] Device B8:F9:34:E8:43:D2 UUIDs has unsupported type
[CHG] Device B8:F9:34:E8:43:D2 Paired: yes
Pairing successful      
[bluetooth]# 

For more informations see http://wiki.archlinux.fr/Bluetooth

To run demo:

make run

To run demo, in infinite loop (to avoid disconnection, see below):

make run_loop

To avoid problem with LiveView bluetooth disconnection:

while [ 1 ]; do ./a.out ; done