Author Topic: DigiUSB2LCD - 9th USB send character is always ^D in the command prompt-take3  (Read 4358 times)

kenden

  • Newbie
  • *
  • Posts: 3
I am learning to use the LCD screen so that I can use it to check for inputs. I am using the DigiUSB2LCD code. The problem is the ninth character is always displayed as ^D in the command prompt and displays on the LCD as AA sideways.

I do not know where to look for a solution.  I would assume that this is a USB/WinXP issue, I would appreciate any help.


defragster

  • Sr. Member
  • ****
  • Posts: 467
More info on what you've tried to get to 'always the 9th' conclusion might help.
All that came to me so far is loop or code error and your array 0-7 elements are awesome and the 9th @[8] is out of bounds or corrupted by other means.
Perhaps you tried changing up your code and do an inline print of hardcoded '8' 20 times - then mix the characters - put a variable delay between the print. 
There may be a good 'other' explanation for this - but I haven't worked in arduino much yet - and not at with LCD.  If you can make the 9th char act the same way after trying to print a fixed [same then different] char 12 times with repeating inline code with both a little and a long delay [10ms-1,000ms] then it might help understand where to look next.  Also load the code indicated and observe it - then reset/repower and repeat powered from a dumb hub or other power source besides an active computer port if the USB can work that way.
If this somehow works then evolve it to make it loop after a pause and then pull in the code you were running before to see if that gets you someplace interesting.  Hopefully you can write and test this approach without anymore trouble than I took to make this entry - will be looking for your results.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
@kenden - which command line program are you using? try using the send program that is included with the software and see if the issue persists

kenden

  • Newbie
  • *
  • Posts: 3
I am using digiusb.exe.  I can type anything and the ninth character is always echoed as ^D. Send.exe and receive.exe opens and closes before I can see why.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
for send and receive you need to open a command prompt (Run->cmd) and then change to the folder they are in and run them

kenden

  • Newbie
  • *
  • Posts: 3
Send and receive do not work that way either. Digiusb.exe does but the ninth character still echos as ^D. 
« Last Edit: September 09, 2013, 04:32:57 pm by kenden »