# Serialosc/monome with Organelle?

**URL:** <https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233>\
**Category:** Organelle\
**Created:** [April 6, 2016, 2:29pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233 "2016-04-06T14:29:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonw22](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/jasonw22/32/130_2.png) [@jasonw22](https://forum.critterandguitari.com/u/jasonw22)\
**Post date:** [April 6, 2016, 2:29pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/1 "2016-04-06T14:29:35Z")

</div>

Might it be possible to install serialosc on the Organelle, so that one might use Pd’s OSC support to communicate with a monome over USB?

> **[monome/serialosc](https://github.com/monome/serialosc)**
>
> multi-device, bonjour-capable monome OSC server. Contribute to monome/serialosc development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [April 6, 2016, 3:47pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/2 "2016-04-06T15:47:00Z")

</div>

That sounds cool, I’ve wanted to try monome with the Organelle, although I don’t have one to test on.

It looks like serialosc can be compiled for linux, but some dependencies might need to be resolved:

[http://monome.org/docs/linux/](http://monome.org/docs/linux/)

Would it be possible to communicate directly with monome using the comport object right from Pd? or is serialosc necessary? I guess more questions than answers! not really familiar with monome…

---

<div class="post-metadata">

**Author:** ![jasonw22](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/jasonw22/32/130_2.png) [@jasonw22](https://forum.critterandguitari.com/u/jasonw22)\
**Post date:** [April 6, 2016, 3:51pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/3 "2016-04-06T15:51:34Z")

</div>

I have not yet tried Pd’s comport with monome, so I’m not quite sure how that would work, but I suspect it’s on the right track.

I’ve passed the question on to the lines community:

> **[Critter & Guitari Organelle](https://llllllll.co/t/critter-guitari-organelle/1570/27?u=jasonw22)**
>
> Can you tell me more about this? A question from the Critter & Guitari forum:

---

<div class="post-metadata">

**Author:** ![marcus](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/marcus/32/53_2.png) [@marcus](https://forum.critterandguitari.com/u/marcus)\
**Post date:** [April 6, 2016, 8:05pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/4 "2016-04-06T20:05:57Z")

</div>

I’d be willing to loan my monome 128 to you guys if you want to try and make it happen.

---

<div class="post-metadata">

**Author:** ![KristofferLislegaard](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/kristofferlislegaard/32/306_2.png) [@KristofferLislegaard](https://forum.critterandguitari.com/u/KristofferLislegaard)\
**Post date:** [November 9, 2016, 11:01pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/5 "2016-11-09T23:01:10Z")

</div>

Man that would be so awesome! Monome + Organelle!

---

<div class="post-metadata">

**Author:** ![quilime](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/quilime/32/338_2.png) [@quilime](https://forum.critterandguitari.com/u/quilime)\
**Post date:** [December 21, 2016, 8:24pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/6 "2016-12-21T20:24:54Z")

</div>

I’m going to take a look at this. I have a 128 GrayScale and an Organelle and I’m really interested in getting them to talk to eachother!

---

<div class="post-metadata">

**Author:** ![jasonw22](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/jasonw22/32/130_2.png) [@jasonw22](https://forum.critterandguitari.com/u/jasonw22)\
**Post date:** [December 21, 2016, 8:36pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/7 "2016-12-21T20:36:59Z")

</div>

Cool! Let me know if you run into any trouble. Likely between yourself, myself and the rest of the [llllllll.co/monome.org](http://llllllll.co/monome.org) crew, we can sort it out.

---

<div class="post-metadata">

**Author:** ![quilime](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/quilime/32/338_2.png) [@quilime](https://forum.critterandguitari.com/u/quilime)\
**Post date:** [December 22, 2016, 6:31am UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/8 "2016-12-22T06:31:54Z")

</div>

Ok so I’ve got both libmonome and serialosc installed successfully, but still haven’t been able to connect over serial.

According to the [monome linux docs](http://monome.org/docs/linux/):

> You’ll also need to have the **usbserial** and **ftdi\_sio** kernel modules loaded before connecting your monome."

After running `lsmod`, I see that `usbserial` isn’t there

```
arc4 12695 2
rt2800usb 27448 0
rt2x00usb 21204 1 rt2800usb
rt2800lib 80945 1 rt2800usb
rt2x00lib 52781 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 332692 3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211 218867 2 mac80211,rt2x00lib
crc_ccitt 12824 1 rt2800lib
rfkill 24174 3 cfg80211
ftdi_sio 35579 0
ir_lirc_codec 13150 0
lirc_dev 20316 1 ir_lirc_codec
ir_mce_kbd_decoder 13047 0
ir_sanyo_decoder 12721 0
gpio_ir_recv 13139 0
sch_fq_codel 17578 6
ir_sony_decoder 12718 0
ir_rc6_decoder 12715 0
ir_rc5_sz_decoder 12724 0
ir_rc5_decoder 12715 0
ir_nec_decoder 12715 0
ir_jvc_decoder 12715 0

```

So maybe the `usbserial` module isn’t installed? Perhaps I’m running into a similar issue as the following:

> **[FS#46505 : \[linux\] should be built w CONFIG\_USB\_SERIAL\_CONSOLE=y to use usb...](https://bugs.archlinux.org/task/46505)**
>
> Flyspray, a Bug Tracking System written in PHP.

[https://bbs.archlinux.org/viewtopic.php?pid=1566230](https://bbs.archlinux.org/viewtopic.php?pid=1566230)

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [December 22, 2016, 11:39am UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/9 "2016-12-22T11:39:46Z")

</div>

I believe usbserial is built in. When you plug the monome in does it show up in /dev as /dev/ttyUSB0 or similar?

---

<div class="post-metadata">

**Author:** ![quilime](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/quilime/32/338_2.png) [@quilime](https://forum.critterandguitari.com/u/quilime)\
**Post date:** [December 22, 2016, 6:26pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/10 "2016-12-22T18:26:08Z")

</div>

Hi Owneo!

Yes, it shows up as `/dev/ttyUSB0`. If that means usbserial is loaded, then perhaps it’s an issue with `libmonome` or `serialosc`, the monome softwares. Although they seem to be installing correctly… Curiouser and curiouser… I feel like I’m close.

---

<div class="post-metadata">

**Author:** ![quilime](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/quilime/32/338_2.png) [@quilime](https://forum.critterandguitari.com/u/quilime)\
**Post date:** [December 22, 2016, 6:32pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/11 "2016-12-22T18:32:54Z")

</div>

Oh BTW I’ve also installed the [[comport](https://puredata.info/downloads/comport)] external, which appears to be installed correctly – but when I plugin the monome it prints this error in the PD window:

```
[comport] **ERROR** could not get termios-structure of device at /dev/ttyS0
[comport] opening serial port 0 failed!

```

Which is curious because the monome is at /dev/ttyUSB0, so perhaps an unrelated error and the monome is simply not showing up.

---

<div class="post-metadata">

**Author:** ![quilime](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/quilime/32/338_2.png) [@quilime](https://forum.critterandguitari.com/u/quilime)\
**Post date:** [December 22, 2016, 6:57pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/12 "2016-12-22T18:57:40Z")

</div>

Oops, looks like I’m getting somewhere with [comport]

[comport] set\_baudrate: Setting baud rate to 230400 with baudbits 0x1003  
[comport] opened serial line device 4 (/dev/ttyUSB0)

Baby steps. Sorry for spamming the thread every little step of the way. 🙂

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [December 22, 2016, 6:59pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/13 "2016-12-22T18:59:49Z")

</div>

that is strange… is serialosc running at same time? also you probably want to plug in monome then start Pd.

attached is a simple patch to do serial OSC right from Pd. I’ve used it with an Arduino. If the monome device sends and receives OSC over serial using SLIP encoding, this might work…

[serial-osc.pd](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/1X/6e9cf554b06f84ea8d787a20a2a209c8b000477a.pd) (385 Bytes)  
[o.io.slipserial.pd](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/1X/9ab100e6027ceb12c906030df8da39e2da51ccf0.pd) (273 Bytes)

---

<div class="post-metadata">

**Author:** ![quilime](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/quilime/32/338_2.png) [@quilime](https://forum.critterandguitari.com/u/quilime)\
**Post date:** [December 22, 2016, 7:09pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/14 "2016-12-22T19:09:05Z")

</div>

Hey now, now we’re getting somewhere. I’ve got LED’s lighting up! That’s a good sign. I’m gonna keep cracking at it!

---

<div class="post-metadata">

**Author:** ![quilime](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/quilime/32/338_2.png) [@quilime](https://forum.critterandguitari.com/u/quilime)\
**Post date:** [December 22, 2016, 8:10pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/15 "2016-12-22T20:10:14Z")

</div>

A bit offtopic, but when I unplug and plug a USB cable, PD automatically closes. Is there a way to change this behavior?

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [December 22, 2016, 9:04pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/16 "2016-12-22T21:04:00Z")

</div>

Pd doesn’t like it when MIDI devices disappear, so we decided to just have Pd quit if any USB devices get removed. This script gets called automatically when a USB device is removed

```
/root/scripts/usb-dev-removed.sh

```

To stop this behavior, you can rename or remove this script. First you have to remount the root file system because it is read only. You can do this by running

```
mount / -o remount,rw
```

---

<div class="post-metadata">

**Author:** ![quilime](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/quilime/32/338_2.png) [@quilime](https://forum.critterandguitari.com/u/quilime)\
**Post date:** [December 22, 2016, 9:54pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/17 "2016-12-22T21:54:50Z")

</div>

Alright! It’s working! I’ve moved everything to a repo. View the [README](https://github.com/quilime/organelle-monome/blob/master/README.md) for setup and install.

> **[quilime/organelle-monome](https://github.com/quilime/organelle-monome)**
>
> Monome Grid, and Aleph apps, and Serialosc installer and example patches for Critter + Guitari Organelle - quilime/organelle-monome

---

<div class="post-metadata">

**Author:** ![quilime](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/quilime/32/338_2.png) [@quilime](https://forum.critterandguitari.com/u/quilime)\
**Post date:** [December 23, 2016, 7:58am UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/18 "2016-12-23T07:58:39Z")

</div>

I’ve updated the README in the [repo](https://github.com/quilime/organelle-monome), added some Patches, and still updating the dependencies as I clean up. If anyone tries this and runs into issues, let me know.

Over all big success! Monome looks like it’s working with Organelle! 👍 Not bad for a day or two of enjoyable hacking. 🙂

Now I’ll set up a script to launch serialosc on boot, and some other small niceties. Really looking forward to using these two devices together!

---

<div class="post-metadata">

**Author:** ![KristofferLislegaard](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/kristofferlislegaard/32/306_2.png) [@KristofferLislegaard](https://forum.critterandguitari.com/u/KristofferLislegaard)\
**Post date:** [December 23, 2016, 8:44am UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/19 "2016-12-23T08:44:19Z")

</div>

Holy crap! Best christmas present ever!  
Will test this with my 256 when I get home after new years!

---

<div class="post-metadata">

**Author:** ![ogj](https://avatars.discourse-cdn.com/v4/letter/o/a87d85/32.png) [@ogj](https://forum.critterandguitari.com/u/ogj)\
**Post date:** [December 23, 2016, 2:00pm UTC](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233/20 "2016-12-23T14:00:26Z")

</div>

Thank you for such a great job. Will try it out (hope i will handle it;) asap. Have a great end of year.

[Next page](https://forum.critterandguitari.com/t/serialosc-monome-with-organelle/233.md?page=2)
