Search found 59 matches

by Barmaley_GMN
Mon Feb 11, 2019 7:48 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

Barmaley_GMN wrote:Thanks!
It helps!

Code: Select all

FCR_RETVAL = FC_CAN_SPI_CAN_Status_2(160);
FCV_FREE1 = FCR_RETVAL & 0x04;
How about configure bits?
____
I solve (attachment).

Code: Select all

 <format >
            <byte value='0x1F' />
by Barmaley_GMN
Mon Feb 11, 2019 6:20 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

Thanks!
It helps!

Code: Select all

FCR_RETVAL = FC_CAN_SPI_CAN_Status_2(160);
FCV_FREE1 = FCR_RETVAL & 0x04;
by Barmaley_GMN
Fri Feb 08, 2019 8:15 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

This variant sends only one message

Code: Select all

36,010 6C1      8 01 01 00 03 00 00 00 00 ASCII: 
And it always compile hex with mistake in configuration chip. It sets bits 5 and 7 in address 30000 as 1. But they can't be set as 1.
by Barmaley_GMN
Wed Feb 06, 2019 7:08 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

Time ID DLC Data Comment 12,454 6C1 8 01 01 00 03 00 00 00 00 ASCII: 12,455 6C1 8 01 01 00 03 00 00 00 00 ASCII: 12,457 6C1 8 01 01 00 03 00 00 00 00 ASCII: 12,458 6C1 8 01 01 00 03 00 00 00 00 ASCII: 12,460 6C1 8 01 01 00 03 00 00 00 00 ASCII: 12,461 6C1 8 01 01 00 03 00 00 00 00 ASCII: 12,462 6C1...
by Barmaley_GMN
Wed Feb 06, 2019 7:02 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

I'm confused.
How does it work?
by Barmaley_GMN
Wed Feb 06, 2019 6:50 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

Time ID DLC Data Comment 17,079 6C1 8 01 01 00 03 00 00 00 00 ASCII: 17,080 6C1 8 12 01 04 03 00 00 00 00 ASCII: 17,081 6C1 8 23 01 08 03 00 00 00 00 ASCII:# 17,083 6C1 8 34 01 08 03 00 00 00 00 ASCII:4 17,084 6C1 8 45 01 0C 03 00 00 00 00 ASCII:E 17,085 6C1 8 45 01 0C 03 00 00 00 00 ASCII:E 17,086...
by Barmaley_GMN
Mon Jan 28, 2019 2:50 pm
Forum: General Programming
Topic: Wake Up from CAN_BUS
Replies: 10
Views: 9913

Re: Wake Up from CAN_BUS

I have solved the problem.
18f25K80.h doesn't have these bits in cancon register unlike 18f2580.h
So I can write cancon = 0x20
or add to 18f25k80 bits intto cancon_ro7
by Barmaley_GMN
Mon Jan 28, 2019 2:43 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

I've rebuilt scheme with 15f25K80 and will check
by Barmaley_GMN
Fri Jan 25, 2019 9:33 pm
Forum: General Programming
Topic: Wake Up from CAN_BUS
Replies: 10
Views: 9913

Re: Wake Up from CAN_BUS

I need help! Code for Pic18f2580 doesn't work with 18f25K80 I see error in text box DRL+V7-2.c(6768:23): error: unknown identifier 'REQOP0' DRL+V7-2.c(6768:23): error: invalid operand 'REQOP0' DRL+V7-2.c(6768:18): error: failed to generate expression DRL+V7-2.c(6768:18): error: invalid operand '<<' ...
by Barmaley_GMN
Tue Jan 08, 2019 8:40 am
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

I have to change macro CheckTX1 to

Code: Select all

FCR_RETVAL = FC_CAN_SPI_CAN_Status_2(160);
switch (FCL_BUFFER)
{
   case 0: FCR_RETVAL = FCR_RETVAL;
  }
?
by Barmaley_GMN
Thu Jan 03, 2019 6:44 am
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

How can I check if TXB0CTRL.TXREQ MCP2551 is 0?
by Barmaley_GMN
Thu Dec 27, 2018 11:37 am
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

It seems like external channel doesn't set TX_Data and just sends buffer. When I connect both CAN channel I see that 43,562 001 8 01 01 02 03 04 05 06 07 ASCII: 43,563 001 8 01 01 01 03 04 05 06 07 ASCII: 43,564 001 8 02 01 02 03 04 05 06 07 ASCII: 43,566 001 8 01 01 01 03 04 05 06 07 ASCII: 43,567 ...
by Barmaley_GMN
Thu Dec 27, 2018 7:07 am
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

