Coder Social home page Coder Social logo

mcp2200ctl's Introduction

mcp2200ctl - MCP2200 USB-to-UART serial converter control program.

Build Status

mcp2200ctl

mcp2200ctl is a command-line program which allows controlling additional features found in MCP2200 USB-to-UART serial converter (http://www.microchip.com/wwwproducts/en/MCP2200).

mcp2200ctl has the following features:

  • RX/TX led mode control.
  • RX/TX/RTS/CTS invert control.
  • EEPROM read/write.
  • GPIO read/write.
  • GPIO direction and default value control.
  • Hardware flow control.
  • USB suspend and configure state indication pin control.
  • Ability to set USB manufacturer and product strings.
  • Ability to set custom vendor and product IDs.

mcp2200gui

mcp2200gui is a GTK 3 based graphical program with the same purpose as mcp2200ctl.

mcp2200gui screenshot

mcp2200ctl usage

List all detected MCP2200 devices:

mcp2200ctl list
  1, "Microchip Technology Inc.", "MCP2200 USB Serial Port Emulator", "0000988086", "/dev/hidraw4"

Get current configuration:

mcp2200ctl configure
Default baud rate: 9600
GPIO directions: ioiooioo
GPIO default values: 11000111
GPIO values: 01000111
RX LED (GPIO pin 6): blink
TX LED (GPIO pin 7): blink
Blink speed: fast
Invert RX/TX/RTS/CTS: off
USB suspend pin (GPIO pin 0): off
USB configuration pin (GPIO pin 1): on
Hardware flow control RTS/CTS: off

Get current GPIO values:

mcp2200ctl get
GPIO values: 01000111

Get current manufacturer, product and serial strings:

mcp2200ctl describe
Manufacturer: Microchip Technology Inc.
Product: MCP2200 USB Serial Port Emulator
Serial: 0000988086

Get current EEPROM value at address 0x01:

mcp2200ctl get-eeprom --address=01
EEPROM value: 12

Building from source

Compiler

Some of C++17 features are required. Compilation is currently only tested on the following compilers:

  • gcc 9.3
  • gcc 10.2
  • clang 10.0
  • clang 11.0

Build dependencies

CMake 3.13 or newer (https://cmake.org).

Dependencies

On Debian, and on Debian based Linux distributions, the following command can be used to get all of the build dependencies:

apt-get install cmake pkg-config libhidapi-dev libgtk-3-dev libudev-dev libjsoncpp-dev libboost-filesystem-dev libboost-program-options-dev libboost-test-dev

Building

mkdir build
cd build
cmake ../
make
make install

mcp2200ctl's People

Contributors

thezbyg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

amdxyz spike77453

mcp2200ctl's Issues

Is there a migration path to make this work with windows? Windows 10/11 specifically.

I see so much good code for this chip for the Linux world, and so little help getting it to run in Windows. Are they so far apart this would not help me get a windows equivalent, or is it just a few library substitutions? I'm a proficient software developer but not a driver writer and my work has been in embedded systems, not Linux or Windows, so I could use help help here. Mainly I've been having problems getting a Denkovi 4 port relay card to work in windows 11.

Delete

Hello

I'm not really technic savvy, i apologize in advance.

I am also not very fermiliar with the Github community or their eiquette.

I have read around a little bit and I think I am ready to open an issue for support.

Please bare with me, I will be doing my best effort ๐Ÿ™‚

I recently bought a second hand computer (a WIN10 x64, 8gb RAM, i5, 1 ssd with operating system and 1 hdd for data )

I noticed it contained a mcp2200 USB emulator and I am kinda unknown what the purpose is and even if it would have great qualities, it's likely that my tiny brain won't be able to match this expert level.

So I would like try to remove this from the pc so I did several attempts to delete, but it keeps coming back after a reboot.

(I now feel like an outdated grandmother, its really akward)

I can't manage to remove it.

Can I kindly ask for any help at all, please?

Or maybe some direction to the right place to ask for help?

(--> Second question but feel free to ignore)

I don't want to be a botter, but i'd also like to ask if its possible at all that this emulator has some thing too do with my whole network being very, very infected.

(Trying to get out of this misery all day long 24/24 and 7/7 since 2019, while i'm suffering from brain damage and me and partner are isolated from the world)

Even real life professionals can't get my network clean, can you imagine I am really desperate.

Thanks a bunch for any help in advance.

Kindest regards

Edited for several improvements like spelling and style

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.