giuliomoro
Thank you for getting back to me Giulio. I’m glad to hear that its possible to use the IDE on an ad-hoc network. So I’ve tried a couple of things mentioned in the forum links you shared. Just to note I changed the network name (mentioned to avoid confusion with the above).
So the current situation is that I have the IP address which is static that I specified in the /etc/network/interfaces file. This IP address shows when I type ip a
in the terminal as seen below:
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 1c:bf:ce:bf:47:7c brd ff:ff:ff:ff:ff:ff
inet 169.254.128.10/24 brd 169.254.128.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::1ebf:ceff:febf:477c/64 scope link
valid_lft forever preferred_lft forever
I called iwlist wlan0 scanning
which returned a list of cells, the relevant cell is below:
Cell 01 - Address: 3E:40:E4:7C:B8:9C
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=70/70 Signal level=0 dBm
Encryption key:off
ESSID:"DroneNetwork"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Ad-Hoc
Extra:tsf=0000000000000000
Extra: Last beacon: 65020ms ago
IE: Unknown: 000C44726F6E654E6574776F726B
IE: Unknown: 010882040B160C121824
IE: Unknown: 030101
IE: Unknown: 06020000
IE: Unknown: 32043048606C
IE: Unknown: DD070050F202000100
I added the following from the suggestion in the other thread:
DefaultDependencies=no
After=network-online.target
Conflicts=shutdown.target
[Service]
Type=simple
# EnvironmentFile=-/path/to/file # optionally, declare IF=wlan123 in /path/to/file instead of hard-coding it below
ExecStart=/bin/bash -c 'IF=wlan0; while /sbin/ip address show dev $IF | /usr/bin/paste -sd_ | /bin/grep -v "\<inet6\>" 2>/dev/null; do /sbin/ifdown $IF; /sbin/ifup $IF; /bin/sleep 1; done; echo "$IF seems to have an IP: `/sbin/ip address show dev $IF | grep \"\<inet\>\" | sed \"s/ \{1,\}/ /g\"`"'
[Install]
WantedBy=default.target
using this command nano /lib/systemd/system/netfix.service
. Although I’m still fairly new to using terminal so I may have needed to implement this differently rather than inside the file itself.
So I’m not too sure what the issue is at this point. Much like before when I'm connected to the 'DroneNetwork' (device network) on my laptop and the Bela is plugged into the laptop usb port. The ip address works and the IDE comes up in the browser. As soon as it's not connected to my usb port on the laptop and its connected to external power with the laptop still connected to the network. The IDE no longer shows up and complains about no internet etc. It's quite weird considering that both the IP address and network are showing up.