In circuit debug Interface communication with Windows - microcontroller

I am trying to understand how TIVA123 processor communicates to windows. I see it does not require any com port and works on In circuit debug interface. Also on the download command I see download utility has arm-none-eabi-objcopy which does not require com port flags. How does it calculate which com port to connect to?

Related

Using PuTTY as backend

I'm developing a Java application that uses different libraries to connect to SSH servers or to console terminals via serial port. Now halfway into the development I see that it would be really interesting to be able to replace those libraries with the PuTTY program itself. Users would enter the connection parameters (IP address, serial port, SSH keys, ...) into PuTTY as they usually do and the Java application would send the commands to PuTTY and read the output of those commands. Advantages:
PuTTY is very reliable and also it's what the users use when they do the process by hand so it's guaranteed that the data communication will work fine. Also they could use their current saved sessions, settings and any other configuration
No need to import and use different Java libraries for Telnet, SSH, serial communications, etc
In the case of serial port, only one program can be connected to the COM port so it's the only way that the user could send commands without closing the Java application
Is there a way to do this with PuTTY or other equivalent program?

Unable to access Arduino Yun board using arduino.local

Windows machine: After configuring on-board WiFi, I cannot access Arduino Yun board using arduino.local. However while configuring, I gave name of the board exactly arduino.
Linux (Ubuntu): However if I repeat same steps configuring WiFi in Ubuntu, I can access its webpanel using arduino.local in browser.
Any solution how can I access from a Windows machine. Or how to figure out IP address of the board to access its webpanel?
You should follow the instructions on their site very carefully.
Specifically:
NB: The Yún uses Bonjour services for auto-discovery on a wireless network. This service is not included with Windows by default. If you do not have Bonjour already installed, you can download the service from here. Additionally, you should make sure any anti-virus software is not blocking communication on port 5353.

Automatically find Arduino without IP

I have a RaspberryPi which is going to act as the server for my Arduinos which are connected to the same network.
However, the RaspberryPi is unable to automatically connect to the Arduino. I have to hardcore each Arduino IP address into the server.
Is there anyway for my server to search the network and identify the arduino so it could be added into the server database automatically. Or the other way round, the arduino find the server ip and attempts to connect to it.
My server is running on node.js
If both the Rasbpi and the Arduino are connected to the same router, they are in the same subnet. You can let tell your server periodically scan the subnet ip range.
I am not familiar with node.js but here are some good starting points for network scanning:
https://www.npmjs.com/package/ip
https://github.com/jas-/node-libnmap
From your server install the latest nmap binary then expose that tool to node.js like so:
'$ npm install --save libnmap'
Then use the discover method available to find all connected devices per network interface.
var nmap = require('libnmap');
nmap.discover(function(err, devices) {
if (err) throw err;
console.log(JSON.stringify(devices));
});
I would use mDNS to find the Arduinos. The only requirement for the RPi is to be running Avahi, to have the appropriate multicast port open, and to have the mDNS resolver installed and configured. There are several Arduino libraries available that implement mDNS; a quick Google search finds a few.

Moxa NPort 5210A Functioning

I need advice on this product Moxa NPort 5120A I use to convert the serial outputs of some ethernet cards in order to be able to connect to the network.
Using the Realcom Mode, but whenever I connect it to your network and want to use a software from the PC to control it I need to open the software NPort Administrator, add the device, and then open the Web console, otherwise the doors do not appear to be open and if I do not open the web console software NPort Administrator (with the appropriate button) and I type the IP address of the port in the browser always comes back to me that the server is not responding and I do not load the web page. Has anyone had experience with the Moxa and their products? And 'it possible to use this module that I always have to open the software and open the Web console without having to change any settings to enable the COM port?
Thank you.
Normally with these types of devices you use TCP/IP sockets for communication with the device(s) on the other end. In your application you create a socket and listen for connections. Once a connection is made you process the data coming in and send data out to the device.
You also configure the device on the other end to tell it to connect to a specific IP address/port which is the server or PC running your software which is listening for the connection.
It sounds like that device also offers a device driver that can be installed and causes it to emulate a serial port. In that case, you would configure it that way and have your application open a serial port and communicate with the device as if it were actually attached to a real serial (COM) port.

Communicate to a web application via application that is running on a PC that is connected to internet via Wifi

This is my application setup.
I have written an application (in Qt ) which will run on a linux computer (Ubuntu). The application accepts requests from web app and sends them to a serial device that is connected to the computer. Also application will send back the response to web app as well. This linux computer is connected to internet via wifi router.
Now my question is, Is there a way (other than port forwarding in wifi router) that I can achieve this functionality. Using port forwarding I can ask the router to forward the requests coming for a particular port to my computer at a particular port and my application would be listening for that. But for that I would have to configure the router and I don't want to do that. Is there a way I can do that automatically?
Thanks,
DPatel
Your issue is traversing non-routable NAT addresses.
UPNP is an option: http://en.wikipedia.org/wiki/Universal_Plug_and_Play
It will automatically configure port forwarding.
There is a library out there called STUNT for this as well:
http://nutss.gforge.cis.cornell.edu/stunt.php

Resources