Search found 62 matches

by Lysenko
Tue Nov 01, 2016 1:55 pm
Forum: General Discussion and Questions
Topic: New semantics of utime.ticks_diff
Replies: 10
Views: 11218

Re: New semantics of utime.ticks_diff

Lysenko , you exactly follow the evolution of ticks_diff() semantics. It started with thinking like you just showed, but progressed beyond that to what it is now. If you keep thinking, you will arrive there too. Possible, but unlikely. Ticks emanate from the internal clock which is incrementing to ...
by Lysenko
Tue Nov 01, 2016 12:53 pm
Forum: ESP8266 boards
Topic: Querying Uber API from Wemos D1
Replies: 2
Views: 3360

Re: Querying Uber API from Wemos D1

Hello, I'm wondering what the best way would be to use the ESP8266 (the Wemos D1) with Micropython to query the uber API. So a read only query. I found the Uber API in python (https://github.com/uber/rides-python-sdk), but I can't get it to work on the ESP. It just brings import errors in regards t...
by Lysenko
Tue Nov 01, 2016 12:48 pm
Forum: General Discussion and Questions
Topic: New semantics of utime.ticks_diff
Replies: 10
Views: 11218

Re: New semantics of utime.ticks_diff

So, I'd like to start with - if you are affected by this change (i.e. if you need to update your code for the new argument order), please add comment to this thread. My native language is English which is written left to right. As a consequence the semantics of time intervals are invariably: start ...
by Lysenko
Mon Oct 31, 2016 9:55 am
Forum: MicroPython pyboard
Topic: connecting pyboard to CAN BUS
Replies: 45
Views: 40427

Re: connecting pyboard to CAN BUS

but wouldn't it there be a problem in that PyBoard has 3.3V and OBD2(car) has 12V ? If you don't want to mess around with "electrics" directly you might find something like this: https://www.olimex.com/Products/Power/DCDC6-16-TO5/ ... easier. It's MP14820S based. Similar to the TI part you mentione...
by Lysenko
Sun Oct 30, 2016 8:34 pm
Forum: ESP8266 boards
Topic: Support for Wifi Enterprise 802.1x
Replies: 1
Views: 2481

Re: Support for Wifi Enterprise 802.1x

Hello! Do you know if WLAN Enterprise is already implemented into micropython for esp8266? I read that it was planned to add it, but I havent found anything that that already happend. Is the some new information? Kind regards There is no sign of it in the authmodes in modnetwork.c as far as I can t...
by Lysenko
Sat Oct 29, 2016 4:56 pm
Forum: ESP8266 boards
Topic: Working on a simple ADXL345 driver (i.e. two's complement)
Replies: 3
Views: 4807

Re: Working on a simple ADXL345 driver (i.e. two's complement)

Just convert the number to decimal and subtract 2 to the power bit_count. e.g:

int('1111111111111110',2) - (2**16) = -3

There might be some function or other in the stdlib for this, but it's easier to remember the basic math than library functions for one liners.
by Lysenko
Fri Oct 28, 2016 9:56 pm
Forum: WiPy and CC3200 boards
Topic: WiPy crashes
Replies: 3
Views: 5040

Re: WiPy crashes

Hello all, This is my first time posting here. I recently got the new WiPy 2.0 board. I am running firmware "wipy_0.9.2.b2.bin". os.uname returns: (sysname='ESP32', nodename='ESP32', release='0.9.0b', version='1f7bdfd on 2016-10-09', machine='WiPy with ESP32') That's coming from the the ESP32/FreeR...
by Lysenko
Fri Oct 28, 2016 8:45 pm
Forum: ESP8266 boards
Topic: Issue with ESPs talking to each other over UDP socket (solved)
Replies: 6
Views: 8590

Re: Issue with ESPs talking to each other over UDP socket

Oh, and as a followup, there's no way to do a broadcast packet with UDP to the whole local wireless network is there? In a general sense you activate broadcast for a UDP socket by calling socket.setsockopt with the SO_BROADCAST flag and then sending to a broadcast address ending in 255. For example...
by Lysenko
Wed Oct 26, 2016 6:45 pm
Forum: ESP8266 boards
Topic: Calling experienced network programmers
Replies: 31
Views: 24001

Re: Calling experienced network programmers

My view is that the socket is behaving correctly but the MQTT library should implement timeouts. If a layer 4 proticol like TCP locks up then there is nothing a layer 7 protocol like MQTT can do about it. That pre-supposes that the block is actually at transport level of course. This is an ESP8266,...
by Lysenko
Wed Oct 26, 2016 3:13 pm
Forum: WiPy and CC3200 boards
Topic: NEW: WiPy 2.0 - shipping 10 Oct 2016
Replies: 62
Views: 76985

Re: NEW: WiPy 2.0 - shipping 10 Oct 2016

We will be making all Pycom Firmware Open source. Just seen at https://forum.pycom.io/topic/110/hello-and-welcome-to-pycom Trying to keep an ESP32 port proprietary was never going to work and interfacing to a SX1272 over SPI isn't rocket science either. Libelium have been using those chips in WaspM...