phyphox Forums
"No Valid Experiment in this zip file"Error - Printable Version

+- phyphox Forums (https://phyphox.org/forums)
+-- Forum: Discussion (https://phyphox.org/forums/forumdisplay.php?fid=1)
+--- Forum: General (https://phyphox.org/forums/forumdisplay.php?fid=3)
+--- Thread: "No Valid Experiment in this zip file"Error (/showthread.php?tid=1475)



"No Valid Experiment in this zip file"Error - Y.X Zhang - 12-01-2021

Hi everyone! I meet a problem recently.
Step1:  I wrote a correct program in arduino and loaded it into my esp32

Step2:  I opened my android cellphone phyphox and chose"add an experiment for bluetooth device",

But this message bumped out:"Error: there is no valid phyphox expeirment in this zip file"
But when I use my ipad to chose"add an experiment for bluetooth device",all became normal and I could conduct the experiment smoothly.
In other words, when I want to do experiment on android, I have to use ipad to share the experiment to phyphox network editor and scan the QR codes.
May someone please help me? Thanks~~

Besides, are there any ways to change".ino" files into ".phyphox" files directly?


RE: "No Valid Experiment in this zip file"Error - Jens Noritzsch - 12-02-2021

Hi,

could you please post or email me, <contact@phyphox.org>, the .ino file? We have not experienced such a problem yet. Which phyphox version are you using: tap (i) and “Device Info”…?

Arduino sketch files are entirely different to the .phyphox file format, https://phyphox.org/wiki/index.php/Phyphox_file_format, so our phyphox library, https://phyphox.org/arduino/, is perhaps the simplest way to create .phyphox files on Arduino. However, you could encode a .phyphox file into the .ino file, see https://github.com/phyphox/phyphox-arduino/blob/master/examples/CO2kit/CO2kit.ino, for instance.


RE: "No Valid Experiment in this zip file"Error - Y.X Zhang - 12-02-2021

sorry for some reasons i dont know the netpage doesn't allow me to upload the ino file, so I paste the code here:
(It is actually other's code, I am just a new learner)


#include <phyphoxBle.h>
int Pin = 33;
int iV = 0;
float R=200.0;
void setup()
{
  PhyphoxBLE:Confusedtart("Capacitor");
  PhyphoxBleExperiment plotCapacitor;

  plotCapacitor.setTitle("Phyphox Capacitor");

  //View
  PhyphoxBleExperiment::View firstView;
  firstView.setLabel("MyView"); //Create a "view"

  //Graph
  PhyphoxBleExperiment::Graph firstGraph;
  firstGraph.setLabel("I-t graph");
  firstGraph.setUnitX("s");
  firstGraph.setUnitY("A");
  firstGraph.setLabelX("t");
  firstGraph.setLabelY("I");

  firstGraph.setChannel(0, 1);

  firstView.addElement(firstGraph);
  plotCapacitor.addView(firstView);
  PhyphoxBLE::addExperiment(plotCapacitor);
}

void loop()
{

  iV = analogRead(Pin);
  float cur = iV * 5.0 / 1024.0 / 4.0/R;

  PhyphoxBLE::write(cur);
  delay(50);
 
  PhyphoxBLE::poll();

and this is the information I copied from phyphox on my phone:
phyphox
Version: 1.1.5
Build: 1010502
File format: 1.9

Permissions
INTERNET: yes
RECORD_AUDIO: yes
READ_EXTERNAL_STORAGE: no
BLUETOOTH: yes
BLUETOOTH_ADMIN: yes
ACCESS_COARSE_LOCATION: no
ACCESS_FINE_LOCATION: yes
CAMERA: yes

Device
Model: CDY-AN90
Brand: HONOR
Board: HWCDY-H
Manufacturer: HUAWEI
ABIS: arm64-v8a, armeabi-v7a, armeabi
Base OS:
Codename: REL
Release: 10
Patch: 2020-11-01

Sensors

加速度计 (type 1)
- Name: acc_s001_002
- Range: 78.4532 m/s²
- Resolution: 9.576806E-6 m/s²
- Min delay: 4000 µs
- Max delay: 200000 µs
- Power: 0.23 mA
- Vendor: acc_s001_002
- Version: 1

磁力计 (type 2)
- Name: mag_s002_001
- Range: 2000.0 µT
- Resolution: 0.0625 µT
- Min delay: 10000 µs
- Max delay: 200000 µs
- Power: 6.8 mA
- Vendor: mag_s002_001
- Version: 1001

未知传感器 (type 3)
- Name: orientation
- Range: 360.0
- Resolution: 0.1
- Min delay: 10000 µs
- Max delay: 20000 µs
- Power: 13.0 mA
- Vendor: huawei
- Version: 1

光传感器 (type 5)
- Name: als_s002_001
- Range: 10000.0 lx
- Resolution: 1.0 lx
- Min delay: 0 µs
- Max delay: 0 µs
- Power: 0.75 mA
- Vendor: als_s002_001
- Version: 1

距离传感器 (type 8)
- Name: ps_s002_001
- Range: 5.0 cm
- Resolution: 5.0 cm
- Min delay: 0 µs
- Max delay: 200000 µs
- Power: 0.75 mA
- Vendor: ps_s002_001
- Version: 1

陀螺仪 (type 4)
- Name: gyro_s001_002
- Range: 34.906586 rad/s
- Resolution: 1.7453292E-5 rad/s
- Min delay: 5000 µs
- Max delay: 200000 µs
- Power: 6.1 mA
- Vendor: gyro_s001_002
- Version: 1

未知传感器 (type 9)
- Name: gravity
- Range: 9.80665
- Resolution: 0.15328126
- Min delay: 10000 µs
- Max delay: 20000 µs
- Power: 0.2 mA
- Vendor: huawei
- Version: 1

线加速度 (type 10)
- Name: linear Acceleration
- Range: 78.4532 m/s²
- Resolution: 0.009576807 m/s²
- Min delay: 10000 µs
- Max delay: 20000 µs
- Power: 0.2 mA
- Vendor: huawei
- Version: 1

Attitude (type 11)
- Name: rotation Vector
- Range: 1.0
- Resolution: 5.9604645E-8
- Min delay: 10000 µs
- Max delay: 20000 µs
- Power: 6.1 mA
- Vendor: huawei
- Version: 1

供应商特定 (type 65538)
- Name: HALL sensor
- Range: 1.0
- Resolution: 1.0
- Min delay: 0 µs
- Max delay: 0 µs
- Power: 0.75 mA
- Vendor: huawei
- Version: 1

磁力计 (type 14)
- Name: uncalibrated Magnetic Field
- Range: 2000.0 µT
- Resolution: 0.0625 µT
- Min delay: 16667 µs
- Max delay: 200000 µs
- Power: 6.8 mA
- Vendor: Asahi Kasei Microdevices
- Version: 1

未知传感器 (type 15)
- Name: game Rotation Vector
- Range: 1.0
- Resolution: 5.9604645E-8
- Min delay: 10000 µs
- Max delay: 20000 µs
- Power: 6.1 mA
- Vendor: huawei
- Version: 1

未知传感器 (type 16)
- Name: uncalibrated Gyroscope
- Range: 34.906586
- Resolution: 1.7453292E-5
- Min delay: 5000 µs
- Max delay: 200000 µs
- Power: 6.1 mA
- Vendor: STMicroelectronics
- Version: 1

未知传感器 (type 17)
- Name: significant Motion
- Range: 2.14748365E9
- Resolution: 1.0
- Min delay: -1 µs
- Max delay: 0 µs
- Power: 0.23 mA
- Vendor: huawei
- Version: 1

未知传感器 (type 19)
- Name: step counter
- Range: 2.14748365E9
- Resolution: 1.0
- Min delay: 0 µs
- Max delay: 0 µs
- Power: 0.23 mA
- Vendor: huawei
- Version: 1

未知传感器 (type 20)
- Name: geomagnetic Rotation Vector
- Range: 1.0
- Resolution: 5.9604645E-8
- Min delay: 10000 µs
- Max delay: 200000 µs
- Power: 6.1 mA
- Vendor: huawei
- Version: 1

供应商特定 (type 65544)
- Name: phonecall sensor
- Range: 1.0
- Resolution: 1.0
- Min delay: 10000 µs
- Max delay: 500000 µs
- Power: 0.23 mA
- Vendor: huawei
- Version: 1

供应商特定 (type 65552)
- Name: RPC sensor
- Range: 65535.0
- Resolution: 1.0
- Min delay: 500000 µs
- Max delay: 1000000 µs
- Power: 5.0 mA
- Vendor: huawei
- Version: 1

未知传感器 (type 35)
- Name: uncalibrated Accelerometer
- Range: 78.4532
- Resolution: 9.576806E-6
- Min delay: 5000 µs
- Max delay: 200000 µs
- Power: 0.23 mA
- Vendor: huawei
- Version: 1

供应商特定 (type 65556)
- Name: drop sensor
- Range: 65535.0
- Resolution: 1.0
- Min delay: 0 µs
- Max delay: 0 µs
- Power: 0.25 mA
- Vendor: huawei
- Version: 1


RE: "No Valid Experiment in this zip file"Error - Jens Noritzsch - 12-02-2021

Your Android phyphox version is rather ancient and a fix in 1.1.6 could already do the trick.

We are currently at 1.1.9 (with 1.1.10 quite close to release). We unfortunately have no overview in how far it is present in your Play Store alternatives. There is a current version at F-Droid that should do…