Thanks Paul, I'll look into that CANbus analyzer....that would probably explain a *lot*.
EDIT: It's on it's way!
Type: Posts; User: bschena
Thanks Paul, I'll look into that CANbus analyzer....that would probably explain a *lot*.
EDIT: It's on it's way!
10-4. thx.
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...
Interesting.
I added a progressively shorter delay in between the sends and I can see it starting to choke:
void loop() {
int delayTime = 100;
...
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...
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,...
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.
...
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...
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...
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);
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);
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...
Thanks for the great explanation. I'll give it a go!
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(...
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...
I've been trying to find some way to write a 3,4, or 5 digit number centered in the same spot on the 240x240 TFT display on this board...
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...
Wow, really? That's not normal, but glad I bothered to ask!
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...
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...
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...
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...
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...
This is helpful - curious to see how other people have solved a similar problem.
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...
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...
Awesome Mark, thank you! uTasker looks like an interesting project, I'll check out the links and info you mentioned.
Cheers!
/b/
Understood. Thanks!
Any chance you would be willing to share the code you used to scrape the eFUSE registers from T4.1?
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...
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...
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...
Teensy noob here. I see that 3D CAD models are available for various Teensys, but I haven't found one for the 4.0.
Anyone have a 4.0 CAD model that I can import into Solidworks (2017) - native,...
Teensy noob here. I see that 3D CAD models are available for various Teensys, but I haven't found one for the 4.0.
Anyone have a model that I can import into Solidworks (2017) - native, STEP, or...