HP Forums

Full Version: PRIMEComm 0.5
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I just came across this small utility.
I was wondering exactly how to use it. I get a file not sent error after trying to send a hpprgm file. I also sometimes get a error message USB error when trying to send another file. In another case it says it sending the file but it never gets to the calculator.
Does the file have to be in a certain directory on the PC?
Does ir work with hpprgm files or only text files.

For the moment the USB messages aren't 100% valid. I just recently added the capability to send multiple txt or hpprgm files in a batch and that works for the most part, but sometimes the calculator stops receiving (maybe is because app is not sending a valid crc), as you say.

It will get fixed eventually. My idea is just to complete 3 main tasks: send (with command line support so you can double click/right click files to send them quickly), receive and capture 'sequences' like to create little screencasts from the calc, so it just need a little time to get perfected.

What firmware version are you using? (one guy without the 3.0sdk version also experimented some issues)


Edited: 23 Nov 2013, 8:08 a.m.

Quote:
For the moment the USB messages aren't 100% valid. I just recently added the capability to send multiple txt or hpprgm files in a batch and that works for the most part, but sometimes the calculator stops receiving (maybe is because app is not sending a valid crc), as you say.

It will get fixed eventually. My idea is just to complete 3 main tasks: send (with command line support so you can double click/right click files to send them quickly), receive and capture 'sequences' like to create little screencasts from the calc, so it just need a little time to get perfected.

What firmware version are you using? (one guy without the 3.0sdk version also experimented some issues)



Software Version 2013 8 13 5106
CAS 1.1.0
Native OS VO.24.5106
Also I just found out that the files seem to be transferring from the calculator(not the emulator) to the PC OK.
At least I can read the code for several short programs I wrote using "Free File Viewer".
Of course this program will not format the code as seen in the program editor on the calculator,but it can be read.
As far as I can tell files are not being sent from the PC to the calculator.

I see, mine says Native OS VO.3SDK not sure if that makes a difference. And I am not sure if I was the one who updated the firmware.

You can receive the files as txt if you want to read them, just change the filetype when saving.

Can you try: http://ried.cl/wp-content/uploads/2013/11/PrimeComm.zip

I posted this video already, but as you can see it works in my calculator: https://www.youtube.com/watch?v=FxG-R0QZ-qI (I a aware that after several operations something bugs and I receive error messages)

Quote:
I see, mine says Native OS VO.3SDK not sure if that makes a difference. And I am not sure if I was the one who updated the firmware.

You can receive the files as txt if you want to read them, just change the filetype when saving.

Can you try: http://ried.cl/wp-content/uploads/2013/11/PrimeComm.zip

I posted this video already, but as you can see it works in my calculator: https://www.youtube.com/watch?v=FxG-R0QZ-qI (I a aware that after several operations something bugs and I receive error messages)


I finally got a very short program to be sent to the calculator successfully. It was calculating and printing (SIN^2 + COS^2) and printing out this sum for angles from 0 to 90 degrees.
I deleted this program from the calculator and then I sent it back. The sent back version still works.
However when I tried to send the HP-Elements program it was not sent to the calculator. I get an error message.
Also in your screenshot I noted several menus that were shown. I see no menu items in the version of PrimComm I downloaded from the Forum.

Quote:

I finally got a very short program to be sent to the calculator successfully. It was calculating and printing (SIN^2 + COS^2) and printing out this sum for angles from 0 to 90 degrees.
I deleted this program from the calculator and then I sent it back. The sent back version still works.
However when I tried to send the HP-Elements program it was not sent to the calculator. I get an error message.
Also in your screenshot I noted several menus that were shown. I see no menu items in the version of PrimComm I downloaded from the Forum.


Forgive me. I was using a version of the aforementioned program on my other Prime that was not sent to my PC, This IS PRIME NO1. I have 2. The program was sent to the Prime NO2 I was talking about. The name of the program shows up in the program menu but it does not run properly. When I tried to edit this program I got a lot of Chinese/Japanese characters in the listing,I do not know which. Something really strange is going on here.
I have English set as the language setting on the calculator

Yeah, the menus are in the 0.6, it included some suggestions and enhancements, but still not published.

I can't understand your second message. This has been tested in only 2 primes for the moment :D so I am not sure what happens with other OS versions (if any), etc. But it is just matter of time.

The chinese chars is because little vs big endian encoding in the files. In this moment:

1) you can receive scripts from your HP to TXT and to hpprgm files (but it is the only version of hpprgm I have implemented, the 'unnamed' one)

2) you can use any hpprgm or txt file as source, but the ones you received first are the most likely to work (it seems there is 1 byte as signature per file, and I am just ignoring all of that and extracting the script, so as I said it is just matter of time/testing/fixing until it works 100% perfect: probably when it reaches 1.0 :D)

The main idea of this little app is to teach in an small article using easy words how to reverse engineer hid/usb stuff you have laying around in the house with old/unsupported/missing features or support, so what you saw working is the only I have discovered up to this moment hahah:


Edited: 23 Nov 2013, 11:57 a.m.

Quote:
Yeah, the menus are in the 0.6, it included some suggestions and enhancements, but still not published.

I can't understand your second message. This has been tested in only 2 primes for the moment :D so I am not sure what happens with other OS versions (if any), etc. But it is just matter of time.

The chinese chars is because little vs big endian encoding in the files. In this moment:

1) you can receive scripts from your HP to TXT and to hpprgm files (but it is the only version of hpprgm I have implemented, the 'unnamed' one)

2) you can use any hpprgm or txt file as source, but the ones you received first are the most likely to work (it seems there is 1 byte as signature per file, and I am just ignoring all of that and extracting the script, so as I said it is just matter of time/testing/fixing until it works 100% perfect: probably when it reaches 1.0 :D)

The main idea of this little app is to teach in an small article using easy words how to reverse engineer hid/usb stuff you have laying around in the house with old/unsupported/missing features or support, so what you saw working is the only I have discovered up to this moment hahah:



Thanks for you efforts. You will figure it out once you work on it some more. Then maybe we will be able to connect the PRIME to the Vernier LabPro interface to program it.
Meanwhile Texas A&M is losing to LSU so I will have to go back to the game.