thanks tonton81.
quick question, where is the right place to call setClock()?
will this sequence work, or should I be calling setClock() before begin() - or someplace else?
can1.begin();
...
Right, makes sense. I just sent an email to the motor vendor asking about the maximum rate I can send updates to it.
Is there an expected (or tested) speed limit of FlexCAN before Bad Things start to happen, like...
Interesting.
I added a progressively shorter delay in between the sends and I can see it starting to choke:
void loop() {
int delayTime = 100;
Serial.println("\n========================");
...
Yes, bus is terminated at both ends with 120ohms.
Example code for the status requests (all 3 functions are essentially identical except for the hex code that is passed)
//...
Thanks tonton1, great answers as usual.
I just looked at your "CAN2.0_example_FIFO_with_interrupts" and made a simple version of my code to see what happens with that scheme.
The short version is that I'm still...
First, I'm new to CAN and am in the middle of trying to figure out the basics of how to use mailboxes, FIFOs and callbacks.
I wrote a long detailed post, but figured no one would read or respond, so here's the...
Thanks tonton81. I added the resistor and 1Mbits/sec works now. Thanks for the setClock() tip - I'll play with that if I run into reliability issues with the faster setting.
can1.setBaudRate(1000000); // start...
Ha, yes, I had some late-night-cognitive-dissonance when I wrote that. Of course, kbps, not MHz. Glad you understood what I meant, not what I said.
My loopback test code:
/*
* Loopback test: CAN1 connected to...
I'm using CAN1 on the SKPang Triple CAN board here, http://skpang.co.uk/catalog/teensy-41-triple-can-board-with-240x240-ips-lcd-p-1592.html
CAN transceiver is MCP2562-E/SN, if that matters.
I can only seem to run...
Hmm.
I tried toggling the RST line with this,
// reset to avoid wrong color startup
digitalWrite(TFT_RST, LOW);
delay( 500 );
digitalWrite(TFT_RST, HIGH);
// general init
Thanks Kurte.
setup code:
void tft_setup(void) {
// set up general TFT parameters that won't change
// general init
tft.init(240, 240);
tft.setRotation(3);
tft.setTextWrap(false);
Not a big deal, but I'd like to understand what's going on.
I'm using the ST7789_t3 library to drive the 240x240 TFT LCD on my Copperhill Triple CAN board.
After downloading from the Arduino IDE, my LCD flashes a...
I googled around but haven't found any examples for how to use setRowColStart(). I tried this, it compiles, but has no effect.
void tft_update_datum( long rate ) {
tft.fillScreen( backgroundColor );
...
ah-ha! datum. I saw mention of that but thought it had to do with scrolling text (way beyond my pay grade).
is there a way to ARBITRARILY define the datum, or do I have to use one of the 9 pre-defined ones listed...
Got it, thanks. This is my first rodeo with CAN.
Oh, and I'm at the "now what?" stage - I've got the T4.1 hooked up to a Waveshare SN65HVD230 CAN transceiver board. Does anyone have any suggestions on what library to...
So, I'm trying to hook up a T4.1 to a WaveShare CAN transceiver board.
Pins 22 (TX1) and 23 (RX1) look like the right place on the Teensy side.
My Waveshare board has RX and TX pins.
So, I assume (like RS232) the...
OH! that's exciting as hell! I'm going to have to look at how to use MAC addressing - I've just been doing the usual IP:Port thing.
Very cool! Thanks for taking the time to look into that!
oh, that's interesting. I've looked briefly at FNET - it did seem more complex than your nice NativeEthernet package, but you are right, getting closer to the iron might make sense for me. Being able to talk directly to...
Excellent, thanks Manitou. That gives me a head start.
The good news is that all of my nodes will be on an airgapped network dedicated for the application, so all of then network BW is for that traffic only.
But,...
Thanks for the clarification. I'm still trying to sort Multicast from Broadcast myself. I believe that Multicast is more sophisticated than Broadcast. Multicast is sort of publish/subscribe whereas Broadcast is just...
Does anyone know if Paul's NativeEthernet lib has the ability to do Broadcast messaging using UDP?
I searched NativeEthernet.h....didn't find anything that looked related to Broadcast functionality.
I don't know...
Good question - not sure what's happening at the wire level. All I know is that if I don't add the delay, nothing arrives on the receive end. Seems like I'll need to get Wireshark running to find out.
In my...
So, I'm shoving packets between two identical T4.1s using UDP and the NativeEthernet library.
Here's the Loop code:
Udp.beginPacket(destinationNodeIP, destinationPort); // aim the UDP packet to the...
Just getting going with NativeEthernet on T41. So far I seem to be figuring it out....if slowly.
Here's a hopefully easy question related to Ethernet.begin() calls:
If I use this (passing mac only), everything is...
T41 noob here (but have used the T40).
I'm trying to get two T41's to talk to each other over Ethernet using the NativeEthernet + FNET ZIP libs from Github. Both T41s are equipped with the PJRC magjack kit.
I've...
I'm right there with you. I'm still trying to figure out which Ethernet library is the right one. Looks like a lot of documentation hasn't yet caught up to the 4.1 release.
Which library are you using? Got it working...