LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2017, 02:15 AM   #1
Sysware21
LQ Newbie
 
Registered: Jan 2017
Posts: 1

Rep: Reputation: Disabled
Setting Serial Port RTS Line to proper state prior to deep sleep


We have a battery powered device. We need to shut down as much of the device as possible when not active. We are connected to a Bluetooth device through a UART and we want to manually set the RTS line to the proper state then place the UART in low power mode/turn off and go to sleep.If data is received into the Bluetooth device, the device will set a wakeup pin to the SOC and wake the device from deep sleep. I need to know how I can manually set the RTS state before going to deep sleep or does the Power Management framework take care of this automatically.
 
Old 02-01-2017, 06:21 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 12,996

Rep: Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713
Quote:
I need to know how I can manually set the RTS state before going to deep sleep or does the Power Management framework take care of this automatically.
We would need to know the hardware & software. In the old days, everything was accessible; Now, RS-232 protocols are implemented in some tiny corner of a massive asic, or maybe an rs-232 chip (e.g. MAX232)is soldered in, because rs-232 is funny with voltages (+/-5V iirc).
The bluetooth device muddies the waters considerably. It is unlikely you will find too much of that is accessible, as rs-232 is usually just 3 lines, send, receive & earth. You should be able to disconnect RTS, and it should work. Any rs-232 or power saving implementation requiring a particular state on an (almost obsolete) RTS line is strange.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can serial port modem control line state be detected with a c select call? araasch Programming 3 12-07-2009 03:12 PM
serial port R/W with DTR and RTS andreski Programming 1 12-06-2007 10:57 AM
Set RTS high on serial port Regulus Linux - Software 1 08-09-2006 04:58 PM
Serial line RTS and DTR setting zhanghao Linux - Hardware 1 02-15-2006 08:43 AM
Serial line RTS and DTR setting zhanghao Linux - General 5 02-14-2006 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration