Shop OBEX P1 Docs P2 Docs Learn Events
inefficiency with data sending — Parallax Forums

inefficiency with data sending

ArchiverArchiver Posts: 46,084
edited 2003-07-08 03:59 in General Discussion
Upon recommendation I have been using the 24lc256 eeprom which I have
recieved in the mail. I have been getting myself accustomed to the
routine of storage and retrival to this unit, however with me not
being so accustomed to using pbasic I find it quite difficult to send
large amounts of data. the data I would like to send is to be in
chuncks of 40kb (or whatever it is limited to at any one time) for a
maximum of 170kb (I am storing a picture) . The storage won't be a
problem, and I found a great site http://www.high-
techgarage.com/tutorial/i2c.php which pointed me in the right
direction. I find it quite cumbersome if I want to send this data
40kb I have to send it byte by byte. is there any way to DUMP this
data lets say in a string or have the eeprom do it for me? Thanks in
advance

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-07-04 14:14
    Couple different things about this - which you won't like either one.

    The 24xx256 is a 256 kiloBIT eeprom, not 256 kiloBYTE. In other words,
    256,000/8 = 32,000 kilobytes. You can't fit a 170kilobyte picture on it. You
    might want to look at DataFlash chips, they hold much larger amounts of
    data - they're also rated in kiloBITS, the 1Meg dataflash is actually 512
    blocks of 264 bytes each (135kbytes). The smallest dataflash you could use
    for a 170k picture would be the AT45D021 at 2 Megabits (actually 512 pages
    of 264 bytes each= 270,336 bytes).

    Second, byte by byte is how all communications work. With the 24xx256 you
    can use the auto-increment addressing and send multiple bytes in a row
    without having to re-specify an address but even thats limited to either 127
    or 256 blocks (can't remember which). And you're still sending a byte at a
    time.

    Original Message
    From: "chalma_juice" <Chalma_Juice@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Friday, July 04, 2003 2:31 AM
    Subject: [noparse][[/noparse]basicstamps] inefficiency with data sending


    > Upon recommendation I have been using the 24lc256 eeprom which I have
    > recieved in the mail. I have been getting myself accustomed to the
    > routine of storage and retrival to this unit, however with me not
    > being so accustomed to using pbasic I find it quite difficult to send
    > large amounts of data. the data I would like to send is to be in
    > chuncks of 40kb (or whatever it is limited to at any one time) for a
    > maximum of 170kb (I am storing a picture) . The storage won't be a
    > problem, and I found a great site http://www.high-
    > techgarage.com/tutorial/i2c.php which pointed me in the right
    > direction. I find it quite cumbersome if I want to send this data
    > 40kb I have to send it byte by byte. is there any way to DUMP this
    > data lets say in a string or have the eeprom do it for me? Thanks in
    > advance
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-04 18:22
    http://www.star.net/people/~mvs/
    This site has a 'Stamp Drive', which provides
    a serial interface to an IDE drive, a
    Compact Flash card, or a PCMCIA card.

    I think you'll need this to get enough
    space for a 170 KByte 'picture' file.

    --- In basicstamps@yahoogroups.com, "chalma_juice"
    <Chalma_Juice@y...> wrote:
    > Upon recommendation I have been using the 24lc256 eeprom which I
    have
    > recieved in the mail. I have been getting myself accustomed to the
    > routine of storage and retrival to this unit, however with me not
    > being so accustomed to using pbasic I find it quite difficult to
    send
    > large amounts of data. the data I would like to send is to be in
    > chuncks of 40kb (or whatever it is limited to at any one time) for
    a
    > maximum of 170kb (I am storing a picture) . The storage won't be a
    > problem, and I found a great site http://www.high-
    > techgarage.com/tutorial/i2c.php which pointed me in the right
    > direction. I find it quite cumbersome if I want to send this data
    > 40kb I have to send it byte by byte. is there any way to DUMP this
    > data lets say in a string or have the eeprom do it for me? Thanks
    in
    > advance
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-07 17:30
    Maybe I'm off my rocker, but why couldn't you use a Serial interface for a
    Digital camera? Pick up a used 1 MP digital camera, then use the CF slot via
    the Serial as a mass storage device.

    The Compact Flash option would be really handy. A 4 Meg card could hold years
    of data!!!

    Any ideas?

    Tim

    >>> allan.lane@h... 07/04/03 12:22PM >>>
    http://www.star.net/people/~mvs/
    This site has a 'Stamp Drive', which provides
    a serial interface to an IDE drive, a
    Compact Flash card, or a PCMCIA card.

    I think you'll need this to get enough
    space for a 170 KByte 'picture' file.
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-08 03:59
    OMG... Thats a brilliant idea [noparse]:D[/noparse] I have an old digital camera here with a
    USB port on it... I wonder...


    Original Message
    From: "Tim Hart" <tim.hart@h...>
    To: <basicstamps@yahoogroups.com>
    Sent: Monday, July 07, 2003 9:30 AM
    Subject: [noparse][[/noparse]basicstamps] Re: inefficiency with data sending


    > Maybe I'm off my rocker, but why couldn't you use a Serial interface for a
    Digital camera? Pick up a used 1 MP digital camera, then use the CF slot
    via the Serial as a mass storage device.
    >
    > The Compact Flash option would be really handy. A 4 Meg card could hold
    years of data!!!
    >
    > Any ideas?
    >
    > Tim
    >
    > >>> allan.lane@h... 07/04/03 12:22PM >>>
    > http://www.star.net/people/~mvs/
    > This site has a 'Stamp Drive', which provides
    > a serial interface to an IDE drive, a
    > Compact Flash card, or a PCMCIA card.
    >
    > I think you'll need this to get enough
    > space for a 170 KByte 'picture' file.
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
Sign In or Register to comment.