Fun, Learning, Friendship and Mutual Respect START  HERE


Unregistered
Go Back   HeliFreak > HeliFreak.com Rules, Support and Testing > Other Websites > RC Heli Nation Podcast - Listeners Corner


RC Heli Nation Podcast - Listeners Corner RC Heli Nation Podcast - Listeners Corner for Suggestions and Announcements from RCHN


Reply
 
LinkBack Thread Tools Display Modes
Old 03-14-2017, 04:52 AM   #21 (permalink)
Registered Users
 

Join Date: Sep 2009
Default

Hi
I would love to be a beta tester.
Actually I already have it up and running and I can monitor the charger but I've not been able to control it(start/stop charging).
Was only able to run the Ionic app on my computer. I've not been able to compile the app for Andriod yet.

Also please add support for iCharger 406 DUO since that is what I have.
Please let me know if you need any info from me to be able to add it.

I found your project when searching for ways to control the iCharger.
Just started using the Jeti RFID sensor and I would love to be able to add the same functionality as Revo Bump to iCharger by connecting a rfid sensor to the Pi.
Regards
Joakim
josex is offline        Reply With Quote Quick reply to this message
Sponsored Links
Advertisement
 
Old 05-31-2017, 03:50 AM   #22 (permalink)
Registered Users
 
Posts: 225
Thread Starter Thread Starter
 

Join Date: Nov 2012
Default

Hi Joakim, sounds good. We are actually still working on this... I've just been "doing other things (i.e: work)" and also away, on holiday. In fact, I've just finished a week over in Croatia, at Hugo's Heli School

Good to hear you got it working!

Before I left, I was working on functions (charge, storage, etc). Those are mostly working in a private build I have, so I don't think will take long to integrate.

John is working on the interconnect/BT/roaming side of things. With luck we'll have something more usable in a short time.

I've just finished my own charging case, which provides some incentive to get back to the project
__________________
Neil, Citizen № 178
waferthin is offline        Reply With Quote Quick reply to this message
Old 06-04-2017, 06:23 PM   #23 (permalink)
Registered Users
 
Posts: 225
Thread Starter Thread Starter
 

Join Date: Nov 2012
Default

Joakim,

Can you please run up the pi3, and assuming it's working, do a:

http://<<ip address of the pi3>>:5000/status

Here's a sample of what I see:
{"ch2_status": {"run": 0, "err": 0, "dlg_box_status": 0, "cell_volt_status": 0, "run_status": 0, "balance": 0, "ctrl_status": 0}, "memory_len": 167, "charger_presence": "connected", "hardware_ver": 2000, "channel_count": 2, "system_len": 118, "device_sn": "1308308201", "ch1_status": {"run": 0, "err": 0, "dlg_box_status": 0, "cell_volt_status": 0, "run_status": 0, "balance": 0, "ctrl_status": 0}, "software_ver": 2107, "cell_count": 8, "device_id": 66}


I need to know the device_id of your charger. Mine (a 308) is 66. It's the last field in the JSON.
__________________
Neil, Citizen № 178
waferthin is offline        Reply With Quote Quick reply to this message
Old 06-05-2017, 02:32 AM   #24 (permalink)
Registered Users
 

Join Date: Jan 2012
Default

Yeah - I still exist and am working on this project in my spare time :-)
__________________
--
Goblin 570, Protos Max V2's, TDF in the queue - Brain 2 goodness on each, with Jeti DS-14 telling it all what to do...
And remember - If it ain't broke, you need to tinker with it.
johncclayton is offline        Reply With Quote Quick reply to this message
Old 06-05-2017, 02:53 AM   #25 (permalink)
Registered Users
 

Join Date: Jan 2012
Default

I should add; if anyone already has service & characteristic definitions for the iCharger data for BLE communications, and wants to share - please PM me if you are willing to provide these for our project :-)
__________________
--
Goblin 570, Protos Max V2's, TDF in the queue - Brain 2 goodness on each, with Jeti DS-14 telling it all what to do...
And remember - If it ain't broke, you need to tinker with it.
johncclayton is offline        Reply With Quote Quick reply to this message
Old 07-22-2017, 02:14 PM   #26 (permalink)
Registered Users
 

Join Date: Jan 2012
Default

Status update: yesterday we successfully managed to overcome some of the issies we had experienced intermittently with rhe USB protocol to the icharger.

We now have a different and much cleaner system architecture too: a single process is used to talk to the icharger - it handles everything to do with the MODBUS protocol, retry, failure recovery anf message serialization.

In front of that sits a web server which of course uses a restful api.

The master branch contains the good stuff, although documentation to get it running is lacking but because weve only just now got a reliable system im ok wirh being behind on that.

