Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 11-03-2024, 04:04   #1
Registered User

Join Date: Sep 2023
Location: Cruising
Posts: 326
Send to peer not working on RPI4

I've just gone over to openplotter V4 beta based on Debian Bookworm. It creates a hotspot which a laptop & tablet connect to. Laptop sees & can send to peer to the tablet & vice versa but neither see the RPI after a scan. RPI sees both tablet & laptop but gives "http response is -1" when trying to send a waypoint. Everything else seems OK. Any ideas? Thnx
barcoMeCasa is offline   Reply With Quote
Old 12-03-2024, 02:03   #2
Registered User

Join Date: Sep 2023
Location: Cruising
Posts: 326
Re: Send to peer not working on RPI4

Anyone know what the "-1" response actually means?
Not getting anywhere with this so far
barcoMeCasa is offline   Reply With Quote
Old 16-03-2024, 02:11   #3
Registered User

Join Date: Sep 2023
Location: Cruising
Posts: 326
Re: Send to peer not working on RPI4

Still getting nowhere with this - is no one interested in why send to peer doesn't work??
Missing it as it's so useful.
Please....

Installed wireshark but really stumbling around in the dark here, seems that opencpn on the laptop sends some udp when scan is clicked >

28535 09:02:13.649718 10.42.0.59 224.0.0.251 MDNS 90 Standard query 0x0000 PTR opencpn-object-control-service, "QU" question

Wireshark not on the Pi yet, major learning curve with that but that's a good thing , any hints at all very gratefully received

thnx
barcoMeCasa is offline   Reply With Quote
Old 16-03-2024, 02:26   #4
Registered User

Join Date: Sep 2023
Location: Cruising
Posts: 326
Re: Send to peer not working on RPI4

Bit more info - running sudo opencpn in a terminal on the Pi I get >>

