Duet 2 Ethernet and SBC
-
-
@bearer As in external 24V going to
VIN
of the board. -
So what I can see is that it does not have anything to do with the internal 5V regulator. If I connect the Duet via USB to the RPi and remove the jumper for internal 5V, i.e.
I_5V_EN
(completely or put it onE_5V_EN
- does not matter) the same problem occurs. SoVIN
is somehow messing with SPI as soon as it get's to fast transfers as it seems. Still checking. -
Hm, will try to repeat test with 24v and get the scope out, was under the impression I had used Vin but could be organic bitrot..
-
@wilriker I also tried to disable the internal 5V converter by removing the the jumper. But I also does not help
-
Is the ethernet module also working over SPI?
-
@smoki3 said in Duet 2 Ethernet and SBC:
Is the ethernet module also working over SPI?
Yes, it does.
-
@wilriker Then its even more wired that it is working with the ethernet module and not with a raspberry
-
@smoki3 said in Duet 2 Ethernet and SBC:
Then its even more wired that it is working with the ethernet module and not with a raspberry
Maybe try if the wireless wifi is better? Jokes asides, I find not all boards are the same; will try to log some data and take a look at the signals.
edit: maybe one of the regulators need a minimum load that you loose when removing the ethernet - just something that hit me on the way out
-
@bearer said in Duet 2 Ethernet and SBC:
edit: maybe one of the regulators need a minimum load that you loose when removing the ethernet - just something that hit me on the way out
But it also happens if the internal regulators are not even used (by removing the
I_5V_EN
jumper) but 5V is provided from external. As soon as 24V is put toVIN
it will fail with any kind of largish transfer. Regular (small) status updates work. -
@wilriker said in Duet 2 Ethernet and SBC:
But it also happens if the internal regulators are not even used
still use the 3.3v one i suspect, which is where the load from the Ethernet module would be; but it shouldn't be affected by Vin.
i've just been to collect my 8 channel thingy and hope to take a look later if I get some helping hands
update: Pi died (likely unrelated to SBC testing, as it died over night with no SBC connected) but further testing on hold pending a new Pi.
-
Anyone found a solution?
Could it be a software issue?
-
@smoki3 Unfortunately not yet. @bearer wanted to put a scope on it and I am still waiting for my scope to finally arrive so I can also have a look at what happens there, too.
I think software is unlikely.
-
Yes, I was supposed to do some digging, did some
bike ridingflying instead and in summary i now fully appreciate why planes have landing gears ..Hope to be up and at'en in a few days unless I somehow manage to have another adventure with Mr Murphy
-
I also got my scope meanwhile but it will most likely be only Monday until I can dig deeper into this problem.
-
I thought about whether it is possible to connect USB of Raspberry and Duet 2, to avoid changing Ethernet/Wifi hardware. The speed of USB 2 of 480 MBit/s should be sufficient.
-
@JoergS5 said in Duet 2 Ethernet and SBC:
The speed of USB 2 of 480 MBit/s should be sufficient.
but the latency and jitter is not deterministic so that might be an issue, and iirc the duet2 chip only does
1112mbps usb -
@bearer thanks, this are arguments against USB.
-
(Potentially) interesting segway; PCIe to SPI adapter AX99100 PCIe to 2S1SPI Demo Board might allow this to run on x86 etc. Just too bad can't seem to find anyone that sells that model, its all 4S and 2S1P all over the usual chinesium sites.
https://www.asix.com.tw/development.php?op=DBdetail&PItemID=256
edit: chip mode is controlled by 3 GPIO lines and the SPI signals are on the parallell port, so moving some 4k7 pull up/down resistors and attaching to the parallell port
shouldcould work (if OS supports the SPI driver and moon has the correct phase)edit edit: very OT, but what got me thinking was the SAMMY-C21 board might be the easiest option to bridge PCIe to CAN-FD to let linuxcnc use the Duet 3HC/1XD/1LC boards without the 6HC/5LC.
-
@bearer said in Duet 2 Ethernet and SBC:
AX99100 PCIe to 2S1SPI Demo Board
I cannot find it to buy also. But PCIe would be difficult for me anyway because I use laptops primarily. But your idea led me to the idea of USB3 to SPI as an alternative for PCs, so e.g. AN1999 allows USB hubs with additional SPI interface:
http://ww1.microchip.com/downloads/en/AppNotes/00001999B.pdf
Maybe there are products with this chip. The mentioned USB5734 is very interesting, but I found only single chips or expensive eval board so far. The next little PCB project. Now I have a reason to buy a reflow oven