× Welcome to the Kunena forum!

Tell us and our members who you are, what you like and why you became a member of this site.
We welcome all new members and hope to see you around a lot!

New Mac user trying to get SavvyCan and Machinna M2 running M2Ret to talk...

  • sck_nogas
  • sck_nogas's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 4 weeks ago #155 by sck_nogas
sck_nogas created the topic: New Mac user trying to get SavvyCan and Machinna M2 running M2Ret to talk...
Howdy,

I followed the hints at medium.com/@Stormblessed/setting-up-savv...-on-osx-b2f4c527cdff

And can compile and install M2RET onto my Machinna and can connect to the serial console of it. From that serial console, I can turn on capture and can capture data to the SDcard. So, things look good! Except, I can't seem to get Savvycan to either read the log files I've captured, or to speak directly to my M2RET.

I can even turn on BINSERIAL while plugged into the CANBus, and see a bunch of "data" flowing via CoolTerm on the Mac, so I think that it's "working", but still SavvyCan doesn't see the device as "connected"

So, not sure what I'm doing wrong. It appears that SavvyCan is not seeing the serial device correctly (either as cu or tty devices for the correct usbmodem device that appears)

Here's my current settings for G2RET on the machinna. Any thoughts?
Build number: 345
System Menu:

Enable line endings of some sort (LF, CR, CRLF)

Short Commands:
h = help (displays this message)
R = reset to factory defaults
s = Start logging to file
S = Stop logging to file

Config Commands (enter command=newvalue). Current values shown in parenthesis:

LOGLEVEL=1 - set log level (0=debug, 1=info, 2=warn, 3=error, 4=off)
SYSTYPE=0 - set board type (0=Macchina M2)

CAN0EN=1 - Enable/Disable CAN0 (0 = Disable, 1 = Enable)
CAN0SPEED=500000 - Set speed of CAN0 in baud (125000, 250000, etc)
CAN0LISTENONLY=0 - Enable/Disable Listen Only Mode (0 = Dis, 1 = En)

CAN1EN=0 - Enable/Disable CAN1 (0 = Disable, 1 = Enable)
CAN1SPEED=500000 - Set speed of CAN1 in baud (125000, 250000, etc)
CAN1LISTENONLY=1 - Enable/Disable Listen Only Mode (0 = Dis, 1 = En)

SWCANEN=0 - Enable/Disable Single Wire CAN (0 = Disable, 1 = Enable)
SWCANSPEED=33333 - Set speed of Single Wire CAN in baud (33000, 93000, etc)
SWCANLISTENONLY=1 - Enable/Disable Listen Only Mode (0 = Dis, 1 = En)

CAN0SEND=ID,LEN,<BYTES SEPARATED BY COMMAS> - Ex: CAN0SEND=0x200,4,1,2,3,4
CAN1SEND=ID,LEN,<BYTES SEPARATED BY COMMAS> - Ex: CAN1SEND=0x200,8,00,00,00,10,0xAA,0xBB,0xA0,00
SWSEND=ID,LEN,<BYTES SEPARATED BY COMMAS> - Ex: SWSEND=0x100,4,10,20,30,40
MARK=<Description of what you are doing> - Set a mark in the log file about what you are about to do.

BINSERIAL=1 - Enable/Disable Binary Sending of CANBus Frames to Serial (0=Dis, 1=En)
FILETYPE=2 - Set type of file output (0=None, 1 = Binary, 2 = GVRET, 3 = CRTD)

FILEBASE=CANBUS - Set filename base for saving
FILEEXT=CSV - Set filename ext for saving
FILENUM=8 - Set incrementing number for filename
FILEAPPEND=0 - Append to file (no numbers) or use incrementing numbers after basename (0=Incrementing Numbers, 1=Append)
FILEAUTO=1 - Automatically start logging at startup (0=No, 1 = Yes)

