-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RS232 command how it works ? #4558
Comments
For that to work, you need:
NB: If you want to use different GPIO pins, so the regular serial logging is available (or if the above steps won't work), then on ESP8266 you can configure the task for Software Serial, or on ESP32 configure HWSerial1 or HWSerial2, using any available GPIO pin. |
You might want to enable Maybe the projector expects a |
in the documentation there is : Add a Carriage Return (CR) code (0Dh) |
i tried serialsend, %R% "PWR ON" %N% With an other software this command work i think we're not far ... i hope ;o) |
I would expect that this should work, but maybe there shouldn't be a space before PWR and between ON and %R%. (Computers can be quite picky about these extra characters 😉) Is there a way you can monitor if the sent data is actually received at the projector? |
it doesn't work. |
You can also try to switch to Software Serial, that allows to select the GPIO pins, so it is not 'hindered' by the regular Serial pins (that have a tendency to quite stubbornly keep hanging on to the default RX/TX pins, locking them for use by a plugin like Serial Server). 9600 baud should be handled correctly via Software Serial. |
Maybe also check to see if the logic levels are correct. A level converter may be required here (or simply using a transistor and 5V) |
i see what you both mean, thanks ! |
Is it possible to send this : 0x50,0x57,0x52,0x20,0x4F,0x4E,0x0D ? |
But that would be exactly like sending That's not supported yet, but there is a similar PR open to support that kind of command in the P087 Serial Proxy plugin, though that's not yet ready to be merged. Did you see the sent signal being received by the projector? |
the command serialsend is link to this project ? Not yet i need some stuff to test the signal |
what is serial proxy plugin ? should u use it for my case ? |
SerialProxy was originally intended to receive strings from the serial port and forward them to a MQTT controller. I wonder if you need to wrap the command arguments in "" since you're using spaces in the strings you try to send. |
No, this plugin doesn't use |
No, |
@betux69 I have added a new command Edit: Removed outdated link. |
@betux69 I've made a few small improvements to the code, so a new build is getting ready, in this GH Actions run. |
a precision when I send a command I see it on the oscilloscope and after the default signal is sent again. |
Looking at the scale the scope is using (5.00V), and the height of the signal level, maybe you need to use a level converter (as suggested before) to get the signal on the projector input on +/- 12V, the regular RS232 signal level. Most likely the signal you show isn't enough to be accepted/recognized by the projector. |
With you're built i have no signal when i send nothing. |
do you have an exemple of serialsendmix command ? |
we're going to see to send 12v ;o) |
i tried this : |
Sorry to be late a lot of work. It's working !!!!!!!!!!!! This would be in the next firmeware ? BIG THANK YOU |
Gosh! i've a little problem .. i send : |
Found 👍 serialsendmix,"PWR OFF",0x0D |
Good morning,
First of all, I wanted to thank you for the incredible work done. I'm not a technician and I manage to create sensors in a simple way which seems amazing to me.
I want to turn my Epson video projector on and off with the rs232.
I followed this thread:
serialsend is unknown command · Issue #3351 · letscontrolit/ESPEasy · GitHub
The command I need to send is PWR ON.
There is very little documentation on the subject and not necessarily understandable by a beginner.
I use the console and not the rules to try to turn on the VP.
Question 1: Should a port be specified in the module Serial Server?
Question 2: I use the standard tx, rx. Some command notation there’s :
serialsend,1, the command. What is 1?
Question 3: Do you need "" in the command?
Exemple :
Serialsend, “PWR ON”
Or
Serialsend, PWR ON
Thanks a lot
Regards
The text was updated successfully, but these errors were encountered: