Power FC Forum Apex Power FC Support and Questions.

Power FC New Power FC Software RasPexi Viewer

Thread Tools
 
Search this Thread
 
Old 05-11-16, 02:37 PM
  #251  
Spin 2 Win

iTrader: (3)
 
Lavitzlegend's Avatar
 
Join Date: Jul 2013
Location: Iowa
Posts: 318
Received 8 Likes on 8 Posts
That dropbox link doesn't work for me. I downloaded your image from your google drive link in post # 232. Unzipped it and wrote it to my SD card last night but didn't get around to powering it up yet. Plus I need to figure out where to mount my 10" LCD screen in the car... Could get interesting
Old 05-11-16, 08:55 PM
  #252  
Spin 2 Win

iTrader: (3)
 
Lavitzlegend's Avatar
 
Join Date: Jul 2013
Location: Iowa
Posts: 318
Received 8 Likes on 8 Posts
I tried the image from your google drive and all that happened at boot up was a very colorful background and it just stayed there not doing anything. Any suggestions?
Old 05-13-16, 01:33 AM
  #253  
Senior Member

Thread Starter
 
Markus1981's Avatar
 
Join Date: Aug 2013
Location: Wolnzach Germany
Posts: 613
Received 44 Likes on 34 Posts
Originally Posted by Lavitzlegend
I tried the image from your google drive and all that happened at boot up was a very colorful background and it just stayed there not doing anything. Any suggestions?
It seems that image is corrupted for some reason . I deleted it from Google drive .
I made quickly a new image this morning and uploaded it . You need a 8GB card for this

https://drive.google.com/open?id=0Bw...mtIWnl2VTUxYXM

it will autostart into Raspexi at boot .

when using in the first time , quit raspexi by pressing "Q" on the keyboard .
Then type the following :

startx

When the desktop has started go the the start menu and open the raspiconfig.
select "expand filesystem" then reboot
Old 05-13-16, 01:43 PM
  #254  
Spin 2 Win

iTrader: (3)
 
Lavitzlegend's Avatar
 
Join Date: Jul 2013
Location: Iowa
Posts: 318
Received 8 Likes on 8 Posts
Awesome thanks. I'll try it out tonight.
Old 05-14-16, 10:03 AM
  #255  
Senior Member

Thread Starter
 
Markus1981's Avatar
 
Join Date: Aug 2013
Location: Wolnzach Germany
Posts: 613
Received 44 Likes on 34 Posts
Originally Posted by Lavitzlegend
Awesome thanks. I'll try it out tonight.
Cool let me know if it works for you
Old 05-23-16, 01:59 AM
  #256  
Senior Member

Thread Starter
 
Markus1981's Avatar
 
Join Date: Aug 2013
Location: Wolnzach Germany
Posts: 613
Received 44 Likes on 34 Posts
Hi Guys

I finally managed to adapt the megatunix dash dedsigner to raspexi and add the raspexi datasources . I made a new image with working dash designer and uploaded it to my google drive .Happy dash designing

https://drive.google.com/open?id=0Bw...FU2RHNKdl90WTg
Old 06-01-16, 09:56 AM
  #257  
Senior Member

Thread Starter
 
Markus1981's Avatar
 
Join Date: Aug 2013
Location: Wolnzach Germany
Posts: 613
Received 44 Likes on 34 Posts
Sneak peak of my monitor stand for the FD . Installing this weekend
Attached Thumbnails New Power FC Software RasPexi Viewer-photo728.jpg   New Power FC Software RasPexi Viewer-photo964.jpg   New Power FC Software RasPexi Viewer-photo282.jpg   New Power FC Software RasPexi Viewer-photo326.jpg  
Old 06-02-16, 10:42 PM
  #258  
rotary head

iTrader: (1)
 
sukimoto's Avatar
 
Join Date: Nov 2005
Location: MI
Posts: 246
Received 3 Likes on 1 Post
cant wait to try this
Old 06-06-16, 02:03 AM
  #259  
Senior Member

