Hi,
I have received very valuable help here last week, so i'll try again :-)
I have a bunch of microbits that collect data (max 10).
They "radio" the data to a central microbit that is connected to the PC via USB.(COM9)
The data come in the form of (max 10) very small files.
My problem:
I need to monitor via the PC, in python of course, which filenames have arrived on the microbit.
I don't have to read their content, i don't have to copy or move them,
i just need to veryfy that all 10 files have arrived on the central microbit.
Hours of internet searching seem to indicate that this is an unknown area.
The closest i have come was to use "microFS", but that only seems to work in command mode.
It must be possible, because the "MU" editor lists them nicely.
Once my list of 10 is complete, i signal to the central microbit
that it can delete all 10 files, and the whole cycle starts again.
thx,
Paul
Edit: i went to look in the MU source code how they do it (written in python after all)
I found something exotic like so:
path = QFileDialog.getExistingDirectory(self.widget, 'Locate BBC micro:bit',folder if self.previous_folder is None else self.previous_folder,QFileDialog.ShowDirsOnly)
?
I have received very valuable help here last week, so i'll try again :-)
I have a bunch of microbits that collect data (max 10).
They "radio" the data to a central microbit that is connected to the PC via USB.(COM9)
The data come in the form of (max 10) very small files.
My problem:
I need to monitor via the PC, in python of course, which filenames have arrived on the microbit.
I don't have to read their content, i don't have to copy or move them,
i just need to veryfy that all 10 files have arrived on the central microbit.
Hours of internet searching seem to indicate that this is an unknown area.
The closest i have come was to use "microFS", but that only seems to work in command mode.
It must be possible, because the "MU" editor lists them nicely.
Once my list of 10 is complete, i signal to the central microbit
that it can delete all 10 files, and the whole cycle starts again.
thx,
Paul
Edit: i went to look in the MU source code how they do it (written in python after all)
I found something exotic like so:
path = QFileDialog.getExistingDirectory(self.widget, 'Locate BBC micro:bit',folder if self.previous_folder is None else self.previous_folder,QFileDialog.ShowDirsOnly)
?