jslawless / POPSICL

POPSICL - Probing Over the Physics' Institutions Systematic Cooling Liability
3 stars 0 forks source link

Report hostname and IP #4

Open lawrenceleejr opened 1 year ago

lawrenceleejr commented 1 year ago

To console output (serial) and to the DB.

Jmgou commented 1 year ago

@dmontello has handled this in his branch. Just have make a pull request.

lawrenceleejr commented 1 year ago

I don't see this feature implemented yet. Any progress @Jmgou @dmontello ?

dmontello commented 1 year ago

I tried it and failed using the features offered by the network library in micropython. Gonna try again once I get my hands on another pi. There's the link though if anyone wants to maybe beat me to it.

dmontello commented 1 year ago

The farthest we ever got with this is that we found a recent issue on the micropython repo about setting the hostname, and we decided to make sure we were on the latest version of micropython, which when we updated the UF2 file, we were able to get the hostname, but it only got the hostname that was on the pico by default, not the ip name that was set on the UTK Network Registration website.. Jacob was doing this part, I'm not sure what happened if he tried to manually set the hostname in the terminal, that could be an option

lawrenceleejr commented 1 year ago

We definitely want each unit to have the same code and to require minimal setup. So it sounds like we decided that each one would report its MAC address as its identifier when communicating to the DB. And then we'll decipher it using a LUT here in this repo.

dmontello commented 1 year ago

Just heard this from Jacob a couple of hours ago haha thanks for the update!