Of course! It connected to CAN-hacker. Listing without delay and checks. Time ID DLC Data Comment 04,573 6C1 8 01 01 02 03 00 00 00 00 ASCII: 04,574 6C1 8 01 01 02 03 00 00 00 00 ASCII: 04,576 6C1 8 28 01 02 03 00 00 00 00 ASCII:( 04,577 6C1 8 28 01 02 03 00 00 00 00 ASCII:( 04,578 6C1 8 28 01 02 03...
by Barmaley_GMN
Sat Dec 15, 2018 2:58 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

And if I insert delay 30 us.
I see trace...
by Barmaley_GMN
Sat Dec 15, 2018 2:45 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

I have the same problem. This code sends message with the same data 6c1 8 9C 00 00 00 00 00 00 6c1 8 9C 00 00 00 00 00 00 6c1 8 9C 00 00 00 00 00 00 6c1 8 9C 00 00 00 00 00 00 (zero byte can change after restart ) It seems Lo doesn't change. But if I insert delay for 5 ms it works fine. But delay is...
by Barmaley_GMN
Wed Oct 25, 2017 9:04 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

The problem seems to be solved. I have achieved my main goal. It sends all the frames without external delays with check from your macro. And the program does it with the same timings. It's a little bit strange, but internal CAN (I suppose) has a check from box but external CAN. And THANK YOU VERY M...
by Barmaley_GMN
Wed Oct 25, 2017 6:39 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

As I see I can't use ext.CAN and SPI together or I have to run init. for every component before every operation? p.s. If I use SPI (FCD_06c41_SPI_Master1__SendChar(129);) I see almost 2 times more frames (546 from 3000). Now I have checked some variants (spi, can2,can1) All of them have the same tim...
by Barmaley_GMN
Wed Oct 25, 2017 10:12 am
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

Hi!
Sure!
board.rar
(280.89 KiB) Downloaded 262 times
by Barmaley_GMN
Wed Oct 25, 2017 8:27 am
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

THE FC5 works the same.9 loses from 10.
Can I check if the frame is sent and wait for it?
by Barmaley_GMN
Tue Oct 24, 2017 10:15 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

There was my mistake about strange sending singular frames from CAN1. I didn't use additional pause for relay (it disconnects CAN1 and CAN2). And time to disconnect was enough for 1 frame.
Sorry.
But losses exists as described.
by Barmaley_GMN
Tue Oct 24, 2017 8:33 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

I removed the old CAN.fcpx and placed your to component directory.
Make new hex and... don't see any positive changes:
It steel sends 1 jf 10 frames and 1 from unused component (CAN1)
NewComponent.jpg
NewComponent.jpg (151.61 KiB) Viewed 11629 times
by Barmaley_GMN
Mon Oct 23, 2017 7:52 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

And one more strange moment: If I use 3buffers at the same time variant I see singular sending on internal CAN1 channel with data from the flowchat for CAN2. And if there is variant for 3 buffers (with my C) I see singular sending on internal CAN1 channel with data from his buffer TX2 But there is n...
by Barmaley_GMN
Mon Oct 23, 2017 7:36 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

If I add send for 3 buffers;

Code: Select all

#define FCV_0e702_can2__CAN_RTS_TXB3 (135)
after CAN2 init
and

Code: Select all

FC_CAN_SPI_CAN_Command_2(FCV_0e702_can2__CAN_RTS_TXB3);
instead of CAN2 sendBuffer macro
I see
Ext_Can2(1-1-1)3send.jpg
Ext_Can2(1-1-1)3send.jpg (50.82 KiB) Viewed 11638 times
by Barmaley_GMN
Mon Oct 23, 2017 6:46 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

If I disable macro SetTxData I see
Ext_Can2(1-1-1)-SetData.jpg
Ext_Can2(1-1-1)-SetData.jpg (58.34 KiB) Viewed 11638 times
by Barmaley_GMN
Mon Oct 23, 2017 6:28 pm
Forum: Flowcode V6
Topic: SPEED CAN-BUS inernal external
Replies: 54
Views: 27360

Re: SPEED CAN-BUS inernal external

Next with one TX buffer (1-1-1) Ext_Can2(1-1-1).jpg Next one like previous but added faster SPI (x4) Ext_Can2(1-1-1)+faster_SPIx4.jpg If I add 2us delays after every CAN macros - it doesn't matter the result on the screen is the same. I made some tests for every variant I have seen different periods...