jence / j4210u-app

J4210U Hardware Demo Application
MIT License
1 stars 3 forks source link

.so files in raspberrypi and linux dirs don't work with python test #25

Open DrGonzo65 opened 11 months ago

DrGonzo65 commented 11 months ago

Running the python test on a raspberry pi 64-bit after using the .so file in the raspberrypi64 folder, and the tests are failing, as the test uses symbols not found in the .so file, like InventoryOne.

raspberrypi:~/j4210u-app/platform/raspberrypi64 $ nm -gD libj4210u.so
0000000000004be0 T Auth
0000000000006920 T AvailablePorts
                 U cfsetispeed@GLIBC_2.17
                 U cfsetospeed@GLIBC_2.17
                 U clock@GLIBC_2.17
                 U close@GLIBC_2.17
0000000000003df0 T CloseComPort
                 U closedir@GLIBC_2.17
0000000000005a40 T CreateFilter
                 U __cxa_atexit@GLIBC_2.17
                 U __cxa_begin_catch@CXXABI_1.3
                 U __cxa_end_catch@CXXABI_1.3
                 w __cxa_finalize@GLIBC_2.17
                 U __cxa_rethrow@CXXABI_1.3
                 U fcntl@GLIBC_2.17
                 U fflush@GLIBC_2.17
0000000000006320 T GetGPI
0000000000004aa4 T GetResult
0000000000006410 T GetTagInfo
00000000000061b0 T GetTID
                 U gettimeofday@GLIBC_2.17
                 w __gmon_start__
                 U __gxx_personality_v0@CXXABI_1.3
000000000001d3c4 B h_
0000000000007e80 T Inventory
0000000000006f60 T InventoryB
0000000000007670 T InventoryNB
0000000000006b50 T InventoryTID
0000000000006010 T Is496Bits
                 w _ITM_deregisterTMCloneTable
                 w _ITM_registerTMCloneTable
000000000000a080 T Java_jence_jni_J4210U_Auth
0000000000009bd0 T Java_jence_jni_J4210U_AvailablePorts
0000000000009cd4 T Java_jence_jni_J4210U_CloseComPort
000000000000a350 T Java_jence_jni_J4210U_GetGPI
0000000000009da0 T Java_jence_jni_J4210U_GetResult
000000000000a2c0 T Java_jence_jni_J4210U_GetTagInfo
0000000000009e30 T Java_jence_jni_J4210U_GetTID
0000000000009d94 T Java_jence_jni_J4210U_Inventory
000000000000a000 T Java_jence_jni_J4210U_LastError
000000000000a370 T Java_jence_jni_J4210U_LibVersion
0000000000009ce0 T Java_jence_jni_J4210U_LoadSettings
0000000000009ca0 T Java_jence_jni_J4210U_OpenComPort
000000000000a124 T Java_jence_jni_J4210U_ReadMemWord
0000000000009d70 T Java_jence_jni_J4210U_SaveSettings
000000000000a1d4 T Java_jence_jni_J4210U_SetFilter
000000000000a360 T Java_jence_jni_J4210U_SetGPO
0000000000009f90 T Java_jence_jni_J4210U_SetKillPassword
0000000000009f20 T Java_jence_jni_J4210U_SetPassword
000000000000a3e0 T Java_jence_jni_J4210U_SetQ
000000000000a3d4 T Java_jence_jni_J4210U_SetSession
000000000000a214 T Java_jence_jni_J4210U_TagExists
000000000000a250 T Java_jence_jni_J4210U_WriteEpcWord
000000000000a0b4 T Java_jence_jni_J4210U_WriteMemWord
0000000000006400 T LastError
0000000000005384 T LibVersion
0000000000006a50 T LoadSettings
0000000000003740 T main
                 U memcmp@GLIBC_2.17
                 U memcpy@GLIBC_2.17
                 U memset@GLIBC_2.17
                 U open@GLIBC_2.17
0000000000003da0 T OpenComPort
                 U opendir@GLIBC_2.17
                 U printf@GLIBC_2.17
                 U putchar@GLIBC_2.17
                 U puts@GLIBC_2.17
000000000001d345 D q_
                 U read@GLIBC_2.17
0000000000005390 T Read
                 U readdir@GLIBC_2.17
