how to make gevcu own functions that is to be monitered constantly

29 views
Skip to first unread message

Gaurav Rewani

unread,
Apr 1, 2017, 10:04:35 AM4/1/17
to GEVCU-Development
Can we make own function is gevcu software that checks it constantly & applies it to digital outputs
any guide or help
 

Gaurav Rewani

unread,
Apr 1, 2017, 10:06:59 AM4/1/17
to GEVCU-Development
say if i want to monitor analog input & send its values directly via can or digital outputs
 

Michael Neuweiler

unread,
Apr 1, 2017, 10:10:30 AM4/1/17
to gevcu-de...@googlegroups.com

Not sure if it's already in "master" branch... but you could use CanIO.cpp to transmit analog and digital Input values via CAN bus. If you can't find it, check out the fork on https://github.com/neuweiler/GEVCU

On 01.04.17 16:06, Gaurav Rewani wrote:
say if i want to monitor analog input & send its values directly via can or digital outputs
 
--
You received this message because you are subscribed to the Google Groups "GEVCU-Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gevcu-developm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 

-- What we do in life, echoes in eternity

Gaurav Rewani

unread,
Apr 1, 2017, 10:55:11 AM4/1/17
to GEVCU-Development

Gaurav Rewani

unread,
Apr 1, 2017, 10:55:20 AM4/1/17
to GEVCU-Development, mic...@neuweiler.biz
well , i have used can IO but problem is we have to send can messages to get statues via can messages
, Can you tell me how do i get can messages broadcasted without using can switch .

Michael Neuweiler

unread,
Apr 1, 2017, 11:12:24 AM4/1/17
to Gaurav Rewani, GEVCU-Development

Not sure if I understand what you want to do. CAN messages are usually broadcast onto a network without a target ID - only a source ID. Please be more specific in describing what you want to achieve.

Do you want to query GEVCU for status data via CAN bus? Then the best approach would be via OBD2 PID's

Gaurav Rewani

unread,
Apr 1, 2017, 11:12:36 AM4/1/17
to GEVCU-Development
well , i have used can IO but problem is we have to send can messages to get statues via can messages
, Can you tell me how do i get can messages broadcasted without using can switch .
plz help if you can




On Saturday, 1 April 2017 19:34:35 UTC+5:30, Gaurav Rewani wrote:

Gaurav Rewani

unread,
Apr 1, 2017, 11:21:10 AM4/1/17
to GEVCU-Development
i want to get analog values checked constantly ,

example:
if (analog values ==200) // it does something

if (analog values ==500) // it does something else 

// this should be checked constantly

Michael Neuweiler

unread,
Apr 1, 2017, 11:41:06 AM4/1/17
to gevcu-de...@googlegroups.com

Enable CanIO on GEVCU and in the other application listen to CAN messages with ID 0x725 and get the values like this:

    analogIn[0] = frame->data.s0;
    analogIn[1] = frame->data.s1;
    analogIn[2] = frame->data.s2;
    analogIn[3] = frame->data.s3;

--
You received this message because you are subscribed to the Google Groups "GEVCU-Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gevcu-developm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Charles Galpin

unread,
Apr 1, 2017, 11:51:33 AM4/1/17
to gevcu-de...@googlegroups.com
I think what he wants is to just create his own device. In that device he would do as you suggest.

Gaurav, look at one of the existing devices like the PotBrake or PotThrottle as a starting point for a device that reads analog values. Once you have the values, do what Michael describes below to put it on the can bus.

There is a guide to creating devices somewhere, although not sure where off the top of my head or I’d link you to it. But the source code for existing devices shows how to initialize it etc.

hth
charles

Gaurav Rewani

unread,
Apr 1, 2017, 1:08:44 PM4/1/17
to GEVCU-Development
1) yes i want to make my device that measures the analog values like throttle
2) how do i enable can broadcast message & where to edit the file for that ? 

to accomplish 1) & 2) what file should i edit & how
if you have any reference than please provide me link.



On Saturday, 1 April 2017 19:34:35 UTC+5:30, Gaurav Rewani wrote:

Gaurav Rewani

unread,
Apr 2, 2017, 9:10:42 AM4/2/17
to GEVCU-Development
i have 3 images , i have enabled throttle , can is receiving 3 ids
 0x650 with some data
0x150 with some data
0x601 with some data

& i am getting the throttle values on my serial monitor

how do i get the analog values in 0x725 &how do i enable CAN IO
enabled.PNG
can data receiving.PNG
throttle.PNG

hack...@gmail.com

unread,
Apr 2, 2017, 9:23:21 AM4/2/17
to GEVCU-Development
i am  having gevcu 5.22

how to enable can IO  broadcaster ? please guide .

Gaurav Rewani

unread,
Apr 2, 2017, 1:35:35 PM4/2/17
to GEVCU-Development
@Michael Neuweiler
Sir ,
i tried to enable CAN io , but i cannot enable it i am only receiving 3 can ids
they are 0x150 , 0x650 & 0x601

i cannot not activate 0x725

please sir help .

Reply all
Reply to author
Forward
0 new messages