Go to advanced search

by blackboy
Sun Aug 21, 2016 7:06 am
Forum: Troubleshooting
Topic: (help) read txt file without "\n" using python
Replies: 0
Views: 339

(help) read txt file without "\n" using python

i have a txt file (phone number). I want to send sms to more than a phone number in txt file: 01674633840 01652484494 01674633840 here is my code: import serial import time from time import sleep class TextMessage: def __init__(self, recipient="", message=""): self.recipient = recipient self.content...
by blackboy
Thu Aug 18, 2016 3:39 pm
Forum: Beginners
Topic: (help) send sms to more than a phone number
Replies: 1
Views: 379

(help) send sms to more than a phone number

hello everyone!
I'm using RPI and Module sim 900. I want to send sms to more than a phone number, but it not works.
my code :
Capture.PNG
Capture.PNG (18.92 KiB) Viewed 379 times
could you help me?
tks so much!
by blackboy
Wed Aug 03, 2016 4:30 am
Forum: Troubleshooting
Topic: (help) UART on raspberry
Replies: 14
Views: 2089

Re: (help) UART on raspberry

while True: data2 = ser.write('at') data = ser.read(9999) if len(data) > 0: print data That's right! but i don't read data from RX on raspberry pi. (x### as picture) Sending "at" is not the same as sending "AT". You need to send capital letters in order to let the board recognize the right baud rat...
by blackboy
Wed Aug 03, 2016 2:53 am
Forum: Troubleshooting
Topic: (help) UART on raspberry
Replies: 14
Views: 2089

Re: (help) UART on raspberry

DougieLawson wrote:That looks like not the right protocol (is it sending 8N1) or not the right baud rate.
tks for your help!
I set 9600 bauds on Raspberry Ri and I used the connection as figure.
by blackboy
Wed Aug 03, 2016 2:17 am
Forum: Troubleshooting
Topic: (help) UART on raspberry
Replies: 14
Views: 2089

Re: (help) UART on raspberry

Massi wrote:are you sure "that thing" is returning text and not binary data that you have to decode?
yes, I am. When i called, Raspberry Pi recived something, but i don't know what is it, it look like "RING RING RING".
by blackboy
Tue Aug 02, 2016 2:35 pm
Forum: Troubleshooting
Topic: (help) UART on raspberry
Replies: 14
Views: 2089

Re: (help) UART on raspberry

My guess would be a baud rate problem. The SIM900 seems to auto-sync baud rates but.... http://simcom.ee/documents/SIM900/SIM900_Serial%20Port_Application%20Note_V1.03.pdf See section 4. It is recommended to send "AT" until host device receives the "OK" response, echih means host device and SIM900 ...
by blackboy
Tue Aug 02, 2016 6:51 am
Forum: Troubleshooting
Topic: (help) UART on raspberry
Replies: 14
Views: 2089

Re: (help) UART on raspberry

binaryhermit wrote:viewtopic.php?f=28&t=141195 perhaps?
Thank you for your quick reply. i have a problems when i read uart data from icomsat v1.1 (module sim900) as shown below. Can you help me fix it?
Tks so much.
by blackboy
Tue Aug 02, 2016 6:50 am
Forum: Troubleshooting
Topic: (help) UART on raspberry
Replies: 14
Views: 2089

Re: (help) UART on raspberry

setting uart on raspberry, but it not work. make sure to sudo apt-get update core_freq = 250 enable_uart = 1 You will have two serial devices: serial0 and serial1 serial0 will be a symbolic link to /dev/ttyS0 serial1 will be a symbolic link to /dev/ttyAMA0 marcus Thank you for your quick reply. i h...
by blackboy
Tue Jul 26, 2016 1:46 pm
Forum: Troubleshooting
Topic: (help) UART on raspberry
Replies: 14
Views: 2089

(help) UART on raspberry

Hi every one,
i'm new member.
i am setting uart on raspberry, but it not work. (i am using newest version -raspian 2016-05-27).
I dont see "ttyAMA0" directory in my RPI =>
can you help me?
thank you verry much. (sorry about my english is not good.)

Go to advanced search