[Info] Using Raspberry Pi as a development environment

PeterD
Posts: 1
Joined: Tue May 16, 2017 5:55 pm

Re: [Info] Using Raspberry Pi as a development environment

Postby PeterD » Tue May 16, 2017 6:20 pm

Hello,

I love my Raspberry Pi, I like to use it for all my Arduino-like projects.
I have been tinkering with the ESP32 since February or March and, thanks to the growing online community, had very good results.

Recently I looked at the ULP processor. There was a toolchain recently released for it, but it is not available for the Raspberry Pi. Has anyone had a go at building it themselves? I did try, but did not get very far. Frankly I don't know what I'm doing. While there were decent online tips on how to build main cross-compiler (including the posts above) there is nothing as yet for the ULP.

pharju
Posts: 1
Joined: Thu May 18, 2017 6:53 am

Re: [Info] Using Raspberry Pi as a development environment

Postby pharju » Thu May 18, 2017 7:27 am

How to connect Raspberry pi3 integrated bluetooth device with ESP32 ble gatt server?

Raspberry pi3 using integrated hci0 bt-device b8:27:eb:39:72:7e

sudo bluez-5.45/tools/btgatt-client -d 24:0A:C4:82:F5:9A -i hci0
Connecting to device... Failed to connect: Function not implemented

Output of make flash monitor using ESP32 with esp-idf/examples/bluetooth/gatt_server$
I (741484) GATTS_DEMO: ESP_GATTS_CONNECT_EVT, conn_id 0, remote b8:27:eb:39:72:7e:, is_conn 1
I (741494) GATTS_DEMO: SERVICE_START_EVT, conn_id 0, remote b8:27:eb:39:72:7e:, is_conn 1
E (741884) BT: gatt_disc_cmpl_cback() - Register for service changed indication failure
E (741884) BT: bta_gattc_conn_cback() - cif=3 connected=0 conn_id=3 reason=0x003e
E (741884) BT: btm_sec_disconnected clearing pending flag handle:0 reason:62

Same RaspBerry pi3 using hci1 USB stick bt-device 5c:f3:70:80:f0:c2
dmesg:
[ 1276.269495] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[ 1276.385773] usb 1-1.2: New USB device found, idVendor=050d, idProduct=065a
[ 1276.385791] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1276.385804] usb 1-1.2: Product: BCM20702A0
[ 1276.385817] usb 1-1.2: Manufacturer: Broadcom Corp
[ 1276.385829] usb 1-1.2: SerialNumber: 5CF37080F0C2
[ 1276.432560] usbcore: registered new interface driver btusb
[ 1276.437448] Bluetooth: hci1: BCM: chip id 63
[ 1276.438436] Bluetooth: hci1: BCM20702A1 (001.002.014) build 0000

sudo bluez-5.45/tools/btgatt-client -d 24:0A:C4:82:F5:9A -i hci1
Connecting to device... Done
[GATT client]# Service Added - UUID: 00001801-0000-1000-8000-00805f9b34fb start: 0x0001 end: 0x0005
[GATT client]# Service Added - UUID: 00001800-0000-1000-8000-00805f9b34fb start: 0x0014 end: 0x001c
[GATT client]# Service Added - UUID: 000000ff-0000-1000-8000-00805f9b34fb start: 0x0028 end: 0x002b
[GATT client]# Service Added - UUID: 000000ee-0000-1000-8000-00805f9b34fb start: 0x002c end: 0xffff
[GATT client]# GATT discovery procedures complete
[GATT client]#
service - start: 0x0001, end: 0x0005, type: primary, uuid: 00001801-0000-1000-8000-00805f9b34fb
charac - start: 0x0002, value: 0x0003, props: 0x20, ext_props: 0x0000, uuid: 00002a05-0000-1000-8000-00805f9b34fb

service - start: 0x0014, end: 0x001c, type: primary, uuid: 00001800-0000-1000-8000-00805f9b34fb
charac - start: 0x0015, value: 0x0016, props: 0x02, ext_props: 0x0000, uuid: 00002a00-0000-1000-8000-00805f9b34fb
charac - start: 0x0017, value: 0x0018, props: 0x02, ext_props: 0x0000, uuid: 00002a01-0000-1000-8000-00805f9b34fb
charac - start: 0x0019, value: 0x001a, props: 0x02, ext_props: 0x0000, uuid: 00002aa6-0000-1000-8000-00805f9b34fb

service - start: 0x0028, end: 0x002b, type: primary, uuid: 000000ff-0000-1000-8000-00805f9b34fb
charac - start: 0x0029, value: 0x002a, props: 0x1a, ext_props: 0x0000, uuid: 0000ff01-0000-1000-8000-00805f9b34fb
descr - handle: 0x002b, uuid: 00002902-0000-1000-8000-00805f9b34fb

service - start: 0x002c, end: 0xffff, type: primary, uuid: 000000ee-0000-1000-8000-00805f9b34fb
charac - start: 0x002d, value: 0x002e, props: 0x1a, ext_props: 0x0000, uuid: 0000ee01-0000-1000-8000-00805f9b34fb
descr - handle: 0x002f, uuid: 00002902-0000-1000-8000-00805f9b34fb

[GATT client]#

Output of make flash monitor using ESP32 with esp-idf/examples/bluetooth/gatt_server$
E (13873) BT: btm_ble_resolve_random_addr_on_conn_cmpl unable to match and resolve random address
E (13873) BT: smp_br_connect_callback is called on unexpected transport 2
I (13873) GATTS_DEMO: ESP_GATTS_CONNECT_EVT, conn_id 0, remote 5c:f3:70:80:f0:c2:, is_conn 1
I (13883) GATTS_DEMO: SERVICE_START_EVT, conn_id 0, remote 5c:f3:70:80:f0:c2:, is_conn 1
E (14033) BT: gatt_disc_cmpl_cback() - Register for service changed indication failure

When using ESP32 with esp-idf/examples/bluetooth/ble_adv Raspberry pi3 hci0 24:0A:C4:82:F5:9A can read the advertising data.

I have tried four different Raspberry pi3 computers and two ESP32 devkits mixed with same outcome.

madscientist_42
Posts: 93
Joined: Tue Feb 21, 2017 10:17 pm

Re: [Info] Using Raspberry Pi as a development environment

Postby madscientist_42 » Fri May 19, 2017 2:00 pm

PeterD wrote:Hello,

I love my Raspberry Pi, I like to use it for all my Arduino-like projects.
I have been tinkering with the ESP32 since February or March and, thanks to the growing online community, had very good results.

Recently I looked at the ULP processor. There was a toolchain recently released for it, but it is not available for the Raspberry Pi. Has anyone had a go at building it themselves? I did try, but did not get very far. Frankly I don't know what I'm doing. While there were decent online tips on how to build main cross-compiler (including the posts above) there is nothing as yet for the ULP.


Not the toolchain, but here's something to work with until someone makes a version that works there in the ARM space...

http://esp-idf.readthedocs.io/en/latest ... acros.html

Who is online

Users browsing this forum: salara and 3 guests