0000000000005d30 T ReadEpcWord
000000000001d344 D readertype_
0000000000005c80 T ReadMemWord
0000000000005960 T ReadWord
0000000000006ab0 T SaveSettings
000000000001d3c1 B session_
00000000000060b0 T Set496Bits
0000000000003f80 T SetBaudRate
0000000000005e10 T SetEPC
0000000000005a50 T SetFilter
00000000000062a0 T SetGPO
0000000000006184 T SetKillPassword
0000000000006130 T SetPassword
0000000000006af0 T SetQ
0000000000006b20 T SetSession
                 U sprintf@GLIBC_2.17
                 U stdout@GLIBC_2.17
                 U strcat@GLIBC_2.17
                 U strcpy@GLIBC_2.17
                 U strlen@GLIBC_2.17
                 U strncmp@GLIBC_2.17
                 U strtol@GLIBC_2.17
0000000000007f34 T TagExists
                 U tcflush@GLIBC_2.17
                 U tcgetattr@GLIBC_2.17
                 U tcsetattr@GLIBC_2.17
                 U toupper@GLIBC_2.17
                 U _Unwind_Resume@GCC_3.0
                 U usleep@GLIBC_2.17
                 U write@GLIBC_2.17
0000000000004d80 T Write
0000000000005d44 T WriteEpcWord
0000000000005c90 T WriteMemWord
0000000000005974 T WriteWord
0000000000003f64 T _Z11getresponsePhiPiPS_
0000000000004170 T _Z11GetSettingsP10ReaderInfo
00000000000044b4 T _Z11SetSettingsP10ReaderInfo
0000000000008664 T _Z11toUpperCaseRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
00000000000094f4 T _Z13platform_listB5cxx11v
0000000000009200 T _Z13platform_openPKci
0000000000009434 T _Z13platform_readiPhtPtt
0000000000004050 T _Z13printsettingsP10ReaderInfo
00000000000093d0 T _Z14platform_closei
00000000000094d0 T _Z14platform_flushi
00000000000094f0 T _Z14platform_sleepi
00000000000093f0 T _Z14platform_writeiPhtPt
0000000000006194 T _Z15GetKillPasswordPhiS_S_
00000000000094c4 T _Z25platform_sleep_ms_handlerj
0000000000009480 T _Z29platform_timestamp_ms_handlerv
0000000000005fe0 T _Z4Killv
0000000000005ff0 T _Z4Lockv
0000000000008e54 T _Z4scanv
0000000000006000 T _Z5Erasev
0000000000008470 T _Z5tohexRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
000000000001d3e0 B _Z6error_B5cxx11
0000000000003cc0 T _Z6gencrcPKhh
00000000000088c0 T _Z6millisv
0000000000008ab4 T _Z6ultoa_jPc
0000000000003c10 T _Z7elapsedl
0000000000003c44 T _Z8busywaitj
0000000000008710 T _Z8getBytesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPhm
0000000000003e10 T _Z8printarrPhi
0000000000008b54 T _Z8printtagi
0000000000003e80 T _Z8transferPhiS_iii
0000000000008570 T _Z9bytes2hexB5cxx11Phi
0000000000008714 T _Z9hex2bytesNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
0000000000008910 T _Z9printtagsi
0000000000009160 T _Z9stopwatchb
                 U _ZdlPv@GLIBCXX_3.4
00000000000080a0 W _ZN6FilterD1Ev
00000000000080a0 W _ZN6FilterD2Ev
                 U _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc@GLIBCXX_3.4.21
0000000000008140 W _ZNSt6vectorI8ScanDataSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
00000000000080c0 W _ZNSt6vectorI8ScanDataSaIS0_EED1Ev
00000000000080c0 W _ZNSt6vectorI8ScanDataSaIS0_EED2Ev
00000000000099b0 W _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
                 U _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm@GLIBCXX_3.4.21
                 U _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc@GLIBCXX_3.4.21
                 U _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE14_M_replace_auxEmmmc@GLIBCXX_3.4.21
                 U _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm@GLIBCXX_3.4.21
                 U _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_@GLIBCXX_3.4.21
                 U _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@GLIBCXX_3.4.21
                 U _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm@GLIBCXX_3.4.21
                 U _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev@GLIBCXX_3.4.21
                 U _ZNSt8ios_base4InitC1Ev@GLIBCXX_3.4
                 U _ZNSt8ios_base4InitD1Ev@GLIBCXX_3.4
                 U _Znwm@GLIBCXX_3.4
                 U _ZSt19__throw_logic_errorPKc@GLIBCXX_3.4
                 U _ZSt20__throw_length_errorPKc@GLIBCXX_3.4
                 U _ZSt24__throw_out_of_range_fmtPKcz@GLIBCXX_3.4.20

I think these .so files are stale, as the JNI code has InventoryOne as a function.

jence commented 11 months ago

