Shop OBEX P1 Docs P2 Docs Learn Events
Programming Prop From Blackberry — Parallax Forums

Programming Prop From Blackberry

T ChapT Chap Posts: 4,223
edited 2009-12-03 22:37 in Propeller 1
The Vinculum is seeing the Blackberry, and then I set the BB to mass storage mode. Then the Prop goes to the documents folder and does a checksum on a .eeprom file, if good it writes the .eeprom to the boot eeprom.

Still working on it. But this is a very cool way for a contractor on a job site ( with no computer or internet ) to get a file and make software updates as I send them. I will post an update when and if I get it working.

Comments

  • Ken GraceyKen Gracey Posts: 7,401
    edited 2009-12-02 05:25
    I'm interested in seeing this work, too. If you show me the physical cable connections (is it a USB cable?) to the Prop I'd be pleased to test anything you create side-by-side.

    Ken Gracey
    Parallax
  • T ChapT Chap Posts: 4,223
    edited 2009-12-02 06:06
    Still in the early stages getting responses to an LCD.

    Sending out a DIR query:

    BLACKB~1 DIR TR etc etc

    That's how far I am.

    Using VMUSIC2 basically, MUSIC software on Vinculum

    I need a hex to ascii converter to compact these responses to an LCD.

    Also, in the Blackberry you have to set:


    Auto enable Mass Storage Mode When Connected: YES (The default is PROMPT and did not work)

    Hopefully the plan is to email a 8.3 file name to the Blackberry, which should go to documents. Then the Prop will change directories to the documents folder and transfer the file over to the eeprom.

    The files must be 3 digits for extension and 8 for the name.

    I'll post some code soon.

    Post Edited (Todd Chapman) : 12/2/2009 6:14:39 AM GMT
  • mctriviamctrivia Posts: 3,772
    edited 2009-12-02 06:32
    i have gotten this to work by popping my micosd card out of my blackberry and puting it in the card reader on my propmodule but this would be a lot more convenient. I have a blacberry storm and am willing to test any setup you come up with.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    24 bit LCD Breakout Board coming soon. $21.99 has backlight driver and touch sensitive decoder.
  • T ChapT Chap Posts: 4,223
    edited 2009-12-02 06:51
    What is a conversion from hex to ascii so I can display the responses on LCD? I can see files in the documents folder.
  • mctriviamctrivia Posts: 3,772
    edited 2009-12-02 06:53
    ascii_table.jpg

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    24 bit LCD Breakout Board now in. $21.99 has backlight driver and touch sensitive decoder.
  • Mike GreenMike Green Posts: 23,101
    edited 2009-12-02 06:54
    There is a hex to ASCII conversion routine that's part of pretty much all the display drivers.
  • T ChapT Chap Posts: 4,223
    edited 2009-12-02 06:55
    LOL mctrivia that's what I am using now! I need a SPIN translation formula.

    Post Edited (Todd Chapman) : 12/2/2009 7:05:12 AM GMT
  • Mike GreenMike Green Posts: 23,101
    edited 2009-12-02 06:59
    From FullDuplexSerial:
    PUB hex(value, digits)
    
    '' Print a hexadecimal number
    
      value <<= (8 - digits) << 2
      repeat digits
        tx(lookupz((value <-= 4) & $F : "0".."9", "A".."F"))
    


    Change the name "tx" to whatever you're using for a character output routine.
  • T ChapT Chap Posts: 4,223
    edited 2009-12-02 07:03
    Ahh thanks Mike, I was trying to use str with 4port earlier but got jibberish, finally I just figured out you have to use @ with the pointer. Now some progress.
  • T ChapT Chap Posts: 4,223
    edited 2009-12-02 08:34
    No luck yet. With DIR, it sees two hidden files: Trashes and DS_STORE but doesn't see folders or files. The pc and MAC see everything just fine. I'll test it some more tomorrow.
  • T ChapT Chap Posts: 4,223
    edited 2009-12-02 16:26
    FTDI email:
    Somebody said...


    Question:
    Can you please offer advice on why the Vinculum with Vmusic firmware is able to read hidden files on my Blackberry Curce cell phone, but can't see the folders or any files? I would like to use the Blackberry as a method of file delivery to a system out in the field where there is no internet access, whereas the cell attaches via usb to the VInculum and the microprocessor can load a file off the phone.
    The files are located on the phone memory card and they are visible by mac or pc.

    Response:

    Hi Todd,
    Interesting application! My guess is that blackberry may have a custom driver accessing the files which may not be supported by us.
    But for clarification, when you connect the blackberry to PC what is the name of the driver (in device manager)? If you can send me you black berry I can try investigating what is the driver it is using and if we need to modify our firmware how much work may be involved?
    It is a great idea, not only for file downloads in field but for printing applications too where you may have paid for ticket by phone and print the ticket at kiosk. Phone credit card kind of applications.



    Hopefully we will get some more info later.
  • T ChapT Chap Posts: 4,223
    edited 2009-12-03 16:36
    I have successfully copied an eeprom file from PC to the Blackberry memory card, transferred the file into with the Vinculum into the boot eeprom, and it runs. I cannot get the same file to run if I email it to the Blackberry. I am looking for some application (hopefullly MAC but pc will do) to compare two files to see what is going on.

    For anyone with interest in this, let me know what you need and I will post it. I do not have a proper object, just code blocks I could post if someone wanted to see the basics. I am using a custom made VMusic2, but a Vinculum with USB port will suffice. The Blackberry uses a standard mini USB to USB-A. There are other notes in the thread about settting the Blackberry pref for acting as mass storage, must be YES not PROMPT.
  • WBA ConsultingWBA Consulting Posts: 2,935
    edited 2009-12-03 17:27
    I would like to try it, but I am not sure what you mean by "custom made VMusic2". Mine is the standard VMusic2 bought from Mouser. It's being used by a friend, but I will have it back in another week.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Andrew Williams
    WBA Consulting
    WBA-TH1M Sensirion SHT11 Module
    Special Olympics Polar Bear Plunge, Mar 20, 2010
  • mctriviamctrivia Posts: 3,772
    edited 2009-12-03 18:20
    Vedit is a good one. If you need hex just google

    Download hex editor

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    24 bit LCD Breakout Board now in. $21.99 has backlight driver and touch sensitive decoder.
  • T ChapT Chap Posts: 4,223
    edited 2009-12-03 22:22
    The problem is not the file itself being corrupt or changed. Where I have left off, if I plug in the Blackberry to a mac (I use imac 10.4.11) and create a folder in the memory card, then put the .eeprom (must be named with 3 letters after the . ) then the Vinculum will find the folder and file and load it to the eeprom and run. If I create a folder with pc or with the blackberry, the Vinculum will not see the directory. If I download via email the file into a folder, it is not able to be seen.

    So this has a limited use unless there is a workaround. Quite possibly reformatting the memory card by a pc would solve it, but I wanted to use the Blackberry in it's most store bought form due to having to deal with clients that don't want a hassle. In any case it was fun figuring it out.
  • mctriviamctrivia Posts: 3,772
    edited 2009-12-03 22:37
    Likely the issue is the file being transferred in text mode. Pc and bb both use $0A0C for a new line mac and linux use $0A if file is sent in text it will make the conversion

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    24 bit LCD Breakout Board now in. $21.99 has backlight driver and touch sensitive decoder.
Sign In or Register to comment.