Placed my order for the cape the other day. woo hoo!
I'm planning a PD project to be as far along as I can get it by the time the cape gets here.

My original pd patch had upward to 30 ui elements.
I'm shying away from trying to implement all those switches and knobs in hardware.
I have re-developed the patch to be controlled via a javascript/php/osc ui.
(ui for control only, no real time requirements)
I want to connect via my phone or tablet to the ui on a webpage residing on the bbb via http (or bluetooth even).
Has anyone installed xampp or other lamp stack to be used this way as a sort of hot spot for wireless control?

there already is a node.js webserver running on the board, would that work?
Also, some examples of OSC communication, using sliders which show up in the web GUI, in examples/05-Communication/scope-sliders/. This is more of a proof of concept - as of now - and requires some tricks to be used with Pd, but can be done!

Thanks, I think the library i'm using can be made to work with node.js. It wasn't finished yet anyway so i'm glad I asked.

Hi! Giuliomoro, thanks for getting back to me. I guess some research would have turned up an answer to my initial question (sorry). Forgive noobieness. I am geeking out over the possibilities of this platform but can't do any meaningful development on the audio end of it until my cape gets here, so i'm playing with the ui end instead.

Where would I place web files (html/css/js) in order to be able to see them at 192.168.7.2/myproject? I'm assuming i will also need to implement the osc objects i.e. [OSC], [OSCroute] etc. in the version of PD vanilla on the bela. Are these the tricks I would need to use osc with pd or are there more? I don't think I'm seeing all the files from the BELABOOT mounted on my osx desktop. will I need to ssh in to get to all the linux stuff?

Andy

Files should go to ~/Bela/IDE/public I believe, @LiamDonovan ?

You do not see the linux partition when connecting the bbb unless your host OS can read ext4 partitions. There are ways around it (fuse osx, sshfs on mac).

Vanilla comes with some OSC objects that shouldprobably be working atm. but I have to fix all the [netsend] and [netreceive] stuff in libpd which is only partially working atm (socket i/o was performed in the audio thread. Baaaad! )

Yes ~/Bela/IDE/public is the right directory, just like the scope page.

@adowty this sounds like a cool project, I would be interested to see what you come up with if you would be happy to share!

5 days later

that looks like the right adapter. Plug it in, reboot and run

ifconfig -a

What's the output?

wlan2 Link encap:Ethernet HWaddr 10:da:43:08:89:12

inet addr:192.168.4.1 Bcast:192.168.4.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:2810 errors:0 dropped:0 overruns:0 frame:0
TX packets:273 errors:0 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1038423 (1014.0 Ki😎 TX bytes:34777 (33.9 Ki😎

I see that it is sending and receiving packets so that's good. I'm sure it's about my router, but ultimately I want to connect directly with my phone.
what i really want to do is this:
https://fleshandmachines.wordpress.com/2012/10/04/wifi-acces-point-on-beaglebone-with-dhcp/

basically, install instructions for hostapd, which is giving errors:

Get:1 http://ftp.us.debian.org/debian/ jessie/main libnl-genl-3-200 armhf 3.2.24-2 [18.3 kB]
Get:2 http://ftp.us.debian.org/debian/ jessie/main libnl-3-200 armhf 3.2.24-2 [51.1 kB]
Get:3 http://ftp.us.debian.org/debian/ jessie/main libnl-route-3-200 armhf 3.2.24-2 [101 kB]
Err http://ftp.us.debian.org/debian/ jessie/main hostapd armhf 1:2.3-1+deb8u3
404 Not Found [IP: 2610:148:1f10:3::89 80]
Fetched 171 kB in 0s (247 kB/s)
Failed to fetch http://ftp.us.debian.org/debian/pool/main/w/wpa/hostapd_2.3-1+deb8u3_armhf.deb 404 Not Found [IP: 2610:148:1f10:3::89 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

any ideas?

While the board is connected to the internet (e.g.: through your router) run

 apt-get update

Before your run apt-get install

Also make sure the date on the board is correct. Opening the IDE while the board is running should set the date ( until the next reboot )

disco!!!

should I set the wlan2 address, network and netmask to the same addresses as the usb0 adapter?

thanks for the help.

No you should not, that could prevent the usb connection from working.

From what I can see, in combination with the tutorial you linked to, your network seems to be ok. Have you tried connecting to it from another device? Unless you go through the second step of the tutorial(dhcp), you will have to manually set the ip address on the device you use to connect to the network (e.g.: 192.168.4.2)

It works. I am seeing the IDE from my phone. woohoo. thanks for making yourselves available. I will be happy to take some video and photos to show my project once it is finished. This puts me a big step closer.
Thanks again.
A.D.

a month later

Hello,
My board came in just in time for me to play over the holidays. Thank you, I'm so excited.
....so, the osc objects in the current version of pd are reliant on [netreceive]
The message from the ide is: netreceive is not supported by Bela, use the C++ wrapper instead.
I see the C++ osc example but has trail been blazed for getting the messages into pd?

btw, I'm currently trying to use a javascript library called NexusUI to make web objects that broadcast osc messages.
http://nexusosc.com
It uses AJAX to relay messaging with a file called nexusOSCRelay.php. It worked on a MEAN stack that I set up on my desktop so I thought I would move ahead with testing on the bela webserver. I'm hitting the page on the webserver with my phone and the objects are rendering ok. If it was working (ports defined correctly, etc.), would I see print messages in the osc C++ example as they came in from the webpage?

Happy Holidays to all at Bela.

    adowty glad to hear you got your board before Christmas!

    When I made the scope-sliders example for Bela I considered using nexusOSC to do it, but I decided against it for the following reasons:

    • AJAX is much slower and less efficient than a websocket, especially over a local connection
    • I don't like PHP, I'm not sure its even installed on the Bela image by default, and all of the Bela web server code is programmed in node.js so I didn't want to add another language to the mix.

    When you change the scope-sliders, some js running in the browser sends the data over a websocket to node.js on the board which then relays it over OSC to Bela. My recommendation would be to do something similar, using the OSC example here as a starting point. You could still use nexusUI for the GUI objects with this method. We are actually planning on separating the sliders from the scope at some point which would make this all a lot easier, though that hasn't happened yet.

    That said, the nexusOSC route should work fine, and yes I think you should see your OSC messages printed to the IDE console if everything is set up right, though it will only work if the format of your OSC messages is exactly as the code expects.

    Once you've got it working with the C++ example hopefully @giuliomoro can point you to some advice on getting it working with PD.

      Hi guys, I want to set up a symbolic link to the public folder to make development faster.
      what is the path to the files I see in BELABOOT, the volume I see on my desktop?

      ln -s ~/Bela/IDE/public/mywebfolder /path/to/BELABOOT

      it's /boot/uboot. I am working now on netsend/neterceive on libpd.