jadonk / beagleconnect

Moved to https://git.beagleboard.org/beagleconnect/freedom
https://git.beagleboard.org/beagleconnect/freedom
36 stars 16 forks source link

SW: Update greybus mikrobus and FW build workflow #64

Closed vaishnavachath closed 3 years ago

vaishnavachath commented 3 years ago

Hi @jadonk ,

Can you review this PR, the main changes are updating the greybus-for-zephyr-mikrobus submodule, the previous version was not the latest one which caused the mikrobus sample to fail before. Once https://github.com/jadonk/greybus-for-zephyr/pull/3 is merged, greybus-for-zephyr-mikrobus submodule can be updated back to https://github.com/jadonk/greybus-for-zephyr

vaishnav@spectre:~/Downloads/bcf-firmware-release$ ./cc2538-bsl.py wpanusb_beagleconnect.bin 
Opening port /dev/ttyACM0, baud 50000
Reading data from wpanusb_beagleconnect.bin
Firmware file: Raw Binary
  ...
Verified (match: 0xc9f1e101)
vaishnavachath commented 3 years ago

Host Logs for the above FW release(device: BeagleConnect Freedom Rev C3):

BeagleBoard.org Debian Buster IoT mikroBUS Image 2021-10-29
Support: https://bbb.io/debian
default username:password is [debian:temppwd]

beaglebone login: debian
Password: 
Last login: Wed Nov  3 14:19:17 UTC 2021 on ttyS0

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

debian@beaglebone:~$ 
debian@beaglebone:~$ sudo beagleconnect-start-gateway 
[sudo] password for debian: 
setting up wpanusb gateway for IEEE 802154 CHANNEL 1(906 Mhz)
ping6: Warning: source address might be selected on device other than lowpan0.
PING 2001:db8::1(2001:db8::1) from ::1 lowpan0: 56 data bytes
64 bytes from 2001:db8::1: icmp_seq=2 ttl=64 time=133 ms
64 bytes from 2001:db8::1: icmp_seq=3 ttl=64 time=40.3 ms
64 bytes from 2001:db8::1: icmp_seq=4 ttl=64 time=39.8 ms
64 bytes from 2001:db8::1: icmp_seq=5 ttl=64 time=40.3 ms

--- 2001:db8::1 ping statistics ---
5 packets transmitted, 4 received, 20% packet loss, time 12ms
rtt min/avg/max/mdev = 39.780/63.270/132.735/40.106 ms
[   97.794850] mikrobus_manifest:mikrobus_state_get: mikrobus descriptor not found
debian@beaglebone:~$ 
debian@beaglebone:~$ 
debian@beaglebone:~$ iio_info 
Library version: 0.19 (git tag: v0.19)
Compiled with backends: local xml ip usb serial
IIO context created with local backend.
Backend version: 0.19 (git tag: v0.19)
Backend description string: Linux beaglebone 5.14.15-bone17 #1buster PREEMPT Fri Oct 29 18:07:08 UTC 2021 armv7l
IIO context has 1 attributes:
    local,kernel: 5.14.15-bone17
IIO context has 3 devices:
    iio:device0: TI-am335x-adc.0.auto (buffer capable)
        8 channels found:
            voltage0:  (input, index: 0, format: le:u12/16>>0)
            1 channel-specific attributes found:
                attr  0: raw value: 1933
            voltage1:  (input, index: 1, format: le:u12/16>>0)
            1 channel-specific attributes found:
                attr  0: raw value: 2667
            voltage2:  (input, index: 2, format: le:u12/16>>0)
            1 channel-specific attributes found:
                attr  0: raw value: 3018
            voltage3:  (input, index: 3, format: le:u12/16>>0)
            1 channel-specific attributes found:
                attr  0: raw value: 1202
            voltage4:  (input, index: 4, format: le:u12/16>>0)
            1 channel-specific attributes found:
                attr  0: raw value: 1337
            voltage5:  (input, index: 5, format: le:u12/16>>0)
            1 channel-specific attributes found:
                attr  0: raw value: 0
            voltage6:  (input, index: 6, format: le:u12/16>>0)
            1 channel-specific attributes found:
                attr  0: raw value: 0
            voltage7:  (input, index: 7, format: le:u12/16>>0)
            1 channel-specific attributes found:
                attr  0: raw value: 1152
        2 buffer-specific attributes found:
                attr  0: data_available value: 0
                attr  1: watermark value: 1
    iio:device1: hdc2010
        3 channels found:
            humidityrelative:  (input)
            3 channel-specific attributes found:
                attr  0: peak_raw value: 56064
                attr  1: raw value: 56226
                attr  2: scale value: 1.525878906
            current:  (output)
            2 channel-specific attributes found:
                attr  0: heater_raw value: 0
                attr  1: heater_raw_available value: 0 1
            temp:  (input)
            4 channel-specific attributes found:
                attr  0: offset value: -15887.515151
                attr  1: peak_raw value: 27136
                attr  2: raw value: 27272
                attr  3: scale value: 2.517700195
    iio:device2: opt3001
        1 channels found:
            illuminance:  (input)
            2 channel-specific attributes found:
                attr  0: input value: 78.320000
                attr  1: integration_time value: 0.800000
        2 device-specific attributes found:
                attr  0: current_timestamp_clock value: realtime

                attr  1: integration_time_available value: 0.1 0.8
debian@beaglebone:~$ 
vaishnavachath commented 3 years ago

@jadonk , This is with the on-board sensors(accelerometer not included) only described over the manifest:

    iio:device1: hdc2010
        3 channels found:
            humidityrelative:  (input)
            3 channel-specific attributes found:
                attr  0: peak_raw value: 56064
                attr  1: raw value: 56226
                attr  2: scale value: 1.525878906
            current:  (output)
            2 channel-specific attributes found:
                attr  0: heater_raw value: 0
                attr  1: heater_raw_available value: 0 1
            temp:  (input)
            4 channel-specific attributes found:
                attr  0: offset value: -15887.515151
                attr  1: peak_raw value: 27136
                attr  2: raw value: 27272
                attr  3: scale value: 2.517700195
    iio:device2: opt3001
        1 channels found:
            illuminance:  (input)
            2 channel-specific attributes found:
                attr  0: input value: 78.320000
                attr  1: integration_time value: 0.800000
        2 device-specific attributes found:
                attr  0: current_timestamp_clock value: realtime

                attr  1: integration_time_available value: 0.1 0.8
jadonk commented 3 years ago

I don't see the commit ID update.

jadonk commented 3 years ago

I see the commit ID update now.