# Sonars Data Collecting

**URL:** <https://discuss.bluerobotics.com/t/sonars-data-collecting/11027>\
**Category:** Ping Sonar Devices\
**Created:** [November 18, 2021, 2:22pm UTC](https://discuss.bluerobotics.com/t/sonars-data-collecting/11027 "2021-11-18T14:22:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ugurdemirezen](https://avatars.discourse-cdn.com/v4/letter/u/9de053/32.png) [@ugurdemirezen](https://discuss.bluerobotics.com/u/ugurdemirezen)\
**Post date:** [November 18, 2021, 2:22pm UTC](https://discuss.bluerobotics.com/t/sonars-data-collecting/11027/1 "2021-11-18T14:22:43Z")

</div>

The ROV I use has three sonars. Is there a way I can collect (combine etc.) this data into a file to avoid lag when retrieving data from these sonars? 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:** [November 19, 2021, 7:44am UTC](https://discuss.bluerobotics.com/t/sonars-data-collecting/11027/2 "2021-11-19T07:44:08Z")

</div>

Hi @ugurdemirezen, are they three [Ping Sonar Echosounders](https://bluerobotics.com/store/sensors-sonars-cameras/sonar/ping-sonar-r2-rp/) (presumably facing in different directions), or sonars of different types/brands?

Assuming you’re using three Ping Sonars, you could write a program to get a measurement/ping profile from each one, one at a time with the other two [disabled](https://docs.bluerobotics.com/ping-protocol/pingmessage-ping1d/#1006-set_ping_enable) (to avoid interference), and store those results in whatever format you want. As per the product page/technical details, you can interface with Ping devices using [Ping Protocol](https://docs.bluerobotics.com/ping-protocol/), which we provide [Python](https://github.com/bluerobotics/ping-python), [C++](https://github.com/bluerobotics/ping-cpp), and [Arduino](https://github.com/bluerobotics/ping-arduino) libraries for.

Note that if you’re reading from the sonars with your own program then you won’t also be able to view the profiles in Ping Viewer unless you also implement the relevant communication requirements between your program and Ping Viewer. If you don’t want to do that but still want a display then you’ll likely need to make your own, either as a topside program that connects to your sonar program, or as a webpage that’s served by your sonar program.

---

<div class="post-metadata">

**Author:** ![ugurdemirezen](https://avatars.discourse-cdn.com/v4/letter/u/9de053/32.png) [@ugurdemirezen](https://discuss.bluerobotics.com/u/ugurdemirezen)\
**Post date:** [November 20, 2021, 11:20am UTC](https://discuss.bluerobotics.com/t/sonars-data-collecting/11027/3 "2021-11-20T11:20:17Z")

</div>

> [@EliotBR](#):
>
> Assuming you’re using three Ping Sonars, you could write a program to get a measurement/ping profile from each one, one at a time with the other two [disabled](https://docs.bluerobotics.com/ping-protocol/pingmessage-ping1d/#1006-set_ping_enable) (to avoid interference), and store those results in whatever format you want.

I will use three different sonar’s data but I guess it will be same code but different sonar ID’s.

---

<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:** [November 22, 2021, 7:27am UTC](https://discuss.bluerobotics.com/t/sonars-data-collecting/11027/4 "2021-11-22T07:27:42Z")

</div>

> [@ugurdemirezen](#):
>
> I guess it will be same code but different sonar ID’s.

Yes, you should be able to control several from one device, although you’ll likely need to [set the IDs](https://docs.bluerobotics.com/ping-protocol/pingmessage-ping1d/#1000-set_device_id) individually before they’re able to all be connected at once 🙂
