Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support on Mac for cp2105 #3

Open
mimmoLinino opened this issue Dec 15, 2015 · 11 comments
Open

Support on Mac for cp2105 #3

mimmoLinino opened this issue Dec 15, 2015 · 11 comments

Comments

@mimmoLinino
Copy link

Do you think this driver can work also on Mac? What are the steps to build it and install on Mac?
Do you think this driver can support as well different chip like CP2105 ?
Thanks

@nekromant
Copy link
Owner

  1. Folks reported that it works fine on mac, just skip the udev rules part - mac has no udev
  2. CP2105 may have different control transfers for GPIO, I have no hardware right now to test it - patches welcome.

@alfran
Copy link

alfran commented Dec 16, 2015

I built the code on Linux Ubuntu and it works. Then I built the same code in MAC OS and is not working as it should.

I installed lgcc (Xcode native), libusub-1.0 and pkg-config with MacPorts instead.

The cp2103 and 2105 controllers have the same address for GPIO (the only difference is that you have to chose to connect to standard or extended port).

@nekromant
Copy link
Owner

@alfran Okay, looks like it's time to dust off my old hackintosh and see for myself what's going on. Meanwhile if you have docs on what cotrol transfers cp2105 uses - please post, I'll see if I can add them

@alfran
Copy link

alfran commented Jan 5, 2016

@nekromant I need to use CP2105 extended port GPIO 0. The registers are the same for both ports (Extended and Standard) and are the same for CP2103 and CP2105. I'm ready to run some test for you if you need! let me know if you need extra information.

@zoobab
Copy link

zoobab commented Feb 26, 2016

What about CP2104? I discovered that your tool was also supporting CPx devices, although the name is pl2303gpio. Maybe time to rename it?

I have a cp2104 gpio board at home, will try it out.

I am also condisering ordering some CP2112 boards (8 gpios), do you have any experience with those?

@nekromant
Copy link
Owner

Guys, I only have a few cp2103 devices around. CP2104 were on my TODO list somewhere, but the parcel from aliexpress got lost somewhere on the way. Patches welcome.

@zoobab
Copy link

zoobab commented Feb 26, 2016

BTW, I just updated my PL2303 gpio sysfs page yesterday:

http://www.zoobab.com/pl2303hxd-gpio

If you could add a link...

@zoobab
Copy link

zoobab commented Feb 26, 2016

I also have this board at home based on PL2303TB:

http://www.oneping.com.tw/p_PL2303TB_PWM_GPIO.htm

It has 12 GPIOs to play with, I should give it a shot.

I also have the standalone chips to solder on a PCB, but need to find the time to solder them.

@nekromant
Copy link
Owner

What about CP2104? I discovered that your tool was also supporting CPx devices, although the name is pl2303gpio. Maybe time to rename it?

@zoobab Yes, it was initially for pl2303hxa, but since I never managed to get external eeprom working for my app I had to switch to cp2103 and never took time to rename.

As of your sysfs approach - it's way cleaner, but I needed this to run on a few devices where I have no kernel sources (mediatek) and will unlikely ever have. I hope yours will get eventually merged into mainline. Till then - let it be the placeholder.

@dony71
Copy link

dony71 commented Nov 8, 2017

does it mean this tools working also for CP2104 without any modification?
@zoobab did you manage to try it?

@nekromant
Copy link
Owner

Folks, just letting you know, that I'm discontinuing these tool. I've made a replacement here: https://github.com/nekromant/pygpiotools

It's still in very early stage, but has windows support apart from linux. PL2303HXA is working on both platforms, cp210x is yet to come, but it will be soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants