# Getting readable data from ping360 through python

**URL:** <https://discuss.bluerobotics.com/t/getting-readable-data-from-ping360-through-python/13268>\
**Category:** Blue Robotics Software\
**Created:** [November 25, 2022, 6:06pm UTC](https://discuss.bluerobotics.com/t/getting-readable-data-from-ping360-through-python/13268 "2022-11-25T18:06:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sindri](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@sindri](https://discuss.bluerobotics.com/u/sindri)\
**Post date:** [November 25, 2022, 6:07pm UTC](https://discuss.bluerobotics.com/t/getting-readable-data-from-ping360-through-python/13268/1 "2022-11-25T18:07:00Z")

</div>

Hello,  
I am having trouble trying to use the ping-python file to get any useful data from my ping360. I cant run simplePingExample.py without getting “Failed to initialize Ping!” and when trying to run ping360.py i get:

```auto
"ping360.control_auto_transmit() missing 6 positional arguments: 'transmit_frequency', 'number_of_samples', 'start_angle', 'stop_angle', 'num_steps' and 'deley'."   

```

by adding these missing arguments by hand i get a string of hex code. Example:

data(hex): `['0x42', 0x8f', '0xc1', '0xe4'......` and so on.

is this my length and confidence? does this tell me anything or am i doing something wrong.

The step by step guide for ping-python seems to not work for me. Any advice?  
Thanks in advance.

---

<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 28, 2022, 3:11am UTC](https://discuss.bluerobotics.com/t/getting-readable-data-from-ping360-through-python/13268/2 "2022-11-28T03:11:16Z")

</div>

Hi @sindri, welcome to the forum 🙂

> [@sindri](#):
>
> I cant run simplePingExample.py without getting “Failed to initialize Ping!”

[`simplePingExample.py`](https://github.com/bluerobotics/ping-python/blob/deployment/examples/simplePingExample.py) is for Ping1D devices (e.g. our [Ping Sonar](https://bluerobotics.com/store/sensors-sonars-cameras/sonar/ping-sonar-r2-rp/)), so it won’t work for Ping360 devices.

I’m [planning to add a similar example file for the Ping360](https://github.com/bluerobotics/ping-python/pull/123) (amongst several other improvements), but haven’t got around to it yet.

> [@sindri](#):
>
> when trying to run ping360.py i get:
> 
> “ping360.control\_auto\_transmit() missing 6 positional arguments: ‘transmit\_frequency’, ‘number\_of\_samples’, ‘start\_angle’, ‘stop\_angle’, ‘num\_steps’ and ‘deley’.”

The [`control_auto_transmit`](https://docs.bluerobotics.com/ping-protocol/pingmessage-ping360/#2602-auto_transmit) message is for planned functionality that is not yet available in the current Ping360 firmware. I thought we had put a guard clause in that example a while ago to only run that part if the firmware version was high enough, but it seems that is unfortunately not yet the case.

If you comment out [the auto-transmit section](https://github.com/bluerobotics/ping-python/blob/deployment/brping/ping360.py#L313-L336) the rest of the example should hopefully run as expected 🙂

> [@sindri](#):
>
> I am having trouble trying to use the ping-python file to get any useful data from my ping360.

Are you wanting to [programatically control the sonar, and analyse the data live](https://discuss.bluerobotics.com/t/ping-360-get-device-data/10195/2), or is the intent to view and record data (e.g. with [Ping Viewer](https://docs.bluerobotics.com/ping-viewer)) and [analyse the log files later](https://discuss.bluerobotics.com/t/access-ping360-data-for-post-processing-python/10416/2)?
