How can i disable the debug messages that seem to come from bdev?
Code: Select all
>>> os.remove('switchRelay.py')
writeblocks(2, 3fff1950(4096))
readblocks(1, 3fff19a0(4096))
writeblocks(1, 3fff1a80(4096))
ioctl(3, 0)
>>>
Code: Select all
>>> os.remove('switchRelay.py')
writeblocks(2, 3fff1950(4096))
readblocks(1, 3fff19a0(4096))
writeblocks(1, 3fff1a80(4096))
ioctl(3, 0)
>>>
jwissing wrote:Just a question.
How can i disable the debug messages that seem to come from bdev?
Code: Select all
>>> import esp
>>> esp.osdebug(None)
I have this code in my boot.py. but those messages are written nonetheless.deshipu wrote:jwissing wrote:Just a question.
How can i disable the debug messages that seem to come from bdev?Code: Select all
>>> import esp >>> esp.osdebug(None)
Is this release and the accessible git source the same already?kfricke wrote:Oh, just saw you can help yourself...
Go to the esp8266/scripts/ directory of your MicroPython sources and edit the file flashdev.py. There you can find various debug messages printed onto the console. Simply comment them out or tease them as you like.
After that you do need to rebuild the firmware cleanly, flash and enjoy!
Take a look at github and read the section i did mention. Check locally and you should find it in your recently pulled local git repository. If not present take Pauls thread for "tips, tricks and updates" to update it.jwissing wrote:...
Is this release and the accessible git source the same already?
...
Do i need to pull some other repository?
I have flashed my ESP12E with the latest build and there is no module webrepl2 and module onewire is missing.kfricke wrote:Take a look at github and read the section i did mention. Check locally and you should find it in your recently pulled local git repository. If not present take Pauls thread for "tips, tricks and updates" to update it.jwissing wrote:...
Is this release and the accessible git source the same already?
...
Do i need to pull some other repository?
Code: Select all
>>>
>>>
PYB: soft reboot
ioctl(1, 0)
ioctl(5, 0)
readblocks(0, 3ffef680(4096))
readblocks(2, 3ffef750(4096))
could not open file 'boot.py' for reading
MicroPython v1.6-436-ge5dc8d3-dirty on 2016-04-08; ESP module with ESP8266
Type "help()" for more information.
>>>
paste mode; Ctrl-C to cancel, Ctrl-D to finish
=== import pyb, time
===
=== while 1:
=== time.time()
=== pyb.delay(11000 * 6)
===
===
158
216
275
333
391
449
507
565
623
681
739
797
856
914
972
1030
1088
1146
1203
1261
1319
1377
1435
1493
1551
1609
1667
1725
1783
1841
1899
1957
2015
2073
2131
2189
bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with Propeller, channel 6
dhcp client start...
ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1
2247
bcn_timout,ap_probe_send_start
2305
2363
2421
2479
bcn_timout,ap_probe_send_start
2536
2594
2652
2710
bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with Propeller, channel 6
dhcp client start...
ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1
2768
2826
2884
bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with Propeller, channel 6
dhcp client start...
ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1
2941
bcn_timout,ap_probe_send_start
2999
3057
3115
3173
bcn_timout,ap_probe_send_start
3230
3288
bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with Propeller, channel 6
dhcp client start...
ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1
3346
bcn_timout,ap_probe_send_start
3404
3462
3519
3577
bcn_timout,ap_probe_send_start
3635
bcn_timout,ap_probe_send_start
3693
3750
3808
bcn_timout,ap_probe_send_start
3866
3924
bcn_timout,ap_probe_send_start
3981
4039
bcn_timout,ap_probe_send_start
4097
4155
4212
bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with Propeller, channel 6
dhcp client start...
ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1
4270
4328
4386
4443
bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with Propeller, channel 6
dhcp client start...
ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1
4501
bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with Propeller, channel 6
dhcp client start...
ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1
4559
bcn_timout,ap_probe_send_start
4616
4674
bcn_timout,ap_probe_send_start
4732
4789
4847
4905
4962
5020
5078
5136
5193
5251
5309
5366
5424
5482
5539
5597
5655
5712
5770
5828
5886
5943
6001
6059
6116
6174
6232
6290
6347
6405
6463
6521
6578
6636
6694
6751
6809
bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with Propeller, channel 6
dhcp client start...
ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1
6867
6925
6982
7040
bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with Propeller, channel 6
dhcp client start...
ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1
7098
7156
7213
7271
7329
7387
7445
7502
7560
bcn_timout,ap_probe_send_start
7618
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with Propeller, channel 6
dhcp client start...
ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1
7675
7733
7791
7849
bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with Propeller, channel 6
dhcp client start...
ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1
7906
7964
8022
8080
8137
bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with Propeller, channel 6
dhcp client start...
ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1
8195
8252
8310
8368
8425
bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with Propeller, channel 6
dhcp client start...
ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1
8483
8540
8598
8655
8713
8770
8828
8885
8943
9001
9058
9116
9173
9231
Indeed it is. Simply use the following file as a replacement for your 'esp8266/scripts/flashbdev.py':jwissing wrote:...
I take it that it is not possible to suppress the debug messages in this build.
Code: Select all
import esp
class FlashBdev:
SEC_SIZE = 4096
START_SEC = 0xa0000 // SEC_SIZE
NUM_BLK = 64
def __init__(self, blocks=NUM_BLK):
self.blocks = blocks
def readblocks(self, n, buf):
esp.flash_read((n + self.START_SEC) * self.SEC_SIZE, buf)
def writeblocks(self, n, buf):
assert len(buf) <= self.SEC_SIZE, len(buf)
esp.flash_erase(n + self.START_SEC)
esp.flash_write((n + self.START_SEC) * self.SEC_SIZE, buf)
def ioctl(self, op, arg):
if op == 4: # BP_IOCTL_SEC_COUNT
return self.blocks
if op == 5: # BP_IOCTL_SEC_SIZE
return self.SEC_SIZE