I have a PCBA with a P2 on it that had the USB port damaged in manufacturing. Is it possible to claim a P2 module without using USB?
I would read the serial number off the label; you can either do it by hand or use a data matrix code reader.
Add this to a P2/Photon 2 product. This will allow you to see the Device ID, which you can use if you also need to claim the device.
The hardest thing will be configuring the Wi-Fi. If you have the old Particle mobile app (no longer supported) that would work. If you are creating your own BLE-based app, that would work. You could use the React Native, iOS, or Android provisioning sample code but this is fairly involved.
You could set the Wi-Fi credentials in firmware, but this would require being able to flash the device, which you can't do OTA since it doesn't have Wi-Fi. You could use a CMSIS-DAP debugger.
The BLE provisioning mode looks interesting! The P2 boots up into Listening Mode, do I need to put it into BLE Provisioning mode via the mode/rst buttons, or is it active in parallel to the Listening-Mode?
It should be possible to use the default Particle UUIDs for BLE provisioning with the device in listening mode from the factory. You'll also need the mobile secret, which is device specific. You can get this from the cloud after the device is in your product, or by reading the data matrix code on the serial number sticker.
Great! I'll give that a shot. I also have an unpopulated debugger header that I can install.
Thanks for the help!
Hi @willdueease -
Just a thought - I managed to snap off the USB port on a board an assembled recently. After trying a couple of things I realized it might be easier to just cut the end of a USB cable, strip the V+, D+, D- and GND wires, solder them to the board and done! Worked like a charm.
Regards, Friedl.