Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. loris
    L
    • Continue chat with loris
    • Start new chat with loris
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    loris

    @loris

    0
    Reputation
    2
    Posts
    379
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    loris Follow

    Posts made by loris

    • M5stack core2 :ImportError: cannot import name 'Serial' from 'serial'

      hello, I'm on m5stack core2 and when I want to send or even compile my project, I have this error:
      ImportError: cannot import name 'Serial' from 'serial' (C:\Users\Home.platformio\penv\lib\site-packages\serial_init_.py):
      File "C:\Users\Home.platformio\penv\lib\site-packages\platformio\builder\main.py", line 97:
      env = DefaultEnvironment(**DEFAULT_ENV_OPTIONS)
      File "C:\Users\Home.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Defaults.py", line 83:
      default_env = SCons.Environment.Environment(*args, **kw)
      File "C:\Users\Home.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Environment.py", line 1010:
      apply_tools(self, tools, toolpath)
      File "C:\Users\Home.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Environment.py", line 116:
      _ = env.Tool(tool)
      File "C:\Users\Home.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Environment.py", line 1878:
      tool = SCons.Tool.Tool(tool, toolpath, **kwargs)
      File "C:\Users\Home.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Tool_init
      .py", line 120:
      module = self.tool_module()
      File "C:\Users\Home.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Tool_init
      .py", line 209:
      module = spec.loader.load_module(spec.name)
      File "<frozen importlib._bootstrap_external>", line 529:

      File "<frozen importlib._bootstrap_external>", line 1029:

      File "<frozen importlib._bootstrap_external>", line 854:

      File "<frozen importlib._bootstrap>", line 274:

      File "<frozen importlib._bootstrap>", line 711:

      File "<frozen importlib._bootstrap>", line 680:

      File "<frozen importlib._bootstrap_external>", line 850:

      File "<frozen importlib._bootstrap>", line 228:

      File "C:\Users\Home.platformio\penv\lib\site-packages\platformio\builder\tools\pioupload.py", line 26:
      from serial import Serial, SerialException

      Everything was working fine until i installed atom on my pc

      posted in Core 2
      L
      loris
    • PB unit lorawan 868 error received data= "Ag=="

      hello, I have a lorawan module "unit lorawan 868" connected to a "m5stack core2" all this must communicate locally with a multitech gateway
      AEP that I bought and configured then I retrieve the data in "mqtt" by cable from the gateway.
      I manage to get my lorawan unit 868 module to communicate to the gateway. I have the messages that the join is going well, the sending with the command "AT+DTRX=1,2,10,0123456789" done well, I have the return of the order with the sending, sent and received: return command->
      "OK+SEND:05
      [ INFO ] SEND NUM 05
      AT+CSTATUS?
      +CSTATUS:00
      OK
      OK+SENT:01
      [ INFO ] SEND CNT 01
      +CLINKCHECK: 0, 22, 1, -13, 10
      (1/2), 1, -13, 10
      OK+RECV:04,00,00"
      In my mqtt server and on the gateway, I can clearly see the join happening and the dtrx also so I subscribed with a python server to the topic "lora/.../up" and the data which is supposed to correspond to what I send decode in base 64 does not correspond at all to what I send. I always have "data: Ag==", it is only when I increase the size of the message that it changes a little but it's like the data was corrupted...
      If you have the solution, I'm a taker

      posted in Modules
      L
      loris