dnatividade / VEINS-tutorials

Tutorials about VEINS, Sumo and OMNet++
GNU General Public License v3.0
15 stars 2 forks source link

Communication between RSU and Central Authority #3

Closed barkhabaheti closed 11 months ago

barkhabaheti commented 1 year ago

hey ! i have to make a project in which there are lots of rsu and cars and a central authority.in which car send message to rsu and at rsu we divide the levels according to their emergency message and then rsu send the message with signature to central authority and central authority will check the identity of cars and record the message. thank you in advance.

barkhabaheti commented 11 months ago

Okay should I install anything for this library or compile it like crypto or only link will solve my problem.

On Sat, 30 Sep 2023 at 5:55 PM, dnatividade @.***> wrote:

[image: zlib-windows] https://user-images.githubusercontent.com/43869367/271772674-f5d9b8c2-2087-45d1-8eef-eee77cbcfb6a.png

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1741754784, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQKFDUSCER4NO7BPFIDX5AFTZANCNFSM6AAAAAA4J4YZBQ . You are receiving this because you authored the thread.Message ID: @.***>

barkhabaheti commented 11 months ago

still getting another error.. C:\Users\Dell\src\omnetpp-5.6.2\tools\win64\mingw64\bin\ld: skipping incompatible C:/Users/Dell/src/omnetpp-5.6.2/tools/win64/usr/bin/z.dll when searching for -lz make[1]: Leaving directory '/c/Users/Dell/Downloads/veins/veins/src'

dnatividade commented 11 months ago

Add this in the path: C:\Users\Dell\src\omnetpp-5.6.2\tools\win64\mingw64\lib C:\Users\Dell\src\omnetpp-5.6.2\tools\win64\mingw64\include

Is your Windows 32 ou 64 bit?

barkhabaheti commented 11 months ago

Wait i m doing

On Sat, 30 Sep 2023 at 6:46 PM, dnatividade @.***> wrote:

Add this in the path: C:\Users\Dell\src\omnetpp-5.6.2\tools\win64\mingw64\lib C:\Users\Dell\src\omnetpp-5.6.2\tools\win64\mingw64\include

Is your Windows 32 ou 64 bit?

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1741764603, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQJUHFJ5J4TXJHGN45TX5ALRJANCNFSM6AAAAAA4J4YZBQ . You are receiving this because you authored the thread.Message ID: @.***>

barkhabaheti commented 11 months ago

64 bit

On Sat, 30 Sep 2023 at 6:54 PM, Barkha Baheti MTCS, SPUP < @.***> wrote:

Wait i m doing

On Sat, 30 Sep 2023 at 6:46 PM, dnatividade @.***> wrote:

Add this in the path: C:\Users\Dell\src\omnetpp-5.6.2\tools\win64\mingw64\lib C:\Users\Dell\src\omnetpp-5.6.2\tools\win64\mingw64\include

Is your Windows 32 ou 64 bit?

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1741764603, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQJUHFJ5J4TXJHGN45TX5ALRJANCNFSM6AAAAAA4J4YZBQ . You are receiving this because you authored the thread.Message ID: @.***>

barkhabaheti commented 11 months ago

path in this ?

dnatividade commented 11 months ago

path in this ?

Add in the Library Paths C:\Users\Dell\src\omnetpp-5.6.2\tools\win64\mingw64\lib

dnatividade commented 11 months ago

The error message suggests a version compatibility issue. Try cleaning and then building.

barkhabaheti commented 11 months ago

still same error

barkhabaheti commented 11 months ago

any idea?

dnatividade commented 11 months ago

Unfortunately not. But try going back to the previous code and see if it still works. Because the zlib library was also used in the previous code and you said it worked normally.

We can go back to the old code and make changes based on it.

barkhabaheti commented 11 months ago

After zlib it didn’t work out.. should i use linux..

On Mon, 2 Oct 2023 at 4:20 PM, dnatividade @.***> wrote:

Unfortunately not. But try going back to the previous code and see if it still works. Because the zlib library was also used in the previous code and you said it worked normally.

We can go back to the old code and make changes based on it.

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1742795925, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQPTQSHMYX3TVV2BL4LX5KMAFANCNFSM6AAAAAA4J4YZBQ . You are receiving this because you authored the thread.Message ID: @.***>

barkhabaheti commented 11 months ago

Or you can access my computer with anydesk..

On Mon, 2 Oct 2023 at 6:12 PM, Barkha Baheti MTCS, SPUP < @.***> wrote:

After zlib it didn’t work out.. should i use linux..

On Mon, 2 Oct 2023 at 4:20 PM, dnatividade @.***> wrote:

