# Octave- Mangoh Red red sensor app

**URL:** <https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293>\
**Category:** mangOH Red\
**Created:** [April 20, 2020, 2:54am UTC](https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293 "2020-04-20T02:54:23Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![kushanikathriarachch](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@kushanikathriarachch](https://mangoh.discourse.group/u/kushanikathriarachch)\
**Post date:** [April 20, 2020, 2:54am UTC](https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293/1 "2020-04-20T02:54:23Z")

</div>

Hi Team,

Trying to get the redsensor app on Octave-\> But cannot see the redSensor app on the octave platform under resources.  
Any thoughts?  
App is running under app status.

See the snip of logs below  
Apr 20 09:24:50 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[1060]/supervisor T=main | app.c CreateFileLink() 2041 | Could not stat file at ‘/sys/bus/i2c/devices/4-0068/iio:device0/in\_accel\_scale’. No such file or directory  
Apr 20 09:24:50 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[1060]/supervisor T=main | app.c CreateFileLink() 2158 | Failed to create link at ‘/driver/in\_accel\_scale’ in app ‘redSensor’.  
Apr 20 09:24:50 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[1060]/supervisor T=main | app.c app\_Start() 3501 | Failed to set Smack rules or set up app area.  
Regards,  
Kushani

---

<div class="post-metadata">

**Author:** ![paulmeis](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@paulmeis](https://mangoh.discourse.group/u/paulmeis)\
**Post date:** [April 20, 2020, 9:56am UTC](https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293/2 "2020-04-20T09:56:16Z")

</div>

Hi !

Are you using a WP77xx on your board ? I’ve had a similar issue once with wp77 and mangOH red.

Maybe the drivers for the accelerometer (BMI160) are not loaded, can you run this command on the board and give the output please ?

```bash
$ ls /sys/module | grep bmi

```

---

<div class="post-metadata">

**Author:** ![kushanikathriarachch](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@kushanikathriarachch](https://mangoh.discourse.group/u/kushanikathriarachch)\
**Post date:** [April 20, 2020, 11:29pm UTC](https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293/3 "2020-04-20T23:29:19Z")

</div>

Hi Paul,

Yeah I’m using with WP7702. See for below output, I can see BMI160

root@swi-mdm9x28-wp:~# lsmod  
Tainted: G  
mt7697serial 6938 0 - Live 0xbf048000 (O)  
mt7697q 16683 0 - Live 0xbf03f000 (O)  
mcp251x 8589 0 - Live 0xbf039000 (O)  
mangoh\_red 7779 0 - Live 0xbf034000 (O)  
ltc294x 5100 0 - Live 0xbf02f000 (O)  
led 1835 0 - Live 0xbf02b000 (O)  
cp2130 17755 1 mt7697q, Live 0xbf022000 (O)  
bq27xxx\_battery 22500 0 - Live 0xbf019000 (O)  
bq24296 9679 0 - Live 0xbf013000 (O)  
bmp280\_i2c 2430 0 - Live 0xbf00f000 (O)  
bmp280 8657 1 bmp280\_i2c, Live 0xbf009000 (O)  
bmi160\_i2c 1682 0 - Live 0xbf005000 (O)  
bmi160 4556 1 bmi160\_i2c, Live 0xbf000000 (O)  
root@swi-mdm9x28-wp:~# ls /sys/module/ | grep bmi  
bmi160  
bmi160\_i2c  
root@swi-mdm9x28-wp:~#

Regards,  
Kush

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [April 21, 2020, 2:05am UTC](https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293/4 "2020-04-21T02:05:18Z")

</div>

what did you see for  
“ls sys/bus/i2c/devices/4-0068/iio:device0/”

---

<div class="post-metadata">

**Author:** ![kushanikathriarachch](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@kushanikathriarachch](https://mangoh.discourse.group/u/kushanikathriarachch)\
**Post date:** [April 21, 2020, 2:35am UTC](https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293/5 "2020-04-21T02:35:59Z")

</div>

Hi Jyijyi,

Cannot find that iio:device0. See below  
root@swi-mdm9x28-wp:~# ls /sys/bus/i2c/devices/4-0068/iio:device0/  
ls: /sys/bus/i2c/devices/4-0068/iio:device0/: No such file or directory  
root@swi-mdm9x28-wp:~# ls /sys/bus/i2c/devices/4-0068/  
modalias name power subsystem uevent  
root@swi-mdm9x28-wp:~#

Thanks for your support.

Regards,  
Kushani

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [April 21, 2020, 2:50am UTC](https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293/6 "2020-04-21T02:50:08Z")

</div>

that means your bmi driver is not working

---

<div class="post-metadata">

**Author:** ![kushanikathriarachch](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@kushanikathriarachch](https://mangoh.discourse.group/u/kushanikathriarachch)\
**Post date:** [April 21, 2020, 2:53am UTC](https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293/7 "2020-04-21T02:53:35Z")

</div>

Hi jyijyi,

Any Tshoot step I can get the bmi drivers are working.

Regards,  
Kushani

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [April 21, 2020, 2:54am UTC](https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293/8 "2020-04-21T02:54:18Z")

</div>

did you put the SW401 switch 3 to ON on mangoh red board?  
not sure if you can find any debug message of the BMI driver on dmesg?

---

<div class="post-metadata">

**Author:** ![kushanikathriarachch](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@kushanikathriarachch](https://mangoh.discourse.group/u/kushanikathriarachch)\
**Post date:** [April 21, 2020, 2:57am UTC](https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293/9 "2020-04-21T02:57:45Z")

</div>

Hi Jyijyi,

Just realized I only put 1 and 8 to on. Now I made 3 on too.  
Note :  
root@swi-mdm9x28-wp:/sys/bus/iio/devices# ls  
iio:device0  
root@swi-mdm9x28-wp:/sys/bus/iio/devices# lsmod  
Tainted: G  
mt7697serial 6938 0 - Live 0xbf048000 (O)  
mt7697q 16683 0 - Live 0xbf03f000 (O)  
mcp251x 8589 0 - Live 0xbf039000 (O)  
mangoh\_red 7779 0 - Live 0xbf034000 (O)  
ltc294x 5100 0 - Live 0xbf02f000 (O)  
led 1835 0 - Live 0xbf02b000 (O)  
cp2130 17755 1 mt7697q, Live 0xbf022000 (O)  
bq27xxx\_battery 22500 0 - Live 0xbf019000 (O)  
bq24296 9679 0 - Live 0xbf013000 (O)  
bmp280\_i2c 2430 0 - Live 0xbf00f000 (O)  
bmp280 8657 1 bmp280\_i2c, Live 0xbf009000 (O)  
bmi160\_i2c 1682 0 - Live 0xbf005000 (O)  
bmi160 4556 1 bmi160\_i2c, Live 0xbf000000 (O)

Regards,  
Kushani

---

<div class="post-metadata">

**Author:** ![kushanikathriarachch](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@kushanikathriarachch](https://mangoh.discourse.group/u/kushanikathriarachch)\
**Post date:** [April 21, 2020, 3:07am UTC](https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293/10 "2020-04-21T03:07:01Z")

</div>

Hi jyijyi,

I can see below now 🙂

ls /sys/bus/i2c/devices/4-0068/iio:device0/  
buffer in\_accel\_y\_raw in\_anglvel\_y\_raw scan\_elements  
dev in\_accel\_z\_raw in\_anglvel\_z\_raw subsystem  
in\_accel\_sampling\_frequency in\_anglvel\_sampling\_frequency in\_temp\_offset trigger  
in\_accel\_sampling\_frequency\_available in\_anglvel\_sampling\_frequency\_available in\_temp\_raw uevent  
in\_accel\_scale in\_anglvel\_scale in\_temp\_scale  
in\_accel\_scale\_available in\_anglvel\_scale\_available name  
in\_accel\_x\_raw in\_anglvel\_x\_raw power

I guess massive improvement.  
Regards,  
Kushani

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [April 21, 2020, 3:23am UTC](https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293/11 "2020-04-21T03:23:54Z")

</div>

great, it seems it is working now.

---

<div class="post-metadata">

**Author:** ![kushanikathriarachch](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@kushanikathriarachch](https://mangoh.discourse.group/u/kushanikathriarachch)\
**Post date:** [April 21, 2020, 4:16am UTC](https://mangoh.discourse.group/t/octave-mangoh-red-red-sensor-app/4293/12 "2020-04-21T04:16:17Z")

</div>

Really appreciated your support 🙂

Regards,  
Kushani
