I’m trying to set an MDash token using MOS. I prefer not to put it into the mos.yml file.
From MOS, I have issued:
$ mos config-set dash.enable=true dash.token=Q08xxxxxxxxxxxzrtzdj0g
That used to work fine with this device but now it fails. I can flash firmware with no trouble. I’m sure the serial pot is correct. Here is what I see when issue the above command:
Getting configuration...
E0128 03:00:30.595513 86951 serial.go:273] No response to handshake. Is /dev/cu.usbserial-1410 the right port? Is rpc-uart enabled?
E0128 03:00:35.800044 86951 serial.go:273] No response to handshake. Is /dev/cu.usbserial-1410 the right port? Is rpc-uart enabled?
E0128 03:00:41.004704 86951 serial.go:273] No response to handshake. Is /dev/cu.usbserial-1410 the right port? Is rpc-uart enabled?
Error: write /dev/cu.usbserial-1410: file already closed
/private/tmp/mos-latest-20210124-3022-1391sxn/mos-fc6d88a9c4b150c1bf0538e5547057af33f5ec94/common/mgrpc/codec/serial.go:206:
/private/tmp/mos-latest-20210124-3022-1391sxn/mos-fc6d88a9c4b150c1bf0538e5547057af33f5ec94/common/mgrpc/codec/serial.go:265:
/private/tmp/mos-latest-20210124-3022-1391sxn/mos-fc6d88a9c4b150c1bf0538e5547057af33f5ec94/common/mgrpc/codec/stream.go:331:
/private/tmp/mos-latest-20210124-3022-1391sxn/mos-fc6d88a9c4b150c1bf0538e5547057af33f5ec94/common/mgrpc/mgrpc.go:401:
/private/tmp/mos-latest-20210124-3022-1391sxn/mos-fc6d88a9c4b150c1bf0538e5547057af33f5ec94/cli/dev/dev_conn_impl.go:167:
/private/tmp/mos-latest-20210124-3022-1391sxn/mos-fc6d88a9c4b150c1bf0538e5547057af33f5ec94/cli/dev/dev_conn_impl.go:190:
/private/tmp/mos-latest-20210124-3022-1391sxn/mos-fc6d88a9c4b150c1bf0538e5547057af33f5ec94/cli/dev/dev_conn.go:117:
/private/tmp/mos-latest-20210124-3022-1391sxn/mos-fc6d88a9c4b150c1bf0538e5547057af33f5ec94/cli/config/config.go:86:
/private/tmp/mos-latest-20210124-3022-1391sxn/mos-fc6d88a9c4b150c1bf0538e5547057af33f5ec94/cli/main.go:198: config-set failed
exit status 1
Command completed.
Is there an alternative way to set an MDash token, without having to put it into the mos.yml file?
UPDATE:
I do have this in my mos.yml:
- origin: https://github.com/mongoose-os-libs/rpc-service-config
- origin: https://github.com/mongoose-os-libs/rpc-service-fs
- origin: https://github.com/mongoose-os-libs/rpc-service-ota
- origin: https://github.com/mongoose-os-libs/rpc-uart