Tachyon NEON V5 (FAT32 and Ethernet Servers in 32kB EEPROM!)

11516182021

Comments

  • Peter JakackiPeter Jakacki Posts: 8,772
    edited 2019-07-07 - 13:30:27
    ErNa wrote: »
    Hi Mike, I also one moment see clearly what I have to do, the next moment I feel to be in a dessert. While writing sophisticated code one moment, I'm stuck the next. Tachyon tasts sweet, like honeydew, but I'm looking anxiously for the spider. ... So we have to find a way to communicate the principles a simple way, what I didn't reach to now. Be the forth with you.

    I always knew what Mike was asking for when he first asked but the answer to the question wasn't the answer to his problem which I believe is ensuring his software can satisfy the prerequisites of the TAQOZ memory. From there it is child's play, just a few lines of code.

    But now we have MicroPython that has become available and if this and TAQOZ can be overlayed side by side in P2 memory then Python should be able to setup TAQOZ to suit. BTW, that just made me wonder and I'm not sure how we call an arbitrary address in Python. I will have to check it out. But MicroPython and TAQOZ together should be a very powerful package.

    Ooops, I'm OT on my own thread. Please use the TAQOZ thread for anything to do with TAQOZ as this Tachyon thread is in the P1 sub-forum.

    Tachyon Forth - compact, fast, forthwright and interactive
    useforthlogo-s.png
    P2 --- The LOT --- TAQOZ INTRO & LINKS --- P2 SHORTFORM DATASHEET --- TAQOZ RELOADED - 64kB binary with room to spare
    P1 --- Latest Tachyon with EASYFILE --- Tachyon Forth News Blog --- More
    paypal.png PayPal me
    Brisbane, Australia
    phone.png
  • Yes, my comments and code above was from P2 TAQOZ too :(
    My Prop boards: P8XBlade2 , RamBlade , CpuBlade , TriBlade
    P1 Prop OS (also see Sphinx, PropDos, PropCmd, Spinix)
    Website: www.clusos.com
    P1: Tools (Index) , Emulators (Index) , ZiCog (Z80)
    P2: Tools & Code , Tricks & Traps
  • Hi Jim, I managed to dig up that Altimeter code (after I eventually found it) so I will look at how it can be implemented based upon PhiPi's excellent documentation. There's already some 64-bit mixed mode maths in Tachyon but it would be easy enough to fill that in for this requirement. In fact there is the built-in F32 floating-point ROM that could be loaded into a cog if need be. However if integer methods are available using a table then that is where it is best to start.
    In Tachyon this table is entered like this:
    TABLE alt_table
    4433077 , 2323037 , 2025546 , 1832444 , 1686113 , 1566963 , 1465785 , 1377458 ,
    1298823 , 1227784 , 1162875 , 1103025 , 1047431 ,  995470 ,  946651 ,  900579 ,
    856930 ,  815437 ,  775876 ,  738056 ,  701815 ,  667012 ,  633527 ,  601252 ,
    570095 ,  539971 ,  510808 ,  482539 ,  455106 ,  428455 ,  402538 ,  377311 ,
    352735 ,  328773 ,  305392 ,  282561 ,  260253 ,  238441 ,  217101 ,  196211 ,
    175750 ,  155700 ,  136041 ,  116758 ,   97835 ,   79257 ,   61010 ,   43082 ,
     25459 ,    8132 ,   -8910 ,  -25680 ,  -42185 ,  -58436 ,  -74439 ,  -90205 ,
    -105740 , -121053 , -136149 , -151036 , -165720 , -180207 , -194503 , -208614 ,
    -222544 ,
    

    The I2C code is very easy and yes, if you want 24-bit values you simply build them and given that the device outputs the bytes descending order (23..16,15..8,7..0) like this:
    ackI2C@ 8<< ackI2C@ OR 8<< nakI2C@ OR
    
    You don't need to visualize this in your head, just interact with Tachyon, in this I have TAQOZ in front of me:
    TAQOZ# $12 8<< $34 OR 8<< $56 OR .L --- $0012_3456 ok
    

    Be careful about porting code to Tachyon, while it is tempting to just convert each routine, you may end up with a hard to read and debug mess of code. The idea is to extend the language as necessary so that the program should be readable and self-commenting. Figuring out where and how to factor snippets and choosing an apt name is a rewarding art.

    I will provide some updates to the kernel to extend the 64-bit maths to include simple add and subtract as well, just to help you along. But don't be too worried if some of your routines look a bit "ugly" or inefficient, as long as it works. I call this Q&D (quick & dirty) because it lets me check out functionality first, and then I can improve it later, but not too much later, do that incrementally.
    Ok thanks for the table Peter. My next task will be to figure out how to read the values of the table and convert it to what I need. I just studied a couple of videos on Cubic interpolation and will now go back to PhiPi’s code and see how he is using it.
    Jim
  • LtechLtech Posts: 229
    edited 2019-07-16 - 20:24:47
    Still the same questions on Tachyon NEON and EASYNET.

    I am on P8 and IOT5500.
    -I can use Telnet on port 1001. but in the P8 serial windows It telling it is port=71 ???

    -Next I try to install FTP, port 21 is open on a port scan from my mac, but I can't connect. I try anonymous and nothing
    The port name on the serial side tell "port 32292, and not 21" ? I try to update with
    1 SOCKET #21 PORT!
    

    -I can't install HTTP, Tachyon complain on "COMPARE$ " when pushing the file HTTP.FTH

    -When I REBOOT or reset trough serial disconnecting, the network LINK stay *UP*. But wen I power down the P8 I can't make the LINK up again, and need to reflash everything from scratch?
    Easement stay on link down and flashing green and yellow led on RJ45
    Do I missing an word/command ?

    Basically I want to get the webserver running on Telnet to play with Tachyon from wifi on my laptop, and FTP to the P8 IOT5500 and HTTP webpage from index.html on my SD.

    Thank-you to help me
    ...  REBOOT --> 
    
      Propeller .:.:--TACHYON--:.:. Forth V5r4 NEON 540181011.1000[5n
    CODE:$5024 = 20004 bytes 
    NAME:$5564 = 7836 bytes 
    DATA:$7D70 = 2144 bytes 
    FREE:      = 1344 bytes 
     Data Stack (0)
    
    CARD: SC32G SD03.80 #5D44.2C2C 2018/10 !C0FF.80C3 1,523us
    FAT: #6435.3434          METACHION   FAT32   31,910,789,120 bytes (32kB clusters)
    
    *** Tachyon Forth EASYNET Network Servers and EASYFILE File Server *** 
    
    
    NETWORK STATUS:
    LINK *UP*
    HARDWARE: WIZnet W5500 V4
    SRC IP    &192.168.0.99
    MASK      &255.255.255.0
    GATEWAY   &192.168.0.1
    MAC       02.FF.26.2C.56.58.
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #1   00:00:02 TCP  32292 52224 0000.0000.0000.0000.0000. 03 14 14              &192.168.0.58
    #3   00:00:02 TCP     71 32083 0000.0000.0000.0000.0000. 00 14 14              &192.168.0.58
    
    * Servers running *
    
  • I will take a look at this today

    Tachyon Forth - compact, fast, forthwright and interactive
    useforthlogo-s.png
    P2 --- The LOT --- TAQOZ INTRO & LINKS --- P2 SHORTFORM DATASHEET --- TAQOZ RELOADED - 64kB binary with room to spare
    P1 --- Latest Tachyon with EASYFILE --- Tachyon Forth News Blog --- More
    paypal.png PayPal me
    Brisbane, Australia
    phone.png
  • Thank-you Peter for you time.
    I want to learn Tachyon to prepare the migration on P2.

    This is the build method I use.

    Notice on you screen export, the port are strange numbers too, if it was build of the default dropbox files

    @Ltech - The trick was to do a FORGET TOOLS after loading EXTEND since these were extras that aren't needed. After loading EASYFILE you can RECLAIM and then load EASYNET. If you want FTP you can load that too although it seems that FTP.FTH needs these two lines added at the start:
    1	:= FTP
    2	:= FTPDAT
    


    End of source code, 0000  errors found  Load time = 9.0
    Code bytes used = 1292
    Name bytes used = 240
    
    CODE:$4EB2 = 19634 bytes 
    NAME:$5604 = 7676 bytes 
    DATA:$78EA = 986 bytes 
    FREE:      = 1874 bytes 
     Data Stack (0)
    
     ok
    ...  
    ...  
    ...  BACKUP --> BACKUP  ok
    ...  
    
      Propeller .:.:--TACHYON--:.:. Forth V5r4 NEON 540181011.1000
    CODE:$4EB2 = 19634 bytes 
    NAME:$5604 = 7676 bytes 
    DATA:$78EA = 986 bytes 
    FREE:      = 1874 bytes 
     Data Stack (0)
    
    CARD: SL08G SD03.80 #D20D.AA60 2016/2 !C0FF.80AF 1,527us
    FAT: #CB4A.74CF mkfs.fat IOT5500     FAT32   7,947,157,504 bytes (4kB clusters)
    
    Setting default IP configuration 
    *** Tachyon Forth EASYNET Network Servers and EASYFILE File Server *** 
    
    
    NETWORK STATUS:
    LINK DOWN
    HARDWARE: WIZnet W5500 V4
    SRC IP    &192.160.0.33
    MASK      &255.255.255.0
    GATEWAY   &192.160.0.1
    MAC       02.FF.65.00.51.20.
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #1   00:00:02 TCP  18516 18516 0000.0000.0000.0000.0000. 00 14 14              &0.0.0.0
    #3   00:00:02 TCP  25185 18516 0000.0000.0000.0000.0000. 00 14 14              &0.0.0.0
    
    * Servers running * 
    
    --------------------------------------------------------------------------------
    
  • @Ltech - good, and that is the way to build it too although my FTP.FTH has those two lines at the start. I did find problems in HTTP.FTH though and I will get around to fixing that too.

    So I will investigate what has happened with the reporting of the ports etc although I was able to telnet into it.
    Propeller .:.:--TACHYON--:.:. Forth V5r4 NEON 540181011.1000
    CODE:$4EB2 = 19634 bytes 
    NAME:$58DC = 6948 bytes 
    DATA:$78EA = 986 bytes 
    FREE:      = 2602 bytes 
     Data Stack (0)
    
    CARD: SU04G SD03.80 #C195.DBB1 2013/6 !C0FF.80B9 1,911us
    FAT: #E3FE.D79D mkfs.fat WIDGET      FAT32   3,965,190,144 bytes (4kB clusters)
    
    *** Tachyon Forth EASYNET Network Servers and EASYFILE File Server *** 
    
    
    NETWORK STATUS:
    LINK *UP*
    HARDWARE: WIZnet W5500 V4
    SRC IP    &192.168.0.99
    MASK      &255.255.255.0
    GATEWAY   &192.168.0.1
    MAC       02.FF.C5.69.A3.0E.
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #1   00:00:02 TCP  32292 46080 0000.0000.0000.0000.0000. 00 14 14              &0.0.0.0
    #3   00:00:02 TCP     71 46080 0000.0000.0000.0000.0000. 00 14 14              &0.0.0.0
    
    * Servers running * 
    
    --------------------------------------------------------------------------------
    ...  
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #3   00:01:05 TCP     71 16213 344F.344F.0000.0000.0000. 00 17 17              &192.168.0.100
    
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #3   00:01:22 TCP     71 16213 47C8.47C8.000F.0010.0001. 06 00 00              &192.168.0.100
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #3   00:01:22 TCP     71 16213 0000.0000.0000.0000.0000. 00 14 14              &192.168.0.100
    

    Telnet into the device.
    peter:~$ telnet 192.168.0.99 10001
    Trying 192.168.0.99...
    Connected to 192.168.0.99.
    Escape character is '^]'.
    
    
    CARD: SU04G SD03.80 #C195.DBB1 2013/6 !C0FF.80B9 1,911us
    FAT: #E3FE.D79D mkfs.fat WIDGET      FAT32   3,965,190,144 bytes (4kB clusters)
    WELCOME TO THE TACHYON WIZNET TELNET SESSION!
    ...  WORDS
     --> 
     DICTIONARY WORDS @58DC 
     !FTP STOR RETR SIZE LIST ?DISC PWD CWD CDUP MDTM FEAT SYST PASV PORT TYPE PASS USER ifup !EASYNET RESTART ?EASYNET constat CONNECT DISC? BYE CONNECTED? KEEPALIVE LANSKT BLKSEND SENDFILE EASYNET .SOCKETS ifconfig .SKT .SOCKET .SKTHD RXSKT WIZ !WIZ !WIZIP !WIZIO WCOLD LANCON LANCONKEY LANCONEMIT LAN LANKEY LANEMIT LANSEND ?SEND ?SENDPOLL WAITSEND autosend !TXWR @txwr SetPORT PORT! sRECV sSEND sCLOSE sDISCON sLISTEN sOPEN UDP TCP sreg @SOCKET SKT@ SOCKET SIP MAC SUBNET GATEWAY wMODE @subnet @sip @gateway LWRITE LREAD vwrite vread L@ LW@ LC@ L! LW! LC! @RX @TX @SKT @COMMON WIZPINS _wizpins TELNET LANLED LANLED.ON RDYLED W5500 QV FL SAVETEXT FRUN .FILES .FX .FILE lss VOLNAME! ls .LIST (SLIST) DIR .FNAME cd cd$ pwd cat (cat) FPRINT$ FLOAD FCOPY FCOPY$ RENAME RENAME$ APPEND -FERASE FMAKE$ FOPEN FOPEN$ mk RW RO FOPEN# FCREATE$ MAKE FCLOSE >FILE FILE> FPUTB FPUT FGET FREM fwrite fread FSTAMP DIR? FSIZE! UpdateDir OpenDir FILE$ ?MOUNT MOUNT ROOT FMAX@ CLUST>SECT @FAT @BOOT @ROOT FS FS@ FSW@ FSC@ FS! FSC! FSADR SD XW@ XC! XC@ X! X@ XADR FSECT@ FSIZE@ FSIZE dirbuf dirfsa @FILE FILE# FILE SDRD SECTOR SCAN! FLUSH WRSECT SDWR !SD ACMD CMD SDPINS SDERR SDBUSY SDIO32 SDIO8 CARD? sdbuf _sdpins ocr csd cid #files BLKSIZ EASYFILE BOOT DEFER ID! INTERCOM! +POLL ?POLL TIMERJOB !RTC .TEMP 'F 'C STAMP@ .DT TZ tz$ .ASMONTH .DATE .TIME .DAY DAY DAY@ SUN SAT FRI THU WED TUE MON DATE! SDT! DT! TIME! DATE@ HMS MS>TIME TIME@ DEC>BCD BCD>DEC RTC RTC@ RTC! SETRTC date time runtime WATCHDOG ALARM: TIMEOUT? ALARM COUNTUP TIMEOUT timers TIMER IO! IO@ CONBAUD BACKUP ?BACKUP EE ECOPY EFILL ELOAD ESAVE ESAVEB ep I2CPINS EEPROM E! E@ EW@ EW! EC@ EC! EERD @EEWAIT @EE eeadr I2C400 I2C100 I2CFAST nakI2C@ I2C@ ackI2C@ I2C! I2C!? I2C> <I2C> <I2C ?I2C i2cflg MODPINS SETPINS SPIPINS @SPISCK @SCL @CNT @CE @MISO @MOSI @SCK *SDA *SCL BLINK RINGS RING SIREN WARBLE BIP BEEPS TONE BEEP CLICK SPKR LOW@ HIGH@ FREQ@ FB EDGE NEG POS COUNT@ !COUNT DETECT MUTE HZ KHZ MHZ VOLTS FRQ DAC! BPIN APIN PLLDIV PLL DUTY DIFF CTRMODE NCO B A SERIN ISERIAL SERIAL ISEROUT SEROUT SERBAUD TRAP +VECTOR REVECTOR (FORGET) FORGET RECLAIM STRIP !INITS +INIT INIT .CFA .HEAD$ ?ANSI MARGINS WRAP BOLD REVERSE PLAIN CURSOR ERLINE ERSCN CLS XY PAPER PEN HOME ESC white cyan magenta blue yellow green red black .BIN32 .BIN16 PRINT& .DEC2. .DEC2 .DECL .DEC4 .AS" .AS COGINIT TASKREGS RUN: RUN TASK? RND PINS@ OUT PIN! CNT? =CNT CNT@ P! P@ VSCL VCFG PHSB PHSA FRQB FRQA CTRB CTRA DIRB DIRA OUTB OUTA INB INA CNT PAR SPR LEFT$ RIGHT$ MID$ +CHAR $! APPEND$ $= LOCATE$ NULL$ ESC? CON] CON [CON boot NULLOUT EMIT: KEY: M MB KB 1M s us ms FORK R@ INVERT MOD 2OVER 3DUP 2SWAP D. @. => <= AVG C~~ W~~ ~~ W>L B>L B>W W>B L>W >W 3++ 3@ 3! @3 2++ 2@ 2! @2 C-- C++ W-- W++ -- ++ FALSE TRUE |< ] =[ SWITCHES CASES BREAK CASE SWITCH@ SWITCH STRING TABLE |<= WRAP DS DS+ reg clong cword cbytes CARRAY CREATE DOES> SHORTCUT QUIET NUM>STR NUMBER .W: .W LIMIT >| WW! BIG! BIG@ U@ U! CLKMHZ CLKFREQ PUBLIC PRIVATE EXTEND " ." PRINT" := vars org @org byte word long bytes words longs , || | C, W, L, ALIAS : pre pub pri module ; [C] ' ['] NFA' NFA, NFA$ NOP DUP 2DUP OVER DROP 2DROP SWAP ROT -ROT NIP 3DROP ?DUP 3RD 4TH BOUNDS >R R> !RP !SP AND ANDN OR XOR ROL ROR SHR >> 8>> SHL << 8<< 2/ 2* 4* SAR SPLIT9 REV MASK >b >N >B 0= NOT 1+ 1- + - OVER+ 2+ CELL+ 2- * UM* U/ U/MOD / */ UM*/ IF ELSE THEN ENDIF BEGIN UNTIL AGAIN WHILE REPEAT FROM BY FOR NEXT LOOP I+ I J K LEAVE FOR@ FOR! BY! LP! LP@ IC! IC@ C@ W@ @ C+! C! C@++ W+! W! +! ! D@ D! TX! 1! 1@ 1++ C~ W~ ~ BIT? SET? SET CLR TOG BIT! CMOVE <CMOVE ERASE FILL RESET 0EXIT EXIT ?EXIT CALL JUMP ?JUMP WAITLO WAITHI RUNMOD (EMIT) (EMITX) LOADMOD COG@ COG! COGSTOP pCOGINIT COGID REBOOT CLK CLKSET WAITX WAITCNT LAP LAP@ CLOCK CLKIN CLKOUT H L P T F SHROUT SHRINP OUTSET OUTCLR OUTPUTS INPUTS HIGH LOW FLOAT PIN@ IN SPIWRB SPIWR16 SPIWR32 SPIWR SPIRD SPICE 0<> <> WITHIN U> = > < U< 0< EMIT SPACE SPACES CR KEY WKEY (KEY) KEY! doKEY CLS EMITS DOT BELL <CR> TAB TABS XTAB SPINNER .HEX .BYTE .WORD .LONG .WORD$ @PAD HOLD >CHAR ASCBIN #> <# # #S <D> PRINT$ CTYPE .NFA LEN$ U. .DP PRINT . CREATE: CREATE$ GETWORD SEARCH CFA CPA +NFA NFA ALIGNORG ALIGN @NAMES names WORDS ALLOT ALLOCATED HERE [W] [B] ["] KEY$ [W,] VER .VER TACHYON END CONSOLE ECHO DISCARD TASK REG BUFFERS COLD HEX DECIMAL BINARY RAM DUMP: DUMPX DUMP DUMPW DUMPL DUMPC DUMPA DUMPAW QD DEPTH .S DEBUG .STATS IDLE NOOP --- --> \ '' ( { } IFDEF IFNDEF OFF ON GRAB ABS ?NEGATE NEGATE MIN MAX MINS MAXS ADDABS SUBABS CMPSUB UM/DMOD UM/MOD WAITVID [WS2812] [SDRDF] [SDRD] [SDWR] [SDIO] [LTC2754] [SSD!] [PWM32] [PWM32!] [PLOT] [ROL3] [CAP] [WAV] [MCP32] [RCTIME] errors uhere uthere flags prompt uauto keypoll lastkey rxpars rx id keytable @WORD uemit ukey base num uswitch undef (.") (") ... V5 *end* 
     ok...  
    ...  BYE
    Connection closed by foreign host.
    peter:~$ 
    

    Tachyon Forth - compact, fast, forthwright and interactive
    useforthlogo-s.png
    P2 --- The LOT --- TAQOZ INTRO & LINKS --- P2 SHORTFORM DATASHEET --- TAQOZ RELOADED - 64kB binary with room to spare
    P1 --- Latest Tachyon with EASYFILE --- Tachyon Forth News Blog --- More
    paypal.png PayPal me
    Brisbane, Australia
    phone.png
  • Peter JakackiPeter Jakacki Posts: 8,772
    edited 2019-07-17 - 16:27:02
    @Ltech - I found a couple of strange typos that crept into the source and a missing operation etc. I noticed too that while FTP and FTPDAT are defined, that they were not marked PUBLIC so they disappear when you RECLAIM. I was able to telnet and FTP although there are more things I need to check no doubt but it is already 2:30AM...

    Without doing a RECLAIM on EASYNET or FTP this is what I end up with:
    Propeller .:.:--TACHYON--:.:. Forth V5r4 NEON 540181011.1000    
    CODE:$4EB6 = 19638 bytes                                          
    NAME:$5604 = 7676 bytes                                           
    DATA:$78EA = 986 bytes                                            
    FREE:      = 1870 bytes                                           
     Data Stack (0)                                                   
    
    CARD: SL08G SD03.80 #D20D.AA60 2016/2 !C0FF.80AF 1,789us
    FAT: #CB4A.74CF mkfs.fat IOT5500     FAT32   7,947,157,504 bytes (4kB clusters)
    
    *** Tachyon Forth EASYNET Network Servers and EASYFILE File Server *** 
    
    
    NETWORK STATUS:
    LINK *UP*
    HARDWARE: WIZnet W5500 V4
    SRC IP    &192.168.0.150
    MASK      &255.255.255.0
    GATEWAY   &192.168.0.1
    MAC       02.FF.C5.69.A3.0E.
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #1   00:00:02 TCP     21 49462 0000.0000.0000.0000.0000. 00 14 14              &192.168.0.100
    #2   00:00:02 TCP      0 43862 0B5A.0B5A.0000.0000.0000. 03 00 00              &192.168.0.100
    #3   00:00:02 TCP  10001     0 0000.0000.0000.0000.0000. 00 14 14              &0.0.0.0
    
    * Servers running * 
    
    --------------------------------------------------------------------------------
    ...  
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #1   00:04:37 TCP     21 49510 4856.4856.0000.0000.0000. 00 17 17              &192.168.0.100
    
    220 WELCOME TO THE TACHYON WIZNET FTP SESSION!
    
    213 83571
    550 Modification time not available
    
    150 Accepted data connection for IOT5500.JPG
    
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #2   00:04:40 TCP  45048 35786 8BBE.8BBE.0000.0000.0000. 03 00 00              &192.168.0.100
    226 File successfully transferred
    
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #1   00:04:40 TCP     21 49510 4A89.4A89.0081.0082.0001. 06 00 00              &192.168.0.100
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #1   00:04:40 TCP     21 49510 0000.0000.0000.0000.0000. 00 14 14              &192.168.0.100
    ...  
    
    

    Tachyon Forth - compact, fast, forthwright and interactive
    useforthlogo-s.png
    P2 --- The LOT --- TAQOZ INTRO & LINKS --- P2 SHORTFORM DATASHEET --- TAQOZ RELOADED - 64kB binary with room to spare
    P1 --- Latest Tachyon with EASYFILE --- Tachyon Forth News Blog --- More
    paypal.png PayPal me
    Brisbane, Australia
    phone.png
  • LtechLtech Posts: 229
    edited 2019-07-17 - 21:03:16
    Yes this is working nicer.

    Wen re-power I now have my LINK *UP* great.
    My ports are correct numbers nice.
    I can telnet like before
    I try to FTP, on tachyon serial, I get the 220 and 150 messages, the pc side is not show my SD card. No time to investigate now.
    FTP working
    I have "NAME:$4FE6 = 9242 bytes" you have "NAME:$5604 = 7676 bytes" I do not get enough memory left for HTTP. I do forget tools but never reclaim.
    HTTP do still not compile (= old date in dropbox)

    Thank-you to put time in it, I don't understand why I am the first notice this in you master files?
  • MJBMJB Posts: 1,131
    Ltech wrote: »
    Yes this is working nicer.

    Wen re-power I now have my LINK *UP* great.
    My ports are correct numbers nice.
    I can telnet like before
    I try to FTP, on tachyon serial, I get the 220 and 150 messages, the pc side is not show my SD card. No time to investigate now.
    FTP working
    I have "NAME:$4FE6 = 9242 bytes" you have "NAME:$5604 = 7676 bytes" I do not get enough memory left for HTTP. I do forget tools but never reclaim.
    HTTP do still not compile (= old date in dropbox)

    Thank-you to put time in it, I don't understand why I am the first notice this in you master files?

    Hi @Ltech

    When you have it running, could you please give the complete build sequence.
    Then I will load it up as well.

    I want to try to connect wunderground.com to upload my weather station data.

    Just too busy to figure it all out myself a.t.m.

    thanks
    Markus

  • I'm still chasing little bugs but FTP and HTTP seem to be working. After RECLAIMs I end up with 1696 bytes free.

    Load TACHYON5r4 kernel into the Prop
    Load EXTEND
    RECLAIM
    FORGET TOOLS
    LOAD EASYFILE
    RECLAIM
    LOAD EASYNET
    LOAD FTP
    RECLAIM
    LOAD HTTP
    RECLAIM
    BACKUP

    The defaults are now setup for the P8.

    Tachyon Forth - compact, fast, forthwright and interactive
    useforthlogo-s.png
    P2 --- The LOT --- TAQOZ INTRO & LINKS --- P2 SHORTFORM DATASHEET --- TAQOZ RELOADED - 64kB binary with room to spare
    P1 --- Latest Tachyon with EASYFILE --- Tachyon Forth News Blog --- More
    paypal.png PayPal me
    Brisbane, Australia
    phone.png
  • Thank-you Peter,

    I rebuild all with you new files.
    When HTTP loads, I get:
    "0106 ??? in GETPAGE at UpdateTXWR"
    " ??? in GETPAGE at TXREAD "


    Then ..... I notice I forget the little display port to RJ45 adapter need for network connection on my macbook air .
    I can't test it now, and can't give you feedback .

    Stupid question, Why do we have to send files for Extend, Easynet and Easyfile. And have to copy/paste FTP and HTTP.
    It was confusing when starting Tachyon for dummy's.
  • @Ltech - Yes, I think maybe I didn't do a reclaim after EASYNET since UpdateTXWR is a private word and if it is reclaimed then you would get that error. So I checked and I only did a RECLAIM after EXTEND, EASYFILE, and after HTTP.
    CODE:$517E = 20350 bytes 
    NAME:$581E = 7138 bytes 
    DATA:$7928 = 1048 bytes 
    FREE:      = 1696 bytes 
     Data Stack (0)
    

    Now the reason that these other source files are copy/pasted is because only the basics for the kernel are compiled on the PC and while the cog kernel is pure PASM, the high level Tachyon wordcode in the kernel has to be constructed manually using "word" directives and manually calculated branches. Such a pain. But once the Tachyon kernel is loaded onto the Prop then Tachyon can compile Tachyon source code.

    Take the kernel definition for PRINT which btw needs to be there in kernel for the bare minimum:
    ' PRINT ( n -- ) (the verbose form PRINT does not add a space )
    PRINT     word    DUP,ZLT,_IF+03,w+"-",@EMIT+s,NEGATE
    ' U. ( n -- ) Print an unsigned number
    UPRINT    word    @LHASH+s,@HASHS+s,@RHASH+s,@PSTR+t
    
    We could possibly compile this with Tachyon itself and it would look like this:
    : PRINT  DUP 0< IF "-" EMIT NEGATE THEN 
    : U.   <# #S #> PRINT$ ;
    
    Also the dictionary headers for the kernel have to be coded individually in a separate section. While the whole shebang could theoretically be coded and compiled in the Prop compiler it wouldn't really be practical and harder to maintain, or just develop in the first place.

    Tachyon Forth - compact, fast, forthwright and interactive
    useforthlogo-s.png
    P2 --- The LOT --- TAQOZ INTRO & LINKS --- P2 SHORTFORM DATASHEET --- TAQOZ RELOADED - 64kB binary with room to spare
    P1 --- Latest Tachyon with EASYFILE --- Tachyon Forth News Blog --- More
    paypal.png PayPal me
    Brisbane, Australia
    phone.png
  • Peter,
    Did you update the extend.FTH source file?
    Jim
  • OK, I am using
    Parallax P2 *TAQOZ* Extensible Firmware V2.0 'CHIP' 80MHz 190212-1700
    direct out of the DROP BOX

    57 BLINK - blinks LED 57

    57 MUTE - stops blinking LED 57

    so far OK but

    57 BLINK - blinks LED 57

    56 MUTE - stops blinking LED 57

    why?

    Mike
    I am just another Code Monkey.
    A determined coder can write COBOL programs in any language. -- Author unknown.
    Press any key to continue, any other key to quit

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this post are to be interpreted as described in RFC 2119.
  • Finally, ROMS was successfully installed.
    I've been waiting since February 1st, when I asked for an EXTEND.FTH, but I know you're busy.
    Maybe it's because I've updated to the latest Propeller IDE, Version 0.38.5, which has bstc as compiler and downloaded the latest V5 folder from dropbox?
    It was only the 2 ROMS HSUART and UART that I could install, until I discovered that the rest had Unix/Linux as a line break, so I saved them as Windows line breaks.
    So now the forth country is running again.
    Yes Frida is my watchdog!
  • Peter JakackiPeter Jakacki Posts: 8,772
    edited 2019-07-21 - 13:53:48
    @frida - I see that some files were set to LF only so I fixed them up to CRLF which I prefer. The ROM hex files don't matter since they have their own special loader SAVEROM that only looks for the : as the start of a line anyway.

    You may have to jog my memory about what you wanted in EXTEND but I will look back through the thread to see if I can find it.


    P.S. Nope, but I did find some old and really old messages buried in there that I need to get back to. Ahh, there's your post. I will get back to you soon.
    P.S. I checked EXTEND just recently plus I moved all the current files into folders so the EXTEND that is in the MODULES folder works and loads ROMs etc.


    Tachyon Forth - compact, fast, forthwright and interactive
    useforthlogo-s.png
    P2 --- The LOT --- TAQOZ INTRO & LINKS --- P2 SHORTFORM DATASHEET --- TAQOZ RELOADED - 64kB binary with room to spare
    P1 --- Latest Tachyon with EASYFILE --- Tachyon Forth News Blog --- More
    paypal.png PayPal me
    Brisbane, Australia
    phone.png
  • I use GtkTerm to send ROMS to Tachyon, just like EXTEND.FTH. It works fine now.
    Yes Frida is my watchdog!
  • Peter,
    HTTP don't work.
    I do not see the port 80 on hw port 4
    In the serial windows I get a loop.
      Propeller .:.:--TACHYON--:.:. Forth V5r4 NEON 540181011.1000[5n
    CODE:$517E = 20350 bytes 
    NAME:$5556 = 7850 bytes 
    DATA:$7928 = 1048 bytes 
    FREE:      = 984 bytes 
     Data Stack (0)
    
    CARD: SC32G SD03.80 #5D44.2C2C 2018/10 !C0FF.80C3 1,541us
    FAT: #6435.3434          METACHION   FAT32   31,910,789,120 bytes (32kB clusters)
    
    *** Tachyon Forth EASYNET Network Servers and EASYFILE File Server *** 
    
    
    NETWORK STATUS:
    LINK *UP*
    HARDWARE: WIZnet W5500 V4
    SRC IP    &192.168.0.99
    MASK      &255.255.255.0
    GATEWAY   &192.168.0.1
    MAC       02.FF.26.2C.56.58.
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #1   00:00:02 TCP     21 60812 0000.0000.0000.0000.0000. 00 14 14              &192.168.0.58
    #3   00:00:02 TCP  10001 60776 0000.0000.0000.0000.0000. 04 14 14              &192.168.0.58
    
    * Servers running * 
    
    
    --------------------------------------------------------------------------------
    ...  
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    
  • LtechLtech Posts: 229
    edited 2019-07-22 - 18:51:57
    And when playing with FTP, TCP not installing HTTP. On reboot the P8 o5500 is offline When serial plug is connected
    LINK DOWN
    --------------------------------------------------------------------------------
    ...  REBOOT --> 
    
      Propeller .:.:--TACHYON--:.:. Forth V5r4 NEON 540181011.1000[5n
    CODE:$4EC0 = 19648 bytes 
    NAME:$55F4 = 7692 bytes 
    DATA:$78F8 = 1000 bytes 
    FREE:      = 1844 bytes 
     Data Stack (0)
    
    CARD: SC32G SD03.80 #5D44.2C2C 2018/10 !C0FF.80C3 1,546us
    FAT: #6435.3434          METACHION   FAT32   31,910,789,120 bytes (32kB clusters)
    
    *** Tachyon Forth EASYNET Network Servers and EASYFILE File Server *** 
    
    
    NETWORK STATUS:
    LINK DOWN
    HARDWARE: WIZnet W5500 V4
    SRC IP    &192.168.0.99
    MASK      &255.255.255.0
    GATEWAY   &192.168.0.1
    MAC       02.FF.26.2C.56.58.
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #1   00:00:02 TCP     21 61542 0000.0000.0000.0000.0000. 00 14 14              &192.168.0.58
    #2   00:00:02 TCP     20 61543 D1B7.D1B7.0000.0000.0000. 03 00 00              &192.168.0.58
    #3   00:00:02 TCP  10001 61529 0000.0000.0000.0000.0000. 04 14 14              &192.168.0.58
    
    * Servers running *
    
  • One thing you may have to do which I do anyway is if I install an extra module I make sure the other stuff isn't running. So I ^C to reset it and ^As until I see that it has aborted autostarts so it looks like this:
    Propeller .:.:--TACHYON--:.:. Forth V5r4 NEON 540181011.1000
     <aborting startup> 
    
    Trying to load a new module and running BACKUP while the other stuff is running could cause problems otherwise. Just saying because I had checked HTTP this way.

    Of course if you loaded everything from a clean install before you ran it then there is no need for this. However I will double check what you posted and double check what I did too.

    Tachyon Forth - compact, fast, forthwright and interactive
    useforthlogo-s.png
    P2 --- The LOT --- TAQOZ INTRO & LINKS --- P2 SHORTFORM DATASHEET --- TAQOZ RELOADED - 64kB binary with room to spare
    P1 --- Latest Tachyon with EASYFILE --- Tachyon Forth News Blog --- More
    paypal.png PayPal me
    Brisbane, Australia
    phone.png
  • LtechLtech Posts: 229
    edited 2019-07-27 - 06:52:33
    No, I can't get a HTTP port open.
    #1 SOCKET #80 PORT! give no extra port for web

    PORT SCAN from my mac:
    portscan is gestart…
    
    Port Scanning host: 192.168.0.99
    
    	 Open TCP Port: 	21     		ftp
    	 Open TCP Port: 	10001  		scp-config
    portscan is voltooid…
    

    REBOOT --> 
    
      Propeller .:.:--TACHYON--:.:. Forth V5r4 NEON 540181011.1000[5n
    CODE:$517E = 20350 bytes 
    NAME:$5836 = 7114 bytes 
    DATA:$7928 = 1048 bytes 
    FREE:      = 1720 bytes 
     Data Stack (0)
    
    CARD: SC32G SD03.80 #5D44.2C2C 2018/10 !C0FF.80C3 1,560us
    FAT: #6435.3434          METACHION   FAT32   31,910,789,120 bytes (32kB clusters)
    
    *** Tachyon Forth EASYNET Network Servers and EASYFILE File Server *** 
    
    
    NETWORK STATUS:
    LINK *UP*
    HARDWARE: WIZnet W5500 V4
    SRC IP    &192.168.0.99
    MASK      &255.255.255.0
    GATEWAY   &192.168.0.1
    MAC       02.FF.26.2C.56.58.
    SKT HH:MM:SS MODE  PORT  DEST TXRD TXWR RXRD RXWR RXSZ  IR STATUS            IP ADDR
    #1   00:00:02 TCP     21 62052 0000.0000.0000.0000.0000. 03 14 14              &192.168.0.58
    #3   00:00:02 TCP  10001 55651 0000.0000.0000.0000.0000. 00 14 14              &192.168.0.58
    
    * Servers running * 
    
    
    --------------------------------------------------------------------------------
    ...
    


    I only try to get the web server running, so I can get starting play with Tachyon.
    If you system running well on P8 ioW5500, can you provide my an bin file to flash with BST?

    Thank you :innocent:
  • Hello Peter,

    When try FTP, I have to do first "ls" on the serial/telnet port every time after reboot, otherwise you do not have the list in firefox (ftp://192.168.0.99)
    I can't get filezilla connections
    It is hard to learn, when examples do not run as expected.
    It is the N-time I try to learn Tachyon, but get always missing parts of the puzzle.

    I can't get a "hello world" webpage generated form you files using you P8 and iot5500.
    I try to pop up some web page when I put an index.htm file on de SD card.

    I mis the basic of HTTP part in Tachyon.
    It build nice, no error, but after BACKUP and REBOOT you get a loop.

    I try different way of build, exploring the Easynet files, no glue found.
    When the eprom files get corrupt, I have to rebuild from scratch

    It is frustrating, gonna give up.

    Tachyon looks very nice, but I never get the whole black-box working as I want.

    Thanks
  • I noticed that there was a problem with HTTP and the looping thing but this was working fine once but obviously there have been a few changes over the years. I got it to work and pushed the steps i took. Just like I found a little bug in FTP etc, this is probably a simple thing too.
    I was on top of all this the other week but put it aside when it got quiet. But i can provide you with a binary and even a video of the build is that helps.

    Tachyon Forth - compact, fast, forthwright and interactive
    useforthlogo-s.png
    P2 --- The LOT --- TAQOZ INTRO & LINKS --- P2 SHORTFORM DATASHEET --- TAQOZ RELOADED - 64kB binary with room to spare
    P1 --- Latest Tachyon with EASYFILE --- Tachyon Forth News Blog --- More
    paypal.png PayPal me
    Brisbane, Australia
    phone.png
  • MJBMJB Posts: 1,131
    ... But i can provide you with a binary and even a video of the build is that helps.

    I would prefer the session transcript over the video ...

    just close to finishing the tax declaration ...
    then a little Tachyon time ...

    I want to try this IoT5500+P8 thing again - good when there is a working base to start
  • I just had this up and running last time although I do remember doing something different and having it hiccup. So I will have to redo this again and see what I did to make it play up, and what I need to do to make it play. Then a transcript of all that.

    Tachyon Forth - compact, fast, forthwright and interactive
    useforthlogo-s.png
    P2 --- The LOT --- TAQOZ INTRO & LINKS --- P2 SHORTFORM DATASHEET --- TAQOZ RELOADED - 64kB binary with room to spare
    P1 --- Latest Tachyon with EASYFILE --- Tachyon Forth News Blog --- More
    paypal.png PayPal me
    Brisbane, Australia
    phone.png
  • MJBMJB Posts: 1,131
    I just had this up and running last time although I do remember doing something different and having it hiccup. So I will have to redo this again and see what I did to make it play up, and what I need to do to make it play. Then a transcript of all that.

    I know you rather like to play with Taqoz/P2

    but also good to keep a working version of Tachyon/P1

    thanks
  • Please Peter :-*
  • Pm'd you but I will try and take a look at it again and make a note of any critical steps but I think that just as long as it is a clean build then it should be fine.

    Tachyon Forth - compact, fast, forthwright and interactive
    useforthlogo-s.png
    P2 --- The LOT --- TAQOZ INTRO & LINKS --- P2 SHORTFORM DATASHEET --- TAQOZ RELOADED - 64kB binary with room to spare
    P1 --- Latest Tachyon with EASYFILE --- Tachyon Forth News Blog --- More
    paypal.png PayPal me
    Brisbane, Australia
    phone.png
  • MJBMJB Posts: 1,131
    Ltech wrote: »
    Please Peter :-*

    If Peter sent you the secret sauce
    Please forward if you have it running
Sign In or Register to comment.