Unfortunately not. But try going back to the previous code and see if it still works. Because the zlib library was also used in the previous code and you said it worked normally.

We can go back to the old code and make changes based on it.

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1742795925, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQPTQSHMYX3TVV2BL4LX5KMAFANCNFSM6AAAAAA4J4YZBQ . You are receiving this because you authored the thread.Message ID: @.***>

dnatividade commented 11 months ago

Or you can access my computer with anydesk.. On Mon, 2 Oct 2023 at 6:12 PM, Barkha Baheti MTCS, SPUP < @.> wrote: After zlib it didn’t work out.. should i use linux.. On Mon, 2 Oct 2023 at 4:20 PM, dnatividade @.> wrote: > Unfortunately not. > But try going back to the previous code and see if it still works. > Because the zlib library was also used in the previous code and you said it > worked normally. > > We can go back to the old code and make changes based on it. > > — > Reply to this email directly, view it on GitHub > <#3 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/A3HCZQPTQSHMYX3TVV2BL4LX5KMAFANCNFSM6AAAAAA4J4YZBQ > . > You are receiving this because you authored the thread.Message ID: > @.***> >

May be..

You can send your ID to this temp. email: asewe3242@estudys.com

barkhabaheti commented 11 months ago

When will you get free

On Mon, 2 Oct 2023 at 6:27 PM, dnatividade @.***> wrote:

Or you can access my computer with anydesk.. On Mon, 2 Oct 2023 at 6:12 PM, Barkha Baheti MTCS, SPUP < @.

> wrote: … <#m-2368669804809371618> After zlib it didn’t work out.. should i use linux.. On Mon, 2 Oct 2023 at 4:20 PM, dnatividade @.> wrote: > Unfortunately not. > But try going back to the previous code and see if it still works. > Because the zlib library was also used in the previous code and you said it > worked normally. > > We can go back to the old code and make changes based on it. > > — > Reply to this email directly, view it on GitHub > <#3 (comment) https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1742795925>,

or unsubscribe > https://github.com/notifications/unsubscribe-auth/A3HCZQPTQSHMYX3TVV2BL4LX5KMAFANCNFSM6AAAAAA4J4YZBQ . > You are receiving this because you authored the thread.Message ID: > @.***> >

May be..

You can send you ID to this temp. email: @.***

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1742967098, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQPAOYWV7F2UQ5PSAADX5K24HAVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBSHE3DOMBZHA . You are receiving this because you authored the thread.Message ID: @.***>

dnatividade commented 11 months ago

Today, at 16:30 UTC? (19 hours in India, I think...)

barkhabaheti commented 11 months ago

What about tomorrow?

On Mon, 2 Oct 2023 at 8:15 PM, dnatividade @.***> wrote:

Today, at 16:30 UTC? (19 hours in India, I think...)

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1743156044, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQPS3QLAG6SDNCQOXGDX5LHP3AVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTGE2TMMBUGQ . You are receiving this because you authored the thread.Message ID: @.***>

dnatividade commented 11 months ago

OK

barkhabaheti commented 11 months ago

in another pc i try to run it and it is running.. thank you so much.

On Mon, Oct 2, 2023 at 10:03 PM dnatividade @.***> wrote:

OK

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1743345260, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQO2GYHQMW6DLCZKC4LX5LUGXAVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTGM2DKMRWGA . You are receiving this because you authored the thread.Message ID: @.***>

barkhabaheti commented 11 months ago

I try to create a file in this and added some code after that again it is lib error in another pc don’t understand what’s the issue

On Tue, 3 Oct 2023 at 11:00 AM, Barkha Baheti MTCS, SPUP < @.***> wrote:

in another pc i try to run it and it is running.. thank you so much.

On Mon, Oct 2, 2023 at 10:03 PM dnatividade @.***> wrote:

OK

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1743345260, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQO2GYHQMW6DLCZKC4LX5LUGXAVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTGM2DKMRWGA . You are receiving this because you authored the thread.Message ID: @.***>

dnatividade commented 11 months ago

What is the error?

barkhabaheti commented 11 months ago

Previous one On Tue, 3 Oct 2023 at 4:13 PM, dnatividade @.***> wrote:

What is the error?

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1744705860, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQLL2TGAVTOJC6LRYJLX5PT5PAVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBUG4YDKOBWGA . You are receiving this because you authored the thread.Message ID: @.***>

barkhabaheti commented 11 months ago

C:\Users\Dell\src\omnetpp-5.6.2\tools\win64\mingw64\bin\ld: skipping incompatible C:/Users/Dell/src/omnetpp-5.6.2/tools/win64/usr/bin/z.dll when searching for -lz this error is in my laptop..

dnatividade commented 11 months ago

Wouldn't you be able to use the virtual machine (Instant Veins) provided by the author? Because in this VM everything is already configured. https://veins.car2x.org/documentation/instant-veins/

barkhabaheti commented 11 months ago

Okay how to use it I don’t know

On Tue, 3 Oct 2023 at 6:54 PM, dnatividade @.***> wrote:

Wouldn't you be able to use the virtual machine (Instant Veins) provided by the author? Because in this VM everything is already configured. https://veins.car2x.org/documentation/instant-veins/

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1744973722, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQMY24YWVKRIUINTWT3X5QGZVAVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBUHE3TGNZSGI . You are receiving this because you authored the thread.Message ID: @.***>

dnatividade commented 11 months ago

If you have never worked with Virtual Machines, it will be a little difficult to explain here. But I will create another issue for this purpose: #5

barkhabaheti commented 11 months ago

Ok, thanks.

On Tue, 3 Oct 2023 at 9:45 PM, dnatividade @.***> wrote:

If you have never worked with Virtual Machines, it will be a little difficult to explain here. But I will create another issue for this purpose: #5 https://github.com/dnatividade/VEINS-tutorials/issues/5

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1745305262, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQLFTSV6DYIURZYN2RLX5Q2YPAVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBVGMYDKMRWGI . You are receiving this because you authored the thread.Message ID: @.***>

dnatividade commented 11 months ago

You are welcome.

