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 8173391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:08:05+00:00 2026-06-06T22:08:05+00:00

I’m using Voice Recognition Module — Arduino Compatible . It says there to use

  • 0

I’m using Voice Recognition Module — Arduino Compatible. It says there to use AccessPort, but since I’m on Mac OS X it won’t work. I don’t know of any other solution but to write my own in Python while I’m open to any other language that works.

I found some solutions over here about pySerial but as of now it doesn’t seem to work.

import serial
import struct

def C(val):
    return struct.pack('H', val)

ser = serial.Serial(port='/dev/tty.PL2303-00001004', baudrate=9600, timeout=1)
ser.nonblocking()

ser.write(C(0xaa11))
print ser.read().__repr__()
ser.close()

It opens, write two bytes and doesn’t read anything. 0xaa11 is used to start recording. My device seems to be in waiting mode since the red LEDs flash rapidly. Even if I do 0xaa00, it doesn’t do much either. I even tried to change the byte order to 0x00aa, 0x11aa and so on, but I never receive my 0xcc or 0xe0 error code.

In the documentation it says to send it as hex, so my guess is that accessport converts hex to a Short which use two bytes. 0xaa00 is a two bytes number. I even tried to change the baud rate to 38400 in case someone before me did set that to this speed.

I’d be happy to read anything from that serial port because as of now I can write, it does nothing and reads nothing…

As of now, I’ll try to install AccessPort with crossover. If it still doesn’t work, I’ll have to find a Windows box. I could even write my own bridge with my Arduino board since the driver I’m using might be buggy.

In case it matters, I’m using a USB to Serial PL2303.

Edit

  • I plugged my output and input pin to test my USB-to-serial. I do read what I write so the driver is working fine.

  • I’ll try to set it up directly with Arduino and test directly from there.

  • Sending 0xaa11 is different than sending 0xaa and then 0x11. The serial seems to reverse the byte order.

  • On the other hand, the documentation doesn’t tell about bit endianess, so it might be the problem too.

  • 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-06T22:08:11+00:00Added an answer on June 6, 2026 at 10:08 pm

    I kind of solved my problem while it was pretty dumb after all.

    Here is my final script:

    import serial
    import struct
    from time import sleep
    
    def C(val):
        return struct.pack('!H', val)
    
    ser = serial.Serial(port='/dev/tty.PL2303-00002006', baudrate=9600)
    
    sleep(2)
    
    ser.write(C(0xaa00))
    
    sleep(1)
    ser.write(C(0xaa36))
    
    sleep(1)
    ser.write(C(0xaa11))
    
    sleep(1)
    
    while True:
        print ser.readline()
    

    If someone ever want to use that module, it works. It will switch to a mode where it puts to output words instead of bytes so you can read it using readline…

    I used in struct.pack “!H” to use network endianess it change 0xaa00 to 0xaa 0x00 like it should be.

    But the real problem here wasn’t in the script. Since the usb to serial did work I thought that it was strange that the module didn’t respond anything… not even a byte for errors. Every command in this module must return something. That’s why I looked back at my cable and checked the pins… gnd to gnd, power supply to power supply and then rxd to txd, txd to rxd… While everything seems ok… I should receive something… And then I really thought… what if it’s not supposed to use a cross cable and txd should be plugged to txd and rxd to rxd… Apparently it does.

    I switch the cable and now data is sent and received.

    So anyone using that module should check that it’s correctly plugged in. If it doesn’t work, switch the data pins.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I want use html5's new tag to play a wav file (currently only supported
I have a French site that I want to parse, but am running into

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.