LUXROBO / pymodi

Python API for controlling modular electronics, MODI

Home Page:https://pymodi.luxrobo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No MODI network module connected

seankim811 opened this issue · comments

  • pyMODI version: 0.5.0 (2018-08-22)
  • Python version: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32
  • Operating System: Win10

Description

Even though update the network module's FW using MODI Studio 1.3, modi.MODI() cannot find the network module. However, when give the COM port name as a parameter of MODI(), then can start talk w/ network module.

What I Did

import modi
bundle = modi.MODI()
Traceback (most recent call last):
File "", line 1, in
File "c:\Python27\lib\site-packages\modi\modi.py", line 55, in init
raise serial.SerialException("No MODI network module connected.")
serial.serialutil.SerialException: No MODI network module connected.
>>> bundle = modi.MODI("COM10")
bundle.modules
()
bundle.modules
(<modi.module.display.Display object at 0x0000000005E1B6D8>, <modi.module.env.Env object at 0x0000000005E1B550>, <modi.module.button.Button object at
0x0000000005E1B5C0>, <modi.module.led.Led object at 0x0000000005E1B4A8>, <modi.module.speaker.Speaker object at 0x0000000005E1B358>)

I will checkout and fix the prob. Detecting codes may cause this prob. I will open a PR when it’s fixed then you can get notified through this thread.

Fixed with v0.5.1. Thank you.