I already posted the tutorial there... (#5 )

barkhabaheti commented 11 months ago

i getting this error after changing little in code given by you

On Tue, Oct 3, 2023 at 10:55 PM dnatividade @.***> wrote:

You are welcome.

I already posted the tutorial there... (#5 https://github.com/dnatividade/VEINS-tutorials/issues/5 )

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1745414309, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQP4WMYBW7Z5J3E3CDDX5RDAPAVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBVGQYTIMZQHE . You are receiving this because you authored the thread.Message ID: @.***>

barkhabaheti commented 11 months ago

i have to add one more thing. i have to create a text file in ca.cc file in this file we have to save message with hash and its id. for hash we have to use chain like structure. there are two hash previous hash and hash of message+ address. in initial state previous hash will be 0000 and other hash will be ( message+ address ) after initial state pervious hash become the hash of calculated at pervious message and for other hash i will be hash (pervious hash+ message+ address ) and it will appened into the file which we have created. can you help me to do this.

dnatividade commented 11 months ago

But were you able to resolve the compilation errors?

dnatividade commented 11 months ago

i have to add one more thing. i have to create a text file in ca.cc file in this file we have to save message with hash and its id. for hash we have to use chain like structure. there are two hash previous hash and hash of message+ address. in initial state previous hash will be 0000 and other hash will be ( message+ address ) after initial state pervious hash become the hash of calculated at pervious message and for other hash i will be hash (pervious hash+ message+ address ) and it will appened into the file which we have created. can you help me to do this.

Do you need to create a text file with the hashes? Example: hash.txt

0000 hash_1
hash_1 hash_2
hash_2 hash_3
...
hash_n-1 hash_n

Like a "blockchain"?

barkhabaheti commented 11 months ago

Yes i have to create some text file with this details in it and when ever new messages will create it will appened in that text file..

On Wed, 4 Oct 2023 at 4:29 PM, dnatividade @.***> wrote:

i have to add one more thing. i have to create a text file in ca.cc file in this file we have to save message with hash and its id. for hash we have to use chain like structure. there are two hash previous hash and hash of message+ address. in initial state previous hash will be 0000 and other hash will be ( message+ address ) after initial state pervious hash become the hash of calculated at pervious message and for other hash i will be hash (pervious hash+ message+ address ) and it will appened into the file which we have created. can you help me to do this.

Do you need to create a text file with the hashes? Example: hash.txt

0000 hash_1 hash_1 hash_2 hash_2 hash_3 ... hash_n-1 hash_n

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1746638287, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQOAYVXD53Y7YZVH5VDX5U6Q3AVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBWGYZTQMRYG4 . You are receiving this because you authored the thread.Message ID: @.***>

barkhabaheti commented 11 months ago

Id0 - message m0 - hash0 Id1 - m1-h1 Id2- m2- h2 And so on..

On Wed, 4 Oct 2023 at 7:07 PM, Barkha Baheti MTCS, SPUP < @.***> wrote:

Yes i have to create some text file with this details in it and when ever new messages will create it will appened in that text file..

On Wed, 4 Oct 2023 at 4:29 PM, dnatividade @.***> wrote:

i have to add one more thing. i have to create a text file in ca.cc file in this file we have to save message with hash and its id. for hash we have to use chain like structure. there are two hash previous hash and hash of message+ address. in initial state previous hash will be 0000 and other hash will be ( message+ address ) after initial state pervious hash become the hash of calculated at pervious message and for other hash i will be hash (pervious hash+ message+ address ) and it will appened into the file which we have created. can you help me to do this.

Do you need to create a text file with the hashes? Example: hash.txt

0000 hash_1 hash_1 hash_2 hash_2 hash_3 ... hash_n-1 hash_n

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1746638287, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQOAYVXD53Y7YZVH5VDX5U6Q3AVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBWGYZTQMRYG4 . You are receiving this because you authored the thread.Message ID: @.***>

barkhabaheti commented 11 months ago

Like in this image

On Wed, 4 Oct 2023 at 7:09 PM, Barkha Baheti MTCS, SPUP < @.***> wrote:

Id0 - message m0 - hash0 Id1 - m1-h1 Id2- m2- h2 And so on..

On Wed, 4 Oct 2023 at 7:07 PM, Barkha Baheti MTCS, SPUP < @.***> wrote:

Yes i have to create some text file with this details in it and when ever new messages will create it will appened in that text file..

On Wed, 4 Oct 2023 at 4:29 PM, dnatividade @.***> wrote:

i have to add one more thing. i have to create a text file in ca.cc file in this file we have to save message with hash and its id. for hash we have to use chain like structure. there are two hash previous hash and hash of message+ address. in initial state previous hash will be 0000 and other hash will be ( message+ address ) after initial state pervious hash become the hash of calculated at pervious message and for other hash i will be hash (pervious hash+ message+ address ) and it will appened into the file which we have created. can you help me to do this.

Do you need to create a text file with the hashes? Example: hash.txt

0000 hash_1 hash_1 hash_2 hash_2 hash_3 ... hash_n-1 hash_n

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1746638287, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQOAYVXD53Y7YZVH5VDX5U6Q3AVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBWGYZTQMRYG4 . You are receiving this because you authored the thread.Message ID: @.***>

dnatividade commented 11 months ago

veins-crc2_2023-10-04.zip

The file will be created into example/ folder.

I made several changes to the code:

barkhabaheti commented 11 months ago

er getting this error

barkhabaheti commented 11 months ago

first entry is perfect after that this error arrive.

dnatividade commented 11 months ago

This is a generic error. I need more details... I need to know at what point in the simulation the error occurred.

barkhabaheti commented 11 months ago

At initial state it is running perfectly at second state ca receives message but when it excute file error occurs at that moment

On Fri, 6 Oct 2023 at 4:14 PM, dnatividade @.***> wrote:

This is a generic error. I need more details... I need to know at what point in the simulation the error occurred.

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1750393065, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQIGO53EYIHIMWPBZI3X57OJDAVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJQGM4TGMBWGU . You are receiving this because you authored the thread.Message ID: @.***>

dnatividade commented 11 months ago

Are you using Instant Veins VM or Windows machine?

dnatividade commented 11 months ago

The code is running fine in my machine:

https://github.com/dnatividade/VEINS-tutorials/assets/43869367/8cec8748-49d4-4df8-b566-522e295b0607

barkhabaheti commented 11 months ago

Windows

On Fri, 6 Oct 2023 at 7:31 PM, dnatividade @.***> wrote:

Are you using Instant Veins VM or Windows machine?

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1750732687, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQIMCZGIUI5UVRSUVXDX6AFM3AVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJQG4ZTENRYG4 . You are receiving this because you authored the thread.Message ID: @.***>

dnatividade commented 11 months ago

I discovered the problem! On line 80 of the CA.cc file, change: delete crc; to delete newCrc;

This will solve your problem (strange that on Linux it didn't report the error when deleting the incorrect object, but on Windows it did!)

dnatividade commented 11 months ago

https://github.com/dnatividade/VEINS-tutorials/assets/43869367/5c9f3b2b-9d04-4459-a0f1-824dbbc4b3d9

barkhabaheti commented 11 months ago

yes it is working now

On Sat, Oct 7, 2023 at 3:38 AM dnatividade @.***> wrote:

https://github.com/dnatividade/VEINS-tutorials/assets/43869367/5c9f3b2b-9d04-4459-a0f1-824dbbc4b3d9

— Reply to this email directly, view it on GitHub https://github.com/dnatividade/VEINS-tutorials/issues/3#issuecomment-1751451911, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HCZQP3BSZ54LHMK3246NDX6B6OFAVCNFSM6AAAAAA4J4YZBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGQ2TCOJRGE . You are receiving this because you authored the thread.Message ID: @.***>

barkhabaheti commented 11 months ago

thank you so much for helping me this means alot to me...