write custom script to a file

Here you can ask technical questions about REVELPROG-IS and device/memory programming.
ignasiR
Posts: 10
Joined: Mon Feb 27, 2023 10:58 am

write custom script to a file

Postby ignasiR » Tue Jul 11, 2023 6:38 pm

Sorry to bother, I think its a simple question, but I didn't find info on it, not in the forum, and really its easy...

I have a custom script based on Revelprog script to read DS2430/2431 id chip, and I want to save/dump this 64 bits id to a file, like I do with all eeprom memory..... I tried #FILE, and others..nothing, just read, but not saved,
Is there any automatic/script command to write the ID readed (8 bytes) to disk? I use the automatic mode to connect to my software as a shell execution (and its working pretty cool).

// 1-Wire Read 64-bit unique ID
#SCRIPT HEADER;
SCRIPT:v1.8.0;
#HARDWARE SETTINGS;
HW:1-WIRE,5.0V,SLOW;
#OPERATION;
SW:0,0,1,7,0,0,0,0,0,500;
INSTR:33;

Many thanks for your time, and help, sure that Karma will be back to you ;-)
Ignasi Riera
Ignasi Riera

ArT
Posts: 1540
Joined: Wed Mar 25, 2015 8:54 am
Location: Warsaw, Poland
Has thanked: 57 times
Been thanked: 166 times

Re: write custom script to a file

Postby ArT » Wed Jul 12, 2023 9:21 am

Hi Ignasi, currently automatic mode is only working with write from file operation.
Do you need each ID in separate files or add ID (as separate line) to existing txt file? I'll need to check possibilities and consult it.

ignasiR
Posts: 10
Joined: Mon Feb 27, 2023 10:58 am

Re: write custom script to a file

Postby ignasiR » Tue Jul 25, 2023 4:42 pm

Sorry for my late reply...I was in my holidays ...once every 20 years.....

Yes, I need each ID DS2430a in a separate file, or in a separated line, I need to read from outside, from my software.
A file with the ID like the same with dumping memory will be great.

I made a software that sends script to revelprog scripting software and reads mainmemory and writes to a file, but no ID, and I need the ID to check.

Sorry again to bother you, now I will be online.

and many many thanks for help me.

Ignasi-
Ignasi Riera

ArT
Posts: 1540
Joined: Wed Mar 25, 2015 8:54 am
Location: Warsaw, Poland
Has thanked: 57 times
Been thanked: 166 times

Re: write custom script to a file

Postby ArT » Thu Jul 27, 2023 7:39 am

I'll consult this case and back to you with information within few days.

ignasiR
Posts: 10
Joined: Mon Feb 27, 2023 10:58 am

Re: write custom script to a file

Postby ignasiR » Thu Jul 27, 2023 8:27 am

Art, Take your time, I'm not in hurry, only stuck in this for my external app. I know that you are busy for sure.


many thanks. Have a nice day and don't stress too much.

Ignasi
Ignasi Riera

ignasiR
Posts: 10
Joined: Mon Feb 27, 2023 10:58 am

Re: write custom script to a file

Postby ignasiR » Tue Aug 22, 2023 4:58 pm

HI Art, any news on reading DS2430 and DS2431 Lasered ID serial from automatic scripting, and write to a file (or in a separated line)?

If you are on holidays, sorry to bother you, and have a nice holidays.

many thanks,

Ignasi
Ignasi Riera

ArT
Posts: 1540
Joined: Wed Mar 25, 2015 8:54 am
Location: Warsaw, Poland
Has thanked: 57 times
Been thanked: 166 times

Re: write custom script to a file

Postby ArT » Thu Aug 24, 2023 5:09 pm

It should be possible to do (it's already on todo list) but it may take some time. I'm going on vacation in September.
I'll be informing you. Thanks for your patience.

ignasiR
Posts: 10
Joined: Mon Feb 27, 2023 10:58 am

Re: write custom script to a file

Postby ignasiR » Thu Aug 24, 2023 5:28 pm

have a nice vacation art, thanks to answer in you holiday time, and sorry to disturb you.

When ready, if you remember please notify me

Best wishes,

ignasi
Ignasi Riera

ArT
Posts: 1540
Joined: Wed Mar 25, 2015 8:54 am
Location: Warsaw, Poland
Has thanked: 57 times
Been thanked: 166 times

Re: write custom script to a file

Postby ArT » Mon Oct 23, 2023 3:30 pm

Hi Ignasi,

Thank you for your patience. I'm sharing you beta version with possibility to save to external bin file for custom script read operations:
https://www.dropbox.com/t/TCsamtZeRn6Ag280

Here you have example script which will read 1-wire device ID and save it to extenal file located in main directory of C drive.

Generaly in new version you will need to add single command to script:
#SAVETOFILE="file_path";
where file_path is location + filename, e.g. "C:/filename.bin"

You can add read ID operation to your script (at the end) so it will save additional 8 bytes with ID at the end.

Please test it and let me know what do you think.

Code: Select all

#SCRIPT HEADER;
SCRIPT:v1.9.2;

#HARDWARE SETTINGS;
HW:1-WIRE,4.5V,SLOW;

#OPERATION;
SW:0,0,1,7,0,0,0,0,0,500;
INSTR:33; // Read 64-bit ID

#SAVETOFILE="C:/1wireId.bin";

ignasiR
Posts: 10
Joined: Mon Feb 27, 2023 10:58 am

Re: write custom script to a file

Postby ignasiR » Tue Oct 24, 2023 8:14 am

Suuuuuperrrrrr!!!

I will test inmediately and say to you the results.

I think its important to have many times the serial, many companies uses as ID for the chips.

Many thanks Art, If I can help you in anything on my side, will be happy to do.
Ignasi Riera


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 0 guests