Now would be a great time to have other people begin testing. We do have a lonf laundry list of ui concerns and issues we consider critical for first release but its usable.

Ping me here if you are game to try it. Soon we shall get a quick video togerher to show it working so it doesn't feel like vapourware.

😁
__________________
--
Goblin 570, Protos Max V2's, TDF in the queue - Brain 2 goodness on each, with Jeti DS-14 telling it all what to do...
And remember - If it ain't broke, you need to tinker with it.
johncclayton is offline        Reply With Quote Quick reply to this message
Old 08-04-2017, 06:18 AM   #27 (permalink)
Registered Users
 

Join Date: Sep 2009
Default

Tried it today but it wont run.

Code:
HypriotOS/armv7: [email protected] in ~
$ docker run -d --name electric-web -p 5000:5000 johncclayton/electric-pi-web
61a5afd62567c353d0fdecdb3359652465a734bc6319352fb49ccf7f617b5745
docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"./run_gunicorn.sh\\\": permission denied\"\n".
HypriotOS/armv7: [email protected] in ~
$ docker run -d --name electric-worker -p 5001:5001 johncclayton/electric-pi-worker
9fd75de7d3d28949f9d86132ff54a5475091485076910906857bd1ab307d792c
docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"./run_zmq_worker.sh\\\": permission denied\"\n".
josex is offline        Reply With Quote Quick reply to this message
Old 08-04-2017, 09:36 PM   #28 (permalink)
Registered Users
 
Posts: 225
Thread Starter Thread Starter
 

Join Date: Nov 2012
Default

Quote:
Originally Posted by josex View Post
Tried it today but it wont run.



Code:
HypriotOS/armv7: [email protected] in ~

$ docker run -d --name electric-web -p 5000:5000 johncclayton/electric-pi-web

61a5afd62567c353d0fdecdb3359652465a734bc6319352fb49ccf7f617b5745

docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"./run_gunicorn.sh\\\": permission denied\"\n".

HypriotOS/armv7: [email protected] in ~

$ docker run -d --name electric-worker -p 5001:5001 johncclayton/electric-pi-worker

9fd75de7d3d28949f9d86132ff54a5475091485076910906857bd1ab307d792c

docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"./run_zmq_worker.sh\\\": permission denied\"\n".


John. Ideas? Permissions on something in /dev?


Sent from my iPhone using Tapatalk
waferthin is offline        Reply With Quote Quick reply to this message
Old 08-04-2017, 09:40 PM   #29 (permalink)
Registered Users
 
Posts: 225
Thread Starter Thread Starter
 

Join Date: Nov 2012
Default

Did some monitoring today. Even went flying!

https://www.facebook.com/neil.clayto...6508598224148/


Sent from my iPhone using Tapatalk
waferthin is offline        Reply With Quote Quick reply to this message
Old 08-04-2017, 09:42 PM   #30 (permalink)
Registered Users
 
Posts: 225
Thread Starter Thread Starter
 

Join Date: Nov 2012
Default

Odd. Iím running mine from docker at the moment as well. Iíll try to find the bit where we have to have permissions for the USB port. That miiiiight be it....


Sent from my iPhone using Tapatalk
waferthin is offline        Reply With Quote Quick reply to this message
Old 08-08-2017, 07:51 AM   #31 (permalink)
Registered Users
 

Join Date: Jan 2012
Default

Quote:
Originally Posted by josex View Post
Tried it today but it wont run.

Code:
HypriotOS/armv7: [email protected] in ~
$ docker run -d --name electric-web -p 5000:5000 johncclayton/electric-pi-web
61a5afd62567c353d0fdecdb3359652465a734bc6319352fb49ccf7f617b5745
docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"./run_gunicorn.sh\\\": permission denied\"\n".
HypriotOS/armv7: [email protected] in ~
$ docker run -d --name electric-worker -p 5001:5001 johncclayton/electric-pi-worker
9fd75de7d3d28949f9d86132ff54a5475091485076910906857bd1ab307d792c
docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"./run_zmq_worker.sh\\\": permission denied\"\n".
Hi

In order to check if this is a docker problem or the code itself, lets try a pure python approach first.

Please do this:

<sudo> pip install electric

The version at the time of writing is 0.7.8

This will pull the latest scripts from PyPi and install into the local environment, if this is the first time you are doing this - be prepared to wait a while - zeromq compilation can take a couple of minutes (or more).

On a Pi3, the zeromq compilation can in fact take something like 20 minutes. You *may very well need* gcc and g++ installed to compile - let me know what happens and I can guide you further. If you must know immediately; read the README.md in the GitHub repo - that goes into great detail about all the dependancies.

In any case - once done - you will have two commands available to you:

electric-worker
electric-server

Run both (two terminals please), i.e.
$ electric-worker

and
$ electric-server

You should now have the web server (electric-server) reporting that its going to connect to the worker at tcp://127.0.0.1:5001

At this point you can fire up any web browser - and point it to this:
http://<ip-where-services-are-running>:5000/status

You should get a JSON response, something along the lines of this - which is what my 4010 reports right now (I'm sitting in a campsite in Italy doing some testing work on the service as I type):

{
"cell_count": 10,
"ch1_status": {
"balance": false,
"cell_volt_status": false,
"ctrl_status": false,
"dlg_box_status": false,
"err": false,
"run": false,
"run_status": false
},
"ch2_status": {
"balance": false,
"cell_volt_status": false,
"ctrl_status": false,
"dlg_box_status": false,
"err": false,
"run": false,
"run_status": false
},
"channel_count": 2,
"charger_presence": "connected",
"device_id": 64,
"device_sn": "1504308022",
"hardware_ver": 2000,
"memory_len": 173,
"software_ver": 2108,
"system_len": 118
}

For reference - docker is just making the distribution easier, but its not 100% required. Future distribution is in theory easier with Docker - but I'd really appreciate seeing if you can get the project to work using the above first.

Let me know how you get on.

Thanks.
__________________
--
Goblin 570, Protos Max V2's, TDF in the queue - Brain 2 goodness on each, with Jeti DS-14 telling it all what to do...
And remember - If it ain't broke, you need to tinker with it.
johncclayton is offline        Reply With Quote Quick reply to this message
Old 08-18-2017, 10:05 PM   #32 (permalink)
Registered Users
 
Posts: 30
 

Join Date: Jun 2009
Default

I'll be a guinea pig. I've been looking for something just like this.I have 5 raspberry pi's for experimentation and running various things. Just received the 7in touch screen and was planning on using it for an interface for my iCharger. Looks like you have already done a lot of the work.

Terry
stinker is offline        Reply With Quote Quick reply to this message
Old 08-20-2017, 05:20 PM   #33 (permalink)
Registered Users
 
Posts: 30
 

Join Date: Jun 2009
Default

I was able to get this to run in Docker on a Raspberry Pi -

HypriotOS/armv7: [email protected] in ~
$ docker run -d --name electric-web -p 5000:5000 johncclayton/electric-pi-web
afd424e1eaeb7a190718bd1c51110c7cee5f0024ecef2dcf50 062af7c011628d
HypriotOS/armv7: [email protected] in ~
$ docker run -d --name electric-worker -p 5001:5001 johncclayton/electric-pi-worker
41c11066b7636b1ceeda944e787e252d99edd971a7f6a53ce5 8effcfdff5cd16

If I try to access it from a web page I get:
{"message": "Internal Server Error"}

Also wondering what the Ionic 2 app is. The app I saw on the app store doesn't look like it's right for this.

Appreciate all that you have done on this and would love to be able to run it.

Thanks
Terry
stinker is offline        Reply With Quote Quick reply to this message
Old 08-20-2017, 10:28 PM   #34 (permalink)
Registered Users
 
Posts: 225
Thread Starter Thread Starter
 

Join Date: Nov 2012
Default

yo!

OK, lets see now...

So, Ionic is a thing we use to do the app on the phone.
Because we're currently in dev, we havn't actually published any app to the app store (google or apple). So, we're using Ionic View to let you play with the app, while we more or less get it to release stage.

So, you want Ionic View.
Check out this: https://github.com/johncclayton/elec...GET_THE_APP.md.

I just updated github (https://github.com/johncclayton/electric) with a bunch more docs, specifically regarding install.

Main github page shows the docker install.
Super important to NOT use Hypriot v1.5... I tried today and it is broken. Using v1.4 it worked just fine. So if you have flashed using 1.5, please downgrade and re-flash with 1.4 (I've put that into the instructions now).

I upgraded the install script as well. It'll now find the latest build and install that. I still need to work out how to make it upgrade (it fails right now)... but it's a step in the right direction.
__________________
Neil, Citizen № 178

Last edited by waferthin; 08-20-2017 at 10:38 PM..
waferthin is offline        Reply With Quote Quick reply to this message
Old 08-22-2017, 09:27 AM   #35 (permalink)
Registered Users
 
Posts: 30
 

Join Date: Jun 2009
Default

Thank you for adding some more instructions - I needed them

I did have Hyprios1.5 installed so I reimaged the pi to1.4 and followed instructions on Github. It works a lot better now.

Ran into a roadblock when I tried to create an account on Ionic. Seems they have disabled new account creation while they are changing things over. Not sure exactly what they are doing but wont be able to play around with the mobile part right now.

Thanks for everything so far. I'll be following with lots of anticipation.

Terry
stinker is offline        Reply With Quote Quick reply to this message
Old 08-22-2017, 03:32 PM   #36 (permalink)
Registered Users
 
Posts: 225
Thread Starter Thread Starter
 

Join Date: Nov 2012
Default

Nice to know the instructions were some help. "Meh" re Ionic. We are currently working on a "real" deployment. Don't have an ETA tho. It's a shame you can't try it, as I was kinda excited to finally have something we were happy to lets others break
__________________
Neil, Citizen № 178
waferthin is offline        Reply With Quote Quick reply to this message
Old 09-09-2017, 07:42 AM   #37 (permalink)
Registered Users
 
Posts: 169
 

Join Date: Jul 2011
Location: Scotland, UK
Default

Awesome stuff!! Got it running on an old Pi2 I had lying around. The only issue I am having so far is with Ionic... as it is saying "No public channels for app found". Any ideas?
__________________
Gaui R5 + Tribunus + HK-4530-540KV + 14S Optipower + Bavarian Demon Axon
Gaui X3L Speed & Gaui X3 + Bavarian Demon 3SX
Jeti DS-16, Citizen 625, MHSFA 13
Member of East Fortune Aeromodellers
AlastairC is offline        Reply With Quote Quick reply to this message
Old 09-09-2017, 03:31 PM   #38 (permalink)
Registered Users
 
Posts: 225
Thread Starter Thread Starter
 

Join Date: Nov 2012
Default

Can you send me a screenshot of the error? Not seen that one before, some context might help me figure it out.
__________________
Neil, Citizen № 178
waferthin is offline        Reply With Quote Quick reply to this message
Old 09-09-2017, 04:16 PM   #39 (permalink)
Registered Users
 
Posts: 169
 

Join Date: Jul 2011
Location: Scotland, UK
Default

Quote:
Originally Posted by waferthin View Post
Can you send me a screenshot of the error? Not seen that one before, some context might help me figure it out.
Here is a screenshot with the code from the Ionic View app on my iPhone 7plus:Click image for larger version

Name:	IMG_8869.jpg
Views:	39
Size:	27.7 KB
ID:	722085

When I click view app the message appears at the bottom of the screen and it clears out the code:
Click image for larger version

Name:	IMG_8870.jpg
Views:	32
Size:	17.7 KB
ID:	722086
__________________
Gaui R5 + Tribunus + HK-4530-540KV + 14S Optipower + Bavarian Demon Axon
Gaui X3L Speed & Gaui X3 + Bavarian Demon 3SX
Jeti DS-16, Citizen 625, MHSFA 13
Member of East Fortune Aeromodellers
AlastairC is offline        Reply With Quote Quick reply to this message
Old 09-10-2017, 03:07 AM   #40 (permalink)
Registered Users
 
Posts: 169
 

Join Date: Jul 2011
Location: Scotland, UK
Default

Quote:
Originally Posted by AlastairC View Post
Here is a screenshot with the code from the Ionic View app on my iPhone 7plus:Attachment 722085

When I click view app the message appears at the bottom of the screen and it clears out the code:
Attachment 722086
Just thinking.. is this because I am on the latest Ionic View app? They seem to have deprecated the old one and don't allow users to create logins that work anymore with the old one.
__________________
Gaui R5 + Tribunus + HK-4530-540KV + 14S Optipower + Bavarian Demon Axon
Gaui X3L Speed & Gaui X3 + Bavarian Demon 3SX
Jeti DS-16, Citizen 625, MHSFA 13
Member of East Fortune Aeromodellers
AlastairC is offline        Reply With Quote Quick reply to this message
Reply

Tags
icharger, integration, phone




Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the HeliFreak forums, you must first register.
Please enter your desired user name, your REAL and WORKING email address and other required details in the form below.
User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself. Use a real email address or you will not be granted access to the site. Thank you.
Email Address:
Location
Where do you live? ie: Country, State, City or General Geographic Location please.
Name and Lastname
Enter name and last name here. (This information is not shown to the general public. Optional)
Helicopter #1
Enter Helicopter #1 type and equipment.
Helicopter #2
Enter Helicopter #2 type and equipment.
Helicopter #3
Enter Helicopter #3 type and equipment.
Helicopter #4
Enter Helicopter #4 type and equipment.

Log-in


Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Copyright © Website Acquisitions Inc. All rights reserved.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.

SEO by vBSEO 3.6.1