Search the Community

Showing results for tags 'can'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • New Users Introduction
    • Announcements
  • Digilent Technical Forums
    • FPGA
    • Digilent Microcontroller Boards
    • Non-Digilent Microcontrollers
    • Add-on Boards
    • Scopes & Instruments
    • LabVIEW
    • FRC
    • Other
  • General Discussion
    • Project Vault
    • Learn
    • Suggestions & Feedback
    • Buy, Sell, Trade
    • Sales Questions
    • Off Topic
    • Educators
    • Technical Based Off-Topic Discussions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 16 results

  1. Hello, Just bought a DMC60c and trying to get started. I am not using it with FIRST or robot controls, I want to use a CAN message to control a DC motor. I confirmed the DMC60c works with PWM input. I am now trying to get CAN communication working. I am in the automotive industry, I am using ATI Vision with a KVaser Leaf Light to send CAN messages. From the Documentation it looks like I should send 0x00000240 as a 29bit identifier. I am sending the message, but DMC60C is alternating flashing Red lights indicating it doesn't see CAN. To confirm there is CAN I have a Vector VN1630 which I am monitoring the CAN network with it sees the message is being sent. I attached a block diagram of the layout I have. I assume I must misunderstand what or how to send the message to the DMC60c. Also attached is a screen shot of the message I am sending. I have tried sending messages with 4 and 8 bytes of data, sending all 0's and with Device Type 2 and Manufacturer Encoding 6. Anyway I send I get no indication the DMC60C acknowledges any CAN message. Any help would be greatly appreciated. Thanks
  2. I am able to capture a CAN message using the logic analyzer with a "Simple" trigger of falling edge on the TX line (polarity low), but have not succeeded in triggering using the "Protocol" trigger. Attached is a screenshot of a transmit capture using "Simple" and the waveform looks correct. However when I use the attached "Protocol" settings, the analyzer never triggers. What am I missing?
  3. I have one of the older Cerebot boards which should be equivalent to the Diglent Pro MX7 Embedded Systems Trainer Board that is currently for sale. I would like to capture CAN traffic using an Analog Discovery module and Waveforms software. I have two basic questions. After studying related posts on this forum, I get the strong sense that Analog Discovery and Waveforms software are better suited for connecting to the "PIC side" of the transceivers (RX and TX), rather than CAN side, where CANH and CANL are differential signals. (1) Is this correct? After studying the Cerebot schematic and reference manual, it appears that I can't directly connect to RX and TX for either CAN1 or CAN2. However, it appears that if I short together all of three pins of JP1 and all three pins of JP2, then the RX and TX of CAN1 will be available on pins 1 and 4 of connector JF. As far as I can tell, shorting all three pins together will not create an electrical short, as nothing on the board is driving the outside pins of JP1 and JP2. (2) Is this correct? Thanks!
  4. opethmc

    DMC60c CAN Bus

    I am looking at the DMC60c CAN protocol guide and also the software API reference manual. What are the API numbers needed in the CAN message to communicate with the DMC60c. For example if I wanted to send a voltage command using the function driveVoltage, what should go in the API field (Byte 1) of the message identifier? Thanks, matt
  5. Hello, I am using a couple of DMC60C with an NI-XNET USB 8502. I have had some good luck but am running into a very specific question. The control message: 0x02060000 Uses a signed 24-bit integer for both closed loop velocity and closed loop position control setpoints. However, the makeup of that value is only loosely described in the documentation. My questions are: 1) is the byte order as shown in the manual correct? It appears strange to go trgtH in byte 3, targtL in bye 4, and trgtM in byte 5. I could understand H, M, L or L, M, H but it seems oddly shuffled as presented. 2) is a negative 24 bit value stored as 2's complement? Thank you for any advice. My motor does not appear to like the values I have been sending for velocity control mode. Sincerely, Brian
  6. mbo

    Zybo and PmodCAN

    Hello members, I have the Zybo-Z7 Board and I want to connect it with other Zybo-Z7 Board via CAN. The board has an integrated CAN Controller and I need following PmodCAN-Connector which has also can controller integrated. http://store.digilentinc.com/pmod-can-can-2-0b-controller-with-integrated-transceiver/ Which CAN Controller shall I use and how do I make it work? I have implemented a basic design for Zybo in Vivado and added the IP core for PmodCAN. Is something more I need? Cheers, mb
  7. I need to generate test data for evaluating I2C, SPI and CAN devices (only one test at a time, so multiple simultaneous patterns are not necessary). I've tried to get the Analog Discovery 2 to do that and it doesn't look like it will. I've looked at the Digital Discovery and it's not clear that it can do that either. I'm hoping I don't need a US$600+ device. Any recommendations would be appreciated. Thanks
  8. Our team has been using the Digilent PmodCAN CAN-Spi module and have been running into issues related to reading the messages from the CANBus. We are using the mcp_can library that is compatible with this module to read messages from the CANBus, but the messages are coming in out of order and will sometimes miss messages when the CANBus is loaded with a higher number of messages in a short amount of time. I have attached the code I am using that returns messages out of order or misses messages completely. The code will miss around half of the messages when the CANBus has a Bus message load higher than 40% and some of the caught messages are out of order. mcp_can.h.txt mcp_can_dfs.h.txt CANTest.ino.txt mcp_can.cpp.txt
  9. Hi ! I am interested in using the Digital Discovery controlling multiple devices at the same time with different protocols. E.g. I would like to setup the UART on the digital discovery on DIO 28 as TX and 29 as RX while using SPI at the same time on the default setup DIOs as 24/CS, 25/CLK, 26/DQ0/MOSI, 27/DQ1/MISO. Using then I2C on e.g. 31/SCL and 30/SDA and CAN on 36/RX and 37/TX on top of that would be very nice as well. Is this possible from the user interface (which I would prefer) or do I need to create custom code for that?
  10. Hi all i am using Analog discovery 2 for communication purpose.(CAN) I tried using the sample code given same as attached. I am using PCAN to send/receive frames to analog discovery 2 , I am sending only one frame with Standard ID : 0x011 and Data: 0xaa 0xbb 0xcc 0xdd 0xee 0xff but i am receiving lot of Frames with the same ID sent, lot of extended remote frames with CRC errors ,etc. I have attached the console output for reference. Can I know why i am facing the issue? I tried same experiment with waveforms still having similar issue. I have attached the screen shot of it. Digital_Can.py CAN_Console.txt
  11. I am using analog discovery 2 to send/Receive signals with PCAN using python. Do i need to have a CAN transceiver IC to convert from CAN-H/L to CAN-Rx/Tx? Also wanted to know if i use Waveforms software, what is the hardware connection?
  12. Hi all! I'm currently thinking of purchasing the pynq-z1 board and hoping to set up CAN communication on it. I've read the documents regarding the PYNQ board (http://pynq.readthedocs.io) but I wasn't able to conclude on whether I would need to purchase a PMOD with it to access a CAN peripheral. From what I understood, many of the peripherals are available through the PL via PMODs or an arduino. There was also a comment stating that peripherals such as Ethernet, USB and UART, are connected externally, while all other peripherals are connected internally or routed to PL pins. This confused me so my questions are: What do you mean by "connecting peripherals internally"? and would I need to purchase a PMOD and route my CAN controller to PMOD pins, in order to interface with CAN? (via overlays, I believe?). Just need some confirmation! I'm sorry if I'm asking something so basic, I'm fairly new to embedded development, especially with zynq chips but I'm keen to learn as I go! -Vin
  13. Hi All, I am trying to use the ChipKITCAN library. This is a wrapper for the microchip CAN network library. I am using the legacy peripheral library to do this. I have been able to build the demo using MPIDE but I haven't been able to run it successfully. Is there any clear set of steps to run the demo in a chipkit max32? Also, I have been able to build this using Arduino IDE but running in the same issue. Any help is appreciated.
  14. fsasm

    Routing CAN to EMIO

    Hi all! I'm currently working with the Zybo and until now I used both CAN controller via MIO on JF port. Now I want to route one CAN controller to the JC port. To my understanding I have to route a controller to EMIO and assign the signals to the pins with an constraints file. I started with the following tutorial and then I enabled the CAN controllers and routed them to MIO 10 & 11 and MIO 12 & 13. With my bare-metal program I can initialise the controllers and send and receive messages without problems. In order to use the pins on port JC I configured the second CAN to EMIO and assigned the pins in the constraints file: set_property -dict { PACKAGE_PIN V15 IOSTANDARD LVCMOS33 } [get_ports { CAN_1_tx }]; set_property -dict { PACKAGE_PIN W15 IOSTANDARD LVCMOS33 } [get_ports { CAN_1_rx }]; From the TRM I know that I have to enable the level shifter if I use the controller from the PS and route the signals to PL. I don't know where I can set this in the SDK or in Vivado. To my understanding this should do the bootloader or should be done when programming via JTAG. When I start my working bare-metal program, it hangs during the initialisation of the second CAN controller. To be precise, I can't set the controller to the normal mode, as can be seen here: XCanPs_EnterMode(&can_drv2, XCANPS_MODE_NORMAL); while ((mode = XCanPs_GetMode(&can_drv2)) != XCANPS_MODE_NORMAL) ; // endless loop
  15. I'm on Linux. After installing the Arduino IDE, chipKIT core, and the Network Shield libraries, I tried to compile CanDemo and got the following error: Arduino: 1.8.0 (Linux), Board: "chipKIT MAX32" /home/shlomo/.arduino15/packages/chipKIT/hardware/pic32/1.3.1/libraries/chipKITCAN/chipKITCAN.cpp:46:21: fatal error: plib.h: No such file or directory #include <plib.h> ^ compilation terminated. exit status 255 Error compiling for board chipKIT MAX32. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. (Removing the #include line doesn't work, as chipKITCAN uses __ISR and ipl4 of plib). If I understand correctly, according to this post, plib is only included in the deprecated MPIDE. Are you planning to remove the dependency on plib soon? Is there any other way I can use the CAN controllers with the Arduino IDE/chipKIT core?
  16. I am wanting to use a ChipKit board for a robot using WiFi and CAN. I am only seeing boards with wired network and CAN, is there an option I am not seeing? The MAX32 has the can, but it has an Ethernet also - can the MAX32 be used with the WiFi Shield? The WiFire or WF32 have the WiFi, but not the CAN, the only shield I see here that has CAN is the Ethernet Shield, will they work together? or am I better off with a Wi-Fire or WF32 and a CAN shield from else where like https://www.sparkfun.com/products/10039 Thanks Bill