# Information about ping sonar altimeter and echosounder

**URL:** <https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420>\
**Category:** Ping Sonar Devices\
**Created:** [June 29, 2022, 2:32pm UTC](https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420 "2022-06-29T14:32:10Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jadi](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jadi](https://discuss.bluerobotics.com/u/jadi)\
**Post date:** [June 29, 2022, 2:32pm UTC](https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420/1 "2022-06-29T14:32:10Z")

</div>

I developed an application for the control of a submarine, I want to know if there is a means of communication between my interface and the ping-viewer.

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [June 29, 2022, 8:39pm UTC](https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420/2 "2022-06-29T20:39:08Z")

</div>

Hi @jadi, welcome to the forum 🙂

Generally other applications don’t need to communicate with Ping Viewer, but you may wish to communicate with the device using ping-protocol messages - we provide a variety of software libraries that can help with that, which are linked to in the Technical Details on the [Ping Sonar](https://bluerobotics.com/store/sensors-sonars-cameras/sonar/ping-sonar-r2-rp/) product page.

If that’s not clear, or doesn’t answer your question, feel free to follow up with clarification of what you’re trying to achieve, and the hardware, softwares (including versions), and connections that are currently involve 🙂

---

<div class="post-metadata">

**Author:** ![jadi](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jadi](https://discuss.bluerobotics.com/u/jadi)\
**Post date:** [June 30, 2022, 11:44am UTC](https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420/3 "2022-06-30T11:44:16Z")

</div>

Hello Eliot, thank you for this answer indeed I would like to have more explanation concerning the protocol to follow. My application is made in python 3 for the server which allows to retrieve data via local socket, in html/css and Javascript and electron js for the back-end. I’m trying to figure out how to translate the dots once sent. My colleague analyzed the arduino code a bit for sending coordinates.

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [July 4, 2022, 8:54am UTC](https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420/4 "2022-07-04T08:54:43Z")

</div>

> [@jadi](#):
>
> I would like to have more explanation concerning the protocol to follow. My application is made in python 3

I’d recommend you take a look at our [ping-python](https://github.com/bluerobotics/ping-python) library, which includes a simple example for interacting with the sonar, and an [api reference](https://docs.bluerobotics.com/ping-python/classbrping_1_1ping1d_1_1Ping1D.html) for more general communications 🙂

---

<div class="post-metadata">

**Author:** ![jadi](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jadi](https://discuss.bluerobotics.com/u/jadi)\
**Post date:** [July 5, 2022, 11:27am UTC](https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420/5 "2022-07-05T11:27:14Z")

</div>

Thanks i will take a look at it.

---

<div class="post-metadata">

**Author:** ![jadi](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jadi](https://discuss.bluerobotics.com/u/jadi)\
**Post date:** [July 6, 2022, 12:49pm UTC](https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420/6 "2022-07-06T12:49:40Z")

</div>

Hello eliot, I come back to the news. I understood a bit the protocol for sending data and I was able to retrieve it via javascript. The problem is that I can’t figure out how the radar curve is plotted and displayed

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [July 8, 2022, 9:09am UTC](https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420/7 "2022-07-08T09:09:44Z")

</div>

Hi @jadi,

Ping Viewer is open source, so you’re welcome to refer to that implementation, but it’s written in C++ with Qt. We don’t currently have code for how to plot and display a sonar plot in javascript.

Each profile is an array of 8-bit data (intensity values from 0-255), and we plot it in Ping Viewer by using the specified speed of sound in water to convert the intensity times to distances, and then apply a gradient to each measurement value.

---

<div class="post-metadata">

**Author:** ![jadi](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jadi](https://discuss.bluerobotics.com/u/jadi)\
**Post date:** [August 1, 2022, 11:17am UTC](https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420/8 "2022-08-01T11:17:11Z")

</div>

Hello Eliot, it’s me again. I tried to redirect the ping viewer application on my command interface and to overlay the different windows. In your illustration video is there a cable that is connected to the pc for displaying the application interface? Thanks

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [August 2, 2022, 11:41am UTC](https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420/9 "2022-08-02T11:41:18Z")

</div>

Hi @jadi,

I’m not certain what you’re asking about here, so you may need to clarify if my response isn’t helpul.

> [@jadi](#):
>
> I tried to redirect the ping viewer application on my command interface and to overlay the different windows.

If it’s relevant, Ping Viewer has an [always on top mode](https://docs.bluerobotics.com/ping-viewer/display-settings/) that allows keeping the Ping Viewer application in front of anything else on your screen.

> [@sak](#):
>
> In your illustration video is there a cable that is connected to the pc for displaying the application interface?

The Ping Sonar is not a wireless sensor, so there needs to be some form of connection between the sonar and the computer that it’s communicating with. On our ROVs that’s generally set up [like this](https://bluerobotics.com/learn/ping-installation-guide-for-the-bluerov2/), where there’s a USB connection to the onboard Raspberry Pi, which then forwards that connection to a UDP endpoint that Ping Viewer can connect to from the topside computer through the tether.

---

<div class="post-metadata">

**Author:** ![jadi](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jadi](https://discuss.bluerobotics.com/u/jadi)\
**Post date:** [August 2, 2022, 12:14pm UTC](https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420/10 "2022-08-02T12:14:10Z")

</div>

Hello Eliot, yes but in the settings the opacity only stops at 70% and that doesn’t suit me.

is the transmission of this connection to a UDP endpoint wired or over the network?

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [August 2, 2022, 12:36pm UTC](https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420/11 "2022-08-02T12:36:31Z")

</div>

> [@jadi](#):
>
> in the settings the opacity only stops at 70% and that doesn’t suit me.

Are you wanting it even more transparent than that? That seems like it would be quite difficult to see.

If it’s important to you to have custom values you can [create a custom build](https://docs.bluerobotics.com/ping-viewer/build-instructions/) where you [modify the opacity options](https://github.com/bluerobotics/ping-viewer/blob/9dfa73ed98a470d763477b6405a490b7328e1c5d/qml/DisplaySettings.qml#L82).

> [@jadi](#):
>
> is the transmission of this connection to a UDP endpoint wired or over the network?

That depends on your setup, but since wifi doesn’t work through water the majority of connections will at least be tethered to the surface, and are generally wired directly to the topside computer.

---

<div class="post-metadata">

**Author:** ![jadi](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jadi](https://discuss.bluerobotics.com/u/jadi)\
**Post date:** [August 2, 2022, 12:56pm UTC](https://discuss.bluerobotics.com/t/information-about-ping-sonar-altimeter-and-echosounder/12420/12 "2022-08-02T12:56:07Z")

</div>

Ok I’ll try to exploit, because the process does not suit me so much.
