Hi,
Thank you for the latest SDK - I am attempting to get the Python version working and have encountered a couple of problems.
The first is that when I load the goTenna library, the following error is generated:
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import goTenna
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/goTenna/__init__.py", line 21, in <module>
from goTenna import device
File "/usr/local/lib/python3.5/dist-packages/goTenna/device.py", line 31, in <module>
import goTenna.message
File "/usr/local/lib/python3.5/dist-packages/goTenna/message.py", line 13, in <module>
from goTenna.tlv import message_tlv
File "/usr/local/lib/python3.5/dist-packages/goTenna/tlv/__init__.py", line 23, in <module>
from goTenna.tlv import l1l1l11l1l_opy_
File "/usr/local/lib/python3.5/dist-packages/goTenna/tlv/l1l1l11l1l_opy_.py", line 299
l1l1l1_opy_ (u"ࠨࡧࡦ࠱ࠦࡥࡧࡪࡣࡃ࠭") \
^
SyntaxError: invalid syntax
If I then fix (or think I have fixed the line by adding a comma to the line), I get the following error:
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import goTenna
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/goTenna/__init__.py", line 25, in <module>
from goTenna import driver_backend
File "/usr/local/lib/python3.5/dist-packages/goTenna/driver_backend.py", line 399
l1l1l1_opy_ (u"ࠨ࡛ࠥࠣࠠࡧࡧࡦࠢࡁࠤࠠࡢࡧࠤࡁࡃࠠࠪੳ")
^
SyntaxError: invalid syntax
I can then load the library, although when I run the sample.py file, the following happens:
goTenna>sdk_token ****
goTenna>device_present: devices present: pro MX***** on /dev/ttyACM0
Device physically connected, configure to continue
The device I am using is a goTenna Mesh, not a Pro.
I can then set the region and gid, but when I try to send a broadcast, the following error is generated:
ERROR:goTenna.driver.Driver:Error during device handshake!
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/goTenna/driver_backend.py", line 264, in _11l11lll1_opy_
self._device_specifics[device_type][l1l1l1_opy_ (u"ࠩࡩࠨ")]()
File "/usr/local/lib/python3.5/site-packages/goTenna/driver_backend.py", line 243, in _11l1ll111_opy_
self.device.l1l11l1111_opy_(self._storage.groups.values(), self._settings.rf_settings)
File "/usr/local/lib/python3.5/site-packages/goTenna/device.py", line 477, in l1l11l1111_opy_
self.set_operation_mode(goTenna.constants.OperationModes.NORMAL)
File "/usr/local/lib/python3.5/site-packages/goTenna/device.py", line 412, in set_operation_mode
res = self._1l1lllll1_opy_(l1ll1111ll_opy_, l1l1ll1ll1_opy_)
File "/usr/local/lib/python3.5/site-packages/goTenna/device.py", line 448, in _1l1lllll1_opy_
(now-l1l11l11l_opy_).total_seconds())
File "/usr/local/lib/python3.5/site-packages/goTenna/pcb_connection.py", line 218, in read_binary_blocking
for to_return in l1l1l1111_opy_:
File "/usr/local/lib/python3.5/site-packages/goTenna/pcb_connection.py", line 190, in l1l1l111l_opy_
l1l111111_opy_()
File "/usr/local/lib/python3.5/site-packages/goTenna/pcb_connection.py", line 188, in l1l111111_opy_
(now-l1l11l11l_opy_).seconds)
goTenna.constants.TimeoutException: GoTenna communication timed out after 10s. Command: read_binary
If I remove the two lines which throw the syntax error, the library still loads but when I try to send a broadcast, the script reports “no device connected”.
“can_connect” reports:
PRO - TX Power: Not Set
PRO - Frequencies: Not Set
PRO - Bandwidth: Not Set
MESH - Geo region: OK
I have tried this on Mac OSX 10.13, a Raspberry Pi 3 Model B running Stretch and Virtualbox running Raspberry PI Desktop (a clean install), all with the same problems.
What am I missing or doing wrong…
Thank you in advance.
Pete