Code:
pi@openplotter:~ $ sudo opencpn
ALSA lib pcm_asym.c:105:(_snd_pcm_asym_open) capture slave is not defined
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pcm_a52.c:1001:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib conf.c:5670:(snd_config_expand) Unknown parameters {AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib pcm_asym.c:105:(_snd_pcm_asym_open) capture slave is not defined
ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
09:19:47: Debug: Device: 0: snd_rpi_hifiberry_dacplus: HiFiBerry DAC+ HiFi pcm512x-hifi-0 (hw:2,0)
09:19:47: Debug: Device: 0: snd_rpi_hifiberry_dacplus: HiFiBerry DAC+ HiFi pcm512x-hifi-0 (hw:2,0)
09:19:47: Debug: Device: 0: snd_rpi_hifiberry_dacplus: HiFiBerry DAC+ HiFi pcm512x-hifi-0 (hw:2,0)
09:19:47: Debug: Device: 0: snd_rpi_hifiberry_dacplus: HiFiBerry DAC+ HiFi pcm512x-hifi-0 (hw:2,0)
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

Generating RSA key...
Generating x509 certificate...
Writing key and certificate to disk...
Success!
Local IPv4 address: 10.42.0.1
Opened 1 sockets for mDNS service
Service mDNS: opencpn-object-control-service.:8000
Hostname: openplotter
Sending announce
Then after clicking scan >
Code:
enerating RSA key...
Generating x509 certificate...
Writing key and certificate to disk...
Success!
Local IPv4 address: 10.42.0.1
Opened 1 sockets for mDNS service
Service mDNS: opencpn-object-control-service.:8000
Hostname: openplotter
Sending announce
GLEW init success!nLocal IPv4 address: 10.42.0.1
Opened 1 sockets for mDNS query
Sending mDNS query : opencpn-object-control-service PTR
Reading mDNS query replies
Read 0 records
Closed sockets
Scan again & it sees the laptop instance
Code:
Local IPv4 address: 10.42.0.1
Opened 1 sockets for mDNS query
Sending mDNS query : opencpn-object-control-service PTR
Reading mDNS query replies
10.42.0.59:5353 : answer opencpn-object-control-service. PTR DESKTOP-E5V24RK.opencpn-object-control-service. rclass 0x1 ttl 10 length 18
Read 2 records
Closed sockets
But press send & textbox says http response -1 with no update in the termional.
What can it mean??
barcoMeCasa is offline   Reply With Quote
Old 16-03-2024, 18:42   #5
Registered User

Join Date: Nov 2012
Location: Steinhatchee, FL
Posts: 395
Re: Send to peer not working on RPI4

I'm not sure if I will be of any help. I've not tested this function since it was in Alpha, but I seem to recall that you need to enter a PIN on one (don't remember which end) of the peers to verify that you have control of both machines. This was to prevent unauthorized machines from updating your routes.
__________________
Bill
"If I were in a hurry, I would not have bought a sail boat." Me
Be Free is online now   Reply With Quote
Old 17-03-2024, 00:25   #6
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: Send to peer not working on RPI4

"response -1" is about no communication with the other machine. Mostly some network issues. I've not ever used the Rpi Hotspot for this feature so no experience.
For the moment Git master code is having issues with Rpi Bookworm so I can't test more.
btw: running O by "sudo opencpn" gives, for me, unexpected results on my Rpi. Try the "normal" app start way for a test.
Hakan is offline   Reply With Quote
Old 17-03-2024, 00:30   #7
Registered User

Join Date: Sep 2023
Location: Cruising
Posts: 326
Re: Send to peer not working on RPI4

Quote:
Originally Posted by Hakan View Post
"response -1" is about no communication with the other machine. Mostly some network issues. I've not ever used the Rpi Hotspot for this feature so no experience.
For the moment Git master code is having issues with Rpi Bookworm so I can't test more.
btw: running O by "sudo opencpn" gives, for me, unexpected results on my Rpi. Try the "normal" app start way for a test.

Thanx. Very helpful. It's v4 beta openplotter so early days.
Using an android phone hotspot doesn't seem to work with send to peer either but it won't let much though, even blocks ssh so not surprising.

So when one O tries to talk to another how does it do it? is there a UDP message on a port or anything I could try to find to nattow thngs down a bit?
barcoMeCasa is offline   Reply With Quote
Old 17-03-2024, 04:29   #8
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Send to peer not working on RPI4

mDNS for peer discovery (UDP multicast on port 5353), then HTTPs (TCP on port 8443 or 8444 depending on whether you use portable mode to run OpenCPN)
nohal is offline   Reply With Quote
Old 17-03-2024, 04:43   #9
Registered User

Join Date: Sep 2023
Location: Cruising
Posts: 326
Re: Send to peer not working on RPI4

Quote:
Originally Posted by nohal View Post
mDNS for peer discovery (UDP multicast on port 5353), then HTTPs (TCP on port 8443 or 8444 depending on whether you use portable mode to run OpenCPN)


There's always a positive, getting to grips with wireshark looks interesting if a bit of a learning curve to get started.

Will report any interesting findings.

Thnx.
barcoMeCasa is offline   Reply With Quote
Old 18-03-2024, 00:17   #10
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: Send to peer not working on RPI4

For info I've tried Send to peer while connected by a Android HotSpot.
Not yet tested a Rpi but one Win and the A itself.
Send to peer works from Win to A and vice versa. So no general Android Hotspot trouble with the mDNS function.

I though think OCPN on Win is sensitive here. I think the network need to be established when OCPN is started. And no Net shifting while O is running. Linux may not be that sensitive? I've never tried.
Hakan is offline   Reply With Quote
Reply

Tags
work


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Waypoint Send to GPS upload not working- need help Pandor OpenCPN 6 14-10-2022 19:51
opencpn 5.6.2 flatpak RPi4 Radar will not install dfansler OpenCPN 16 22-07-2022 21:30
Peer-to-peer text messaging offshore? mglonnro Marine Electronics 42 24-11-2018 16:27
Source for Grade B Peerless Peer-Lift shackles exMaggieDrum Anchoring & Mooring 11 06-10-2016 08:07
Using "Send to GPS" to send via IP? jim326 OpenCPN 10 30-03-2016 17:41

Advertise Here


All times are GMT -7. The time now is 23:31.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.