DIGTOGEN=0 - Enable digital toggling system (0 = Dis, 1 = En)
DIGTOGMODE=0 - Set digital toggle mode (0 = Read pin, send CAN, 1 = Receive CAN, set pin)
DIGTOGLEVEL=0 - Set default level of digital pin (0 = LOW, 1 = HIGH)
DIGTOGPIN=1 - Pin to use for digital toggling system (Use Arduino Digital Pin Number)
DIGTOGID=0x700 - CAN ID to use for Rx or Tx
DIGTOGCAN0=0 - Use CAN0 with Digital Toggling System? (0 = No, 1 = Yes)
DIGTOGCAN1=0 - Use CAN1 with Digital Toggling System? (0 = No, 1 = Yes)
DIGTOGLEN=0 - Length of frame to send (Tx) or validate (Rx)
DIGTOGPAYLOAD=0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0 - Payload to send or validate against (comma separated list)

And the version of SavvyCan I am using is the most recent download of Apr 24 2018 - Version 184.

As for not reading in the log files, I keep getting the same error "File load completed with errors. Perhaps you selected the wrong file type?" for all three formats of CRTD TXT files, GVRET csv files, or the "binary" option in GVRET.

So, kind of stuck here. :)

Please Log in or Create an account to join the conversation.

More
2 months 4 weeks ago #157 by collink
collink replied the topic: New Mac user trying to get SavvyCan and Machinna M2 running M2Ret to talk...
Hmm, it ought to be able to load the files that were saved to the SDCard. I wonder if the saving is corrupted or something. Is it possible that you might be able to send me your saved files (or at least one of them)? You can send to kidderc at google's mail service.

As for the other problem, can you enable the debugging console on the connection window and paste for me what it shows there when you connect?
The following user(s) said Thank You: sck_nogas

Please Log in or Create an account to join the conversation.

  • sck_nogas
  • sck_nogas's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 4 weeks ago #159 by sck_nogas
sck_nogas replied the topic: New Mac user trying to get SavvyCan and Machinna M2 running M2Ret to talk...

collink wrote: As for the other problem, can you enable the debugging console on the connection window and paste for me what it shows there when you connect?


Here's what I see with Main Settings "Require validation of GVRET connection" and with the "Enable Console" checked in the Connections Settings/Connection Window.
Write to serial -> f1 9 
Write to serial -> f1 9 
Write to serial -> f1 9 
Write to serial -> f1 9 
Write to serial -> f1 9 
Write to serial -> f1 9 
Write to serial -> f1 9 
Write to serial -> f1 9 
Write to serial -> f1 9 
Write to serial -> f1 9 
Write to serial -> f1 9
No other response. :(

Please Log in or Create an account to join the conversation.

More
2 months 4 weeks ago #160 by collink
collink replied the topic: New Mac user trying to get SavvyCan and Machinna M2 running M2Ret to talk...
So, basically you're getting zero response at all. My first question is going to have to be (just to get it out of the way): Are you making sure not to have any other serial consoles up when you try to connect with SavvyCAN? Only one program can connect at a time and since you indicate that you most certainly can see serial traffic in other programs I have to wonder if you accidentally are leaving one connected to the serial port. Make sure nothing else is accessing the serial port and it ought to be able to connect.

I just uploaded a new M2RET binary uploader. Now it is completely current with my local version. This might also help it to connect for you.

Here is what it should look like if you successfully connect M2RET to SavvyCAN:
Created Serial Port Object
Opened Serial Port
Write to serial -> e7 e7 f1 c f1 6 f1 7 f1 1 f1 9 
Got data from serial. Len = 29
Write to serial -> f1 d 
f1 c 3 f1 6 1 20 a1 7 0 0 90 d0 3 0 f1 7 59 1 20 3 0 0 f1 1 ec 78 2b 1 
Got data from serial. Len = 17
f1 d 1 35 82 0 0 0 0 4b 0 0 0 0 4b 0 0 
Write to serial -> f1 9 
Got data from serial. Len = 4
f1 9 de ad 
Write to serial -> f1 9 
Got data from serial. Len = 4
f1 9 de ad 

Please Log in or Create an account to join the conversation.

Time to create page: 0.043 seconds
Powered by Kunena Forum