me-no-dev / RasPiArduino

Arduino Framework for RaspberryPI
332 stars 75 forks source link

cannot network upload to rPi #100

Open marcmerlin opened 5 years ago

marcmerlin commented 5 years ago

I can ssh to my rPi just fine, but tools/port only shows ttyUSB0, no network option.

I can also see this advertisement from the board

20:45:19.829254 IP 192.168.205.194.5353 > 224.0.0.251.5353: 0 [2n] ANY (QM)? rPiBp._arduino._tcp.local. (93)
20:45:20.138344 IP 192.168.205.194.5353 > 224.0.0.251.5353: 0*- [0q] 6/0/0 (Cache flush) TXT "board=bplus", PTR rPiBp._arduino._tcp.local., (Cache flush) SRV rPiBp.local.:22 0 0, (Cache flush) AAAA fe80::f3ed:6462:f006:cd7a, (Cache flush) A 192.168.205.194, PTR _arduino._tcp.local. (182)
20:45:20.443880 IP 192.168.205.194.5353 > 224.0.0.251.5353: 0*- [0q] 1/0/0 (Cache flush) PTR rPiBp.local. (109)
20:45:20.444050 IP 192.168.205.194.5353 > 224.0.0.251.5353: 0*- [0q] 1/0/0 (Cache flush) PTR rPiBp.local. (65)
20:45:21.058559 IP 192.168.205.194.5353 > 224.0.0.251.5353: 0*- [0q] 6/0/0 (Cache flush) TXT "board=bplus", PTR rPiBp._arduino._tcp.local., (Cache flush) SRV rPiBp.local.:22 0 0, (Cache flush) AAAA fe80::f3ed:6462:f006:cd7a, (Cache flush) A 192.168.205.194, PTR _arduino._tcp.local. (182)
20:45:22.287708 IP 192.168.205.194.5353 > 224.0.0.251.5353: 0*- [0q] 2/0/0 (Cache flush) PTR rPiBp.local., (Cache flush) AAAA fe80::f3ed:6462:f006:cd7a (137)
20:45:22.287875 IP 192.168.205.194.5353 > 224.0.0.251.5353: 0*- [0q] 2/0/0 (Cache flush) PTR rPiBp.local., (Cache flush) A 192.168.205.194 (81)
20:45:23.208668 IP 192.168.205.194.5353 > 224.0.0.251.5353: 0*- [0q] 6/0/0 (Cache flush) TXT "board=bplus", PTR rPiBp._arduino._tcp.local., (Cache flush) SRV rPiBp.local.:22 0 0, (Cache flush) AAAA fe80::f3ed:6462:f006:cd7a, (Cache flush) A 192.168.205.194, PTR _arduino._tcp.local. (182)

How does the rPi avahi thing tell my linux laptop that it's there and it accepts uploads? How do I debug it likely not working?

root@rPiBp:/etc/avahi/services# psg avahi
avahi      724  0.0  0.7   6384  3184 ?        Ss   04:45   0:00 avahi-daemon: running [rPiBp.local]
avahi      725  0.0  0.3   6384  1556 ?        S    04:45   0:00 avahi-daemon: chroot helper
root@rPiBp:/etc/avahi/services# cat arduino.service 
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
  <name replace-wildcards="yes">%h</name>
  <service>
    <type>_arduino._tcp</type>
    <port>22</port>
    <txt-record>board=bplus</txt-record>
  </service>
</service-group>
marcmerlin commented 5 years ago
saruman:/etc/avahi/services$ avahi-browse --all
+  wlan0 IPv6 rPiBp                                         _arduino._tcp        local
(...)

Ok, that shows avahi is working on the rPi, that's good. So it's arduino's fault for not finding it, not sure why.