Thread Starter
 
Markus1981's Avatar
 
Join Date: Aug 2013
Location: Wolnzach Germany
Posts: 613
Received 44 Likes on 34 Posts
New Power FC Software RasPexi Viewer-photo746.jpg
Here it is mounted to the Dash
Old 06-18-16, 10:26 AM
  #260  
REVIT

 
REVIT93RX7's Avatar
 
Join Date: Mar 2008
Location: Florida
Posts: 130
Likes: 0
Received 4 Likes on 2 Posts
Raspexi

Hi Markus, so will all the components fit into that enclosure? What is the display that is depicted? Interesting to see it running in the car. Looks good and the carbon fiber looks good as well.
Old 06-19-16, 12:49 AM
  #261  
Senior Member

Thread Starter
 
Markus1981's Avatar
 
Join Date: Aug 2013
Location: Wolnzach Germany
Posts: 613
Received 44 Likes on 34 Posts
Originally Posted by REVIT93RX7
Hi Markus, so will all the components fit into that enclosure? What is the display that is depicted? Interesting to see it running in the car. Looks good and the carbon fiber looks good as well.
Hi , the screen is the official 7" raspberry pi screen . The Housings fits the screen ,my pi 3 as well as my Mausberry 3A car switch .

https://www.adafruit.com/product/2718

http://mausberry-circuits.myshopify....upply-switches

There is still plenty space for the cables and ventilation as well
Old 06-22-16, 03:56 AM
  #262  
Junior Member
 
Hooskworks's Avatar
 
Join Date: Jun 2016
Location: Birmingham, UK
Posts: 4
Likes: 0
Received 0 Likes on 0 Posts
I'm loving the look of this as a nice neat solution to get extra info out of the ECU!

I got an RPi 2 loaded up with the image last night and have just fitted a 2 DIN head unit to my FD last weekend so i'm working towards having everything, just saving up some cash to buy an FC Datalogit and i should be able to give it a try. I'm assuming everything will be fine for use on a '99 spec FD PowerFC as i can't see a reason the interface port would have changed much.

