Serial communication via scilab on linux - linux

I am trying to use scilab for a project and I need to pass on some values to a robot via a serial port.
I had done this successfully on Matlab. I have ported almost everything to Scilab now but I don't know how to pass those parameter through serial port.

On the Sclilab site there are some modules, but they only work under Windows
http://atoms.scilab.org/

I am the maintainer for the Serial Communication toolbox in Scilab. This works on Linux as well. You can find it here: http://atoms.scilab.org/toolboxes/serial. This is fairly easy to use- it has functions to establish communication with the serial port, to read from and write to the serial port, and to terminate communication with the serial port. Please let me know about any feedback or questions you may have. Thanks.

Related

how do you open FTDI serial ports ttyUSBx such that we can run 2 applications on it?

I am writing a python pyserial app and need to debug it. It is not getting anything on its rx beyond the prompt. I would like to open up a parallel minicom on same tty and be able to see the port rx.
Is this possible without hardware logging ? Can I simply use a serial settings to allow 2 apps to run simultaneously on ttyUSB0 ?
Short answer: No, you can't access your serial ports from two processes at the same time.
There are workarounds that can give you a much cheaper solution than purchasing a hardware sniffer or a scope with serial decoding capabilities though.
You will have to define a couple of virtual serial ports and use port forwarding. This procedure has been explained here: on Linux and Windows 1, 2.

RFID reader Serial port

Hi i dont know if this is right to post here but i dont know where to go. i have an RFID Reader this one http://www.stronglink-rfid.com/en/rfid-readers/sl500.html and already installed the driver from that website. the problem is the port is on com23 which is i think is not valid.
can somebody help me out?
Im using win7 64bit
If your software program supports configurable COM port number, I think it is nothing wrong with high-numbered COM port. If your software program accepts only certain COM port numbers (I have seen some S/W that provide list of predefined COM port number), you can just right click the record and change it to any un-used COM port you want.
Seem ok. Your RFID device uses this port to communicate.

Simulating Serial Port with node.js without using names pipes

I´m working on my own smart home system using some arduinos and Xbees, receiving them on a raspberry pi / mac os X with node.js via serial line connected xbee.
I was thinking about a small simulation so that i can develop without need of running hardware. The only way i know to simulate a serial line is using named pipes which would need two files, one for the input and one for the output. This would need heavy changes within my node.js code (using xbee-api module) which i would like to avoid.
Does anyone know another way to simulate a serial line communication without splitting the communication into two files? My aim would be to simply change the name for the serial port in the configuration of my main code which should than send and receive frames.
I now decided to write my own simulator because there seems to be no other solution. I work corrently on a simulation of the serialport module for nodejs.

Bluetooth paired but no COM port

So I've built an Arduino module with a Bluetooth chip (HM-10) and it pairs succesfully with my Windows laptop. They both use Bluetooth BLE.
The problem is that the pairing doesn't seem to open a COM port, so I have no way to actually communicate across the connection.
There are no COM port connections when I go into Bluetooth settings->COM Ports, even though Windows is definitely telling me that the pairing was successfull.
Does anyone know why this could be?
Thanks for reading
Lukas
I had the same problem on a Mac. Turns out it's not a problem. BLE doesn't quite work like regular ol' Bluetooth and you won't have a COM port. You need to write your own middleware to take care of the communication between the Arduino and your computer.
There are different projects working on that in Python or Node.js. A simple google search should provide with a proficiency of solutions.

Relaying Serial Data in Lion

So I have my computer linked up via bluetooth to two different devices, and I'd like to relay the input from one device to the other device automatically.
I figure I can do this with a script, but I'm pretty green with scripting languages, and I'm not even sure if this is possible.
I know that like Linux, OSX treats serial ports as if they were file directories, so I figure this can't be too hard. I just have no idea where to start.
Can someone point me in the right direction?
I would use a simple python script. Manipulating serial ports is simple with the pyserial module. Then create thread for each port that reads from one port and writes to the other.

Resources