Search found 167 matches

by danielm
Sun Oct 30, 2016 7:22 am
Forum: Programs, Libraries and Tools
Topic: MQTT: c.connect() -> IndexError: bytes index out of range
Replies: 7
Views: 9376

Re: MQTT: c.connect() -> IndexError: bytes index out of range

I also think so, but I never used MP on esp.
Maybe you could create an issue on GitHub. Please try to search through existing issues first, there are several related to MQTT client.
https://github.com/micropython/micropython/issues
by danielm
Sat Oct 29, 2016 5:41 pm
Forum: Programs, Libraries and Tools
Topic: MQTT: c.connect() -> IndexError: bytes index out of range
Replies: 7
Views: 9376

Re: MQTT: c.connect() -> IndexError: bytes index out of range

I experience something similar on CC3200 port when trying with MP version older than 1.8.x.
by danielm
Thu Oct 27, 2016 5:34 pm
Forum: Hardware Projects
Topic: Connected RGB laser scanner
Replies: 1
Views: 3556

Connected RGB laser scanner

This scanner was created during a hackathon with modules from our laser 3D controller project and won first place ;-) https://drive.google.com/file/d/0B2mvAuXuxQ6Bc29lTFo1aW1sck0 It can display time, temperature measured from SHT31D sensor and when nearby person is detected by PIR sensor, it zooms d...
by danielm
Wed Oct 19, 2016 4:16 pm
Forum: WiPy and CC3200 boards
Topic: SyntaxError: invalid micropython decorator
Replies: 10
Views: 12668

Re: SyntaxError: invalid micropython decorator

@pythoncoder, I wanted to implement your solution, however enumerate() probably does not work with list of lists as expected: >>> alphabet["A"] [[0, 0], [1, 4], [2, 8], [3, 12], [4, 16], [5, 20], [6, 24], [7, 28], [8, 32], [9, 28], [10, 24], [11, 20], [12, 16], [13, 12], [10, 12], [6, 12], [13, 12],...
by danielm
Wed Oct 12, 2016 8:58 pm
Forum: WiPy and CC3200 boards
Topic: SyntaxError: invalid micropython decorator
Replies: 10
Views: 12668

Re: SyntaxError: invalid micropython decorator

Dave, it helped, thanks a lot! Decorator @micropython.native increased performance of my function by almost 10%. I am looking for further improvements. This is my code - its purpose is to render words consisting of letters - each represented by 20-30 X-Y coordinates defined as two-dimensional lists ...
by danielm
Wed Oct 12, 2016 6:20 pm
Forum: WiPy and CC3200 boards
Topic: SyntaxError: invalid micropython decorator
Replies: 10
Views: 12668

Re: SyntaxError: invalid micropython decorator

I was not able to build MP with MICROPY_EMIT_THUMB and MICROPY_EMIT_INLINE_THUMB set to (1) CC ../py/compile.c ../py/compile.c: In function 'compile_built_in_decorator': ../py/compile.c:759:24: error: 'MP_QSTR_native' undeclared (first use in this function) } else if (attr == MP_QSTR_native) { ^ ../...
by danielm
Tue Oct 11, 2016 9:01 pm
Forum: WiPy and CC3200 boards
Topic: SyntaxError: invalid micropython decorator
Replies: 10
Views: 12668

Re: SyntaxError: invalid micropython decorator

Thanks Dave, I will rebuild tomorrow and check if it works.

Could you please suggest some typical test function on which I should observe improvement when defined with @micropython.native or @micropython.viper decorators?
by danielm
Tue Oct 11, 2016 8:37 pm
Forum: WiPy and CC3200 boards
Topic: SyntaxError: invalid micropython decorator
Replies: 10
Views: 12668

SyntaxError: invalid micropython decorator

When trying @micropython.native or @micropython.viper decorator on MicroPython v1.8.4-54-gec078af-dirty on 2016-09-22; WiPy with CC3200.

Do I have to enable it manually somewhere before building MP?
by danielm
Thu Oct 06, 2016 9:40 am
Forum: General Discussion and Questions
Topic: Free RAM on MicroPython boards
Replies: 37
Views: 73919

Re: Free RAM on MicroPython boards

Why in case of WiPy the heap size is less that quarter of total RAM size, when for other boards it is around half of the RAM size?

Are there any options how to build the CC3200 MP port with bigger heap size?
by danielm
Thu Oct 06, 2016 7:29 am
Forum: General Discussion and Questions
Topic: Interesting UART problem
Replies: 3
Views: 3564

Re: Interesting UART problem

Reading UART data to bytearray through ISR did help. It is easier when messages are up to 8 bytes long.

Anyway I think there must be some memory leak. When not printing anything and reading UART within main loop, received data are often mixed with some other data.