Just to make sure, can you use the latest release instead of cloning. Jence Support

On Thu, Dec 7, 2023, 3:14 AM Nick Shortway @.***> wrote:

Running the python test on a raspberry pi 64-bit after using the .so file in the raspberrypi64 folder, and the tests are failing, as the test uses symbols not found in the .so file, like InventoryOne. raspberrypi:~/j4210u-app/platform/raspberrypi64 $ nm -gD libj4210u.so 0000000000004be0 T Auth 0000000000006920 T AvailablePorts U @._2.17 U @._2.17 U @._2.17 U @._2.17 0000000000003df0 T CloseComPort U @._2.17 0000000000005a40 T CreateFilter U @._2.17 U @._1.3 U @._1.3 w @._2.17 U @._1.3 U @._2.17 U @._2.17 0000000000006320 T GetGPI 0000000000004aa4 T GetResult 0000000000006410 T GetTagInfo 00000000000061b0 T GetTID U @._2.17 w __gmon_start__ U @.1.3 000000000001d3c4 B h 0000000000007e80 T Inventory 0000000000006f60 T InventoryB 0000000000007670 T InventoryNB 0000000000006b50 T InventoryTID 0000000000006010 T Is496Bits w _ITM_deregisterTMCloneTable w _ITM_registerTMCloneTable 000000000000a080 T Java_jence_jni_J4210U_Auth 0000000000009bd0 T Java_jence_jni_J4210U_AvailablePorts 0000000000009cd4 T Java_jence_jni_J4210U_CloseComPort 000000000000a350 T Java_jence_jni_J4210U_GetGPI 0000000000009da0 T Java_jence_jni_J4210U_GetResult 000000000000a2c0 T Java_jence_jni_J4210U_GetTagInfo 0000000000009e30 T Java_jence_jni_J4210U_GetTID 0000000000009d94 T Java_jence_jni_J4210U_Inventory 000000000000a000 T Java_jence_jni_J4210U_LastError 000000000000a370 T Java_jence_jni_J4210U_LibVersion 0000000000009ce0 T Java_jence_jni_J4210U_LoadSettings 0000000000009ca0 T Java_jence_jni_J4210U_OpenComPort 000000000000a124 T Java_jence_jni_J4210U_ReadMemWord 0000000000009d70 T Java_jence_jni_J4210U_SaveSettings 000000000000a1d4 T Java_jence_jni_J4210U_SetFilter 000000000000a360 T Java_jence_jni_J4210U_SetGPO 0000000000009f90 T Java_jence_jni_J4210U_SetKillPassword 0000000000009f20 T Java_jence_jni_J4210U_SetPassword 000000000000a3e0 T Java_jence_jni_J4210U_SetQ 000000000000a3d4 T Java_jence_jni_J4210U_SetSession 000000000000a214 T Java_jence_jni_J4210U_TagExists 000000000000a250 T Java_jence_jni_J4210U_WriteEpcWord 000000000000a0b4 T Java_jence_jni_J4210U_WriteMemWord 0000000000006400 T LastError 0000000000005384 T LibVersion 0000000000006a50 T LoadSettings 0000000000003740 T main U @._2.17 U @._2.17 U @._2.17 U @._2.17 0000000000003da0 T OpenComPort U @._2.17 U @._2.17 U @._2.17 U @.2.17 000000000001d345 D q U @._2.17 0000000000005390 T Read U @.2.17 0000000000005d30 T ReadEpcWord 000000000001d344 D readertype 0000000000005c80 T ReadMemWord 0000000000005960 T ReadWord 0000000000006ab0 T SaveSettings 000000000001d3c1 B session_ 00000000000060b0 T Set496Bits 0000000000003f80 T SetBaudRate 0000000000005e10 T SetEPC 0000000000005a50 T SetFilter 00000000000062a0 T SetGPO 0000000000006184 T SetKillPassword 0000000000006130 T SetPassword 0000000000006af0 T SetQ 0000000000006b20 T SetSession U @._2.17 U @._2.17 U @._2.17 U @._2.17 U @._2.17 U @._2.17 U @._2.17 0000000000007f34 T TagExists U @._2.17 U @._2.17 U @._2.17 U @._2.17 U @._3.0 U @._2.17 U @._2.17 0000000000004d80 T Write 0000000000005d44 T WriteEpcWord 0000000000005c90 T WriteMemWord 0000000000005974 T WriteWord 0000000000003f64 T Z11getresponsePhiPiPS 0000000000004170 T _Z11GetSettingsP10ReaderInfo 00000000000044b4 T _Z11SetSettingsP10ReaderInfo 0000000000008664 T _Z11toUpperCaseRNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEE 00000000000094f4 T _Z13platform_listB5cxx11v 0000000000009200 T _Z13platform_openPKci 0000000000009434 T _Z13platform_readiPhtPtt 0000000000004050 T _Z13printsettingsP10ReaderInfo 00000000000093d0 T _Z14platform_closei 00000000000094d0 T _Z14platform_flushi 00000000000094f0 T _Z14platform_sleepi 00000000000093f0 T _Z14platform_writeiPhtPt 0000000000006194 T _Z15GetKillPasswordPhiSS 00000000000094c4 T _Z25platform_sleep_ms_handlerj 0000000000009480 T _Z29platform_timestamp_ms_handlerv 0000000000005fe0 T _Z4Killv 0000000000005ff0 T _Z4Lockv 0000000000008e54 T _Z4scanv 0000000000006000 T _Z5Erasev 0000000000008470 T _Z5tohexRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE 000000000001d3e0 B _Z6error_B5cxx11 0000000000003cc0 T _Z6gencrcPKhh 00000000000088c0 T _Z6millisv 0000000000008ab4 T _Z6ultoa_jPc 0000000000003c10 T _Z7elapsedl 0000000000003c44 T _Z8busywaitj 0000000000008710 T _Z8getBytesRNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPhm 0000000000003e10 T _Z8printarrPhi 0000000000008b54 T _Z8printtagi 0000000000003e80 T _Z8transferPhiS_iii 0000000000008570 T _Z9bytes2hexB5cxx11Phi 0000000000008714 T _Z9hex2bytesNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEE 0000000000008910 T _Z9printtagsi 0000000000009160 T _Z9stopwatchb U @._3.4 00000000000080a0 W _ZN6FilterD1Ev 00000000000080a0 W _ZN6FilterD2Ev U @._3.4.21 0000000000008140 W _ZNSt6vectorI8ScanDataSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9gnu_cxx17normal_iteratorIPS0_S2EEDpOT 00000000000080c0 W _ZNSt6vectorI8ScanDataSaIS0_EED1Ev 00000000000080c0 W _ZNSt6vectorI8ScanDataSaIS0_EED2Ev 00000000000099b0 W _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9gnu_cxx17__normal_iteratorIPS5_S7EEDpOT U @._3.4.21 U @._3.4.21 U @._3.4.21 U @._3.4.21 U @._3.4.21 U @._3.4.21 U @._3.4.21 U @._3.4.21 U @._3.4 U @._3.4 U @._3.4 U @._3.4 U @._3.4 U @._3.4.20

