Re: [Canfestival-devel] Developing software update
Greg, The request is the same for expedited or segmented transfer initiate, the client is not supposed to know the size of the transfer. The server will respond with an expedited frame if the data fits in one frame. See Cia 301 in 7.2.4.3.5 "Protocol SDO upload" ( Cia 301 Version: 4.2.0 - 21 February 2011) You don't have to deal with expedited or segmented, just do a SDO read. Also check that the size of the 1008 entry on the server side is well set. By default objdictedit.py defines strings with a size of 10 but you can change that. Regards, Francois Le 09/11/2016 à 02:06, canfestival-devel@lists.sourceforge.net a écrit : Hello again, Francois, I've just gotten to the point that I'm trying to access OD1008, DeviceName, which is a Visible_String. I'm doing a readNetworkDictCallbackAI(), with the data type set to visible string. The request is going out as an expedited request, not a segmented request. There is no way to specify the size of the transfer for a network dictionary read. How do I get the request to go out as a segmented request? Regards, Greg *From:* canfestival-devel@lists.sourceforge.net [mailto:canfestival-devel@lists.sourceforge.net] *Sent:* Friday, October 14, 2016 2:09 PM *To:* canfestival-devel@lists.sourceforge.net *Subject:* Re: [Canfestival-devel] Developing software update Hi Greg 1- yes canfestival will do a segmented transfer automaticaly if more than 4 bytes (not 8) are involved 2- block mode is for a faster SDO transfer of large buffers, it is described in the Cia301 spec. in order to use block mode: - just put the last parameter to 1 - increase the socketcan txquelen to approx 20 because canfestival needs to write can frames in burst the default block size in block mode is 16, so there will be 16 can frames written in the interface in one burst for each block. You can also reduce the block size used by canfestival with the configure script. use https://bitbucket.org/Mongo/canfestival-3-asc for a more up to date code. Kind regards -- Francois Beaulier www.ingelibre.fr Le 13/10/2016 à 02:41, canfestival-devel@lists.sourceforge.net a écrit : Hi list, We are running CanFestival on a RPi3 and using code derived from EPOSMachineKit for DS302 & DS402 management. We will need to be able to update the code on our custom motor controller boards and in looking at CanFestival I have a couple of questions about the interface. 1st. If I send a writeNetworkDict call for a Domain OD entry with a data size of greater than 8 bytes, will CanFestival automatically do a segmented transfer? 2nd. In the interface spec for the writeNetworkDict calls, the last parameter is for a BlockMode, but there really isn't any documentation on what that parameter does, and there are no examples that I can find for its use. Are there any examples available that show using the BlockMode? Regards, Greg Wilson-Lindberg Sakura Finetek 310-783-5075 -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org!http://sdm.link/slashdot ___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/canfestival-devel -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/canfestival-devel -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/canfestival-devel
Re: [Canfestival-devel] Developing software update
Hello again, Francois, I've just gotten to the point that I'm trying to access OD1008, DeviceName, which is a Visible_String. I'm doing a readNetworkDictCallbackAI(), with the data type set to visible string. The request is going out as an expedited request, not a segmented request. There is no way to specify the size of the transfer for a network dictionary read. How do I get the request to go out as a segmented request? Regards, Greg From: canfestival-devel@lists.sourceforge.net [mailto:canfestival-devel@lists.sourceforge.net] Sent: Friday, October 14, 2016 2:09 PM To: canfestival-devel@lists.sourceforge.net Subject: Re: [Canfestival-devel] Developing software update Hi Greg 1- yes canfestival will do a segmented transfer automaticaly if more than 4 bytes (not 8) are involved 2- block mode is for a faster SDO transfer of large buffers, it is described in the Cia301 spec. in order to use block mode: - just put the last parameter to 1 - increase the socketcan txquelen to approx 20 because canfestival needs to write can frames in burst the default block size in block mode is 16, so there will be 16 can frames written in the interface in one burst for each block. You can also reduce the block size used by canfestival with the configure script. use https://bitbucket.org/Mongo/canfestival-3-asc for a more up to date code. Kind regards -- Francois Beaulier www.ingelibre.fr<http://www.ingelibre.fr> Le 13/10/2016 à 02:41, canfestival-devel@lists.sourceforge.net<mailto:canfestival-devel@lists.sourceforge.net> a écrit : Hi list, We are running CanFestival on a RPi3 and using code derived from EPOSMachineKit for DS302 & DS402 management. We will need to be able to update the code on our custom motor controller boards and in looking at CanFestival I have a couple of questions about the interface. 1st. If I send a writeNetworkDict call for a Domain OD entry with a data size of greater than 8 bytes, will CanFestival automatically do a segmented transfer? 2nd. In the interface spec for the writeNetworkDict calls, the last parameter is for a BlockMode, but there really isn't any documentation on what that parameter does, and there are no examples that I can find for its use. Are there any examples available that show using the BlockMode? Regards, Greg Wilson-Lindberg Sakura Finetek 310-783-5075 -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net<mailto:Canfestival-devel@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/canfestival-devel -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/canfestival-devel
Re: [Canfestival-devel] Developing software update
Hi Francois, Thanks for the clarification on Segmented and block transfers. Sorry for the slow reply, been busy on other things. We have been using canfestival-3-asc, but an older version, I'll have to download the newest version and test it our. Regards, Greg From: canfestival-devel@lists.sourceforge.net [mailto:canfestival-devel@lists.sourceforge.net] Sent: Friday, October 14, 2016 2:09 PM To: canfestival-devel@lists.sourceforge.net Subject: Re: [Canfestival-devel] Developing software update Hi Greg 1- yes canfestival will do a segmented transfer automaticaly if more than 4 bytes (not 8) are involved 2- block mode is for a faster SDO transfer of large buffers, it is described in the Cia301 spec. in order to use block mode: - just put the last parameter to 1 - increase the socketcan txquelen to approx 20 because canfestival needs to write can frames in burst the default block size in block mode is 16, so there will be 16 can frames written in the interface in one burst for each block. You can also reduce the block size used by canfestival with the configure script. use https://bitbucket.org/Mongo/canfestival-3-asc for a more up to date code. Kind regards -- Francois Beaulier www.ingelibre.fr<http://www.ingelibre.fr> Le 13/10/2016 à 02:41, canfestival-devel@lists.sourceforge.net<mailto:canfestival-devel@lists.sourceforge.net> a écrit : Hi list, We are running CanFestival on a RPi3 and using code derived from EPOSMachineKit for DS302 & DS402 management. We will need to be able to update the code on our custom motor controller boards and in looking at CanFestival I have a couple of questions about the interface. 1st. If I send a writeNetworkDict call for a Domain OD entry with a data size of greater than 8 bytes, will CanFestival automatically do a segmented transfer? 2nd. In the interface spec for the writeNetworkDict calls, the last parameter is for a BlockMode, but there really isn't any documentation on what that parameter does, and there are no examples that I can find for its use. Are there any examples available that show using the BlockMode? Regards, Greg Wilson-Lindberg Sakura Finetek 310-783-5075 -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net<mailto:Canfestival-devel@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/canfestival-devel -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/canfestival-devel
Re: [Canfestival-devel] Developing software update
Hi Greg 1- yes canfestival will do a segmented transfer automaticaly if more than 4 bytes (not 8) are involved 2- block mode is for a faster SDO transfer of large buffers, it is described in the Cia301 spec. in order to use block mode: - just put the last parameter to 1 - increase the socketcan txquelen to approx 20 because canfestival needs to write can frames in burst the default block size in block mode is 16, so there will be 16 can frames written in the interface in one burst for each block. You can also reduce the block size used by canfestival with the configure script. use https://bitbucket.org/Mongo/canfestival-3-asc for a more up to date code. Kind regards -- Francois Beaulier www.ingelibre.fr Le 13/10/2016 à 02:41, canfestival-devel@lists.sourceforge.net a écrit : Hi list, We are running CanFestival on a RPi3 and using code derived from EPOSMachineKit for DS302 & DS402 management. We will need to be able to update the code on our custom motor controller boards and in looking at CanFestival I have a couple of questions about the interface. 1st. If I send a writeNetworkDict call for a Domain OD entry with a data size of greater than 8 bytes, will CanFestival automatically do a segmented transfer? 2nd. In the interface spec for the writeNetworkDict calls, the last parameter is for a BlockMode, but there really isn't any documentation on what that parameter does, and there are no examples that I can find for its use. Are there any examples available that show using the BlockMode? Regards, Greg Wilson-Lindberg Sakura Finetek 310-783-5075 -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/canfestival-devel -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/canfestival-devel