grodansparadis / vscp

VSCP (Very Simple Control Protocol) IoT/m2m framework
http://www.vscp.org
Other
52 stars 20 forks source link

Daemon seems to be very slow (v13.0.0) #241

Closed BlueAndi closed 5 years ago

BlueAndi commented 6 years ago

I tried the bootloader wizard and programming one node needed over an hour. Very hard to test this way. Measured on the can bus, between two extended register reads are most of the time 2s. :-(

grodansparadis commented 6 years ago

No that is ridiculous. How is the setup you have for this so I can try to reproduce.

On 2018-03-17 15:04, Andreas Merkle wrote:

I tried the bootloader wizard and programming one node needed over an hour. Very hard to test this way. Measured on the can bus, between two extended register reads are most of the time 2s. :-(

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/grodansparadis/vscp/issues/241, or mute the thread https://github.com/notifications/unsubscribe-auth/ABS8I16TychJgfiIeSgzTB0iS2HV8ykSks5tfRfhgaJpZM4Su0JR.

-- Stay Hungry - Stay Foolish! PGP: EF7161865D3E1CCE61E2F43464B570FEC2BE58AA Åke Hedman Brattbergavägen 17, 82050 LOS, SWEDEN http://www.akehedman.se http://www.vscp.org http://www.grodansparadis.com

BlueAndi commented 6 years ago

image

BlueAndi commented 6 years ago

You can also use the service webinterface to see it:

grodansparadis commented 6 years ago

Just the beaglebone, no adapter.

On 2018-03-17 15:52, Andreas Merkle wrote:

image https://user-images.githubusercontent.com/9699465/37556789-31554b10-29fb-11e8-83b8-a4da21f14fcb.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grodansparadis/vscp/issues/241#issuecomment-373925827, or mute the thread https://github.com/notifications/unsubscribe-auth/ABS8I8DfPhtQqfNfbPz3ccb8uX4ouD0xks5tfSM9gaJpZM4Su0JR.

-- Stay Hungry - Stay Foolish! PGP: EF7161865D3E1CCE61E2F43464B570FEC2BE58AA Åke Hedman Brattbergavägen 17, 82050 LOS, SWEDEN http://www.akehedman.se http://www.vscp.org http://www.grodansparadis.com

BlueAndi commented 6 years ago

The beaglebone has a shield with the CAN driver.

grodansparadis commented 6 years ago

OK

On 2018-03-17 16:48, Andreas Merkle wrote:

The beaglebone has a shield with the CAN driver.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grodansparadis/vscp/issues/241#issuecomment-373930126, or mute the thread https://github.com/notifications/unsubscribe-auth/ABS8Ix8e2k9X3_zmEPT8S4o-5h6c_noNks5tfTA1gaJpZM4Su0JR.

-- Stay Hungry - Stay Foolish! PGP: EF7161865D3E1CCE61E2F43464B570FEC2BE58AA Åke Hedman Brattbergavägen 17, 82050 LOS, SWEDEN http://www.akehedman.se http://www.vscp.org http://www.grodansparadis.com

grodansparadis commented 6 years ago

fyi Not ignoring this but have a segfault problem in an other part that is a bit hard to find as it is intermittent. So please be patient.

On 2018-03-17 15:58, Andreas Merkle wrote:

You can also use the service webinterface to see it:

  • First discover your node.
  • Show standard registers. There its slow too from my point of view.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grodansparadis/vscp/issues/241#issuecomment-373926300, or mute the thread https://github.com/notifications/unsubscribe-auth/ABS8I3z00on8xWR9zASnUR4VEvyndlijks5tfSSIgaJpZM4Su0JR.

-- Stay Hungry - Stay Foolish! PGP: EF7161865D3E1CCE61E2F43464B570FEC2BE58AA Åke Hedman Brattbergavägen 17, 82050 LOS, SWEDEN http://www.akehedman.se http://www.vscp.org http://www.grodansparadis.com

grodansparadis commented 6 years ago

Hi,

I have not really gone into this problem yet but I thought I should share some figures from my setup

PC ---> TCP/IP ----> RPi  ----> CAN4VSCP ---->  nodes

The CAN4VSCP adapter is very slow as it uses a serial connection so I guess a third or something with a USB adapter.

Much faster of course with a direct connection (CANAL).  Most timing is due to the small packages that each should be confirmed.  A solution for that would be to implement the bootloading algorithms right into the daemon also and just send the images.

But as I said the client should be rewritten so there does not make sense to try to optimize timing at this stage.

/Ake

On 2018-03-17 15:58, Andreas Merkle wrote:

You can also use the service webinterface to see it:

  • First discover your node.
  • Show standard registers. There its slow too from my point of view.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grodansparadis/vscp/issues/241#issuecomment-373926300, or mute the thread https://github.com/notifications/unsubscribe-auth/ABS8I3z00on8xWR9zASnUR4VEvyndlijks5tfSSIgaJpZM4Su0JR.

-- Stay Hungry - Stay Foolish! PGP: EF7161865D3E1CCE61E2F43464B570FEC2BE58AA Åke Hedman Brattbergavägen 17, 82050 LOS, SWEDEN http://www.akehedman.se http://www.vscp.org http://www.grodansparadis.com

grodansparadis commented 6 years ago

I will have a look at this when the new tcp/ip code is in place.

grodansparadis commented 5 years ago

Open if still a problem