SWUpdate

26 views
Skip to first unread message

Li, Shi Shi

unread,
Dec 2, 2022, 3:20:00 AM12/2/22
to swup...@googlegroups.com

Hello,

 

I am from Siemens AG, currently we are using SWUpdate for our project, which is a fantastic tool and help us a lot.

 

But I have a issue, there is no any progress bar and messages showing during web upgrading, though the image can be upgraded successfully.

 

Is there something dependence we shall open? Or how can I trace this issue?

 

Thanks in advance!

 

 

 

With best regards,
Li Shi Shi

Siemens Ltd., China
37, Yi Huai Street
211100 NANJING, China

Tel.: +86 25 51170649
Fax: +86 25 52109237
Mobile: +86 13236520056
mailto:shis...@siemens.com
www.siemens.com/ingenuityforlife

 

Stefano Babic

unread,
Dec 2, 2022, 3:36:27 AM12/2/22
to Li, Shi Shi, swup...@googlegroups.com
Hi Li,

On 02.12.22 09:19, Li, Shi Shi wrote:
> Hello,
>
> I am from Siemens AG, currently we are using SWUpdate for our project,
> which is a fantastic tool and help us a lot.
>

Thanks.

> But I have a issue, there is no any progress bar and messages showing
> during web upgrading, though the image can be upgraded successfully.
>

This is weird, it works on a lot of projects.

> Is there something dependence we shall open? Or how can I trace this issue?
>

I would first check if upgrading to last SWUpdate (from git) has still
this issue.

SWUpdate uses Websockets to communicate the update to the browser. On
the browser, Javascript must not turned be off. Are you using a standard
browser (Firefox / Chromium) ? You could also open the debug console on
the browser and check if it is getting the messages (they are JSON
formatted messages).

Best regards,
Stefano Babic

> Thanks in advance!
>
> With best regards,
> Li Shi Shi
>
> Siemens Ltd., China
> 37, Yi Huai Street
> 211100 NANJING, China
>
> Tel.: +86 25 51170649
> Fax: +86 25 52109237
> Mobile: +86 13236520056
> mailto:shis...@siemens.com <mailto:shis...@siemens.com>
> www.siemens.com/ingenuityforlife <https://siemens.com/ingenuityforlife>
>
> --
> You received this message because you are subscribed to the Google
> Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swupdate+u...@googlegroups.com
> <mailto:swupdate+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/swupdate/55433a65757f4dabba0db2110b362c1e%40siemens.com <https://groups.google.com/d/msgid/swupdate/55433a65757f4dabba0db2110b362c1e%40siemens.com?utm_medium=email&utm_source=footer>.

Li, Shi Shi

unread,
Dec 2, 2022, 3:53:53 AM12/2/22
to Babic, Stefano, swup...@googlegroups.com
Hello Stefano,

First thanks for your quick reply :)

Yes, I am using standard Chrome browser, but there is no any status message after uploading image into our device, see attached screen-shot.

Is it related websocket? We have not compiled libwebsockets before as swupdate dependence, today I tried add this one, but it still did not work.

I also attached my config file, please help check it.

With best regards,
Li Shi Shi

> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsie
> mens.com%2Fingenuityforlife&amp;data=05%7C01%7Cshishi.li%40ad011.sieme
> ns.com%7C06a6537e09264ba523dc08dad4404d8e%7C38ae3bcd95794fd4addab42e14
> 95d55a%7C1%7C0%7C638055669883931944%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC
> 4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%
> 7C&amp;sdata=ARUIwjGP6P1S98o7yPpnBQ%2FLxT37vHtwKIQX3kJ78wk%3D&amp;rese
> rved=0>
>
> --
> You received this message because you are subscribed to the Google
> Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swupdate+u...@googlegroups.com
> <mailto:swupdate+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fswupdate%2F55433a65757f4dabba0db2110b362c1e%2540siemens.com&amp;data=05%7C01%7Cshishi.li%40ad011.siemens.com%7C06a6537e09264ba523dc08dad4404d8e%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638055669883931944%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=tNCqL412BZNf5cdGNc0MgGx42IpSkzbK5m6mN26%2Fx6g%3D&amp;reserved=0 <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fswupdate%2F55433a65757f4dabba0db2110b362c1e%2540siemens.com%3Futm_medium%3Demail%26utm_source%3Dfooter&amp;data=05%7C01%7Cshishi.li%40ad011.siemens.com%7C06a6537e09264ba523dc08dad4404d8e%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638055669883931944%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=%2FeD42fC15p%2Fdf2gDuVEGgz1DbMGcsjve9fFU2eNtbks%3D&amp;reserved=0>.
browser_debug.jpg
my.config

Li, Shi Shi

unread,
Dec 2, 2022, 4:54:02 AM12/2/22
to Babic, Stefano, swup...@googlegroups.com
Also I attached my swupdate.cfg and log trace during upgrading.

I commented some lines in cfg file because we have not used. I am not sure it is the reason.
swupdate.cfg
swupdate.log

Li, Shi Shi

unread,
Dec 4, 2022, 1:24:50 AM12/4/22
to Babic, Stefano, swup...@googlegroups.com
Hello Stefano,

Finally I found the reason why I cannot get firmware upgrade status via websocket. In our device, we have not enabled net loopback interface (lo) which used by mongoose server.

Anyway, thank you very much for your hint:)

With best regards,
Li Shi Shi

-----Original Message-----
From: Stefano Babic <sba...@denx.de>
Sent: Friday, December 2, 2022 4:36 PM
To: Li, Shi Shi (SI EA R&D AU CN) <shis...@siemens.com>; swup...@googlegroups.com
Subject: Re: [swupdate] SWUpdate

> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsie
> mens.com%2Fingenuityforlife&amp;data=05%7C01%7Cshishi.li%40ad011.sieme
> ns.com%7C06a6537e09264ba523dc08dad4404d8e%7C38ae3bcd95794fd4addab42e14
> 95d55a%7C1%7C0%7C638055669883931944%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC
> 4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%
> 7C&amp;sdata=ARUIwjGP6P1S98o7yPpnBQ%2FLxT37vHtwKIQX3kJ78wk%3D&amp;rese
> rved=0>
>
> --
> You received this message because you are subscribed to the Google
> Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swupdate+u...@googlegroups.com
> <mailto:swupdate+u...@googlegroups.com>.
> To view this discussion on the web visit

Stefano Babic

unread,
Dec 4, 2022, 3:01:32 PM12/4/22
to Li, Shi Shi, Babic, Stefano, swup...@googlegroups.com
Hi Li,

On 04.12.22 07:24, Li, Shi Shi wrote:
> Hello Stefano,
>
> Finally I found the reason why I cannot get firmware upgrade status via websocket. In our device, we have not enabled net loopback interface (lo) which used by mongoose server.
>

Well, it is like a hidden requirement that accessing to the Webserver
requires working network, and this means both an external interface and
loopback. It will be nice to add this to the documentation to avoid some
headaches if lo is not set.

> Anyway, thank you very much for your hint:)
>

You're welcome.


> With best regards,
> Li Shi Shi

Best regards,
Stefano Babic
Reply all
Reply to author
Forward
0 new messages