Search found 28 matches

by mosi
Mon Oct 19, 2015 6:24 pm
Forum: WiPy and CC3200 boards
Topic: HOWTO: simple webserver, very simple
Replies: 5
Views: 22015

Re: HOWTO: simple webserver, very simple

Have you tried this on actual CC3200 architecture or just unix version? There seems to be an error with this line: any help appreciated. >>> s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: no such attribut...
by mosi
Mon Oct 19, 2015 6:16 pm
Forum: WiPy and CC3200 boards
Topic: [SOLVED] How to start after login?
Replies: 6
Views: 6356

Re: [SOLVED] How to start after login?

Had the same problem, ~$ telnet 192.168.1.1 Trying 192.168.1.1... Escape character is '^]'. Micro Python v1.4.6-21-gff736d6 on 2015-09-27; WiPy with CC3200 Login succeeded! Type "help()" for more information. >>> help() Welcome to Micro Python! For online help please visit http://micropython.org/hel...
by mosi
Tue Oct 13, 2015 10:36 pm
Forum: General Discussion and Questions
Topic: How to synchronise timers
Replies: 7
Views: 7419

Re: How to synchronise timers

Found this on timer synchronization, but am lost in translation. https://github.com/micropython/micropython/wiki/STM32F405-Timer-Triggering Then this code: https://www.rapitasystems.com/blog/chaining-two-16-bit-timers-together-stm32f4 /* enable the timer peripherals: */ RCC->APB1ENR |= RCC_APB1Perip...
by mosi
Thu Oct 08, 2015 9:18 pm
Forum: General Discussion and Questions
Topic: How to synchronise timers
Replies: 7
Views: 7419

How to synchronise timers

What is the easiest way to synchronise two timers, say Timer 1 and Timer 8 ? At first sight, micropython is seemingly unable to guarantee realtime execution of two subsequent lines of code, which is crucial for exact timing sequences. Random time delays occur between the exectution, possibly to mic...
by mosi
Tue Jul 28, 2015 9:25 pm
Forum: Development of MicroPython
Topic: CC3200 wipy compiling
Replies: 10
Views: 9608

Re: CC3200 wipy compiling

Hi, Edit: Now it works, updated from github, compiled with macports, failed with crt0.s missing, continued compilation with 4_9 toolchain and it worked. Have no idea what has changed, except upgrading from github. Original: installed fresh gcc-arm-none-eabi-4_9-2015q2 from https://launchpad.net/gcc-...
by mosi
Wed Jul 15, 2015 12:42 am
Forum: Development of MicroPython
Topic: CC3200 wipy compiling
Replies: 10
Views: 9608

CC3200 wipy compiling

Trying to compile micropython in ./cc3200 directory, error with crt0.o micropython/cc3200$ make BTARGET=application BTYPE=release BOARD=LAUNCHXL LINK build/LAUNCHXL/release/application.axf /opt/local/lib/gcc/arm-none-eabi/5.1.0/../../../../arm-none-eabi/bin/ld: cannot find crt0.o: No such file or di...
by mosi
Sat May 02, 2015 7:18 pm
Forum: MicroPython pyboard
Topic: PyB-to-PyB using I2C?
Replies: 24
Views: 20152

Re: PyB-to-PyB using I2C?

Found the only solution that works, but the code is definitely buggy. Follow the previous post for code setup ### MASTER: >>> i2c.scan() [] ### SLAVE: >>> i2c I2C(2, I2C.SLAVE, addr=0x42) >>> i2c.recv(3, addr=0x00 , timeout=122000) ###MASTER: >>> i2c.send('abc',addr=0x42,timeout=100000) ###SLAVE: b'...
by mosi
Sat May 02, 2015 6:51 pm
Forum: MicroPython pyboard
Topic: PyB-to-PyB using I2C?
Replies: 24
Views: 20152

Re: PyB-to-PyB using I2C?

Reporting similar issues. I can not get the I2C SLAVE talking back to I2C MASTER. However, both devices do work with a designated I2C slave digital potentiometer flawlessly. ############## SLAVE device ########### import pyb from pyb import I2C from pyb import Pin pyb.freq(168000000) i2c = pyb.I2C(2...
by mosi
Fri Nov 07, 2014 12:28 am
Forum: General Discussion and Questions
Topic: Playing with WiFly
Replies: 1
Views: 2831

Playing with WiFly

testing WiFly RN-171 wifi module with stack plugged on UART3. Letting the wifi run is as easy as: def ww(arg): wifi.write(arg+'\r') print(wifi.read().decode("utf-8")) wifi=pyb.UART(3,9600) wifi.write('$$$') # start command mode wifi.any() wifi.read() ww('set wlan ssid MySSID') ww('set wlan passphras...
by mosi
Mon Oct 13, 2014 6:50 pm
Forum: General Discussion and Questions
Topic: Controlling the micropython repl from Python with PySerial
Replies: 6
Views: 6638

Re: Controlling the micropython repl from Python with PySeri

dhylands wrote: RAW REPL is started with Control-A. There is a script in the tools directory called pyboard.py which sends a python script to the pyboad using th raw repl.
Correct.

Thank you for the pyboard.py example, looks like Ctrl+a, Ctrl+b Ctrl+c Ctrl+d all are implemented, perfect!