Editor/converter/program manager for the Prime Calculator (PrimeComm) - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP Prime Software Library (/forum-15.html) +--- Thread: Editor/converter/program manager for the Prime Calculator (PrimeComm) (/thread-36.html) |
Editor/converter/program manager for the Prime Calculator (PrimeComm) - eried - 12-12-2013 03:13 AM Warning: Transfers aren't working with the last 6330 firmware. Other functions may not work with firmware 6330 or latest, please use the official Connectivity Kit. Version 0.9 b22 (Updated 2014-05-24) Download: http://servicios.ried.cl/primecomm/PrimeComm_setup_0.9.22.0.exe Source: https://github.com/eried/PrimeComm How it was made: http://ried.cl/en/franqueando-los-secretos-del-hardware-mediante-ingenieria-inversa/ Requires the .Net Framework 4.0 (this is probably already installed in your machine) The main purpose of this application is to allow the user to send and receive programs from the HP Prime Calculator. Besides this purpose, the application has few handy extra features:
PrimePad is included and has a dynamic reference now!: Other screens: 1 ICON (PNG) image mode isn't available due poor description of the encoding (it is "working" but the image isn't properly encoded yet with common png encoders) ___________________ Demos: Version 0.1: https://www.youtube.com/watch?v=4QGBjOD3LHo (Send and receive) Version 0.5: https://www.youtube.com/watch?v=FxG-R0QZ-qI (Conversion to plain text) Version 0.7: https://www.youtube.com/watch?v=UVALe40TPkc (Command server mode) BTW, I don't use mac nor linux a lot, but .Net is portable to both: The problem is... A new hidusb library is required (mainly just the filestream operations, usb enumerations and simple stuff) ___________________ Changelog: *0.9.22 20140423: PrimeHelp now can be closed with ESC (so it can be opened system-wide with ALTGR+. (or F1 inside PrimeComm) and operated by keyboard entirely. New style for PrimePad. New keywords definitions for PrimePad including ALL ones from the calculator's catalog. Small changes in the Settings dialog and a new option to disable the loading of these keywords/styles from external files. *0.9.21 20140423: PrimeHelp now bundled into PrimeComm and PrimePad (just press F1). ___________________ HP Prime Calculator communication library, gui, command line solution http://ried.cl/proyecto/utilidad-para-intercambiar-archivos-con-la-hp-prime-primecomm/ RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - eried - 12-13-2013 04:33 PM (12-13-2013 03:52 PM)compsystems Wrote: Erwin, enviando la biblioteca de fractales de este mismo foro veo que no se esta decodificando bien el símbolo flecha a la derecha ->, aparece como ? ¿Enviándolo por el portapapeles o usando el hpprgm? RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - eried - 12-13-2013 05:46 PM No puedo copiarlo directamente ni al Conn Kit, yo creo que es más problema del foro y la conversión que hace. 'Notepad' soporta unicode y muchos otros formatos. Si es mas que nada por ese motivo mi interés por hacer PrimeComm. Imaginate este tipo de problemas, sólo para probar un código, debes depurar el código manualmente. Si recibes el txt con primecomm y lo publicas en la web, lo puedes volver a cargar con primecomm: listo, no debes depurar nada. Idealmente me gustaria meter ese txt en un .prime por ejemplo y añadir un xml dentro con la descripción y una captura de pantalla. Así como si fuera un apk de android. RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - eried - 12-13-2013 11:52 PM Hey compsystems, creo que ahora ya reparé todo! prueba y me dices ______________________ Found a little bug in the size calculation and encoding detection. Now it should work wonderfully for *any* encoding (unicode, bigendianunicode, ansi) https://github.com/eried/PrimeComm/commit/3f96f9422fa9e23a208a24640b8472eedd8c4148 RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - eried - 12-14-2013 03:50 AM ¿Puedes grabar ese problema? Con jing o algun programa así RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - eried - 12-15-2013 08:46 PM Podríamos organizarnos y crear una lista de comandos, parámetros y ayuda para hacer el editor (el intellisense y eso). Creo que usaré scintilla, es pesado pero poderoso: RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - eried - 01-02-2014 10:34 AM Bueno, mi idea realmente no es copiar ese programa. Preferiría añadir snippets en el "intellisense" como lo hacen editores actuales, eclipse, netbeans, vs. RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - eried - 01-02-2014 10:24 PM Genial! tengo que revisar como scintilla recibe los datos (podríamos usar el wiki de tiplanet, así se mantiene centralizado). Así ademas hacemos una versión que sirva para hacer otros editores Estaba también avanzando en el capturador (para proyector o hacer "tutoriales"): Pero aún es primitivo. La primera versión del editor será mas que nada para reemplazar notepad (con highlight de sintaxis), así para lo que tu querías de "nuevo -> enviar" RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - ArielPalazzesi - 01-02-2014 11:28 PM Hello Erwin! Very good idea to build a "screen grabber". From what I see you can capture video ... Is this correct? If you can capture video will be a very good tool for building tutorials. Good luck with the project! A hug from Argentina. RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - eried - 01-03-2014 12:18 AM (01-02-2014 11:28 PM)ArielPalazzesi Wrote: Hello Erwin! Well, that's the idea but I don't want to make it too dependant on video codecs or complex weak stuff so, so in first instance I will save a stream of frames (or maybe an uncompressed/massive avi) RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - eried - 01-04-2014 05:07 PM Here is how the custom configuration for the program editor works: http://scintillanet.codeplex.com/wikipage?title=HowToCustomConfig Snippets, autocompletion, highlighting, codeblocks, printing is all allowed thanks to scintilla : Here are some hints about the configuration file (in case someone wants to help to define HPPPL configuration ): Code: <?xml version="1.0" encoding="utf-8" ?> Snippets: Code: <Snippets> Autocomplete (example for CS): Code: <AutoComplete FillUpCharacters=".([" SingleLineAccept="True" IsCaseSensitive="False"> Incomplete alpha version: http://servicios.ried.cl/primecomm/PrimeComm_alpha.zip (editor works, prints, sends, but does not save/open, etc) RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - eried - 01-07-2014 04:48 PM es más un IDE/Editor/deployer que un SDK (aunque la terminología pueda dar cabida). Escribiré lo que falta en inglés por si alguien más tiene sugerencias (dado de que entiendes inglés). ________________________________ Next steps are: 1) Code snippets (scintilla configuration) and keyword autocomplete (maybe local variables too with a simple precompiler) 2) More power tools for the editor, insert image directly (instead of opening it and reusing the code), key override replacements, dumb lexer/precompiler to detect errors early, etc. 3) Symbols toolbox (STO, pi, square root and others). Not sure how is the best efficient way to include them, table matrix docked in the editor window, menu, upper toolbar with few common used symbols and other ones in a popup dialog like in Word->insert symbol. 4) Finish screen capture (my calculator is still in the battery testing procedures! for standby lasting time so this is halted for now) 5) How to include the apps scripts? Autodetect them because the code uses view and stuff? Any suggestion? 6) Real communication with the emulator 7) Adding mono compatible functions (read/write to device) to HidLibrary so the app can works in Linux/MacOs ASCII 7 bits - compsystems - 01-07-2014 08:57 PM Hola Erwin, el siguiente es el código de prueba para lo de conversión ASCII 7 bits, hay dos caracteres que no se visualizan bien ( ^-1, i ) ver id1:=X^-1, id5:=i #i Code: EXPORT test() El código anterior codificado en ASCII 7 bits, util para realizar conversiones a otros BASICs Code: //ASCII 7 bits Guia de caracteres de conversión del código anterior Code: \^2\ // superindice2, ver ID0 RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - eried - 01-08-2014 12:12 AM No entiendo pero quieres que haga una conversión para TI? Qué utilidad tiene si el lenguaje es distinto? Puedo guardar en 7 bits (ASCII) pero hacer la tabla de conversión suena un poco ya fuera de la utilidad de primecomm ASCII 7 bits - compsystems - 01-08-2014 02:18 PM Hola, la conversion a 7 bits, seria útil no solo para portar código hacia calculadoras con BASIC como la serie TI68K, sino ademas a otros BASIC similares e incluso para la HP50G (ALG MODE). La tabla de conversión es simplemente una guía del código que coloque anteriormente El lenguaje mas parecido a la HP-Prime BASIC es con el TI-BASIC mas info en el siguiente link http://www.adictoshp.org/topic/591-hp-prime-guia-de-programacion-conversion-entre-ti68k-hpprime/ Código muy simple en la HP-Prime Code: export HPBasic_IO_prgm00() Código portado a las TI68K Code: :IO_prgm0() © maximo 8 caracteres Diferencias sutiles entre los BASICs * Los comentarios inician con el simbolo © * El encabezado de la funcion es Prgm EndPrgm * Cada sentencia inicia con : * Algunos comandos tienen nombres diferentes * Algunos comandos no requieren parentesis RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - eried - 01-08-2014 03:45 PM OK, pero la verdad no sé que relación tiene. Podría meter la simbología de las CASIO y SHARP también, pero ¿no te parecería pérdida de tiempo? Me refiero a que sentido tiene poder guardar un código de Prime para la TI. Si pones algún ejemplo válido quizás tenga más sentido, pero siendo un código incompatible no veo la diferencia con copiar el código y pegarlo en el editor de TI. PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - debrouxl - 01-08-2014 07:24 PM The TI-68k series doesn't use 7-bit ASCII, it uses its own charset; what's more, programs are usually stored under tokenized form. RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - eried - 01-08-2014 09:18 PM I am not quite sure how the things works in TI world (but as far I tested: everything is usually limited or obfuscated on purpose; starting with the nasty signature checks for the firmware), but what compsystems is suggesting that I should add a conversion for TI Basic from the program editor... and I am not quite sure how useful is doing something like that. RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - compsystems - 01-09-2014 02:05 PM Realizar un "traductor" de código seria lo ideal, pero requiere de una gran labor por parte del programador, la idea es automatizar un poco la traducción, por que los símbolos como por ejemplo integral, derivada, sumatoria en el ti-basic o HP-basic *(HP50) son simplemente un reemplazo de set del ASCII extentido, es decir modifican la fuente cambiando de símbolo . Si yo copio un codigo de la HP-Prime por estar codificado en UNICODE al copiarlo y pegarlo en el un editor de programas para la TI68K, observare un código ilegible, mientras que si se convierte a ASCII de 7 bits haría visible esos simbolos, aunque sea como \integral\ \diff\ facilitando enormemente el port Un juego elemental escrito en HPbasic y TIBasic HPbasic Code: EXPORT Deducir_Numero() TI-Basic redactando ... RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - ArielPalazzesi - 01-12-2014 10:21 AM Hello! If I'm not mistaken, the en Code: num_secreto local: = (rand () mod 100) + 1; generates numbers between 1.0 and 2.0 (real numbers with decimals). If the game requires numbers between 1 and 100, I think the simplest way is to Code: num_secreto local: IP = (random (1,100)); returns (natural) numbers between 1 and 100. In the line Code: if input( total_intentos,"Total de Intentos","Intentos=","Digite un # como total de intentos maximo" ) should be Code: if input( total_intentos,"Total de Intentos","Intentos=","Digite un # como total de intentos maximo" ) Am I right? Greetings! PS: Sorry about Off Toppic |