I work with Zedboard and vivado v2017.3.
I have a custom IP in the PL part of zynq generating 32 bit values and stores them in one of the registers, say slv_reg0 (address : 0x43c00000).
In the PS part I read this register and I can print it in the gtkterm (simple one).
I now want to transmit these values over ethernet to to the PC.
Any suggestion on how to carry out this?
Thanks,
Upasana.
Xilinx supplies sample programs, one of these is an echo server. It should be quite simple to change it so that it serves the data you generate instead of just echo-ing the received message, and you can learn out of it how to use the lwip library in case you want a more suitable solution.
I have a Datalogic PM8300-DK Scanner that is working fine so far. I choose the USB-KBD-Mode (USB INTERFACE SELECTION) and now everytime I scan a barcode, the data-representation of the barcode is writen on my computer (where the cradle is connected to).
But the problem is, the data is writen to where the cursor stands (where the focus is). For example, when the focus is in a text-editor, the scanner writes the data to the text-editor. When the focus is in the google-search-box of my browser, it writes the barcodes to the search-box.
I would prefer if the data would be writen directly to a file, and there would be no output to the screen directly. Is that possible, does anyone know a modus for that ?
Thanks, Andre
You need to use the serial or USB serial emulation (COM port) connection for that. You will also need to have some software to handle the data.
I have a 40x7 VFD that functions as a serial terminal. It has a dedicated keypad that provides hex-entry, however, I would like to use a keyboard for the standard input. Basically, I want to be able to use the VFD as a display for a Linux bash prompt, but use the keyboard connected to the computer as the means of input. Instead of connecting a monitor, the serial terminal will be the monitor. I can get the login prompt displayed on the VFD with agetty, but since it only has hex-entry, how can I change where the system is looking for standard input?
Thanks,
Core_Module
I think the best method would be to create a pseudo terminal. In doing so you create a fake terminal device with a /dev/pts/[n] name that acts like a real input/output device. A program could connect the console (keyboard) as input and the VFD as output and send and receive that data over the pseudo device. You can then point agetty at the /dev/pts/[0] device instead of a /dev/ttyS[n] device. Some ideas on doing this can be found in many tutorials online. From the link:
A pseudo-terminal is a pair of character mode devices also called pty. One is master and the other is slave and they are connected with a bidirectional channel. Any data written on the slave side is forwarded to the output of the master side. Conversely, any data written on the master side is forwarded to the output of the slave.
I found another StackOverflow question that may also be of assistance. See this link. It could be adapted to suit your needs.
I have a Neurosky Mindwave device and I would like to visualize and record raw data from it for further analysis using MATlab. I have tried all the free apps suggested in the Neurosky store (Brain Grapher, Mindstream, etc...) but I haven't been able to export raw data (potentially in CSV format). I have the Instrument Control Toolbox in MATlab but it hasn't been able to find the device through Bluetooth. The device itself works and I have been able to use it through its built-in Bluetooth connectivity and different software. Here is the error message that MATlab gives me when I input instrhwinfo('Bluetooth'):
Error using instrhwinfo (line 195)
Java exception occurred:
java.lang.NullPointerException
at com.mathworks.toolbox.instrument.BluetoothDiscovery.discoverDevices(BluetoothDiscovery.java:448)
at com.mathworks.toolbox.instrument.BluetoothDiscovery.hardwareInfo(BluetoothDiscovery.java:247)
Is the Mindwave simply incompatible with MATlab out of the box?
thank you in advance
-Alex
ps the formatting seems wrong in my question, I have very limited experience
Did you try neurosky matalab_dll click for neurosky link ? It connects with serial port.
Note: Also you can do it with simulink serial receive block which is under embedded coder but you also need a packet parser for seeing raw data.
I'm creating a very simple application to read the info from a GPS. The information is sent on the bluetooth (COM3) in the NMEA0183 format.
Everything works good except that I can't find my position because the RMC and GGA sentence are empty. I receive other sentence with the satellite informations and positioning, but all I want is my current position (long/lat)
Here is some example of what I currently receive:
$GPZDA,,,,,,*48
$GPGGA,,,,,,,,,,,,,,*56
$GPGLL,,,,,,,*7C
$GPRMC,,,,,,,,,,,*67
$GPGST,,,,,,,,,,,,,,*57
$GPGSA,M,3,09,18,22,14,,,,,,,,,12.2,11.8,3.0*31
$GPGRS,,,,,,,,,,,,,,*51
$GPVTG,30.124,T,30.124,M,0.067,N,0.125,K*49
$GPGSV,2,1,08,22,78,283,50,18,60,137,50,14,54,281,48,09,44,052,48*7F
$GPGSV,2,2,08,46,34,212,,51,28,222,,48,12,247,,35,06,254,*74
I tried with Putty, GPS .NET 3.0.2 and my own program and the result is the same. BUT when I connect with the proprietary software called eZField, the GPS gets a fix after 20 seconds and I can see the long/lat showing. In EZField, I can't see the raw format and since it is on a pocket PC, I don't know how to sniff the bluetooth data to see if the software send any information to the GPS.
My best guest is that EZField sends some information to the GPS receiver to tell him to start sending RMC and GGA. I've read somewhere that there are "Initialization strings" that can be sent to a GPS but I can't find information about this anywhere. My GPS is a ViaSAT L1-GPS Receiver/SBAS.
Anyone can help me? :)
Thank!
It looks like your GPS doesn't have a fix yet. It is odd though that the GPS doesn't simply start searching on its own. Most initilization strings are strictly for what type of data to send back (such as the SiRFstar III proprietary format).
Pair this to your PC and run the software on it after you have started up some serial port monitoring software. That way, you can see what the init. string is, if there is one.
I use this regularly: http://www.serial-port-monitor.com/