Go to advanced search

by neumotngayem
Sat Aug 18, 2018 2:52 am
Forum: Troubleshooting
Topic: I2C not automatically enable every start
Replies: 5
Views: 573

Re: I2C not automatically enable every start

How do you know it's disabled after booting? Do you see the i2c devices with ls /dev/i2c* immediately after booting? I have a program display on 16x2 LCD, I make it run every boot, and LCD is blank because the program cannot find the port I2C, after I enable I2C with raspi-config, the program worki...
by neumotngayem
Fri Aug 17, 2018 5:53 pm
Forum: Troubleshooting
Topic: I2C not automatically enable every start
Replies: 5
Views: 573

Re: I2C not automatically enable every start

Hi everyone, I enable my I2C port by sudo raspi-config and everything running good, but after reboot, it go to disable again, I check raspi-blacklist.conf It dont't have any thing like blacklist i2c-bcm2708, I go to /etc/modules it have i2c-dev, i2c-bcm2708, I go to /boot/config.txt It have dtparam...
by neumotngayem
Fri Aug 17, 2018 5:03 pm
Forum: Troubleshooting
Topic: I2C not automatically enable every start
Replies: 5
Views: 573

I2C not automatically enable every start

Hi everyone, I enable my I2C port by sudo raspi-config and everything running good, but after reboot, it go to disable again, I check raspi-blacklist.conf It dont't have any thing like blacklist i2c-bcm2708, I go to /etc/modules it have i2c-dev, i2c-bcm2708, I go to /boot/config.txt It have dtparam=...
by neumotngayem
Sun Aug 05, 2018 3:20 am
Forum: General discussion
Topic: Install driver of TL-WN722N Version 3 on Raspberry Pi 2
Replies: 4
Views: 1530

Install driver of TL-WN722N Version 3 on Raspberry Pi 2

Hi, is everyone in here install success driver for TL-WN722N Version 3 on Raspberry Pi 2, i found most of install guide in google is for TL-WN722N Version 2, I follow the installation guide in from TP Link they said change the Makefile the value of CONFIG_PLATFORM_BCM2709 to y, but I cann't find thi...
by neumotngayem
Thu Aug 02, 2018 1:56 pm
Forum: Python
Topic: AT Command return has been corrupted
Replies: 9
Views: 831

Re: AT Command return has been corrupted

DougieLawson wrote:
Thu Aug 02, 2018 1:50 pm
You need to decode it from 7-bit GSM USSD to 8-bit ASCII. It will then print without any errors.
But how come I decode it when the orginal 7-bit GSM USSD data is corrupted already :(
by neumotngayem
Thu Aug 02, 2018 1:46 pm
Forum: Python
Topic: AT Command return has been corrupted
Replies: 9
Views: 831

Re: AT Command return has been corrupted

Repeating your original question doesn't seem very productive... What do you expect the returned data to say? What values or quantities are represented by the <?> placeholder symbols? oh no, this situation is like that, I try to get the response of the serial, this is the full respone: +CUSD: 1, "D...
by neumotngayem
Thu Aug 02, 2018 1:33 pm
Forum: Python
Topic: AT Command return has been corrupted
Replies: 9
Views: 831

Re: AT Command return has been corrupted

This is how to translate it, but the respone of my is corrupted when I read from serial :(
+CUSD: 1, "D8B41B344687DF20580C879BC56A��MN�&���
by neumotngayem
Thu Aug 02, 2018 12:48 pm
Forum: Python
Topic: AT Command return has been corrupted
Replies: 9
Views: 831

Re: AT Command return has been corrupted

DougieLawson wrote:
Thu Aug 02, 2018 7:45 am
It's returning 7-bit data. You need to convert that to 8-bit to make sense of it.
Can you suggest me how to do that or the key word to find the solution ?
by neumotngayem
Thu Aug 02, 2018 2:04 am
Forum: Python
Topic: AT Command return has been corrupted
Replies: 9
Views: 831

AT Command return has been corrupted

Hi everyone, I am coding the python script for check balance of the sim on module GSM A6, here is my python code: port = serial.Serial("/dev/ttyAMA0",baudrate=9600,timeout=1) port.write('AT+CMGF=0'+'\r\n') time.sleep(2) port.write('AT+CSCS="HEX"'+'\r\n') time.sleep(2) port.write('AT+CUSD=1,"*101#",1...
by neumotngayem
Sun Jul 29, 2018 12:30 pm
Forum: Python
Topic: Can't get readable USSD return message
Replies: 2
Views: 722

Re: Can't get readable USSD return message

Oh thank u so much I try to convert with USSD Entry/Display and I got the data I need, thank u so much :D
by neumotngayem
Sat Jul 28, 2018 2:26 am
Forum: Python
Topic: Can't get readable USSD return message
Replies: 2
Views: 722

Can't get readable USSD return message

Hi everyone, I am doing a program to check the balance of the sim, I using the module GSM A6, and here is my python code for that: port.write('AT+CMGF=0'+'\r\n') time.sleep(2) port.write('AT+CSCS="HEX"'+'\r\n') time.sleep(2) port.write('AT+CUSD=1'+'\r\n') time.sleep(2) port.write('AT+CUSD=1,"*101#",...

Go to advanced search