Jump to content
Thank you for the great forum, Safe Driving over the weekend. Sincerely Jason
flamegrilled

VE direct usb 2 PI 4 ICC

Recommended Posts

Hi Folks,

I bought a usb cable for the BMV 702 to usb on the PI.It does not work(recognise the device)

On windows it does.The ic software and windows sees the device.

I don't have a key for the ICC windows version so I cannot test it.

What is needed on Pi-2 to get this to work? 

Thanks.

Share this post


Link to post
Share on other sites

Well, the first step is to check if Linux sees the device. Internally it's an FTDI usb-serial converter so it will come up as /dev/ttyUSBx where x is some number. Usually udev will symlink it for you, so you can list all serial devices quite easily, eg:

[email protected]:~# ls -l /dev/serial/by-id/
lrwxrwxrwx    1 root     root            13 Feb  7 17:29 usb-FTDI_USB-RS485_Cable_FTXYLY3F-if00-port0 -> ../../ttyUSB0
lrwxrwxrwx    1 root     root            13 Feb  7 17:29 usb-VictronEnergy_BV_VE_Direct_cable_VE9MRFG-if00-port0 -> ../../ttyUSB1

If it lists the device there, then you can check that data arrives across it using something like screen at 19.2kbaud, eg:

screen /dev/ttyUSB0 19200

If you see text on the screen, then the cable and BMV is working.

Share this post


Link to post
Share on other sites

 

1 hour ago, ghatikar said:

bmv

Under Battery control tick or no tick . It does not display.

On 3/4/2018 at 2:43 PM, plonkster said:

screen /dev/ttyUSB0 19200

Thanks Plonkster  : screen /dev/ttyUSB0 19200 works.Get the data streaming

Share this post


Link to post
Share on other sites
15 hours ago, flamegrilled said:

 

Under Battery control tick or no tick . It does not display.

Thanks Plonkster  : screen /dev/ttyUSB0 19200 works.Get the data streaming

Should be ticked. and BMV should say thread running with time indication 

Share this post


Link to post
Share on other sites
22 hours ago, ghatikar said:

Should be ticked. and BMV should say thread running with time indication 

The PI I have is too old.Not enought threads.

I am purchasing a new PI 3 which has more threads on the upgraded cpu.

Share this post


Link to post
Share on other sites
24 minutes ago, flamegrilled said:

The PI I have is too old.Not enought threads.

What? That's not how that stuff works, or not how it should.

A computer does multitasking a bit like a man who chews bubblegum while walking, but cannot do it at the same time. He chews a bit, then walks a bit, then chews a bit, and so on. If you swap between chewing and walking really quickly it looks like it is happening simultaneously, but in reality it isn't.

Even a single-core CPU can do two things at the same time using this method, and that is how we did it for decades before symmetric multiprocessing became common. More cores means more things in parallel, but there are way more than just 4 or even 8 things that needs to be juggled on a modern OS, so it will still juggle them.

So whether your CPU is single, dual or quad core matters little. Threads will be juggled anyway. At 19200 baud rate, that thread will spend most of its time sleeping anyway (waiting for an interrupt on the serial port to wake it up), so you really shouldn't need a dedicated core to run it.

Share this post


Link to post
Share on other sites

Hi Julle,

 

Both Manie and myself connected to @flamegrilled's pi to check it out, and we saw that in fact he wasn't running a model 2 Pi, but in fact it was a model 1Pi.  For those in the know, you will know that there simply isn't enough processing power to run everything in ICC, do the calculations multiple times per second, do the graphics, the graphs, charts, dashboard, emoncms, database, minimums, maximums, cost recovery, gauges, mqtt, etc etc. 

We have tried running it on model 1 pi's before, and they end up plonking out completely ('scuse the pun plonkster ;)).  What we did to try and help was to offer him a free license for when he upgraded to a Pi model 3b as we all use, which, as far as I understand happened yesterday, so we will hopefully be hearing some good news from him in the coming days.

 

Kind Regards

 

 

Share this post


Link to post
Share on other sites
12 minutes ago, watkykjy1 said:

scuse the pun plonkster

Hey, where do you think the nick comes from? Mostly from acting like a plonker in random #irc channels, plonking out, and drinking wine of dubious quality (aka plonk), and that I like the 2003 remake of The Italian Job (because of the cars, can't care less about that one particular actress) where Lyle insists that his nickname was The Napster (because he always had nappy hair) before his roommate stole it.

So there you go. Happily plonking around on online forums since 1997 (ish).

Share this post


Link to post
Share on other sites

Lol, you probably won't remember, but we've been gooi-ing since '98 on irc and bulletin boards, when potch was stil giving it out freely in their bib.  We've both used the same nicknames since then... Kap hom flou pappa! :D

 

Share this post


Link to post
Share on other sites
2 hours ago, watkykjy1 said:

irc and bulletin boards

My first online experience was with an actual dial-up bulletin board service (aka bbs). Then came the Internet, which was via Beltel back in the day. Finally we got internet when I went to university. The Pirc and Mirc days (and slapping people around with a large trout), and then we learned how to run ircII on the unix server and life was never the same again :-)

Share this post


Link to post
Share on other sites

Pity the Pi Zero is only 40% more powerful than the Pi1 (same CPU Chip, just upped the clock from 700 Mhz to 1 Ghz), else it would have been a nice low cost option for ICC users. The lack of Ethernet/Wifi is addressable with a Ethernet to USB dongle, but alas, I think it will also run out of steam.

For interest sake, here is the comparison table of all the different Pies (Pi's):lol:

<iframe width="100%" height="520" src="http://socialcompare.com/en/w/raspberrypi-models-comparison#" frameborder="0" scrolling="auto" marginheight="0" marginwidth="0"></iframe>

 

Share this post


Link to post
Share on other sites

The CCGX is a single core 600Mhz Arm processor with 256GB of not particularly fast RAM. That's actually very close to the original Pi and except for emoncms we do pretty much all the rest of the same things... :-)

Then again we don't run a copy of mysql...

Share this post


Link to post
Share on other sites
On 2018/03/13 at 4:01 PM, plonkster said:

My first online experience was with an actual dial-up bulletin board service (aka bbs). Then came the Internet, which was via Beltel back in the day. Finally we got internet when I went to university. The Pirc and Mirc days (and slapping people around with a large trout), and then we learned how to run ircII on the unix server and life was never the same again :-)

Aaah, the good 'ol days. BBS ruled the world!! :D BitchX caused a lot of uproar back then. Now it's totally forgotten. 

Share this post


Link to post
Share on other sites
7 hours ago, SilverNodashi said:

BitchX

I remember there were some people who ran that, but I never did. I later used irssi, used to hang out on #freenode until a few years ago. Nothing wrong with the protocol really, it just sort-of went out of vogue.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...