houluy/lora-mote-emulator

cannot run mote

Opened this issue · 3 comments

I cannot run mote. Every time I start mote I get:

2022-05-20 11:55:44,375 - ERROR - Bad config file format, please copy a new file from template.

I use the default generated files in config/ only. I did not make any changes.
As the message is not very informative I hope to hear where to look to debug.

Thanks in advance

Hi, @pe1mew. Are u working with v1.1.0? Because we have change the config generation method into command mote create -c dir/to/config, rather than using template config files.

Please check if you have generated correct config file in config directory by mote create.

Hi,

I have installed version 1.1.0:

$ pip show lora-mote-emulator
Name: lora-mote-emulator
Version: 1.1.0
Summary: Emulate LoRa mote (a.k.a end-device) and gateway.
Home-page: UNKNOWN
Author: Lu Hou
Author-email: houlu8674@bupt.edu.cn
License: MIT
Location: /home/remko/.local/lib/python3.9/site-packages
Requires: pycryptodome
Required-by:

Your command always results in mote: error: unrecognized arguments: -c ./config/:

$ mote create -c ./config/
usage: mote [-h] [-v version] [-c CONFIG] [--model MODEL]
            {join,app,pull,mac,rejoin,info,abp,create} ...
mote: error: unrecognized arguments: -c ./config/
$ mote create -c config
usage: mote [-h] [-v version] [-c CONFIG] [--model MODEL]
            {join,app,pull,mac,rejoin,info,abp,create} ...
mote: error: unrecognized arguments: -c config

When I create config files I see these files with content:

$ ls config
abp.json  config.json  device.json  gateway.json

is there anyway I can debug the message?

@pe1mew Sorry for the late reply. Please try to use mote create without -c option. It will generate config files at default directory (./config under current location).

I'll look into-c option and see what's going on inside.

Thanks for pointing it out!