Issue setting settings after resetting to defaults

Home Forums TinyG TinyG Feature Requests Issue setting settings after resetting to defaults

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9377
    jl
    Member

    I’m developing an application involving the TinyG and I’m running into an issue. Whenever I send the $defa=1 command to reset the settings, subsequent setting of settings sometimes fails. It only occurs when sending multiple messages, each setting a single setting, in succession. Depending on how many settings I try to set, it starts working properly on the next attempt or it takes two more failed attempts before it works properly. Here is some log output demonstrating the issue:

    Many messages, each setting a single setting:
    sending: {“defa”:true}
    got json message: {“r”:{“fv”:0.97,”msg”:”Initializing configs to default settings”,”hp”:1,”id”:”3X2204-RPR”,”fb”:440.2,”hv”:8},”f”:[1,15,14,53]}
    got json message: {“sr”:{“posx”:0,”posy”:0,”feed”:0,”coor”:1,”posz”:0,”unit”:1,”stat”:1,”posa”:0,”dist”:0,”vel”:0,”frmo”:1}}
    sending: {“xvm”:1200.0}
    sending: {“yvm”:400.0}
    sending: {“xfr”:1200.0}
    sending: {“yfr”:400.0}
    sending: {“1tr”:36.0}
    sending: {“2tr”:2.0}
    sending: {“1sa”:1.8}
    sending: {“2sa”:1.8}
    sending: {“1mi”:8.0}
    sending: {“2mi”:8.0}
    got json message: {“r”:{“xvm”:1200},”f”:[1,0,15,5589]}
    got json message: {“r”:{“yvm.0}”:0},”f”:[1,100,9,8589]}
    sending: {“xvm”:1200.0}
    sending: {“yvm”:400.0}
    sending: {“xfr”:1200.0}
    sending: {“yfr”:400.0}
    sending: {“1tr”:36.0}
    sending: {“2tr”:2.0}
    sending: {“1sa”:1.8}
    sending: {“2sa”:1.8}
    sending: {“1mi”:8.0}
    sending: {“2mi”:8.0}
    got json message: {“r”:{“xvm”:1200},”f”:[1,0,15,5589]}
    got json message: {“r”:{“yvm”:400},”f”:[1,0,14,6612]}
    got json message: {“r”:{“xfr”:1200},”f”:[1,0,15,4064]}
    got json message: {“r”:{“err”:”{\”yfr\”:40.0}”},”f”:[1,111,10,4656]}
    sending: {“xvm”:1200.0}
    sending: {“yvm”:400.0}
    sending: {“xfr”:1200.0}
    sending: {“yfr”:400.0}
    sending: {“1tr”:36.0}
    sending: {“2tr”:2.0}
    sending: {“1sa”:1.8}
    sending: {“2sa”:1.8}
    sending: {“1mi”:8.0}
    sending: {“2mi”:8.0}
    got json message: {“r”:{“xvm”:1200},”f”:[1,0,15,5589]}
    got json message: {“r”:{“yvm”:400},”f”:[1,0,14,6612]}
    got json message: {“r”:{“xfr”:1200},”f”:[1,0,15,4064]}
    got json message: {“r”:{“yfr”:400},”f”:[1,0,14,6763]}
    got json message: {“r”:{“1tr”:36},”f”:[1,0,13,6463]}
    got json message: {“r”:{“2tr”:2},”f”:[1,0,12,2193]}
    got json message: {“r”:{“1sa”:1.8},”f”:[1,0,12,328]}
    got json message: {“r”:{“2sa”:1.8},”f”:[1,0,12,2462]}
    got json message: {“r”:{“1mi”:8},”f”:[1,0,12,7986]}
    got json message: {“r”:{“err”:”{\”2mi\”:0}”},”f”:[1,111,8,3449]}
    sending: {“xvm”:1200.0}
    sending: {“yvm”:400.0}
    sending: {“xfr”:1200.0}
    sending: {“yfr”:400.0}
    sending: {“1tr”:36.0}
    sending: {“2tr”:2.0}
    sending: {“1sa”:1.8}
    sending: {“2sa”:1.8}
    sending: {“1mi”:8.0}
    sending: {“2mi”:8.0}
    got json message: {“r”:{“xvm”:1200},”f”:[1,0,15,5589]}
    got json message: {“r”:{“yvm”:400},”f”:[1,0,14,6612]}
    got json message: {“r”:{“xfr”:1200},”f”:[1,0,15,4064]}
    got json message: {“r”:{“yfr”:400},”f”:[1,0,14,6763]}
    got json message: {“r”:{“1tr”:36},”f”:[1,0,13,6463]}
    got json message: {“r”:{“2tr”:2},”f”:[1,0,12,2193]}
    got json message: {“r”:{“1sa”:1.8},”f”:[1,0,12,328]}
    got json message: {“r”:{“2sa”:1.8},”f”:[1,0,12,2462]}
    got json message: {“r”:{“1mi”:8},”f”:[1,0,12,7986]}
    got json message: {“r”:{“2mi”:8},”f”:[1,0,12,1660]}
    sending: {“xvm”:1200.0}
    sending: {“yvm”:400.0}
    sending: {“xfr”:1200.0}
    sending: {“yfr”:400.0}
    sending: {“1tr”:36.0}
    sending: {“2tr”:2.0}
    sending: {“1sa”:1.8}
    sending: {“2sa”:1.8}
    sending: {“1mi”:8.0}
    sending: {“2mi”:8.0}
    got json message: {“r”:{“xvm”:1200},”f”:[1,0,15,5589]}
    got json message: {“r”:{“yvm”:400},”f”:[1,0,14,6612]}
    got json message: {“r”:{“xfr”:1200},”f”:[1,0,15,4064]}
    got json message: {“r”:{“yfr”:400},”f”:[1,0,14,6763]}
    got json message: {“r”:{“1tr”:36},”f”:[1,0,13,6463]}
    got json message: {“r”:{“2tr”:2},”f”:[1,0,12,2193]}
    got json message: {“r”:{“1sa”:1.8},”f”:[1,0,12,328]}
    got json message: {“r”:{“2sa”:1.8},”f”:[1,0,12,2462]}
    got json message: {“r”:{“1mi”:8},”f”:[1,0,12,7986]}
    got json message: {“r”:{“2mi”:8},”f”:[1,0,12,1660]}

    Fewer messages, each setting a single setting:
    sending: {“defa”:true}
    got json message: {“r”:{“fv”:0.97,”msg”:”Initializing configs to default settings”,”hp”:1,”id”:”3X2204-RPR”,”fb”:440.2,”hv”:8},”f”:[1,15,14,53]}
    got json message: {“sr”:{“posx”:0,”posy”:0,”feed”:0,”coor”:1,”posz”:0,”unit”:1,”stat”:1,”posa”:0,”dist”:0,”vel”:0,”frmo”:1}}
    sending: {“1tr”:36.0}
    sending: {“2tr”:2.0}
    sending: {“1sa”:1.8}
    got json message: {“r”:{“1tr”:36},”f”:[1,0,13,6463]}
    got json message: {“r”:{“2tr”:36},”f”:[1,0,6,457]}
    sending: {“1tr”:36.0}
    sending: {“2tr”:2.0}
    sending: {“1sa”:1.8}
    got json message: {“r”:{“1tr”:36},”f”:[1,0,13,6463]}
    got json message: {“r”:{“2tr”:2},”f”:[1,0,12,2193]}
    got json message: {“r”:{“1sa”:1.8},”f”:[1,0,12,328]}
    sending: {“defa”:true}
    got json message: {“r”:{“fv”:0.97,”msg”:”Initializing configs to default settings”,”hp”:1,”id”:”3X2204-RPR”,”fb”:440.2,”hv”:8},”f”:[1,15,14,53]}
    got json message: {“sr”:{“posx”:0,”posy”:0,”feed”:0,”coor”:1,”posz”:0,”unit”:1,”stat”:1,”posa”:0,”dist”:0,”vel”:0,”frmo”:1}}
    sending: {“1tr”:36.0}
    sending: {“2tr”:2.0}
    sending: {“1sa”:1.8}
    got json message: {“r”:{“1tr”:36},”f”:[1,0,13,6463]}
    got json message: {“r”:{“err”:”{\”2tr\”6.0}”},”f”:[1,111,7,3579]}

    Here I set the settings in a single message, which works fine. But then I have the same issue when I try to use multiple messages:
    sending: {“defa”:true}
    got json message: {“r”:{“fv”:0.97,”msg”:”Initializing configs to default settings”,”hp”:1,”id”:”3X2204-RPR”,”fb”:440.2,”hv”:8},”f”:[1,15,14,53]}
    got json message: {“sr”:{“posx”:0,”posy”:0,”feed”:0,”coor”:1,”posz”:0,”unit”:1,”stat”:1,”posa”:0,”dist”:0,”vel”:0,”frmo”:1}}
    sending: {“2tr”:2,”2sa”:1.8,”yvm”:400,”yfr”:400,”xfr”:1200,”1mi”:8,”xvm”:1200,”2mi”:8,”1tr”:36,”1sa”:1.8}
    got json message: {“r”:{“2tr”:2,”2sa”:2,”yvm”:400,”yfr”:400,”xfr”:1200,”1mi”:8,”xvm”:1200,”2mi”:8,”1tr”:36,”1sa”:2},”f”:[1,0,97,9454]}
    sending: {“2tr”:2,”2sa”:1.8,”yvm”:400,”yfr”:400,”xfr”:1200,”1mi”:8,”xvm”:1200,”2mi”:8,”1tr”:36,”1sa”:1.8}
    got json message: {“r”:{“2tr”:2,”2sa”:2,”yvm”:400,”yfr”:400,”xfr”:1200,”1mi”:8,”xvm”:1200,”2mi”:8,”1tr”:36,”1sa”:2},”f”:[1,0,97,9454]}
    sending: {“2tr”:2,”2sa”:1.8,”yvm”:400,”yfr”:400,”xfr”:1200,”1mi”:8,”xvm”:1200,”2mi”:8,”1tr”:36,”1sa”:1.8}
    got json message: {“r”:{“2tr”:2,”2sa”:2,”yvm”:400,”yfr”:400,”xfr”:1200,”1mi”:8,”xvm”:1200,”2mi”:8,”1tr”:36,”1sa”:2},”f”:[1,0,97,9454]}
    sending: {“xvm”:1200.0}
    sending: {“yvm”:400.0}
    sending: {“xfr”:1200.0}
    sending: {“yfr”:400.0}
    sending: {“1tr”:36.0}
    sending: {“2tr”:2.0}
    sending: {“1sa”:1.8}
    sending: {“2sa”:1.8}
    sending: {“1mi”:8.0}
    sending: {“2mi”:8.0}
    got json message: {“r”:{“xvm”:1200},”f”:[1,0,15,5589]}
    got json message: {“r”:{“yvm0}”:200},”f”:[1,100,8,3202]}
    sending: {“xvm”:1200.0}
    sending: {“yvm”:400.0}
    sending: {“xfr”:1200.0}
    sending: {“yfr”:400.0}
    sending: {“1tr”:36.0}
    sending: {“2tr”:2.0}
    sending: {“1sa”:1.8}
    sending: {“2sa”:1.8}
    sending: {“1mi”:8.0}
    sending: {“2mi”:8.0}
    got json message: {“r”:{“xvm”:1200},”f”:[1,0,15,5589]}
    got json message: {“r”:{“yvm”:400},”f”:[1,0,14,6612]}
    got json message: {“r”:{“xfr”:1200},”f”:[1,0,15,4064]}
    got json message: {“r”:{“err”:”{\”yfr\”:40.0}”},”f”:[1,111,9,6077]}
    sending: {“xvm”:1200.0}
    sending: {“yvm”:400.0}
    sending: {“xfr”:1200.0}
    sending: {“yfr”:400.0}
    sending: {“1tr”:36.0}
    sending: {“2tr”:2.0}
    sending: {“1sa”:1.8}
    sending: {“2sa”:1.8}
    sending: {“1mi”:8.0}
    sending: {“2mi”:8.0}
    got json message: {“r”:{“xvm”:1200},”f”:[1,0,15,5589]}
    got json message: {“r”:{“yvm”:400},”f”:[1,0,14,6612]}
    got json message: {“r”:{“xfr”:1200},”f”:[1,0,15,4064]}
    got json message: {“r”:{“yfr”:400},”f”:[1,0,14,6763]}
    got json message: {“r”:{“1tr”:36},”f”:[1,0,13,6463]}
    got json message: {“r”:{“2tr”:2},”f”:[1,0,12,2193]}
    got json message: {“r”:{“1sa”:1.8},”f”:[1,0,12,328]}
    got json message: {“r”:{“2sa”:1.8},”f”:[1,0,12,2462]}
    got json message: {“r”:{“1mi”:8},”f”:[1,0,12,7986]}
    got json message: {“r”:{“err”:”{\”2mi\”:0}”},”f”:[1,111,8,3449]}
    sending: {“xvm”:1200.0}
    sending: {“yvm”:400.0}
    sending: {“xfr”:1200.0}
    sending: {“yfr”:400.0}
    sending: {“1tr”:36.0}
    sending: {“2tr”:2.0}
    sending: {“1sa”:1.8}
    sending: {“2sa”:1.8}
    sending: {“1mi”:8.0}
    sending: {“2mi”:8.0}
    got json message: {“r”:{“xvm”:1200},”f”:[1,0,15,5589]}
    got json message: {“r”:{“yvm”:400},”f”:[1,0,14,6612]}
    got json message: {“r”:{“xfr”:1200},”f”:[1,0,15,4064]}
    got json message: {“r”:{“yfr”:400},”f”:[1,0,14,6763]}
    got json message: {“r”:{“1tr”:36},”f”:[1,0,13,6463]}
    got json message: {“r”:{“2tr”:2},”f”:[1,0,12,2193]}
    got json message: {“r”:{“1sa”:1.8},”f”:[1,0,12,328]}
    got json message: {“r”:{“2sa”:1.8},”f”:[1,0,12,2462]}
    got json message: {“r”:{“1mi”:8},”f”:[1,0,12,7986]}
    got json message: {“r”:{“2mi”:8},”f”:[1,0,12,1660]}
    sending: {“xvm”:1200.0}
    sending: {“yvm”:400.0}
    sending: {“xfr”:1200.0}
    sending: {“yfr”:400.0}
    sending: {“1tr”:36.0}
    sending: {“2tr”:2.0}
    sending: {“1sa”:1.8}
    sending: {“2sa”:1.8}
    sending: {“1mi”:8.0}
    sending: {“2mi”:8.0}
    got json message: {“r”:{“xvm”:1200},”f”:[1,0,15,5589]}
    got json message: {“r”:{“yvm”:400},”f”:[1,0,14,6612]}
    got json message: {“r”:{“xfr”:1200},”f”:[1,0,15,4064]}
    got json message: {“r”:{“yfr”:400},”f”:[1,0,14,6763]}
    got json message: {“r”:{“1tr”:36},”f”:[1,0,13,6463]}
    got json message: {“r”:{“2tr”:2},”f”:[1,0,12,2193]}
    got json message: {“r”:{“1sa”:1.8},”f”:[1,0,12,328]}
    got json message: {“r”:{“2sa”:1.8},”f”:[1,0,12,2462]}
    got json message: {“r”:{“1mi”:8},”f”:[1,0,12,7986]}
    got json message: {“r”:{“2mi”:8},”f”:[1,0,12,1660]}

    I’m not sure if I’m missing some intricacy or if a defect in the firmware causes this. I appreciate any input.

    #9381
    jl
    Member

    Not a feature request – re-posted in support.

    #10911

    Issue setting settings after resetting to defaults, Lucky Patcher Apk that resetting Internet Explorer isn’t reversible, and all previous settings are lost after reset.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.