# WP7702 using SPI

**URL:** <https://mangoh.discourse.group/t/wp7702-using-spi/1188>\
**Category:** mangOH Red\
**Created:** [February 21, 2018, 7:09am UTC](https://mangoh.discourse.group/t/wp7702-using-spi/1188 "2018-02-21T07:09:04Z")\
**Posts on this page:** 2\
**Page:** 3

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [October 22, 2018, 7:20pm UTC](https://mangoh.discourse.group/t/wp7702-using-spi/1188/42 "2018-10-22T19:20:11Z")

</div>

> Failed to set the permissions for spidev.0

I think that should be `spidev0.0`. In general `spidevX.Y` means `bus=X`, `chip_select=Y`.

> One question is - when a client application fails/terminates, the service also terminates.  
> Is this by design?

If A depends on B and A fails, B should not terminate. If B fails and terminates, then A will also terminate because it is bound to B and B disappeared.

---

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://mangoh.discourse.group/u/davidc)\
**Post date:** [October 22, 2018, 11:37pm UTC](https://mangoh.discourse.group/t/wp7702-using-spi/1188/43 "2018-10-22T23:37:59Z")

</div>

Hi @Madan,

You’ve already done what I had to do as far as scripting configuration at startup.

One thing to look at is that just because the `modprobe` call returns with no error, that doesn’t mean that the module has finished establishing the device.

I would open up a couple of log windows into the WP, run `logread -f` in one and then manually do the setup steps in the other. Watch the kernel log messages in logread to see how long it takes from sending the configuration command until the kernel indicates that the device is ready. Worst case is that you may need to `sleep()` for a second or two between starting the configuration and then trying to use the device.

ciao, Dave

[Previous page](https://mangoh.discourse.group/t/wp7702-using-spi/1188.md?page=2)
