Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. serial
    Log in to post

    • J

      Fipy without expansion board
      Comments & Feedback • fipy nb-iot serial port • • jonaswg  

      4
      0
      Votes
      4
      Posts
      1867
      Views

      robert-hh

      @jonaswg I never did that with a newer xxPy device. But I used Wipy 1 in that mode with a Debian Linux computer. If you terminal emulator has flow control, switch that off. The other settings are 115200 baud, 8 bit, no parity. If you push reset at the FiPy, you shoudl at least see some boot messages.
    • M

      Receive data on lopy through serial
      MicroPython • lopy serial • • monersss  

      48
      0
      Votes
      48
      Posts
      21212
      Views

      robert-hh

      @monersss At the moment, with my example, that happens when you get a timeout. But again, that would require some "out-of-band" signaling, meaning: in addition to the "payload", the jpg file, some control information must be exchanged. And that is part of a protocol. That could be pretty simple. If I grab one out of the air, it could be: Define record types, where the first letter defines the type of the record, followed by 3 bytes record length, followed by the payload, like: 'fnnn': filename (of length nnn) 'd128': data 'x000': done You would first receive 4 bytes, decode type and length, and then receive further 'length' bytes. And for every record received, your LoPy would send a confirmation, like the three bytes: "ok!" or "bad", in case of errors (or just a single byte). That would implement flow control and the EOF signal. It does not have other elements like check sums and sequence control. But you might not need that.
    • M

      Bluetooth and serial connection at the same time
      MicroPython • lopy micropython bluetooth serial • • monersss  

      4
      0
      Votes
      4
      Posts
      1208
      Views

      C

      Hi...I haven't found anything short of implementing a significant chunk of the bluetooth protocol stack (which I have no desire to take on).All of the bluetooth modules I've been able to find are similar to the one used by the arduino BT in that they only support one serial connection. smt assembly service
    • K

      pytrack dfu 0.0.7 no serial port
      Issues & Bugs • pytrack firmware serial update windows • • kanalizator  

      4
      0
      Votes
      4
      Posts
      1325
      Views

      C

      Every update seems to be different. This time, the PyTrack was detected as a COM device. With the same number as before :). But I was not able to connect. To fix it, I had to select show unconnected devices in the device manager, browsed for the usk driver and deleted the unknown and unconnected device.
    • M

      How to send Lopy received data to a computer via serial port?
      MicroPython • micropython python serial lopy lora • • monersss  

      13
      0
      Votes
      13
      Posts
      5272
      Views

      robert-hh

      @monersss Then, start your script with: from network import LoRa import socket import time import os os.dupterm(None) ...
    • C

      Unable to Program SiPy
      SiPy • firmware pymakr sipy serial repl • • choco  

      7
      0
      Votes
      7
      Posts
      2074
      Views

      C

      @jcaron It worked! My bad. Didn't even think about that. I erased flash memory and uploaded most recent firmware. Thank you @robert-hh as well. For the future, are there any best practices for connecting/disconnecting, from both a hardware and software standpoint. e.g. my boot.py file: import os from machine import UART uart = UART(0, 115200) os.dupterm(uart) Should I include anything else?
    • C

      Can't connect to device when main.py is running
      WiPy 2&3 • wipy 2.0 serial ftp repl connection • • ccarducci  

      10
      0
      Votes
      10
      Posts
      2756
      Views

      D

      @ccarducci you could enable a for loop running every second, this way you can interrupt your program every second.
    • G

      Issue with serial connection
      Issues & Bugs • lopy serial issues • • gus  

      4
      0
      Votes
      4
      Posts
      1411
      Views

      G

      hank for your help but i tried hard but didn't succeed so for now i'll go with telnet connection. To do it with my desktop Pc i use my android smartphone with the usb tethear function
    • J

      Connection to LoPy through Pysense fails
      Issues & Bugs • lopy pysense pymakr serial • • jellium  

      2
      0
      Votes
      2
      Posts
      1237
      Views

      J

      A temporary fix: downgrade Pymakr Atom package from version 1.0.2 to version 1.0.1. Curious to know where the problem lies in version 1.0.2 for my LoPy-Pysense combo.
    • Tamm Buhez

      [SOLVED] Linux pytrack USB to serial
      Getting Started • pytrack serial usb linux • • Tamm Buhez  

      10
      0
      Votes
      10
      Posts
      3801
      Views

      Tamm Buhez

      @jacquej1 You should create a new post as your problem is really different from the original I posted to avoid confusing people. That beeing said, I see a typo on address path "/dev/ttyUS0" should be /dev/ttyUSB0" If you want to continue the discussion please create a new topic.
    • iber

      Bluetooth communication with smartphone
      Discussion • ble bluetooth serial • • iber  

      2
      1
      Votes
      2
      Posts
      1227
      Views

      jmarcelino

      @iber LoPy currently only supports Bluetooth LE GATT protocol which in simple terms is a key/value read+write protocol (like a simple database) and ill suited for streaming serialized data like JSON. You should however be able to make your mobile app write to Bluetooth LE characteristics on the LoPy which then set the WiFi and password. The GATTS example should give you the right idea: https://docs.pycom.io/pycom_esp32/library/network.Bluetooth.html#network.characteristic.events
    • A

      Serial Detection and Atom Pymakr debugging problems
      Issues & Bugs • pymakr sipy atom serial debug • • adrien3d  

      2
      0
      Votes
      2
      Posts
      1727
      Views

      bucknall

      Hi @adrien3d, Could you please try following the instructions at the bottom of this page, https://atom.io/packages/pymakr? It looks like you're having issues with the serial port module! Let me know if this helps, Alex
    • L

      Max UART baud rate?
      Discussion • uart serial • • lcgeldenhuys  

      2
      0
      Votes
      2
      Posts
      2092
      Views

      livius

      @lcgeldenhuys 5000000 https://www.esp32.com/viewtopic.php?t=1285
    • E

      LoPy serial stops after a few seconds
      LoPy • serial • • ekwus  

      20
      1
      Votes
      20
      Posts
      4327
      Views

      T

      Yep, Put a 10k and a 0.01uF on the RST to 3.3v and see almost no noise now on the RST pin. Went form running for less than 30 seconds to... well it just seems to keep working now. I am pretty sure the is the same issue, wanted to post to help people like myself in the future.
    • V

      UART wiring for Sipy to FOCA converter
      Getting Started • sipy serial • • Vercellotti  

      3
      0
      Votes
      3
      Posts
      1277
      Views

      robert-hh

      @Vercellotti a) You must set Putty to "No flow control", 8 N 1 b) Try to exchange RX/TX. (RX to Rx, TX to TX). The labeling is sometimes swapped. c) And yes, you do not need DTR.
    • PiAir

      Connect the Circuit Playground to The Things Network using a LoPy
      Projects • lopy serial arduino adafruit • • PiAir  

      2
      3
      Votes
      2
      Posts
      1493
      Views

      livius

      @PiAir Thank you for sharing this
    • RobTuDelft

      Lopy - Arduino Serial Communication
      Projects • lopy serial arduino • • RobTuDelft  

      1
      3
      Votes
      1
      Posts
      2830
      Views

      No one has replied

    • M

      Looking for general advices concerning usage
      Getting Started • sipy serial • • maku  

      10
      0
      Votes
      10
      Posts
      2623
      Views

      M

      Expansion board. Sry for late answers. Must wait 600s between different replies.
    • 1
    • 2
    • 3
    • 2 / 3