ComThings / PandwaRF

PandwaRF: RF analysis tool with a sub-1 GHz wireless transceiver controlled by a smartphone or
https://pandwarf.com/
290 stars 53 forks source link

Sync failed in Android Studio #76

Closed Massimaux closed 5 years ago

Massimaux commented 5 years ago

Hi,

I downloaded the source code from https://github.com/ComThings/PandwaRF/tree/master/SW/Android/SampleApps/PandwarfSDK and opened it in Android Studio. Unfortunately, the sync procedure failed and I was not able to build apk from your sample codes.

What could be the problem?

trollwookiee commented 5 years ago

I just tested against gollum:0.9.9 and gollum:0.9.12 and both sync and compile worked.

Can you describe more precisely what kind of sync issue you face ?

Massimaux commented 5 years ago

Hi,

There is no sync issue anymore. This is the status with respect to its installation and working on different smartphones:

LG K8 (Android 6.0 | API level 23): WORKING HUAWEI P10 Lite (Android 8.0 | API level 26): CONSTANT CRASHING ON LAUNCH

trollwookiee commented 5 years ago

do you have a log for HUAWEI P10 Lite crash ?

Massimaux commented 5 years ago

How can I get the log?

trollwookiee commented 5 years ago

adb logcat

Massimaux commented 5 years ago

I will try to obtain it later today.

BTW, the playstore PandwaRF app works perfectly on this HUAWEI P10 Lite.

Massimaux commented 5 years ago

do you have a log for HUAWEI P10 Lite crash ?

Here is the log reporting the crash of sample PandwaRFSdk:

Huawei P10 Lite Crash Log.txt

trollwookiee commented 5 years ago

--------- beginning of crash 2018-11-26 23:31:10.813 25466-25466/com.comthings.pandwarf.sample.PandwaRfSdk.debug E/AndroidRuntime: FATAL EXCEPTION: main Process: com.comthings.pandwarf.sample.PandwaRfSdk.debug, PID: 25466 java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.comthings.pandwarf.sample.PandwaRfSdk.debug/app_lib/libusb1.0.so" is 32-bit instead of 64-bit

Try to build your app with "armeabi-v7a" In your build.gradle:

defaultConfig {
...
   ndk {
            abiFilters "armeabi-v7a"
        }
...
}
Massimaux commented 5 years ago

Thank you! Crash solved.

If I have a data buffer of 15-20 Kbytes to be transmitted, how can I minimize the probability of Tx failure: