Kegbot / kegbot-android

Android beer kegerator frontend and controller app. Works with a Kegbot server to make your kegerator awesome.
http://kegbot.org/docs/android/
GNU General Public License v2.0
41 stars 53 forks source link

Add support for CH340 based usb-serial converters that are popular on newer arduino knockoffs #110

Closed RePeet13 closed 4 years ago

RePeet13 commented 8 years ago

I have a knockoff arduino mini based on this chipset, and I intend to use it as a kegboard, however kegtab does not recognize it. I know it works because I have verified in other Android arduino apps, so the problem is in this app/driver, not the kegboard/arduino itself.

https://github.com/mik3y/usb-serial-for-android/pull/121 Seems to be a fix already implemented, yet waiting for someone to look and pull it. @mik3y or whoever is in charge of this now, please take a look and see how feasible (and easy) this solution is

mik3y commented 7 years ago

@RePeet13 want to try a pre-release? I've no good way to test this, but, this build has the latest usb-serial-for-android changes. Kegtab-v85.apk

RePeet13 commented 7 years ago

I definitely can, but I just moved, so everything is packed away until mid Oct. I'll update when I get set up again!

T

On Sun, Sep 11, 2016 at 3:44 PM, mike w notifications@github.com wrote:

@RePeet13 https://github.com/RePeet13 want to try a pre-release? I've no good way to test this, but, this build has the latest usb-serial-for-android changes. Kegtab-v85.apk https://kegbb-media.s3-us-west-2.amazonaws.com/original/1X/c74fe0fbe6fb5c288d880ec0068d18e51dcd5003.apk

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Kegbot/kegbot-android/issues/110#issuecomment-246209822, or mute the thread https://github.com/notifications/unsubscribe-auth/AC8v287WAKRzS-p7ra6uBCTyOUI0YBmjks5qpIRDgaJpZM4H3ceQ .

angrypiratebrewing commented 6 years ago

Hi @mik3y , @RePeet13 I realize this is 12+ months later... but I've recently been trying to get kegtab up and running using an arduino mega clone with the CH340 chip.

I've tested the above app and unfortunately it's not recognising the arduino/flow meter.

@RePeet13 - did you have any success getting this up and running?

RePeet13 commented 6 years ago

No worries! I never got a chance to actually test this, because I didnt have a kegerator at the time. I am considering setting another one up, and if I would use kegbot in conjunction with that. My main fear is that kegbot isnt (or at least when I was trying a year or so ago) very active. @mik3y have you been making progress on it lately?

T

On Tue, Dec 12, 2017 at 11:40 AM, angrypiratebrewing < notifications@github.com> wrote:

Hi @mik3y https://github.com/mik3y , @RePeet13 https://github.com/repeet13 I realize this is 12+ months later... but I've recently been trying to get kegtab up and running using an arduino mega clone with the CH340 chip.

I've tested the above app and unfortunately it's not recognising the arduino/flow meter.

@RePeet13 https://github.com/repeet13 - did you have any success getting this up and running?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Kegbot/kegbot-android/issues/110#issuecomment-351170675, or mute the thread https://github.com/notifications/unsubscribe-auth/AC8v2wKh7SmaMAPLL3CZoUIAWPLLbeRuks5s_taZgaJpZM4H3ceQ .

angrypiratebrewing commented 6 years ago

Cheers @RePeet13 It does seem a bit quiet around here.. I have a 3 tap kegerator which I'm looking for a simple volume monitoring solution - which kegbot looks to be perfect for (and have all the bits for!)

I've managed to get the tablet to 'see' the arduino via DroidTerm which specifically notes support for the CH340. When using the serial monitor / blowing through the flow meter I get a stream of characters screenshot_2017-12-11-20-10-56

But as you've experienced - the kegtab app doesn't recognise the board.

I'm quite keen to get this set up so may need to bite the bullet and buy a genuine arduino

johnnyruz commented 6 years ago

Hey everyone,

I started digging into the code to try to make this work with my own knockoff Arduino Nano with the CH340 chip. I think I solved it by just adding the CH340 driver signature to the device_filters.xml file and generating a new apk.

Feel free to try it (at your own risk of course) by downloading the APK here: kegtab-FixCH340Driver.apk. There's no additional features or functionality, but hopefully the cheap chips will work. So far I've only tested with the sample output by wiring Pin 12 to Pin 2 on my self-flashed Kegboard.

angrypiratebrewing commented 6 years ago

Nice work @johnnyruz ! The app recognises there is a kegboard/arduino attached! (Just when I ordered and paid for a new board.. oh well).

Buuuuut here's the problem - I can only assign kegboard.flow0 (pin 2).

I know the other flow meters are recognised by the app - pops up with a notification! screenshot_2017-12-19-11-24-55

But I cannot assign them to a tap. I can only select kegboard.flow0 , or "not connected" screenshot_2017-12-19-11-24-24

Ive tried restarting tablet etc etc.. Any ideas?

johnnyruz commented 6 years ago

Hey angrypirate, thanks for testing.

Are you by any chance using the on-device storage instead of using a Kegbot Server? When using the local storage I have the exact same issue where the tablet seems to recognize data for flow1, but you can't select it from the drop-down. This applies to both my CH340 and my genuine Arduino Uno. However, when I setup the tablet app pointing to my Kegbot server (actually Kegberry running on a Raspberry Pi 3) I'm able to assign flow0 and flow1 to my 2 taps.

John

angrypiratebrewing commented 6 years ago

Hey @johnnyruz - yeah, just running on internal storage.

I did think that might be the case, unfortunately I don't have a pi and didn't really want to have to buy one unless absolutely necessary.

I'm going to give running the server from the tablet a shot tonight, following these instructions: https://forum.kegbot.org/t/howto-install-kegbot-server-directly-on-your-android-tablet-no-root/542

johnnyruz commented 6 years ago

Sounds great, if I get some time I'll see if I can work out how to fix the local issue with the flow meter drop-downs in Local DB mode.

I'll be setting up my Kegerator in a couple weeks so I'm interested to test the full system to confirm that everything is accurate with both genuine and knock-off Arduino boards.

RePeet13 commented 6 years ago

I appreciate you guys working on this, I'm hoping to restart my kegerator adventures with a new keezer build in the next month or so, and getting kegbot back in working shape would be awesome :D

angrypiratebrewing commented 6 years ago

Having a really hard time getting the server up and running on my tablet, so would really appreciate it if you could check out the issue with assigning the flow meters when running kegbot locally - @johnnyruz I'm only after a very simple setup - just wanting to monitor volumes, so the local setup suits me perfectly.

Seems to be an issue installing mysql on my tablet. May as well put up here in case anyone has any ideas. After asking to set the password I get the error - Failed to read /proc/cmdline. Ignoring: Permission denied

It doesn't matter if I set a password or not. screenshot_2017-12-20-09-07-42

johnnyruz commented 6 years ago

Hi @angrypiratebrewing ,

Check out my fork of the project at github.com/johnnyruz/kegbot-android and we can continue this discussion there. I've published a new release that should enable the use of 2 flow meters while in Local DB mode, along with some other minor features that I wanted.

angrypiratebrewing commented 6 years ago

Hey @johnnyruz - first, mate, you are a legend. Two taps are assignable and registering flow from my arduino with the CH340. Perfect. Second, do you have issues activated on that fork? Can't seem to open one. The problem is I have three taps! Any chance adding #3?

johnnyruz commented 6 years ago

@angrypiratebrewing I just enabled issues on my fork so open one there for tracking and I'll try to get another build out today!

mik3y commented 6 years ago

@johnnyruz PRs are quite welcome here, should be no need to fork! I'll be cutting a new release over the break with some accumulated changes.

johnnyruz commented 6 years ago

Thanks @mik3y, let me see what I can do about creating some organized PRs for some of my updates. My commits are pretty messy right now.

RePeet13 commented 6 years ago

Just wanted to reiterate that im happy to see activity here once again, soon as I get my kegerator going, you'll start hearing from me with any issues / fixes I find as well

mik3y commented 4 years ago

resolved in #123 thanks @johnnyruz !