# Available ports

**URL:** <https://bristlemouth.discourse.group/t/available-ports/458>\
**Category:** Dev Kit Support\
**Created:** [December 15, 2024, 8:08pm UTC](https://bristlemouth.discourse.group/t/available-ports/458 "2024-12-15T20:08:39Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![matt001k](https://yyz1.discourse-cdn.com/flex029/user_avatar/bristlemouth.discourse.group/matt001k/32/497_2.png) [@matt001k](https://bristlemouth.discourse.group/u/matt001k)\
**Post date:** [January 3, 2025, 6:50pm UTC](https://bristlemouth.discourse.group/t/available-ports/458/21 "2025-01-03T18:50:30Z")

</div>

@jagdish, it seems you have placed the firmware properly on the SD card, but did not activate the transfer to flash new firmware.  
Following the link to guide 3 in my previous response, you must initiate DFU with the following command from Spotter:

```auto
bridge dfu <name of file> <target node id> 120000 force

```

To add onto your steps after “Spotter reboots”:

- Connect a USB-C cable between your Spotter and your PC
- Run `python3 -m serial` from your terminal and connect to the port with the name “Spotter”
- Execute the following command: `bridge dfu <name of file> <target node id> 120000 force` replacing `<name of file>` with the name of the Bristlemouth firmware binary you placed on the SD card and `<node id>` with the Node ID of the Bristlemouth dev kit you are attempting to flash firmware to.

---

<div class="post-metadata">

**Author:** ![jagdish](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jagdish](https://bristlemouth.discourse.group/u/jagdish)\
**Post date:** [January 3, 2025, 9:22pm UTC](https://bristlemouth.discourse.group/t/available-ports/458/22 "2025-01-03T21:22:42Z")

</div>

Thanks! This was very helpful.

I can now flash the new FW and run it. No compile error but seems like a run time error with this msg - ‘htuSamplerGetLatest returned false’. what could be wrong?

---

<div class="post-metadata">

**Author:** ![jagdish](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jagdish](https://bristlemouth.discourse.group/u/jagdish)\
**Post date:** [January 4, 2025, 4:35am UTC](https://bristlemouth.discourse.group/t/available-ports/458/23 "2025-01-04T04:35:09Z")

</div>

This is the output I get on Dev Kit serial port -

pressure | tick: 112209, rtc: 2025-01-04T00:55:19.304, temp: 20.638418, pressure: 999.216370

power | tick: 112561, rtc: 2025-01-04T00:55:19.656, addr: 67, voltage: 0.003200, current: -0.000250

hum-temp from user code: H: 45.057823, T:20.638418

**htuSamplerGetLatest returned false.**

power | tick: 112763, rtc: 2025-01-04T00:55:19.859, addr: 65, voltage: 23.952000, current: -0.000250

This is what I am supposed to get -

power | tick: 54385, rtc: 0, addr: 67, voltage: 0.003200, current: -0.000250 power | tick: 54387, rtc: 0, addr: 65, voltage: 23.956800, current: 0.000000 hum\_temp | tick: 56364, rtc: 0, hum: 52.593750, temp: 20.761015 hum-temp stats | count: 15/15, min\_T: 20.750290, max\_T: 20.771740, min\_H: 52.593750, max\_H: 53.661865 pressure | tick: 56384, rtc: 0, temp: 20.610001, pressure: 1016.700012

---

<div class="post-metadata">

**Author:** ![jagdish](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jagdish](https://bristlemouth.discourse.group/u/jagdish)\
**Post date:** [January 4, 2025, 7:45pm UTC](https://bristlemouth.discourse.group/t/available-ports/458/24 "2025-01-04T19:45:01Z")

</div>

Pls ignore my 2 previous msgs. I have resolved the run time issue. I am now getting the following output inline with what the documentation says except RTC is not set to 0. Would like to know why.

ower | tick: 89236, rtc: 2025-01-04T18:12:15.398, addr: 65, voltage: 23.947201, current: -0.000250

hum\_temp | tick: 89239, rtc: 2025-01-04T18:12:15.402, hum: 43.890522, temp: 19.571093

pressure | tick: 89241, rtc: 2025-01-04T18:12:15.406, temp: 19.572647, pressure: 1006.592590

hum-temp stats | count: 15/15, min\_T: 19.550865, max\_T: 19.571093, min\_H: 43.627304, max\_H: 44.186329

power | tick: 89643, rtc: 2025-01-04T18:12:15.804, addr: 67, voltage: 0.003200, current: -0.000250

---

<div class="post-metadata">

**Author:** ![jagdish](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jagdish](https://bristlemouth.discourse.group/u/jagdish)\
**Post date:** [January 5, 2025, 6:01pm UTC](https://bristlemouth.discourse.group/t/available-ports/458/25 "2025-01-05T18:01:03Z")

</div>

I think I know why rtc is not zero: it’s b/c Spotter has acquired satellite lock. Pls confirm.

How do I test satellite communication without using cellular as backup, how do I modify this cmd - BM\_NETWORK\_TYPE\_CELLULAR\_IRI\_FALLBACK

---

<div class="post-metadata">

**Author:** ![matt001k](https://yyz1.discourse-cdn.com/flex029/user_avatar/bristlemouth.discourse.group/matt001k/32/497_2.png) [@matt001k](https://bristlemouth.discourse.group/u/matt001k)\
**Post date:** [January 6, 2025, 7:15pm UTC](https://bristlemouth.discourse.group/t/available-ports/458/26 "2025-01-06T19:15:36Z")

</div>

@jagdish, glad you were able to get your issue resolved!  
RTC is not zero because Spotter has acquired the time and published the time data on the `spotter/utc-time` topic (which the development kit is subscribed to). For more information about how simple pub/sub works, take a look at this [document](https://bristlemouth.notion.site/Middleware-Protocol-0f2bdf9abaca49a488fbe52e6a92cf96).

Currently, `BM_NETWORK_TYPE_CELLULAR_IRI_FALLBACK` is the best way to transmit data over satellite. If your spotter has a cellular modem it will attempt to send with cellular at first,  
if message fails to send it will then fallback to satellite.  
If it does not have a cellular modem,  
the message will immediately be sent using satellite.

If you want to by-pass cellular on a cellular enabled Spotter,  
what I would recommend doing is the following:

1. Connect to spotter over USB-C and run `python -m serial`
2. Send the following commands to Spotter:  
a. `cfg cen 0`  
b. `cfg save`
3. The Spotter will save this new configuration and then reset, when it does reconnect with `python -m serial` and then run the command: `cfg` and search the list for the parameter `cen` and make sure it is set to zero.

When `cen` is set to zero the spotter will only use satellite communications.

Let me know if you need anything else!

---

<div class="post-metadata">

**Author:** ![jagdish](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jagdish](https://bristlemouth.discourse.group/u/jagdish)\
**Post date:** [January 6, 2025, 7:36pm UTC](https://bristlemouth.discourse.group/t/available-ports/458/27 "2025-01-06T19:36:13Z")

</div>

Excellent. V helpful. Thanks!

I don’t have the activation code. Is this something you can provide or do I have to contact Sofar?

---

<div class="post-metadata">

**Author:** ![matt001k](https://yyz1.discourse-cdn.com/flex029/user_avatar/bristlemouth.discourse.group/matt001k/32/497_2.png) [@matt001k](https://bristlemouth.discourse.group/u/matt001k)\
**Post date:** [January 6, 2025, 10:02pm UTC](https://bristlemouth.discourse.group/t/available-ports/458/28 "2025-01-06T22:02:36Z")

</div>

@jagdish, that is something you should reach out to [support@sofarocean.com](mailto:support@sofarocean.com) about.

---

<div class="post-metadata">

**Author:** ![jagdish](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jagdish](https://bristlemouth.discourse.group/u/jagdish)\
**Post date:** [January 7, 2025, 6:08pm UTC](https://bristlemouth.discourse.group/t/available-ports/458/29 "2025-01-07T18:08:47Z")

</div>

Thanks. Was able to get the activation code from Support @ Sofar.

Do you have documentation on how to connect external sensors using RS485?

Thanks,  
Jagdish

---

<div class="post-metadata">

**Author:** ![matt001k](https://yyz1.discourse-cdn.com/flex029/user_avatar/bristlemouth.discourse.group/matt001k/32/497_2.png) [@matt001k](https://bristlemouth.discourse.group/u/matt001k)\
**Post date:** [January 7, 2025, 9:24pm UTC](https://bristlemouth.discourse.group/t/available-ports/458/30 "2025-01-07T21:24:18Z")

</div>

[Here](https://bristlemouth.notion.site/Bristlemouth-Dev-Kit-Guide-Integrating-an-RS485-Serial-Sensor-10e7e7b1d46e804fad00e5edacdc2975) is some documentation on connecting an external RS485 sensors to the dev kit!

---

<div class="post-metadata">

**Author:** ![jagdish](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jagdish](https://bristlemouth.discourse.group/u/jagdish)\
**Post date:** [January 9, 2025, 5:33am UTC](https://bristlemouth.discourse.group/t/available-ports/458/31 "2025-01-09T05:33:47Z")

</div>

Are the hex msgs 18 or 20 bytes? I am getting an error when running the decoder. Thanks!

---

<div class="post-metadata">

**Author:** ![matt001k](https://yyz1.discourse-cdn.com/flex029/user_avatar/bristlemouth.discourse.group/matt001k/32/497_2.png) [@matt001k](https://bristlemouth.discourse.group/u/matt001k)\
**Post date:** [January 9, 2025, 5:46pm UTC](https://bristlemouth.discourse.group/t/available-ports/458/32 "2025-01-09T17:46:10Z")

</div>

Could you provide a bit more context on what type of message?  
What decoder are you attempting to run?  
I assume you are attempting to publish/subscribe to topics on the network?

A code snippet could also be of great help if you are able to share it.

---

<div class="post-metadata">

**Author:** ![jagdish](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jagdish](https://bristlemouth.discourse.group/u/jagdish)\
**Post date:** [January 11, 2025, 5:37am UTC](https://bristlemouth.discourse.group/t/available-ports/458/33 "2025-01-11T05:37:29Z")

</div>

Sorry, there was an error in my code. It works fine. Thanks.

New topic: In the Bristlemouth Dev Kit Guide: Integrating an RS232 Serial Sensor it refers to **serial\_payload\_example** app. Where do I find this?

---

<div class="post-metadata">

**Author:** ![matt001k](https://yyz1.discourse-cdn.com/flex029/user_avatar/bristlemouth.discourse.group/matt001k/32/497_2.png) [@matt001k](https://bristlemouth.discourse.group/u/matt001k)\
**Post date:** [January 13, 2025, 7:01pm UTC](https://bristlemouth.discourse.group/t/available-ports/458/34 "2025-01-13T19:01:19Z")

</div>

The location of that project is at `src/apps/bm_devkit/serial_payload_example`!

[Previous page](https://bristlemouth.discourse.group/t/available-ports/458.md?page=1)
