X4M03 pymoduleconnector failes to recieve responses

Discussion in 'X4M03' started by Z>4-v"#6;, Jun 29, 2018.

  1. Z>4-v"#6;

    Z>4-v"#6; New Member

    I'm having problems communicating with my X4M03. I have installed python3, and the correct version of the moduleconnector from ModuleConnector-osx-1.4.3. The install process was labored (note: installing python3 with the official installer does not work. moduleconnector relies on python locations that only exist if installed via brew). I believe that I have now installed the moduleconnector and its dependencies correctly

    However, the example's do not function. I've attached some output of when I run the scripts. at the very bottom of this post.

    I also tried the xethru-python-driver library on github. I received similar results, but was able to actually print the response from the xethru X4M03 module.
    Code:
    Starting XeThru sensor... Transmitting: 0x7d 0x22 0x5f 0x7e
    Received: 0x7d 0x10 0x6d
    
    This seems to indicate that the X4M03 is booting, but even after a 1s delay does not complete.

    Output of x4m300_presence_simpleoutput.py
    Code:
    ~>sudo python3 x4m300_presence_simpleoutput.py -d /dev/cu.usbmodem1461
    Flushing any old data.
    FirmwareID: XEP
    Version: 3.0.0
    Build: 3.0.0+0.sha.fc736360b9d67d05a4bd9df21b3c4cc375d94a22
    Traceback (most recent call last):
      File "x4m300_presence_simpleoutput.py", line 117, in <module>
        main()
      File "x4m300_presence_simpleoutput.py", line 113, in main
        x4m300_presence_simpleoutput(**vars(options))
      File "x4m300_presence_simpleoutput.py", line 46, in x4m300_presence_simpleoutput
        print("Serial number:", x4m300.get_system_info(XTID_SSIC_SERIALNUMBER))
      File "/usr/local/lib/python3.6/site-packages/pymoduleconnector-1.4.3-py3.6.egg/pymoduleconnector/moduleconnectorwrapper/__init__.py", line 6604, in get_system_info
        return _moduleconnectorwrapper.PyX4M300_get_system_info(self, info_code)
    RuntimeError: error parsing reply in get_system_info
    

    Any help would be appreciated. It seems as if the X4M03 is replying with an unknown or erroneous response to being reset. My X4M03 is version 5. I haven't tried updating the firmware (I also don't know if there is any updated firmware for it).

    I tried doing searches for this problem, but I didn't find anything
     
  2. NSANGOU CHOUAIBOU

    NSANGOU CHOUAIBOU Active Member

    Hi Z>4-v"#6,
    You are running "x4m300_presence_simpleoutput.py" python script for x4m300 presence module sensor on the X4M03 development kit (FirmwareID: XEP). It will not work as the python script works at the application level not implemented on the x4m03 development kit (no profile implemented).
    Instead of using "x4m300_presence_simpleoutput.py" script, you can use "simple_xep_plot.py" python script and the correct USB COMPORT to play with your x4m03 dev kit.

    B.R
     
    Last edited: Jul 2, 2018
  3. Z>4-v"#6;

    Z>4-v"#6; New Member

    Thank you for your reply. I continue to get the error for 'get_system_info' when running x4m300_presence_simpleoutput.py (copied below). I also do not see "simple_xep_plot.py" in the examples folder.

    Code:
    python3 x4m300_presence_simpleoutput.py -d /dev/cu.usbmodem1461
    Flushing any old data.
    FirmwareID: XEP
    Version: 3.0.0
    Build: 3.0.0+0.sha.fc736360b9d67d05a4bd9df21b3c4cc375d94a22
    Traceback (most recent call last):
      File "x4m300_presence_simpleoutput.py", line 117, in <module>
        main()
      File "x4m300_presence_simpleoutput.py", line 113, in main
        x4m300_presence_simpleoutput(**vars(options))
      File "x4m300_presence_simpleoutput.py", line 46, in x4m300_presence_simpleoutput
        print("Serial number:", x4m300.get_system_info(XTID_SSIC_SERIALNUMBER))
      File "/usr/local/lib/python3.6/site-packages/pymoduleconnector-1.4.3-py3.6.egg/pymoduleconnector/moduleconnectorwrapper/__init__.py", line 6604, in get_system_info
        return _moduleconnectorwrapper.PyX4M300_get_system_info(self, info_code)
    RuntimeError: error parsing reply in get_system_info{/CODE]
    
    Note that the example "XEP_plot_record_playback.py" does in fact work