I think these .so files are stale, as the JNI code has InventoryOne as a function.

— Reply to this email directly, view it on GitHub https://github.com/jence/j4210u-app/issues/25, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGODGIRIWFUG7WXT7FCNK3YIDN4PAVCNFSM6AAAAABAKAVWGSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDSMZZGU3DCNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

DrGonzo65 commented 11 months ago

Was using the clone, but just used latest release, and hitting new problems, like ri.echo() not working, and even commenting that out, settings won't load.

jence commented 11 months ago

Ok. I will take a look at it and get back to you on this.

On Thu, Dec 7, 2023, 5:09 AM Nick Shortway @.***> wrote:

Was using the clone, but just used latest release, and hitting new problems, like ri.echo() not working, and even commenting that out, settings won't load.

— Reply to this email directly, view it on GitHub https://github.com/jence/j4210u-app/issues/25#issuecomment-1843834649, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGODGPMPMKSCDRRBNO2UP3YID3LZAVCNFSM6AAAAABAKAVWGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTHAZTINRUHE . You are receiving this because you commented.Message ID: @.***>

DrGonzo65 commented 11 months ago

To repro: Python directory (on a raspberry pi): ln -s <rpi64 platform dir> libj4210u.so sudo python j421xtest.py

jence commented 11 months ago

Can you use release 2.3.1 with raspberry pi for now. We have not yet released a rpi version using the latest code. We will get it out next week. Thanks. Mansur.

On Thu, Dec 7, 2023, 6:04 AM Nick Shortway @.***> wrote:

To repro: Python directory (on a raspberry pi): ln -s libj4210u.so sudo python j421xtest.py

— Reply to this email directly, view it on GitHub https://github.com/jence/j4210u-app/issues/25#issuecomment-1843900831, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGODGMMWUWRXRTG4BWPZ33YIEBYVAVCNFSM6AAAAABAKAVWGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTHEYDAOBTGE . You are receiving this because you commented.Message ID: @.***>