The Things Node - Central

Nice you are willing to help so quickly! Hope you are able to find something that helps. I understand you are able to program the Node on a different OS?

wellā€¦ you can run the Arduino IDE on a different OS, mostly windows but also MACā€¦ and Unbuntu.
Ubuntu is way behindā€¦ do a google search for for ubuntu and arduino

for the Sparkfun micro you have to update your boardfilesā€¦ but you canā€™t find them under Ubuntu

boards

I already updated the board file using this URL: https://github.com/sparkfun/Arduino_Boards and there they quote the board file link: https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json.
Then you can select Sparkfun Pro Micro and 8 MHz CPU

BTW, I run the 1.8.5 Arduino, I think that is pretty much up to date.

sorry, had to leave just came back now.
yes thatā€™s up to date, also your board file is ok
have to try it myself first before I comment more on this :wink:

No problem! Thanks for letting me know. This evening I have other stuff to do, so tomorrow morning is the first time I can try stuff out again.

ok after some troubles it seems to work :roll_eyes:

UBUNTU 17.02
ARDUINO IDE 1.8.5
TheThingsNode 2.02

problem I found is that after compiling it changes portā€¦ so I compiled to see if everything was fine and then upload while holding reset button, as soon you see the programmer (set upload to verbose in preferences) searching for ports you let the resetbutton go and it find the right port automagically.

x619

another possibilty is that your laptop doesnā€™t provide enough power so you can try it with an USB hub in between.

Hi BoRRoZ, very encouraring that you managed to get it working. I will try it now.Thanks a lot.

Yes, what you describe is actually happening on my laptop too: it changes port. Will check now with reset. Not sure which switch that is.

@BoRRoZ Ok, I have been trying all sorts of ā€œpress resetā€-scenarios, but was unable to to succeed. This ports switching seems to confuse the avrdude program. The best result I got was this one:

Found programmer: Id = ā€œCATERINā€; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
Device code: 0x44

avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 3.13s

avrdude: Device signature = 0x0d3f0d
avrdude: Expected signature for ATmega32U4 is 1E 95 87
Double check chip, or use -F to override this check.

But I was unable to write to the device. I also tried with directly using avrdude. Still no success.

@BoRRoZ, I also followed the suggestion of the Sparkfun website: https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide/troubleshooting-and-faq#ts-reset . It seems you have more time to access the bootloader, but still no success. Coming thursday I can test on Apple and Windows. This device is not really convenient to use with Arduino and Ubuntu. Weird that you were succesfull and I canā€™t manage to get it working.

x620

My ā€˜solutionā€™ from yesterday seems to be non consistent.

I just tried it again and it give me a bunch of java errors ???
So I tried an Arduino pro micro and got the same result.

I tried an Arduino nano and that worked fine.

Conclusion, a virtual port like on the 32U4 doesnā€™t work well with the current Ubuntu/Arduino IDE
Canā€™t do much about this myself.

1 Like

I think the method from Sparkfun for the Pro Micro is not as elegant as the normal Uno and others from Arduino family. The port switchting is really confusing and unstable.

thatā€™s typical 32U4 behavior and not very well implemented under Ubuntu ā€¦ virtual serial port works under windows but can also give sometimes problems.

My TTN Kickstarter kit was:

  • a gateway
  • two Things Uno
  • one Things Node

My gateway works as expected, and so did one of the Arduinos. My other Arduino didnā€™t see the radio, i.e., the radio wasnā€™t responsive to commands via the serial connection. My Things Node had a broken radio, which only worked in a narrow temperature window.

Now I received exchange parts for those two broken devices. The new Arduino does the job, however, the new Things Node doesnā€™t show up as USB/COM when connected to a computer. So Iā€™m still without a working Things Node.

That makes 3 out of 5 end devices faulty, in one way or another. Am I the only one with really bad luck? Or are we looking at a quality issue with the kit? Donā€™t get me wrong ā€“ this is not to moan about the Kickstarter campaign or the TTN crew. I think theyā€™re doing a terrific job. I just want to check if Iā€™m the only one experiencing weird hardware issues and have all odds against meā€¦

Boris

Hi Boris,

I moved your question to this topic because it seems that your gateway is working and youā€™re having a problem with the nodes, and this is TTN NODE central

I think that what I read is normal behavior, a 32U4 connected to an usb port behaves different then a arduino with a dedicated onboard usb serial connection and sometimes itā€™s really annoying.
especially with an arduino IDE under linux.

hope I can guide you through in this topic

Iā€™m all ears. Funnily enough, the Things Node with the broken radio quite happily connected like an Arduino. I hope I donā€™t need a JTAG programmer or somethingā€¦

Noā€¦

but you have to open the the things node, remove batteries , remove 2 screws so you see this and the reset button (the one on the left on the PCB) is exposed.

x634

  • I am a bit busy today (and tomorrow) so there is a big chance that I canā€™t respond/continue immediately

I had pressed the reset button earlier, before, after or during connecting to USB - to no avail. Iā€™m curious now. Take your time!

yes I forgot, at the beginning of this topic, in December you allready had this problem.
Last week we solved a similair problem with a simple ā€˜swap USB cable and portā€™ sounds stupid but worh a try :sunglasses: