mc-Demo205 > mc-Demo205
Sigfox functionality works under debug but not always under finial build
Bartw:
Hello.
We have one project where the 205 should send a message at power up under Shared Event Boot()
when i debug the code the unit works as expected however when i run it flashed to the unit it refuses to send.
is there a timing or lock event going on that i am not aware of or is there some documentation on when i can Lplan.
and yes the radio should is initialized by this point.
I have tried inserting some large delays with Thread.Sleep() with no joy.
Any Ideas?
mc-T2:
Hi Bart,
That does sounds odd. Can you post your code so we can check it out and see if there is anything that is causing this?
In the title you say
--- Quote ---works under debug but not always under final build
--- End quote ---
- Does this mean that sometimes it works for you with the same code and sometimes it does not?
Bartw:
Hello,
I am missing events from my 205 and am having a closer look to see whats going on.
It looks like the 205 is not sending occasionally and I suspect I have seen this before.
Our office is covered by 3 sigfox base stations and even though our RSSI is somewhat low ~15-20dB SNR the packets are usually seen 2-3 times per station.
However I have just logged two missing packets that never made it even though i manually stepped through the code..
This is really messing up our demo projects and budgets.
Any one have any ideas?
Bartw:
Unfortunately i have been allocated to another project for now but will try and post up once back to that particular job
Bartw:
I spoke too soon. now my current project is 100% dead also...
Sigfox works mostly fine under debug but as soon as i build and "load and save"
power cycle and run from battery or usb for that matter...
I the code blinks an led after Lplan.Sigfox(msg) fine but nothing ends up at the sigfox backend,
The thread is called every 5 seconds to poll sensors and do so calcs there is only the odd message sent based on filtered events.
Code snippets / flow concept below please let me know a support email address that i can email the full project to..
Is there something i have missed???
I have tried the build release and debug neither seem to work for me.
As soon as i connect in mcstudio build and run in debug works first go...
regards
Bart
Shared Event Boot()
Lplan.SigfoxRadioZone(SigfoxRadioZone.Australia)
End Event
Shared Event mainloop() RaiseEvent Every 5 Seconds
While (10 times)
reading = read_sensor()
// do some filtering and add reading to a list
Thread.Sleep(150000)
End While
'do some list searching and list operations
If Then
'do some more calculations and debug
If Then
'pack data and go!
Dim msg As ListOfByte = New ListOfByte()
msg.AddByte( around 7 bytes)
Lplan.Sigfox(msg)
Led2 = True ' this led toggles but no data ends up at sigfox
Thread.Sleep(1000)
Led2 = False
End If
End If
End Event
Navigation
[0] Message Index
[#] Next page
Go to full version