Shop OBEX P1 Docs P2 Docs Learn Events
size of posts — Parallax Forums

size of posts

I have a source file that is about 80k. By the time it becomes an application, the bundle is many megabytes.
What is the forum limit for zip archives?

Comments

  • VonSzarvasVonSzarvas Posts: 3,450
    edited 2015-12-10 01:51
    The forum limit for uploads (attachments) is 2 megabytes
    And to keep stats together, the limit for post content is 15000 characters.

  • Heater.Heater. Posts: 21,230
    rjo__
    I have a source file that is about 80k. By the time it becomes an application the bundle is many megabytes....
    ....and it's time to put it up on github or bitbucket and link to it from a forum post.

    What on Earth have you got in there ?
  • Yep. Agreed.

    I did hit the 15K once. Sheesh.
  • rjo__rjo__ Posts: 2,114
    Lotsolibraries that I didn't write and don't understand:)

    GitHub is scary...
  • Dropbox isn't scary. Just make a zip and "drop" it off. Make it public, post a link and there you go!
  • Heater.Heater. Posts: 21,230
    I totally fail to see how you end up with "many megabytes" when you are zipping up a Propeller project.

    Get a grip. What is the other Smile you have in there.

    Github is your friend :)
  • rjo__ wrote: »
    Lotsolibraries that I didn't write and don't understand:)
    If the library code is available elsewhere you could just link to it. Also, everything posted to the forum should be under MIT license. If the library source code isn't MIT license you shouldn't post it here. Is the megabytes of stuff compiled libraries? I'm curious how this fits in a processor with 32K of RAM, or are they files that go on an SD card?

  • Heater. wrote: »
    I totally fail to see how you end up with "many megabytes" when you are zipping up a Propeller project.

    Get a grip. What is the other Smile you have in there.

    Github is your friend :)
    I think the problem is that when SimpleIDE makes a zip file it includes every library that you've used in source form.

  • Heater.Heater. Posts: 21,230
    edited 2015-12-10 21:51
    David,
    I think the problem is that when SimpleIDE makes a zip file it includes every library that you've used in source form.
    So that is a few 10s of kilobytes. What is the other junk?
  • Heater. wrote: »
    David,
    I think the problem is that when SimpleIDE makes a zip file it includes every library that you've used in source form.
    So that is a few 10s of kilobytes. What is the other junk?
    The entire GCC toolchain? :-)

  • Heater.Heater. Posts: 21,230
    Eeek!

  • rjo__rjo__ Posts: 2,114
    I am implementing a utility program called Propeller2Explorer. I started it as a way to get data in and out of the P2V. I am using Processing 3 from Processing.org. It allows you to hook up a camera and a Kinect V2 and control them with the P2v.

    Programs are called sketches. In order to write and use a sketch you have to download and install Processing 3. It is all free and cross platform, but it takes time and fiddling. Once you do that you have to go get the latest versions of several libraries that are not included. More fiddling and fussing around. On the other hand, Processing 3 allows you to generate a full applications. But in order to use the application you have to have the right Java installed... or... that can be embedded directly in the application... and whallllah you get 8Megs. For Linux the application is about 1M because Java can't be embedded. I am using a GUI library, with no Mac support, so it isn't fully cross platform.

    The attached jpg is a picture of the Propeller2v taking a picture of itself, while the Kinect V2 measures the Propeller's video monitor...
    1364 x 797 - 138K
  • rjo__rjo__ Posts: 2,114
    edited 2015-12-11 00:28
    What I find most amazing is that this is running on a $99 Kangaroo that JMG pointed me to in one of the threads here...about the size of a pack of cigarettes... just fabulous.
  • ercoerco Posts: 20,256
    Was that tell post or test poll? And was there a conveyor belt involved?

    http://forums.parallax.com/discussion/138976/test-poll/p1
  • rjo__rjo__ Posts: 2,114
    Absolutely hysterical. I tried posting to that thread... the forum didn't crash, but nothing else seemed to happen.

    Looking at Dropbox now. Fingers crossed.
  • Heater.Heater. Posts: 21,230
    Java...Eeew.
  • rjo__rjo__ Posts: 2,114
    It isn't Java... Java has a learning curve. Processing 3, the learning curve is about 10 minutes. I wouldn't care if they based it on Ada:) It's a tinker toy:) Lotsofun
  • Heater.Heater. Posts: 21,230
    Yes, but it sits on a pile of Java Virtual Machine. Eeew.

    Still, if it's fun, why not.
  • rjo__rjo__ Posts: 2,114
    So true:)

    And while I am tinkering with it to support the P2v, it could easily be adapted to work with the Prop1, BasicStamp or ... you know, those other controllers.

    Currently implemented of general interest:
    On a Kangaroo:
    Serial... supports up to 460800 baud rate.
    Camera ... one USB camera 30 FPS
    Kinect V2 around 6 FPS with all the bells and whistles. With just RGBdepth map ... it is reporting 60 FPS. This is probably wrong but it looks pretty good.

    There are two choices of libraries supporting the Kinect V2 for Processing 3. They are mutually exclusive because they use different USB3 drivers.

    I am using Daniel Shiffman's OpenKinect library, which isn't entirely complete yet, but does have the color mapping functions, which I couldn't get to work in the other library. Daniel's library supports use on the Mac. I haven't done this yet, but the calls should work. My app doesn't work on a mac because the GUI library I am using "controlP5" isn't available for the Mac.

    Decoding the depth map to actual 3d measurements isn't readily available in either of these libraries in a way that I could get at, so the 3D measurements you see rely on my own math which isn't complete, but is very simple and gives a reasonable first pass at it. I have a lot on my "to do" list. I wrote my own routine for flipping the raw depth data so that the image isn't mirrored on the screen and so that the depth measurements correspond to the cameras view. Then I found out that there is a call for this, which is much faster... this would probably double the available frame rate.


  • rjo__rjo__ Posts: 2,114
    On the P2 side of things, this can best be viewed as a stub. What is currently implemented with several examples is how to use the P2 to control the app and how to use the app to control the P2... again, this can all be generalized for any controller.
  • rjo__rjo__ Posts: 2,114
    edited 2015-12-11 20:38
    If you want to try this... you have to download the libraries through the Processing 3 and follow
    instructions for changing out the USB3 driver. And you should be good to go. If you have a P123, the keyboard interface on the computer side is:

    h... hub buffer to lut
    o... do op and move to lut 0
    l... lut to hub
    i... send image to serial
    c... copy cog to (lut thanks Ariba!!!)
    r... read lut from serial
    a... send 512 bytes array to serial
    p... write keyboard to P2 screen.... not implemented yet

    As you can see... on the P2 side... the interface loop is P1 code compatible.
    loop1           
                   
                    mov cmd,inb             'inb acts as input for 4 buttons... button down shows up as 0's
                    shl cmd,#4
                    shr cmd,#28
                    cmp  cmd,#15  wz
             if_nz  call #sendCMD            'write value to serial when button(s) down 
                    call    #rcv_char                  'wait for any character
                                                       'to avoid stalls:
                                                       'p2 receives a constant stream of zero values
                    cmp     rx_char,#104 wz   'h  hub buffer to lut
             if_z   mov z,#$1FF
             if_z   call #hub2lut
            	cmp    rx_char,#111 wz    'o  do op and move to lut 0
             if_z   call #get_op
    		cmp     rx_char,#108 wz   'l lut to hub
             if_z   call #lut2hub
    		cmp     rx_char,#105 wz   'i  get image data from serial send to image buffer
             if_z   mov z,##76000
             if_z   call #ser2image
                    cmp    rx_char,#99 wz     'c  copy cog to lut thanks Ariba!!
             if_z  mov z,#$1FF
    	 if_z   call #cog2lut 
                    cmp     rx_char,#114 wz   'r  send lut to serial
             if_z   mov z,#$1FF
             if_z   call #send_lut
                    cmp     rx_char,#97 wz    'a accept 512 bytes from serial
             if_z   mov z,#$1FF
             if_z   call #rcv_lut
               
                                              'p print lut chars to screen
                     mov rx_char,#0 
                     jmp #loop1
    
Sign In or Register to comment.