Search found 9 matches

by mwbevington
Thu 11. Jun 2020, 19:16
Forum: PCAN-RS-232
Topic: 9_SER-TO-CAN Example not working
Replies: 7
Views: 1859

Re: 9_SER-TO-CAN Example not working

Hi Mark/Uwe, I found it. In can_user.c there is a statement inside the CAN_UserInit() function that is used to initialize the CAN interface as follows: // init CAN1 CAN_InitChannel ( CAN_BUS1, CAN_BAUD_500K); I added ser_to_can.h to can_user.c as an include, and changed the previous statement to uti...
by mwbevington
Wed 10. Jun 2020, 18:22
Forum: PCAN-RS-232
Topic: 9_SER-TO-CAN Example not working
Replies: 7
Views: 1859

Re: 9_SER-TO-CAN Example not working

Hi Uwe, I don't think it is a bit rate timing issue. My only target right now is a PCAN-USB Pro (FD). If I build the code to run at 500 Kbps everything works. The LED toggles on the PCAN-RS232, and serial data (at 9600 BPS) is correctly output as can frames with an ID=0x123. See Trace1.trc, as well ...
by mwbevington
Tue 9. Jun 2020, 21:34
Forum: PCAN-RS-232
Topic: 9_SER-TO-CAN Example not working
Replies: 7
Views: 1859

Re: 9_SER-TO-CAN Example not working

Hi Uwe, Thanks for the quick reply. The BIN file you sent loads and appears to work, as the LED toggles. I haven't had any issues compiling this...no errors. I did a diff and found where I had changed the CAN data rate from 500K to 250K in ser_to_can.h. I had forgot I had made this change to the ori...
by mwbevington
Mon 8. Jun 2020, 20:56
Forum: PCAN-RS-232
Topic: 9_SER-TO-CAN Example not working
Replies: 7
Views: 1859

9_SER-TO-CAN Example not working

Hi, I'm working on a project that requires me to convert serial data to a J1939 frame. I thought I would use the example 9_SER-TO-CAN as a basis for my code. I find that the original (unmodified) code for this example will not run (file = ser_to_can.bin dated 3/18/2016). I note that in main.c the LE...
by mwbevington
Tue 4. Feb 2014, 06:13
Forum: PCAN-Explorer 5 & Add-ins
Topic: Instrument Panel Add-In: 3 position rocker switch
Replies: 6
Views: 5005

Re: Instrument Panel Add-In: 3 position rocker switch

Good Morning, Thank you very much for the example posted. I've played with it a bit and it seems to work quite well. I noted that it had been viewed and downloaded twice, before I did, so am thinking it will definitely help others learn how to better use the Peak tools. I need to study the propertie...
by mwbevington
Wed 29. Jan 2014, 16:48
Forum: PCAN-Explorer 5 & Add-ins
Topic: Instrument Panel Add-In: 3 position rocker switch
Replies: 6
Views: 5005

Re: Instrument Panel Add-In: 3 position rocker switch

Hi, Any progress? Note, I do not think it is a problem if you post this on the forum. I tend to believe that it would be a good example that would most likely help quite a few others. The logo was photo-shopped out, plus the actual CAN frame definition does not match exactly (symbol positions have b...
by mwbevington
Sat 25. Jan 2014, 18:19
Forum: PCAN-Link
Topic: questions on pcan-link
Replies: 1
Views: 10808

questions on pcan-link

Hi, I am possibly interested in PCAN-Link but was not able to get sufficient info from this product's webpage. 1) Does it require one client per physical CAN net? In other words, can the 2 client license only handle up to 2 physical networks? 2) Does PC-Link only stream TCPIP? I note that your new C...
by mwbevington
Sat 25. Jan 2014, 17:09
Forum: PCAN-Explorer 5 & Add-ins
Topic: Instrument Panel Add-In: 3 position rocker switch
Replies: 6
Views: 5005

Re: Instrument Panel Add-In: 3 position rocker switch

Hi, Thank you for the example. I ran it, but saw no associated CAN frame shown in the Receive/Transmit window. In looking at the SYMbol file, I note a frame has not been defined. I am not sure how to map the virtualvars into an actual CAN frame. This makes me realize that there maybe several differe...
by mwbevington
Fri 24. Jan 2014, 02:05
Forum: PCAN-Explorer 5 & Add-ins
Topic: Instrument Panel Add-In: 3 position rocker switch
Replies: 6
Views: 5005

Instrument Panel Add-In: 3 position rocker switch

Hi, Haven't been on the forum for a couple of years, but am using the Peak tools almost daily! I do have a question. Is there a rocker switch for the Instrument panel that has 3 positions? I am working to create an Instrument panel to duplicate the functions of an industrial control pendant. The swi...