Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8533687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:01:29+00:00 2026-06-11T10:01:29+00:00

I am trying to send a command to a lighting device. The command below

  • 0

I am trying to send a command to a lighting device.

The command below works in the hyper term.

\05387988c2g<CR>
  • \ is an ascii character
  • g<CR> is at the end of every command
  • g is the acknowledgement key and <CR> is the carriage return

I have tried sending this command using Python’s Serial Module in the code below, but it does not work because \ is an ascii character and g and <CR> are strings that need to be at the end of the command.

Could someone tell me what command I have to send. Any help is appreciated.Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:01:31+00:00Added an answer on June 11, 2026 at 10:01 am

    its not really clear what you expect to send … but assuming I understand this may help.

    use r”” which will consider everything to be literal (including \)… additionally you may need to send a carriage return (\r)

    conn.write(r'\05387988c2g')
    conn.write('\r')#may or may not be needed or some other ending character
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to send message using tibrvsend command. The scenarios is like below ,
I'm trying to send a command to a device over my Bluetooth RFCOMM socket
I'm building a VS package, and I'm trying to send a command from the
I am trying to send the output from the find command to OpenSSL in
I am trying to send a command to my LAC board using visual c++.
im trying to send a unix command from a client to a server, wait
I'm new to backbone and I am trying to send a delete command. I'm
I'm trying to do java mail and im getting an error Cant send command
I'm trying to fetch a file and send a command to another server. I'm
On Windows 7, I am trying to send the output of a maven-3 command

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.