phyphox Forums

Full Version: Documentation on how to use Bluetooth and QR code?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Do you already have any documentation on how to use QR code? 
I notice that now we can "Add experiment for Bluetooth device", any documentation? I use Arduino a lot and I am one of the contributors/developers of Ardublock (http://ardublock.com) and I have a lot of interest in use Arduino with phyphox.

(09-05-2018, 05:47 PM)d.girardi Wrote: [ -> ]Do you already have any documentation on how to use QR code? 
I notice that now we can "Add experiment for Bluetooth device", any documentation? I use Arduino a lot and I am one of the contributors/developers of Ardublock (http://ardublock.com) and I have a lot of interest in use Arduino with phyphox.

Yes! https://phyphox.org/wiki/index.php?title...Low_Energy
You have found it yourself Smile
It might not be entirely up to date as I have written this part a while ago, but most of it should be correct. I intent to review this in the next days and then link it properly within the wiki.

For the QR codes, you have two options:
A: Just upload your experiment somewhere and put the URL (http:// or phyphox://) in a QR-Code using any QR-Code generator on the web. This is simple and these codes are easy to scan, but they require an internet connection when scanning, which is not available at some schools.
B: You can create a QR code that contains the experiment itself. We the version of the editor matching the beta version will be able to do this, but there are still a few bugs to be fixed. So, once again, in the next days... These codes can be a bit cumbersome, because there can be a lot of data in an experiment and sometimes (if you want to include an icon and some translations), you need to split the experiment into multiple QR codes. But the advantage is that this works without any internet connection and can be done in any school.

In both cases, the experiment does not need to be a plain text phyphox-file, but you can simply place your phyphox-file in a zip file. For B you certainly should do this to save some space. For A, this will allow you to submit a whole collection of experiments within a single QR code.

If you want to get your hands dirty, you can try to create a QR code of type B yourself. Here is the explanation from the source code:

Code:
//The QR code contains the experiment itself. The first 13 bytes are:
// p h y p h o x [crc32] [i] [n]
//"phyphox" as string (7 bytes)
//crc32 hash (big endian) of the submitted experiment (has to be the same for each qr code if the experiment is spread across multiple codes)
//i is the index of this code in a sequence of n code (starting at zero, so i starts at 0 and end with n-1
//n is the total number of codes for this experiment
I have used the QR code from Rich Born to get his 10 experiments with PocketLab + Phyphox.

https://www.thepocketlab.com/educators/a...-pocketlab
When you get iOS count me in! Don't have an android.
Still working on it. Luckily, in the meantime, Apple has introduced public beta tests, so every iOS user can join the test when we are ready.
(11-05-2018, 06:50 PM)Sebastian Staacks Wrote: [ -> ]Still working on it. Luckily, in the meantime, Apple has introduced public beta tests, so every iOS user can join the test when we are ready.

I don't want to hurry, but any news when this might be?