I've had a cursory look over the protocol for the early PowerFC interface port and it looks like it shouldn't be too hard to build an add-on board for the RPi with a micro-controller (at worst a small FPGA or CPLD) on it to take the place of the FC Datalogit and other interfaces (which aren't much more than a micro controller and some level shifting circuitry anyway).

Once I've got it all working and I've got my hands on a logic analyser (I've been looking for an excuse to buy a Saleae logic for ages) I'll start trying to reverse engineer the protocol a bit more. APEX PowerFC?????? gives some really good clues about how simple it should be (even if their circuit design is a bit of an odd one) but the protocol it uses isn't well documented and i'd definitely agree with them referring to It's relation to I2C as "Bimyo". I'll have a dig through the user manual for the NEC micro-controller they found at the heart of the PowerFC and see if that says anything useful otherwise it'll just be a case of capturing the traffic to and from the ECU and working back from there.
Old 06-22-16, 04:22 AM
  #263  
Senior Member

Thread Starter
 
Markus1981's Avatar
 
Join Date: Aug 2013
Location: Wolnzach Germany
Posts: 613
Received 44 Likes on 34 Posts
Originally Posted by Hooskworks
I'm loving the look of this as a nice neat solution to get extra info out of the ECU!

I got an RPi 2 loaded up with the image last night and have just fitted a 2 DIN head unit to my FD last weekend so i'm working towards having everything, just saving up some cash to buy an FC Datalogit and i should be able to give it a try. I'm assuming everything will be fine for use on a '99 spec FD PowerFC as i can't see a reason the interface port would have changed much.

I've had a cursory look over the protocol for the early PowerFC interface port and it looks like it shouldn't be too hard to build an add-on board for the RPi with a micro-controller (at worst a small FPGA or CPLD) on it to take the place of the FC Datalogit and other interfaces (which aren't much more than a micro controller and some level shifting circuitry anyway).

Once I've got it all working and I've got my hands on a logic analyser (I've been looking for an excuse to buy a Saleae logic for ages) I'll start trying to reverse engineer the protocol a bit more. APEX PowerFC?????? gives some really good clues about how simple it should be (even if their circuit design is a bit of an odd one) but the protocol it uses isn't well documented and i'd definitely agree with them referring to It's relation to I2C as "Bimyo". I'll have a dig through the user manual for the NEC micro-controller they found at the heart of the PowerFC and see if that says anything useful otherwise it'll just be a case of capturing the traffic to and from the ECU and working back from there.
TO build a Pi datalogit substitute would be ultimate . Kashimas information was very helpful to start getting Raspexi developed . I think this would make the software even more attractive if the interface could be made cheap. Keep us updated
Old 06-22-16, 05:00 AM
  #264  
Senior Member

Thread Starter
 
Markus1981's Avatar
 
Join Date: Aug 2013
Location: Wolnzach Germany
Posts: 613
Received 44 Likes on 34 Posts
I forgot to answer your question . All FD's use the same communication protocol , there is no difference on the interface port protocol between the Series 6 ,7 and 8 . So it will definitly work on a 99 spec series 8. You can also maybe ask SonicRat here on the forum , he actually built his own Datalogit like cable and even sold a few . Maybe he can give you some tips so you don't have to start from scratch

Last edited by Markus1981; 06-22-16 at 05:21 AM.
Old 06-22-16, 11:20 AM
  #265  
REVIT

 
REVIT93RX7's Avatar
 
Join Date: Mar 2008
Location: Florida
Posts: 130
Likes: 0
Received 4 Likes on 2 Posts
Rx7 pc

We do have another option, Markus has done great work on RasPexi. I built a PC based solution that integrates a PC in the car and uses the datalogit to communicate with the ECU. It utilizes a 7" touch screen installed within the dashboard. Currently it reads ECU parameters and saves them to a file with synched GPS data. All data is displayed in real-time so you can monitor the performance of the car. I have other features designed to be part of this system as well. RasPexi would work great for anyone especially with the new features he is adding, just wanted to make another option available.
Old 06-22-16, 12:44 PM
  #266  
Junior Member
 
mr2powerfc's Avatar
 
Join Date: Jun 2016
Location: Miami
Posts: 10
Likes: 0
Received 0 Likes on 0 Posts
Hi! Nice work Markus !

How to edit cfg files The system don't let me save !
Old 06-22-16, 02:55 PM
  #267  
Junior Member
 
Hooskworks's Avatar
 
Join Date: Jun 2016
Location: Birmingham, UK
Posts: 4
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by Markus1981
TO build a Pi datalogit substitute would be ultimate . Kashimas information was very helpful to start getting Raspexi developed . I think this would make the software even more attractive if the interface could be made cheap. Keep us updated
Yeah, so do i which why i'd like to do it. I'd also like to help out on the software side at some point because i had a thought about using bluetooth or some other low power radio for the Pi to communicate data from the ECU wirelessly to physical gauges or warning lights.

From the information on Kashimas page it looks like anything with a USART or more generic synchronous serial peripheral is going to be able to implement the protocol as long as it runs slow enough. I calculate the clock speed of the data to be 25KHz (40us period) from the timing diagram which is really slow so you could even bit bang it out with really slow micro-controller if you really had to.

The information is just a bit hard to follow even if Google translate does a pretty serviceable job on it. But, it looks like the PowerFC itself is the bus master for the two wire serial interface which would sort of make sense but then raises the question of who initiates communication.

It would be odd for a slave device to do it but then i'm not super familiar with SBI, however it looks like that's what the CMD-REL-CMD sequence is for. The NEC user manual calls that the start of "Bus Release signal transfer" so that must be how the Slave device asks the bus Master to release the Bus so that it can transmit. Then the PowerFC is address 0x10 which is why that gets sent, then 0x40 is sent to request data from the PowerFC and finally 0x02 which i'm not quite sure what that it is if it's anything (i'm assuming that is the actual command to ask for data - do you have different commands for different data or do you just get it all and you discard what you're not interested in).

This next bit is where i'm still figuring it out (and it'd be much easier if i had a PowerFC on my bench with a logic analyser and working interface). But i'm assuming it does one of the following:
  • the PowerFC then performs the bus release signal back to you and starts shifting data out onto the serial data line that you as the slave device have to just catch.
  • the PowerFC then performs the bus release signal back to you then sends an address and command back followed by the data you want (if so what're they going to be).

I'm going to mull over it a bit more and see if i can think my way around this one.

I think i've managed to solve the mystery of some of Kashimas odd design points on his interface schematic. Referencing the the datasheet for the PIC he's using in his interface it looks like he's using a pretty configurable USART with tri-state bus buffers to either allow the micro-controller to talk via the RS232 port or to the ECU but then there are also GPIO lines connected to the SCK and SBO lines to the ECU.

It must be a combination of bit banging (with the bus buffers (74LS125) facing the ECU set to high-Z) on GPIO pins for the more esoteric bits of the SBI protocol (like the bus release signal) followed by using the USART in synchronous mode to just shift some data out via the bus buffers and then going back to bit banging other bits. Then when the data has been collected from the ECU (however that happens) the USART flips over into UART mode, the buffers are set to connect it to the RS232 line transceiver before the data gets blasted out to the host system.

I'm sorry for the wall of text and it being a bit of a dump of a train of thought but i've been writing it and thinking about the problem at the same time so as i've come up with ideas i've just been writing a bit more of this post.

Originally Posted by Markus1981
I forgot to answer your question . All FD's use the same communication protocol , there is no difference on the interface port protocol between the Series 6 ,7 and 8 . So it will definitly work on a 99 spec series 8. You can also maybe ask SonicRat here on the forum , he actually built his own Datalogit like cable and even sold a few . Maybe he can give you some tips so you don't have to start from scratch
Aaah fantastic, i thought that might be the case but i know the 8-bit and 16-bit harnesses aren't compatible and the '99 onwards PowerFCs aren't compatible with '93 spec cars (not sure if that's just a connection to the vehicle harness problem or if the ECU hardware is incompatible)
Old 06-23-16, 12:57 AM
  #268  
Senior Member

Thread Starter
 
Markus1981's Avatar
 
Join Date: Aug 2013
Location: Wolnzach Germany
Posts: 613
Received 44 Likes on 34 Posts
Originally Posted by mr2powerfc
Hi! Nice work Markus !

How to edit cfg files The system don't let me save !
Hi

Sorry i forgot to give permissions to the user on the raspexi folder .
You can do that very easily yourself

open a terminal window and type :

sudo chown -R $user /home/pi/raspexi

this will change the directory ownership to you and allow you to edit all files in the directory raspexi and its sub folders

I see your username mr2powerfc , are you going to use this in a Toyota MR2 ?
If so please give me feedback if everything displays correctly
Old 06-23-16, 05:37 AM
  #269  
Senior Member

Thread Starter
 
Markus1981's Avatar
 
Join Date: Aug 2013
Location: Wolnzach Germany
Posts: 613
Received 44 Likes on 34 Posts
Originally Posted by Hooskworks
Yeah, so do i which why i'd like to do it. I'd also like to help out on the software side at some point because i had a thought about using bluetooth or some other low power radio for the Pi to communicate data from the ECU wirelessly to physical gauges or warning lights.

From the information on Kashimas page it looks like anything with a USART or more generic synchronous serial peripheral is going to be able to implement the protocol as long as it runs slow enough. I calculate the clock speed of the data to be 25KHz (40us period) from the timing diagram which is really slow so you could even bit bang it out with really slow micro-controller if you really had to.

The information is just a bit hard to follow even if Google translate does a pretty serviceable job on it. But, it looks like the PowerFC itself is the bus master for the two wire serial interface which would sort of make sense but then raises the question of who initiates communication.

It would be odd for a slave device to do it but then i'm not super familiar with SBI, however it looks like that's what the CMD-REL-CMD sequence is for. The NEC user manual calls that the start of "Bus Release signal transfer" so that must be how the Slave device asks the bus Master to release the Bus so that it can transmit. Then the PowerFC is address 0x10 which is why that gets sent, then 0x40 is sent to request data from the PowerFC and finally 0x02 which i'm not quite sure what that it is if it's anything (i'm assuming that is the actual command to ask for data - do you have different commands for different data or do you just get it all and you discard what you're not interested in).

This next bit is where i'm still figuring it out (and it'd be much easier if i had a PowerFC on my bench with a logic analyser and working interface). But i'm assuming it does one of the following:
  • the PowerFC then performs the bus release signal back to you and starts shifting data out onto the serial data line that you as the slave device have to just catch.
  • the PowerFC then performs the bus release signal back to you then sends an address and command back followed by the data you want (if so what're they going to be).

I'm going to mull over it a bit more and see if i can think my way around this one.

I think i've managed to solve the mystery of some of Kashimas odd design points on his interface schematic. Referencing the the datasheet for the PIC he's using in his interface it looks like he's using a pretty configurable USART with tri-state bus buffers to either allow the micro-controller to talk via the RS232 port or to the ECU but then there are also GPIO lines connected to the SCK and SBO lines to the ECU.

It must be a combination of bit banging (with the bus buffers (74LS125) facing the ECU set to high-Z) on GPIO pins for the more esoteric bits of the SBI protocol (like the bus release signal) followed by using the USART in synchronous mode to just shift some data out via the bus buffers and then going back to bit banging other bits. Then when the data has been collected from the ECU (however that happens) the USART flips over into UART mode, the buffers are set to connect it to the RS232 line transceiver before the data gets blasted out to the host system.

I'm sorry for the wall of text and it being a bit of a dump of a train of thought but i've been writing it and thinking about the problem at the same time so as i've come up with ideas i've just been writing a bit more of this post.



Aaah fantastic, i thought that might be the case but i know the 8-bit and 16-bit harnesses aren't compatible and the '99 onwards PowerFCs aren't compatible with '93 spec cars (not sure if that's just a connection to the vehicle harness problem or if the ECU hardware is incompatible)
Kashimas page has lots of info , but his cable has a few differences to the Hako and Datalogit . Kashimas Cable is only 19K Baud , the Hako and Datalogit are capable of 56K Baud . Also Kashima uses even parity in his protocol , the Hako and datalogit run with no parity . The best english information of the protocol can be found in this thread https://www.rx7club.com/power-fc-for...alogit-147597/

I hope this helps a little.

If you want to contribute to the Raspexi code , give me your github name and i can add you to the repo
Old 06-23-16, 07:17 AM
  #270  
Junior Member
 
Hooskworks's Avatar
 
Join Date: Jun 2016
Location: Birmingham, UK
Posts: 4
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by Markus1981
Kashimas page has lots of info , but his cable has a few differences to the Hako and Datalogit . Kashimas Cable is only 19K Baud , the Hako and Datalogit are capable of 56K Baud . Also Kashima uses even parity in his protocol , the Hako and datalogit run with no parity . The best english information of the protocol can be found in this thread https://www.rx7club.com/power-fc-for...alogit-147597/

I hope this helps a little.

If you want to contribute to the Raspexi code , give me your github name and i can add you to the repo
Thanks for the link to the thread! I've had a read a few pages into it and it looks like this may be easier than i first thought, i'll have a further dig through it at some point and it'll make playing about with it a little less risky once i can backup the contents of my PowerFC and don't have to worry about accidentally writing over something i didn't mean to.

I'm not too worried about the interface to host system side commnication, that's the super easy bit. It's just the on-the-wire protocol from the interface to the PowerFC i'm trying to make sure I understand.

My end goal once this works is to just open source the entire thing from PCB design and GERBER files to source code of the firmware needed for whatever processing system the interface uses.

I'll PM you my github username when i get a moment / have tidied up the account a bit as i do most of my version control via bit bucket these days.
Old 06-23-16, 12:31 PM
  #271  
Junior Member
 
mr2powerfc's Avatar
 
Join Date: Jun 2016
Location: Miami
Posts: 10
Likes: 0
Received 0 Likes on 0 Posts
Hi! Yes is for a MR2 3sgte , it works fine speed and tach and some others

Nice work!

Thanks for your reply!

Originally Posted by Markus1981
Hi

Sorry i forgot to give permissions to the user on the raspexi folder .
You can do that very easily yourself

open a terminal window and type :

sudo chown -R $user /home/pi/raspexi

this will change the directory ownership to you and allow you to edit all files in the directory raspexi and its sub folders

I see your username mr2powerfc , are you going to use this in a Toyota MR2 ?
If so please give me feedback if everything displays correctly
Old 06-23-16, 03:41 PM
  #272  
Junior Member
 
mr2powerfc's Avatar
 
Join Date: Jun 2016
Location: Miami
Posts: 10
Likes: 0
Received 0 Likes on 0 Posts
Hi Markus I type: sudo chown -R $user /home/pi/raspexi

not working

Says:
chown: missing aperand after ' /home/pi/raspexi
try 'chown --help' for more information

Thanks

Originally Posted by mr2powerfc
Hi! Yes is for a MR2 3sgte , it works fine speed and tach and some others

Nice work!

Thanks for your reply!
Old 06-23-16, 04:53 PM
  #273  
Rotary Enthusiast

 
elfking's Avatar
 
Join Date: Jan 2004
Location: Sonoma, CA
Posts: 782
Received 3 Likes on 3 Posts
I think you need to use $USER

I am not near my pi to check but I am pretty sure it needs to be capitalized... so you could try this:

sudo chown -R $USER /home/pi/raspexi

or even use the user directly and do this:

sudo chown -R pi /home/pi/raspexi

I hope that helps...


Originally Posted by mr2powerfc
Hi Markus I type: sudo chown -R $user /home/pi/raspexi

not working

Says:
chown: missing aperand after ' /home/pi/raspexi
try 'chown --help' for more information

Thanks

Last edited by elfking; 06-23-16 at 04:55 PM. Reason: added direct user line
Old 06-23-16, 05:01 PM
  #274  
Rotary Enthusiast

 
elfking's Avatar
 
Join Date: Jan 2004
Location: Sonoma, CA
Posts: 782
Received 3 Likes on 3 Posts
I was thinking of picking this up and trying it for in the car...

In theory it uses the AA's as a UPS for the pi, so when you say turn the key off for the ignition it has a moment to gracefully shutdown the pi, not just cut the power off...

https://www.pi-supply.com/product/pi...FQmQaQod24MNZA

I haven't tested it yet but looks interesting... a little bulky unfortunately with the batteries... There are other options that could work but this is the only one I saw so far with the ability to detect power cut and shutdown like a traditional UPS..



Originally Posted by Markus1981
Hi , the screen is the official 7" raspberry pi screen . The Housings fits the screen ,my pi 3 as well as my Mausberry 3A car switch .

https://www.adafruit.com/product/2718

Car Ignition Switch With Power Supply ? Mausberry Circuits

There is still plenty space for the cables and ventilation as well
Old 06-23-16, 08:05 PM
  #275  
Junior Member
 
mr2powerfc's Avatar
 
Join Date: Jun 2016
Location: Miami
Posts: 10
Likes: 0
Received 0 Likes on 0 Posts
thanks is working now.

Originally Posted by elfking
I think you need to use $USER

I am not near my pi to check but I am pretty sure it needs to be capitalized... so you could try this:

sudo chown -R $USER /home/pi/raspexi

or even use the user directly and do this:

sudo chown -R pi /home/pi/raspexi

I hope that helps...


Quick Reply: Power FC New Power FC Software RasPexi Viewer



All times are GMT -5. The time now is 02:41 PM.