[patch #9565] Patch for WiFi AVR Programmer, uPDI support for jtagmkII, and serial-over-network improvements #1676
Replies: 17 comments 2 replies
-
Joerg Wunsch <joerg_wunsch> I reviewed the patch, and mostly like it. What I don't understand is why this SERIAL_ETHERNET_TIMEOUT is needed. The basic idea behind that serial_recv_timeout variable is that individual drivers might override the default. Why can't that also be used for the network traffic here? |
Beta Was this translation helpful? Give feedback.
-
Steve Woodford Thanks for looking over the patch. From memory, I think the fixed ethernet timeout was required because round-trip times for TCP over WiFi can exceed the low values set by some drivers. For instance, jtag3.c sets serial_recv_timeout to 100 mS, which is cutting it fine on a moderately congested WiFi connection. Steve |
Beta Was this translation helpful? Give feedback.
-
Joerg Wunsch <joerg_wunsch> Well, all that timeout handling is a mess. A lot of that is probably just heritage from AVRDUDE's 22-year old history. I wonder whether there's a better way than introducing just another timeout hack^H^H^H^Hsetting though. The jtagmkII.c code tries to implement a kind of adaptive timeout setting, by doubling the value on missed transactions. Doesn't that already help in your case? Short of that, maybe we should implement a kind of per-programmer notion of a short vs. long timeout (defaulting to 100 ms / 5 s) that is subsequently be used to toggle between both values. Then, the wavr programmer driver could establish a longer "short" timeout than those 100 ms. How does that sound? |
Beta Was this translation helpful? Give feedback.
-
Since this is targeted for avrdude 7.1 milestone, maybe the timeout improvement can be seperated into a general improvement. Ref: existing enhancement request related to timeout. |
Beta Was this translation helpful? Give feedback.
-
By the way, the info about the WiFI AVR programmer is here. |
Beta Was this translation helpful? Give feedback.
-
@dl8dtl and @stefanrueger I think we can defer this one and remove the 7.1 milestone flag. jtag2updi has already been added to support UPDI parts. Serialupdi has also been added. So there is no high priority to add this paticular programmer which does not seem to be popular yet. |
Beta Was this translation helpful? Give feedback.
-
Well, I do have the hardware here, and we've got a patch. So I think it would be fair to at least have it in 7.1 (after it didn't make it into 7.0). |
Beta Was this translation helpful? Give feedback.
-
Good to hear that you have the hardware and intend to merge it before 7.1 release. |
Beta Was this translation helpful? Give feedback.
-
Will do my best … |
Beta Was this translation helpful? Give feedback.
-
Thanks. I think no need for you to feel the pressure as this is not a paid work. It is perfectly fine if this is pushed further to a date after the 7.1 release, as it is an enhancement. I tend to think it is good to have a release as the Christmas present as there are enough good changes in avrdude already. |
Beta Was this translation helpful? Give feedback.
-
A Christmas release would be fine with me, too. |
Beta Was this translation helpful? Give feedback.
-
@dl8dtl |
Beta Was this translation helpful? Give feedback.
-
So, what should we do with this patch? The Mavericks Embedded company closed down in March 2022, and their website is also down. The programmer itself is also marked as retired on Tindie. I suggest we close this one as "Not planned". |
Beta Was this translation helpful? Give feedback.
-
I agree with you. Any objections? |
Beta Was this translation helpful? Give feedback.
-
The company is a Brexit victim. :-( |
Beta Was this translation helpful? Give feedback.
-
I think there are already WiFi and Bluetooth enabled Arduino compatible board already. For Bluetooth, they just expose a serial port so there is no need to change anything on avrdude side. I am not so sure about WiFi side. Arduino Uno WiFi Rev 1 supports OTA. Arduino Uno WiFi Rev 2 does not seem to support OTA. |
Beta Was this translation helpful? Give feedback.
-
Close this for now and convert it into a discussion. |
Beta Was this translation helpful? Give feedback.
-
Wed 14 Feb 2018 04:29:49 PM UTC
Here are a set of patches against trunk which add the following features:
The programmer supports ISP, PDI and uPDI using the jtagmkII protocol using the "-p net::" option. It also supports ISP and PDI over stk500v2, and I may extend that to uPDI later.
Steve
file #43314: avrdude-wavr-jtag2-updi.diff.gz
This issue was migrated from https://savannah.nongnu.org/patch/?9565
Beta Was this translation helpful? Give feedback.
All reactions