can_logger-3.2 :: With WEB and SendText

Code to run on Linux for CAN interfaces.
Post Reply
User avatar
linuxkidd
Site Admin
Posts: 345
Joined: 2005 Jul 22 15:48
Location: Anywhere, USA
Contact:

can_logger-3.2 :: With WEB and SendText

Post by linuxkidd » 2005 Aug 07 13:07

Check it out!!

** Updated to v3.2: Updated the MARK packets & MARK CanID in Database.pm and can_logger to make the web interface easier to use.

To fix your existing database:

Code: Select all

mysql -uroot -p can_logger
mysql> insert into canids values ( NULL, 'ZZZ', 'MARK' );
mysql> select ciid from canids where canid='ZZZ';
remember the returned number...

Code: Select all

mysql> update data set ciid='<number remembered above>', packets='4', contents='4d41524b' where ciid='0' and packets='0';
Done.
can_logger-3.2.tgz

Updated the CANDRIVER to allow for both Autopoll and Non Autopoll,
Added the Updated Web analysis interface, and the send_me.php interface for making Artist/Song Title updates to your display!

Check out the CAN Logger Web analysis Demo.

Thanks everyone for all there help!
If you can read this, the light is still red.

User avatar
linuxkidd
Site Admin
Posts: 345
Joined: 2005 Jul 22 15:48
Location: Anywhere, USA
Contact:

Post by linuxkidd » 2005 Aug 07 21:13

Updated to version 3.2... See above.
If you can read this, the light is still red.

User avatar
linuxkidd
Site Admin
Posts: 345
Joined: 2005 Jul 22 15:48
Location: Anywhere, USA
Contact:

Post by linuxkidd » 2005 Aug 09 22:18

Updated web analysis tool... Check out the demo

http://www.canhack.org/can_logger
If you can read this, the light is still red.

05MagnumRT
What's hacking?
Posts: 23
Joined: 2005 Jul 28 16:03
Location: Dallas (Frisco), TX

Post by 05MagnumRT » 2005 Aug 10 13:26

You are missing the close angle at the end of your html on the can_logger page.

User avatar
linuxkidd
Site Admin
Posts: 345
Joined: 2005 Jul 22 15:48
Location: Anywhere, USA
Contact:

Post by linuxkidd » 2005 Aug 10 13:34

05MagnumRT wrote:You are missing the close angle at the end of your html on the can_logger page.
Hehe... thanks.. :) Sometimes the fingers don't keep up w/ the mind..
If you can read this, the light is still red.

05MagnumRT
What's hacking?
Posts: 23
Joined: 2005 Jul 28 16:03
Location: Dallas (Frisco), TX

Post by 05MagnumRT » 2005 Aug 10 13:45

linuxkidd wrote:
05MagnumRT wrote:You are missing the close angle at the end of your html on the can_logger page.
Hehe... thanks.. :) Sometimes the fingers don't keep up w/ the mind..
Not a problem. The new can_logger page looks nice!

05MagnumRT
What's hacking?
Posts: 23
Joined: 2005 Jul 28 16:03
Location: Dallas (Frisco), TX

Post by 05MagnumRT » 2005 Aug 10 13:51

FYI for anyone using the new can_logger, if you select "All CAN IDs", the selection area re-draws and there is no output window. If you wait, it will come. It threw me off the first time - I thought that the All CAN IDs selection wasn't working.

05MagnumRT
What's hacking?
Posts: 23
Joined: 2005 Jul 28 16:03
Location: Dallas (Frisco), TX

Post by 05MagnumRT » 2005 Aug 10 15:48

linuxkidd- Really like the new "Distinct Data" mode, thanks for adding that.

User avatar
linuxkidd
Site Admin
Posts: 345
Joined: 2005 Jul 22 15:48
Location: Anywhere, USA
Contact:

Post by linuxkidd » 2005 Aug 10 16:51

05MagnumRT wrote:linuxkidd- Really like the new "Distinct Data" mode, thanks for adding that.
Heck, It's my pleasure... :)

Always glad to get feedback on my code... And glad it's positive!! :)

Ya.. some of the data calls will take a WHILE! I've removed the 500 response cap, so if there's 6000 packets in your request, you'll get all 6000 comm'n at ya from CANHack.org!!

In other words... Make sure what you request is what you want.. ( Most people should be good with the 'Distinct data mode' )

Thanks again to all our supporters, coders, circuit engineers, et al!
If you can read this, the light is still red.

rtgree01
Yes, we CAN hack!
Posts: 93
Joined: 2007 Jul 17 19:56
Location: St. Louis, MO

Re: can_logger-3.2 :: With WEB and SendText

Post by rtgree01 » 2008 Mar 15 14:56

Are you still looking for a c/c++ version of this?

I've got experience with mysql, serial port, and thread programming....

I just need to decode what exactly the perl was doing.....

Ryan

rtgree01
Yes, we CAN hack!
Posts: 93
Joined: 2007 Jul 17 19:56
Location: St. Louis, MO

Re: can_logger-3.2 :: With WEB and SendText

Post by rtgree01 » 2008 Mar 20 20:45

I have ported what you have done with the can_logger into c/c++, but I'm going to have to do some cleanup.... I'm using some code that I wrote at work, and they own that. I'll recreate that code at some point and post it here.
I'm not sure if I'm getting all of the data though... is there a good way to know if you are getting everything? I've got 2 threads... one constantly copies 1k out of the CANUSB com port. The other port appends that to another buffer and processes the buffer. There is a signalling semaphore that tells the processing thread when to copy into it's buffer. I'm getting a bunch of data, but I want to be sure I'm getting all of it....


LK----
You've made updates to the web interface.... any chance that could be posted? I don't seem to have the Distinct Data Mode option.... very handy!

Thanks...
Ryan

Post Reply