How to concatenate a HEX BCD value with a string as a new string?


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: How to concatenate a HEX BCD value with a string as a new string?

    It should, try it. Just make sure file1 is declared big enough to hold the string.

  2. #2
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Re: How to concatenate a HEX BCD value with a string as a new string?

    Quote Originally Posted by HenrikOlsson View Post
    It should, try it. Just make sure file1 is declared big enough to hold the string.
    Thanks, Henrik...it looks like it worked. The way I tested it was to write the file1 array elements to EEPROM so I could see each letter after the program ran and whether the result from the ARRAYWRITE statement did what I wanted. It did.
    Now I have a follow on problem that maybe you can advise me on.
    I had to build this text file name so I could use it in a SEROUT2 command over a serial interface to a ConnectOne iWiFi MiniSocket module that is connected to my microcontroller PIC 16F886. The iWiFi module requires AT+i statements to send it FTP commands in a specific format. I think that this command should open the filename "15hour.txt" via this FTP command, however so far I haven't been able to see the FTP'd data show up in the file named by the filename . Any suggestions?
    Code:
    SEROUT2 TX,84,["AT+iFSTO:000,",STR filename\10,$d,$a]

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts