Module Connector - MacOS 1.6.3

SW used to communicate with all XeThru modules on a host computer

  1. admin

    admin Administrator Staff Member

  2. jack white

    jack white New Member

    I just got X4M03 development kit today, and I am currently working on the hardware setup and build the software platform.
    i try to connect the device to my Mac with usb and use your Module connector for MacOS at the moment. but still could not connect correctly. i also try to find some advice in our community which about this issue of Mac OS, still could not get perfect solved.
    could you get some clearly introduction for us to start up the hardware setup?
    hope you can check quickly and awaiting for your reply
    thank you
     
  3. Bjørn Erik Nilsen

    Bjørn Erik Nilsen New Member

    Hi Jack,

    Could you please elaborate on the issues you are facing when trying to connect? Do you get any error messages? What exactly is problem?

    Note that on the Mac each serial device shows up twice under /dev/, for example /dev/tty.usbmodem1421 and /dev/cu.usbmodem1421. In case of ModuleConnector you should use the latter (/dev/cu.*).

    Apart from that, there is no difference in usage of ModuleConnector between Windows and macOS.

    Hope this helps.

    Best regards,
    Bjørn Erik Nilsen
     
  4. admin

    admin Administrator Staff Member

    admin updated Module Connector - MacOS with a new update entry:

    Module Connector V 1.1.8

    Read the rest of this update entry...
     
  5. admin

    admin Administrator Staff Member

    admin updated Module Connector - MacOS with a new update entry:

    Module Connector V 1.2.2

    Read the rest of this update entry...
     
  6. MedschoolDropout

    MedschoolDropout New Member

    Can I get a walk through of this? Something like explains to me like I am a 5 year old kind of thing?
    I manage to get the ModuleConnector-osx-1.2.2 installed... (turn out you need to add `sudo python setup.py`)
    Now what?
    Please and thank you. (edited for thanks)
     
    CCB likes this.
  7. Øystein Bjørndal

    Øystein Bjørndal New Member

    Just a simple suggestion from a user-friendly perspective that probably could be done for a lot of your downloads. Make a link to the index.html file in the root directory, e.g.:
    ln -s doc/html/index.xhtml README.html
    cd python
    ln -s pymoduleconnector/doc/output/html/index.xhtml README.html
    And remove the almost empty README.txt files.
    The folder structure you have is fine, but from a user-perspective it is simply inconvenient to dig around trying to find the documentation.
    This works great on my mac and should work on all unix platforms. Not sure about windows.
     
    Charlie Shao likes this.
  8. Øystein Bjørndal

    Øystein Bjørndal New Member

    NEVERMIND: This seems to only work sporadically, but some neat solution to this would be great.
     
  9. Øystein Bjørndal

    Øystein Bjørndal New Member

    I am too lazy for a minimal example, but I believe I might have found a bug. The following works as expected:
    Code:
    status += x4m300.set_output_control(XTS_ID_BASEBAND_IQ, XTID_OUTPUT_CONTROL_ENABLE);
    so does this:
    Code:
    status += x4m300.set_output_control(XTS_ID_BASEBAND_AMPLITUDE_PHASE, XTID_OUTPUT_CONTROL_ENABLE)
    but my first attempt, using
    Code:
    status += x4m300.set_output_control(XTS_ID_BASEBAND_IQ, XTID_OUTPUT_CONTROL_ENABLE);
    status += x4m300.set_output_control(XTS_ID_BASEBAND_AMPLITUDE_PHASE, XTID_OUTPUT_CONTROL_DISABLE); 
    fails to produce any (I/Q) output and does not complain. Am I doing something stupid? I was just trying to be paranoid by disabling the amplitude/phase data.
     
  10. Christian Rødli Amble

    Christian Rødli Amble Member Staff Member

    Christian Rødli Amble updated Module Connector - MacOS with a new update entry:

    ModuleConnector v 1.4.0

    Read the rest of this update entry...
     
  11. Christian Rødli Amble

    Christian Rødli Amble Member Staff Member

    Øystein,

    That is indeed a bug, or at least very poorly documented. The baseband outputs use the same internal variable, so disabling one disables both and enabling one disables the other.
     
  12. Christian Rødli Amble

    Christian Rødli Amble Member Staff Member

  13. Christian Rødli Amble

    Christian Rødli Amble Member Staff Member

  14. Øystein Bjørndal

    Øystein Bjørndal New Member

    I see this is now fixed in the documentation, thank you!
    Code:
    +     * Only one of XTS_ID_BASEBAND_IQ and XTS_ID_BASEBAND_AMPLITUDE_PHASE can
    +     * be enabled at a time. Enabling one disables the other. Disabling one,
    +     * even if it is already disabled, disables the other.
    +     *
     
  15. Christian Rødli Amble

    Christian Rødli Amble Member Staff Member

  16. Stylianos Kampakis

    Stylianos Kampakis New Member

    Hello,

    I am trying to install and run the python module connector, but it cannot be imported properly. I am getting the following error:

    ImportError: dlopen(/radardata/pymoduleconnector/moduleconnectorwrapper/_moduleconnectorwrapper.so, 2): Library not loaded: /usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/Python
    Referenced from: /radardata/pymoduleconnector/moduleconnectorwrapper/_moduleconnectorwrapper.so
    Reason: image not found
     
  17. Charlie Shao

    Charlie Shao Moderator Staff Member

    Hi Stylianos,
    Does this kind of error happen during python Module Connector installation process? It seems that you try to use python3 but python 3 is not installed in the proper folder.
     
  18. Stylianos Kampakis

    Stylianos Kampakis New Member

    Hi Charlie,

    Thank you for your answer. I have installed Python using Anaconda. I just run the setup.py. Should I move any folders anywhere for the installation?
     
  19. Sigurd Pleym

    Sigurd Pleym New Member Staff Member

    Hi Stylianos.

    When you install Anaconda , python3 will be default installed in /Users/username/anaconda/bin.
    However, the moduleconnector for osx expects a python3 installation at /usr/local/bin.
    I have the same setup on my mac. If I do: $ which python3
    it will find my anaconda installation and you get the moduleconnector failure.

    Either remove the anaconda, or install python3 using ie. homebrew
    $ brew install python3
    This will install to the system folder /usr/local/bin

    If you have dual installation when using moduleconnector, you then need to prefix (or make some alias)
    $ /usr/local/bin/python3 /path/to/mc/pythonscript.py --cool-radar-args
     
    Charlie Shao likes this.
  20. Zach Brogan

    Zach Brogan New Member

    Edit: I figured it out. I needed root permissions to access the COM port, I believe:
    sudo python3 X4M200_sleep_record.py -d /dev/cu.usbmodem1421

    I haven't been able to get the /dev/cu.* port working. I've tried python3 X4M200_sleep_record.py -d /dev/cu.usbmodem1421, but it gives me an error:

    "0.000913 : open: 50 -- Error opening file: /dev/cu.usbmodem1421

    system error: No such file or directory"

    I checked before to ensure that the com port existed:
    "Zach:~ zachbrogan$ ls /dev/cu.*

    /dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem1421"

    Any idea how I can get ModuleConnector working correctly on my mac? I have the X4M200 connected via the micro USB to my Mac's USB port.
     
    Last edited: Jan 24, 2018