giuliomoro Thanks for the read:
I see there is not much focus on the ad-hoc network, and it actually took a while for me to get it working properly. Also the for the access point I did follow your article:
and had a hard time getting it to consistently bring itself up, potentially due to my lack of linux experience as well, but after a whole lot of trial and error, it seems the following addition to /etc/network/interfaces helps it remain consistent on reboot:
allow-hotplug wlan2
iface wlan2 inet static
address 192.168.30.1
netmask 255.255.255.0
up hostapd /etc/hostapd/hostapd.conf ifup wlan2
I had tried some other things involving systemd and scripts, but had no luck.
As for the ad hoc, now that I have it consistently working it is rock solid and very fast. I followed the following article:
[https://wiki.debian.org/WiFi/AdHoc]
I'm using ubuntu on my laptop with a wifi usb dongle and it is just very stable and fast. I'm next going to figure out a way if possible to enable ad-hoc on the arduino and see if the jitter is low enough for a solid instrument. If not, I may as mentioned before combine multiple wifi devices for further latency and jitter reduction.