Author Topic: [FIXED!] Weird Serial/WiFi issues  (Read 48223 times)

Kaeltis

  • Newbie
  • *
  • Posts: 27
[FIXED!] Weird Serial/WiFi issues
« on: January 16, 2014, 01:46:38 pm »
I'm having a weird issue with the serial port.

After uploading a sketch with serial output enabled, the serial monitor doesn't show anything at all,
I can only get it to work by deleting the DigiX COM port from the device manager, unplugging the DigiX and plugging it in again, but only until I upload a new sketch.

I'm using the DigiX Hardware files and DigiX Drivers on Windows 8.1 x64

Also, the WiFi module aswell only seems to work together with

Code: [Select]
//DigiX trick - since we are on serial over USB wait for character to be entered in serial terminal
while(!Serial.available()){
    Serial.println("Enter any key to begin");
    delay(1000);
  }

in setup() and this procedure. As soon as I remove the "DigiX trick", it doesn't  respond anymore (using the "ServerExample" or the arduino_to_thingspeak example) except for it's builtin webinterface.
« Last Edit: March 09, 2014, 07:33:32 am by Kaeltis »

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Weird Serial/WiFi issues
« Reply #1 on: January 17, 2014, 09:58:39 pm »
The first issue I've seen too with Arduino IDE 1.5.5 in general (not DigiX specific) - and for that reason don't have a fix, it just went away the next day - do you see it with other boards in the same IDE if you have others?

For the DigiX try putting a delay say delay(1000); (or more) at the start where the Serial waiting was - the wifi module might not be starting fully before you try to talk to it.

Kaeltis

  • Newbie
  • *
  • Posts: 27
Re: Weird Serial/WiFi issues
« Reply #2 on: January 18, 2014, 03:19:44 am »
I added a delay of 5000ms to setup, now it works, thanks :)

I'll try an old Arduino Mega 2560 later and see how that behaves.

Edit: no serial issues with the Mega 2560, maybe it's caused by the whole flash erasing, writing and board reseting process the newer boards use.
« Last Edit: January 18, 2014, 04:06:11 am by Kaeltis »

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Weird Serial/WiFi issues
« Reply #3 on: January 19, 2014, 01:17:40 am »
Do you have a second machine you can test the serial thing on? I see no way it could be the device - but it'd be nice to confirm if it was the IDE/computer.

Kaeltis

  • Newbie
  • *
  • Posts: 27
Re: Weird Serial/WiFi issues
« Reply #4 on: January 19, 2014, 06:42:09 am »
Old MacBook Pro (late 2007) with OS X Mavericks - Serial working perfectly, can upload sketches and directly access the Serial Monitor to get the output.

Same PC as Windows 8.1 with Linux Mint 16 x64 - similar serial problems as on windows

Gonna try Win 7 x64 on a different Machine later
Edit: exactly the same serial problems there.
« Last Edit: January 19, 2014, 08:08:59 am by Kaeltis »

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Weird Serial/WiFi issues
« Reply #5 on: January 19, 2014, 10:04:12 pm »
This is just strange - obviously not a hardware issue, serial works for me on many win8, win8.1, and win7 machines.... is there a common program on these machines that could be interfering? that's all I can think of...

Kaeltis

  • Newbie
  • *
  • Posts: 27
Re: Weird Serial/WiFi issues
« Reply #6 on: January 20, 2014, 03:47:42 am »
I have no clue, especially as there are similar problems in a clean linux environment.  :-\
Are you using Beta 1.5.5 or 1.5.5-R2?

I'll do a clean windows install the next couple of days, maybe things behave different then.

Just to make sure, when installing the IDE, is this the correct order for a x64 system?
  • Download and install/extract the Arduino beta IDE (1.5.5-R2)
  • Install the drivers from the Arduino IDE "drivers" folder (dpinst-amd64.exe)
  • Extract the DigiX hardware folder to "Documents\Arduino"
  • Run the DigiX "Install Drivers - 64bit.bat" file
  • Run the Arduino IDE, select COM Port and Board "Digistump DigiX (standard)", programmer is AVRISP mkII

One thing i noticed, when you go to "<arduino installation folder>\hardware\tools" and run "listComPorts.exe" the program shows all COM ports but then crashes with the following message:

(it shows the DigiX COM port for just a moment after i click the OK button)

Maybe its caused by the german language of my OS? Can anyone confirm that?
« Last Edit: January 20, 2014, 05:51:26 am by Kaeltis »

gogol

  • Sr. Member
  • ****
  • Posts: 398
Re: Weird Serial/WiFi issues
« Reply #7 on: January 20, 2014, 07:35:15 am »
I can confirm, that it is running under german versions of
  • Windows 7 Ultimate x64,
  • Windows 7 Personal x64,
  • Vista Business x64,
  • Windows 7 Personal 32,
  • Windows XP 32

It runs as well under several Ubuntus 32/64 10.04, 12.04, 13.10 and OpenSuse 13.1



Kaeltis

  • Newbie
  • *
  • Posts: 27
Re: Weird Serial/WiFi issues
« Reply #8 on: January 20, 2014, 07:37:32 am »
Do you get that error message when running listComPorts?

gogol

  • Sr. Member
  • ****
  • Posts: 398
Re: Weird Serial/WiFi issues
« Reply #9 on: January 20, 2014, 07:55:35 am »
no, i receive a complete list without any error!

Kaeltis

  • Newbie
  • *
  • Posts: 27
Re: Weird Serial/WiFi issues
« Reply #10 on: January 20, 2014, 07:57:31 am »
So this might be the possible cause of the problem, can anyone tell me why this is happening?

gogol

  • Sr. Member
  • ****
  • Posts: 398
Re: Weird Serial/WiFi issues
« Reply #11 on: January 20, 2014, 08:27:31 am »

Kaeltis

  • Newbie
  • *
  • Posts: 27
Re: Weird Serial/WiFi issues
« Reply #12 on: January 20, 2014, 08:30:47 am »
Strange, so this should already be fixed? So why is it still broken?  :o

gogol

  • Sr. Member
  • ****
  • Posts: 398
Re: Weird Serial/WiFi issues
« Reply #13 on: January 20, 2014, 08:38:14 am »
the MD5 sum of my listcomports.exe is:

5330b7080dde031656c83c3a8cdd93c7 listcomports.exe

if you have no windows version of md5sums, you can get it there:

http://support.microsoft.com/kb/841290

Kaeltis

  • Newbie
  • *
  • Posts: 27
Re: Weird Serial/WiFi issues
« Reply #14 on: January 20, 2014, 08:57:21 am »
Thanks, have the same checksum here

also tried compiling the most recent version from git - same error
(https://github.com/todbot/usbSearch)
« Last Edit: January 20, 2014, 09:05:58 am by Kaeltis »