Coder Social home page Coder Social logo

USB serial not working about f1rmware HOT 5 CLOSED

jonnor avatar jonnor commented on July 28, 2024
USB serial not working

from f1rmware.

Comments (5)

jonnor avatar jonnor commented on July 28, 2024

Need this for MicroFlo (a dataflow programming env I ported to radio), so I can live program it from host : )

from f1rmware.

erikbos avatar erikbos commented on July 28, 2024

I have tried to use CDC as well, with both the rad1o library code and NXP's library code for the NXP4330. In both cases I could not get it to work: The VCP device does not appear on my laptop and the code appears to wait forever on a call to vcom_connected().

Also in the testapp's cdc tester does not work at first use, it hangs as well. It does work when starting the testapp, selecting msc, stopping msc, and then starting cdc. So it looks like the msc code initialises something cdc needs as well..

from f1rmware.

jonnor avatar jonnor commented on July 28, 2024

@erikbos So when you run the msc code first, you see the serial device on laptop?

from f1rmware.

erikbos avatar erikbos commented on July 28, 2024

Yes, the usb device appears on my Mac. "screen /dev/tty.usbmodem-" connects to it and the cdc option in the demo app echos everything that I type back to me. Characters typed are echoed with bracket as the code is supposed to do, so it is not the local terminal doing the echoing.

from f1rmware.

erikbos avatar erikbos commented on July 28, 2024

FYI: as work around in my rad1o app code I added:

MSCenable();
MSCdisable();
CDCenable();

to toggle MSC mode on and immediately off, followed by calling CDCenable: that appears to reliable setup the rad1o's for CDC.

from f1rmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.