Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Sending data through a USB to Serial Port using Perl scripts

3 réponses
Avatar
Emilien
I'm actually trying to send and receive data to a "Sunny Boy Control",
I'm using a perl script that works with normal Serial Ports. But as I'm
working on a mini Mac I don't have Serial Port. So i'm using my script
as if I was on a serial port, but it doesn't work.

I would like to know if I can send data through a USB to Serial Port
Converter the same way I'm sending through a normal Serial Port??

If not what should I do?


Thanks for your attention

Emil

3 réponses

Avatar
Patrick Texier
Le Fri, 12 May 2006 16:01:19 +0200, Emilien a
écrit :

If not what should I do?


Parler français.

Avatar
Emilien
Le Fri, 12 May 2006 16:01:19 +0200, Emilien a

If not what should I do?


Parler français.


Bon voila, j'essaie de communiquer avec un boitier d'acquisition de
données "Sunny Boy Control"via un adaptateur USB->Port Séries. j'utilise
un script Perl qui marche avec un port série normal.
Je voulais savoir si on pouvait communiquer de la même manière en
utilisant adaptateur USB->Port Série qu'en utilisant directement un Port
série normal ??
Je travaille sur un MiniMac qui ne possède pas de port série et mon
script ne marche pas en passant par l'adaptateur qui est pourtant
reconnu puisque j'arrive à me connecter à /dev/cu.usbtoserial0 en
ouvrant une SOCKET.


Avatar
Nicolas George
Emilien wrote in message <44682b84$0$7047$:
Je voulais savoir si on pouvait communiquer de la même manière en
utilisant adaptateur USB->Port Série qu'en utilisant directement un Port
série normal ??


Normalement, ça devrait marcher exactement pareil, le noyau cachant la
différence -- c'est bien à ça qu'il sert. Pour que ça marche, il faut que ce
soit du vrai série, et pas que soient utilisées des fonctionnalités
hors-specs des ports série directs.

reconnu puisque j'arrive à me connecter à /dev/cu.usbtoserial0 en
ouvrant une SOCKET.


Euh, il y a un problème, là : les devices (dans /dev/) et les sockets, ce ne
sont pas du tout la même chose.