Hello
Bourass wrote:in the configuration of the bitrate should i change something or it is ok
sorry, but I cannot tell you if your bitrate is OK. Only you know your CAN network and device configurations. This is your job.
Bourass wrote:i have the feeling that the bitrate it is not well configured as i copy paste it because i did not find the meaning of each element
if you don't understand something and you copy paste it, then don't be surprised if it doesn't work. The information is in the help file and in the header files, also for python - here an extract of that file, PCANBasic.py:
Code: Select all
# Represents the configuration for a CAN bit rate
# Note:
# * Each parameter and its value must be separated with a '='.
# * Each pair of parameter/value must be separated using ','.
#
# Example:
# f_clock=80000000,nom_brp=10,nom_tseg1=5,nom_tseg2=2,nom_sjw=1,data_brp=4,data_tseg1=7,data_tseg2=2,data_sjw=1
#
PCAN_BR_CLOCK = TPCANBitrateFD(b"f_clock")
PCAN_BR_CLOCK_MHZ = TPCANBitrateFD(b"f_clock_mhz")
PCAN_BR_NOM_BRP = TPCANBitrateFD(b"nom_brp")
PCAN_BR_NOM_TSEG1 = TPCANBitrateFD(b"nom_tseg1")
PCAN_BR_NOM_TSEG2 = TPCANBitrateFD(b"nom_tseg2")
PCAN_BR_NOM_SJW = TPCANBitrateFD(b"nom_sjw")
PCAN_BR_NOM_SAMPLE = TPCANBitrateFD(b"nom_sam")
PCAN_BR_DATA_BRP = TPCANBitrateFD(b"data_brp")
PCAN_BR_DATA_TSEG1 = TPCANBitrateFD(b"data_tseg1")
PCAN_BR_DATA_TSEG2 = TPCANBitrateFD(b"data_tseg2")
PCAN_BR_DATA_SJW = TPCANBitrateFD(b"data_sjw")
PCAN_BR_DATA_SAMPLE = TPCANBitrateFD(b"data_ssp_offset")
More information and possible values for e3ach field can be found in the help, PCANBasic_enu.chm, within the chapter
Definitions/FD Bit rate Parameter definition

- Location of bit rate parameters definitions within the help file
- BitrateValues.PNG (36.91 KiB) Viewed 7589 times
Bourass wrote:... because i did not find the meaning of each element
I would say that you didn't search for the information, instead of to say that you didn't find it.