Hello
I need to send CAN messages, modifying Bit by Bit in each BYTE, and grouping them from 4 to 4 bits
I am using this method for sending the message:
CANMessageInfo info;
info.MessageType = CANMessageInfoType.SinglePacketRaw;
info.DestinationAddress = 0xFF;
info.RtsCtsMaxPackets = 0xFF;
CANMessageBuffer buffer;
buffer.CanID = 0x0CFF4911;
buffer.Size = 8;
buffer.WriteInt8(0, 253); //fixed value
buffer.WriteInt8(1, 00); //fixed value
buffer.WriteInt8(2, 03); //fixed value
buffer.WriteInt8(3, byte3); //Modifiable variable (of 4bit in 4bit)
buffer.WriteInt8(4, byte4); //Modifiable variable
buffer.WriteInt8(5, byte5); //Modifiable variable
buffer.WriteInt8(6, byte6); //Modifiable variable
buffer.WriteInt8(7, byte7); //Modifiable variable
int port = 0;
SendCANMessage(0, buffer, info);
Regards
Sending CAN Message
- Esb1983
- Posts: 23
- Joined: Thu Nov 20, 2014 10:51 am
- embtechnicalservices
- Posts: 52
- Joined: Fri Jan 15, 2016 10:14 am
Re: Sending CAN Message
http://www.emb-technical-services.co.uk

Windows 10 Home x64 - PowerVision 2.9.21075 OEM
i7-7700HQ ,16GBRAM, 500GBSSD, DELL Inspion 7567, 4K UHD Display.

Windows 10 Home x64 - PowerVision 2.9.21075 OEM
i7-7700HQ ,16GBRAM, 500GBSSD, DELL Inspion 7567, 4K UHD Display.