Lora-net / sx1302_hal

SX1302/SX1303 Hardware Abstraction Layer and Tools (packet forwarder...)
Other
219 stars 272 forks source link

add chip model ID output #60

Closed shawaj closed 1 year ago

shawaj commented 2 years ago

add chip model ID output to enable easier determination between sx1302 and sx1303

shawaj commented 2 years ago

example output...

root@f986d0ed3f2c:/opt/iotloragateway/packet_forwarder# sx1302/util_chip_id/chip_id -d /dev/spidev1.2
CoreCell reset through GPIO22...
Opening SPI communication interface
Note: chip version is 0x12 (v1.2)
INFO: using legacy timestamp
ARB: dual demodulation disabled for all SF

INFO: concentrator chip model ID: 0x03

INFO: concentrator EUI: 0x0016c001ff1e8374

Closing SPI communication interface
CoreCell reset through GPIO22...
joelguittet commented 2 years ago

@shawaj I suggest to have it in the chip_id utility as well (file "util_chip_id/src/chip_id.c").

shawaj commented 2 years ago

@shawaj I suggest to have it in the chip_id utility as well (file "util_chip_id/src/chip_id.c").

That's where it is currently @joelguittet - did you mean somewhere else?

joelguittet commented 2 years ago

@shawaj sorry I'm a little bit tired. I was thinking to "packet_forwarder/src/lora_pkt_fwd.c" instead. EUI is printed as well but not the model ID.

shawaj commented 2 years ago

@shawaj sorry I'm a little bit tired. I was thinking to "packet_forwarder/src/lora_pkt_fwd.c" instead. EUI is printed as well but not the model ID.

Aha yes I see where you mean now!

smtc-bot commented 1 year ago

Thank you for your inquiry.

Customers are encouraged to submit technical questions via our dedicated support portal at https://semtech.force.com/ldp/ldp_support.

We invite all users to visit the LoRa Developer Portal Forum at https://forum.lora-developers.semtech.com and to join the thriving LoRa development community!